Fix alignment errors in hashtable fuzzer
authorNeil Horman <nhorman@openssl.org>
Fri, 26 Apr 2024 16:38:38 +0000 (12:38 -0400)
committerTomas Mraz <tomas@openssl.org>
Tue, 30 Apr 2024 10:53:51 +0000 (12:53 +0200)
commitc04901be78768eb698d575d0b046940a5cb2aa5b
tree4bf773d3c37f8ca922465a656005b769771e85a9
parent2d29a8a7e8ef42050d2b08ca8cec9e4d9f0a0bb7
Fix alignment errors in hashtable fuzzer

we extract several values (uint16_t and uint64_t from the fuzzer buff
passed in, but they weren't aligned on 2 and 8 byte boundaries.  Adjust
the fuzzer to memcpy data to the target variables to avoid unalignment
issues

Fixes #24272

Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/24276)
fuzz/hashtable.c