diff options
| author | jsing <> | 2022-03-17 17:17:58 +0000 |
|---|---|---|
| committer | jsing <> | 2022-03-17 17:17:58 +0000 |
| commit | ea581e0232e3466c6e3f461f4c999d8c6cac5a85 (patch) | |
| tree | f93a102035fa9a93a562a1534dbcdef663f07132 /src/lib/libc/stdlib/abort.3 | |
| parent | 9751e52b7d83ea3eaf11922b57b9d55ff0d74ac1 (diff) | |
| download | openbsd-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/libc/stdlib/abort.3')
0 files changed, 0 insertions, 0 deletions
