There is no necessity for rand_data to be aligned so that it can be
directly dereferenced as a uint64_t.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/24498)
if (!TEST_int_gt(RAND_bytes(rand_data, sizeof(rand_data)), 0))
return cleanup(&pkt);
- memcpy(&expected, rand_data, sizeof(uint64_t));
+ memcpy(&expected, rand_data, sizeof(expected));
/*
* Ensure that all size classes get tested with equal probability.