summaryrefslogtreecommitdiff
path: root/src/lib/libssl/s3_lib.c
diff options
context:
space:
mode:
authorjsing <>2022-03-17 17:17:58 +0000
committerjsing <>2022-03-17 17:17:58 +0000
commitea581e0232e3466c6e3f461f4c999d8c6cac5a85 (patch)
treef93a102035fa9a93a562a1534dbcdef663f07132 /src/lib/libssl/s3_lib.c
parent9751e52b7d83ea3eaf11922b57b9d55ff0d74ac1 (diff)
downloadopenbsd-ea581e0232e3466c6e3f461f4c999d8c6cac5a85.tar.gz
openbsd-ea581e0232e3466c6e3f461f4c999d8c6cac5a85.tar.bz2
openbsd-ea581e0232e3466c6e3f461f4c999d8c6cac5a85.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/s3_lib.c')
0 files changed, 0 insertions, 0 deletions