diff options
author | tb <> | 2023-03-10 11:55:38 +0000 |
---|---|---|
committer | tb <> | 2023-03-10 11:55:38 +0000 |
commit | ccbb1a9bdc8ccf09bfe96b0d7e030089cd54e33b (patch) | |
tree | 8824c1d526c219d0ad09f979781779024eb52d3e /src/usr.bin | |
parent | 72196349be7c62460f3c81bbcf4f357d46ba91de (diff) | |
download | openbsd-ccbb1a9bdc8ccf09bfe96b0d7e030089cd54e33b.tar.gz openbsd-ccbb1a9bdc8ccf09bfe96b0d7e030089cd54e33b.tar.bz2 openbsd-ccbb1a9bdc8ccf09bfe96b0d7e030089cd54e33b.zip |
ASN.1 BIO: properly wire up prefix_free and suffix_free
If something goes wrong before the ASN.1 BIO state machine has passed
both flushing states, asn1_bio_free() forgets to free the ndef_aux
and the ex_arg since the prefix_free() and suffix_free callbacks are
not called.
This can lead to leaks, notably in streaming bios.
Part of https://github.com/openssl/openssl/pull/15999
I have a regress covering this but it is not yet ready to land.
ok beck jsing
Diffstat (limited to 'src/usr.bin')
0 files changed, 0 insertions, 0 deletions