valgrind gripes about this, as its possible to reach the TEST_mem_eq
test without ever having initalized the buffer
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Thu Jan 29 16:37:35 2026
(Merged from https://github.com/openssl/openssl/pull/29573)
* i.e: write_len >= 4 * frag_size
* 9 * is chosen so that multiple multiblocks are used + some leftover.
*/
- unsigned char msg[MULTIBLOCK_FRAGSIZE * 9];
- unsigned char buf[sizeof(msg)], *p = buf;
+ unsigned char msg[MULTIBLOCK_FRAGSIZE * 9] = { 0 };
+ unsigned char buf[sizeof(msg)] = { 0 }, *p = buf;
size_t readbytes, written, len;
EVP_CIPHER *ciph = NULL;