diff options
author | jsing <> | 2020-09-16 05:52:04 +0000 |
---|---|---|
committer | jsing <> | 2020-09-16 05:52:04 +0000 |
commit | cdfaa096c0627eb79cb2944893d873d3aa00f2fc (patch) | |
tree | 5be57759a85380e498c7d6d164a768c972e9ca1a /src/lib/libssl/ssl_lib.c | |
parent | c77cfc6cbd58d3cb87224ddeeee1ba8d7254bf61 (diff) | |
download | openbsd-cdfaa096c0627eb79cb2944893d873d3aa00f2fc.tar.gz openbsd-cdfaa096c0627eb79cb2944893d873d3aa00f2fc.tar.bz2 openbsd-cdfaa096c0627eb79cb2944893d873d3aa00f2fc.zip |
Avoid memset() before memcpy() for CBB_add_bytes().
CBB_add_bytes() calls CBB_add_space(), which now explicitly zeros memory
to avoid information leaks. However CBB_add_bytes() calls memcpy() for the
same memory region, so the memset() is unnecessary. Avoid this by inlining
part of CBB_add_space() rather than calling it directly.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions