mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-22 02:33:26 +02:00
The little-endian large-code path of mlkem_cbd_eta3 cast the caller-supplied byte buffer to word32* and read through it. The buffer has no alignment guarantee, so on strict-alignment targets such as Cortex-M3 and M4 with unaligned-access trapping enabled the read faults or returns wrong values, and the cast violates strict aliasing. Read each word with readUnalignedWord32, which does an alignment-safe byte copy, matching the neighboring mlkem_cbd_eta2. Fixes F-6781.