summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authortb <>2023-03-11 15:50:13 +0000
committertb <>2023-03-11 15:50:13 +0000
commit6c4a7458e869837b1b4cddf47a5a61ed22de7c17 (patch)
treecaf652d414bbecd178c600173b9af8bb1d4f71fa /src/lib/libssl/s3_lib.c
parentb402f35d1e79e0a473421c7a9de69d6227f38d7e (diff)
downloadopenbsd-6c4a7458e869837b1b4cddf47a5a61ed22de7c17.tar.gz
openbsd-6c4a7458e869837b1b4cddf47a5a61ed22de7c17.tar.bz2
openbsd-6c4a7458e869837b1b4cddf47a5a61ed22de7c17.zip
Fix double free after BIO_new_NDEF()
Once the asn_bio is prepended to the out chain, and before the asn1_cb() has done its thing, asn_bio needs to be popped off again on error. Failing to do this can cause write after frees or double frees when the out BIO is used after the function returned. Based on a very complicated diff by Matt Caswell and Viktor Dukhovni. This was part of the fixes in OpenSSL 1.1.1t. ok jsing
Diffstat (limited to 'src/lib/libssl/s3_lib.c')
0 files changed, 0 insertions, 0 deletions