On 22/5/25 06:19, Akihiko Odaki wrote:
On 2025/05/22 1:42, Alex Bennée wrote:
From: Nabih Estefan <nabiheste...@google.com>
../tests/qtest/libqos/igb.c:106:5: runtime error: load of
misaligned address 0x562040be8e33 for type 'uint32_t', which requires
4 byte alignment
Instead of straight casting the uint8_t array, we can use ldl_le_p and
lduw_l_p to assure the unaligned access working properly against
uint32_t and uint16_t.
I think the subject should mention the problem (the unaligned access)
instead of the method used to detect it (UBSan).
"tests/qtest: Avoid unaligned access in IGB test"
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>