diff options
author | jsing <> | 2022-03-17 17:17:58 +0000 |
---|---|---|
committer | jsing <> | 2022-03-17 17:17:58 +0000 |
commit | 72f47231e7ca2316bbce70318f5d2705b5d11bba (patch) | |
tree | f93a102035fa9a93a562a1534dbcdef663f07132 /src/lib/libssl/ssl_transcript.c | |
parent | 53e3590fa6159627c9bcaf5363b2f1c75bed6b44 (diff) | |
download | openbsd-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