Uninitialized array variable
authorshashankmca80 <38880505+shashankmca80@users.noreply.github.com>
Sat, 13 Jan 2024 12:46:25 +0000 (18:16 +0530)
committerTomas Mraz <tomas@openssl.org>
Fri, 19 Jan 2024 13:04:11 +0000 (14:04 +0100)
commita0826b184eed2dccc56cdf80e3e0bc061cc89ddc
treec9faa81b7741436e377f08311164e1dccab56225
parent5b2d8bc28a8ff59689da98f31459819db09a9099
Uninitialized array variable

array"key" is uninitialized and it is being read directly in function SipHash_Init() as per the below statements making a way for the garbage values :
uint64_t k0 = U8TO64_LE(k);
uint64_t k1 = U8TO64_LE(k + 8);

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23298)
test/siphash_internal_test.c