diff options
author | Matt Caswell <matt@openssl.org> | 2019-10-30 14:20:33 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-11-04 13:49:18 +0100 |
commit | 45b244620a74248b46ebe1c85e86437b9641447a (patch) | |
tree | 30d3ee54273fc439266e6a0436f9251bbd372860 /fuzz/corpora/crl/a2207e133a6b5dfd95a650475300d3d797c82bdd | |
parent | Fix no-sm2 issue (diff) | |
download | openssl-45b244620a74248b46ebe1c85e86437b9641447a.tar.xz openssl-45b244620a74248b46ebe1c85e86437b9641447a.zip |
Don't leak memory in the event of a failure in i2v_GENERAL_NAMES
i2v_GENERAL_NAMES call i2v_GENERAL_NAME repeatedly as required. Each
time i2v_GENERAL_NAME gets called it allocates adds data to the passed in
stack and then returns a pointer to the stack, or NULL on failure. If
the passed in stack is itself NULL then it allocates one.
i2v_GENERAL_NAMES was not correctly handling the case where a NULL gets
returned from i2v_GENERAL_NAME. If a stack had already been allocated then
it just leaked it.
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10300)
Diffstat (limited to 'fuzz/corpora/crl/a2207e133a6b5dfd95a650475300d3d797c82bdd')
0 files changed, 0 insertions, 0 deletions