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:05:10 +0000 (14:05 +0100)
commit90b375739952693c582e149b12a533b88fd32e71
tree4ba01d136f832f7863507a9eecb6c242541fb434
parentb7275c5e5c1c7b025bf2eb74fd1344b6abe48c06
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)

(cherry picked from commit a0826b184eed2dccc56cdf80e3e0bc061cc89ddc)
test/siphash_internal_test.c