summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_transcript.c
diff options
context:
space:
mode:
authorjsing <>2022-03-17 17:17:58 +0000
committerjsing <>2022-03-17 17:17:58 +0000
commit72f47231e7ca2316bbce70318f5d2705b5d11bba (patch)
treef93a102035fa9a93a562a1534dbcdef663f07132 /src/lib/libssl/ssl_transcript.c
parent53e3590fa6159627c9bcaf5363b2f1c75bed6b44 (diff)
downloadopenbsd-72f47231e7ca2316bbce70318f5d2705b5d11bba.tar.gz
openbsd-72f47231e7ca2316bbce70318f5d2705b5d11bba.tar.bz2
openbsd-72f47231e7ca2316bbce70318f5d2705b5d11bba.zip
Rework ASN1_STRING_set()
Rework ASN1_STRING_set() so that we always clear and free an existing allocation, prior to storing the new data. This fixes a number of issues, including a failure to zero data if the existing allocation was too small. This also fixes other bugs such as leaving the allocation uninitialised if NULL is passed for data. Require -1 where strlen() is expected and improve length and overflow checks. ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_transcript.c')
0 files changed, 0 insertions, 0 deletions