summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
diff options
context:
space:
mode:
authorjsing <>2020-09-16 05:52:04 +0000
committerjsing <>2020-09-16 05:52:04 +0000
commit72d1faaa1dcafc7fcd01a3090ca62f38875b0a50 (patch)
tree5be57759a85380e498c7d6d164a768c972e9ca1a /src/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c
parent8660475bbdacccc5f1131923e4bac54237a3b2b4 (diff)
downloadopenbsd-72d1faaa1dcafc7fcd01a3090ca62f38875b0a50.tar.gz
openbsd-72d1faaa1dcafc7fcd01a3090ca62f38875b0a50.tar.bz2
openbsd-72d1faaa1dcafc7fcd01a3090ca62f38875b0a50.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/regress/lib/libc/stdio_threading/fwrite/fwrite_test.c')
0 files changed, 0 insertions, 0 deletions