Re: [PATCH] hw/char/stm32l4x5_usart: Fix memory corruption by adding correct class_size

2024-04-30 Thread Peter Maydell
On Mon, 29 Apr 2024 at 08:59, Thomas Huth wrote: > > "make check-qtest-aarch64" recently started failing on FreeBSD builds, > and valgrind on Linux also detected that there is something fishy with > the new stm32l4x5-usart: The code forgot to set the correct class_size > here, so the various class

Re: [PATCH] hw/char/stm32l4x5_usart: Fix memory corruption by adding correct class_size

2024-04-29 Thread Philippe Mathieu-Daudé
On 29/4/24 09:59, Thomas Huth wrote: "make check-qtest-aarch64" recently started failing on FreeBSD builds, and valgrind on Linux also detected that there is something fishy with the new stm32l4x5-usart: The code forgot to set the correct class_size here, so the various class_init functions in th

[PATCH] hw/char/stm32l4x5_usart: Fix memory corruption by adding correct class_size

2024-04-29 Thread Thomas Huth
"make check-qtest-aarch64" recently started failing on FreeBSD builds, and valgrind on Linux also detected that there is something fishy with the new stm32l4x5-usart: The code forgot to set the correct class_size here, so the various class_init functions in this file wrote beyond the allocated buff