Re: [PATCH v3 04/20] tests/qtest: fix igb test failure under --enable-ubsan

2025-05-25 Thread Philippe Mathieu-Daudé
On 22/5/25 06:19, Akihiko Odaki wrote: On 2025/05/22 1:42, Alex Bennée wrote: From: Nabih Estefan    ../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 arra

Re: [PATCH v3 04/20] tests/qtest: fix igb test failure under --enable-ubsan

2025-05-21 Thread Akihiko Odaki
On 2025/05/22 1:42, Alex Bennée wrote: From: Nabih Estefan ../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 ass