[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] hw/char/stm32l4x5_usart: Fix memory corruption by adding cor
From: |
Peter Maydell |
Subject: |
Re: [PATCH] hw/char/stm32l4x5_usart: Fix memory corruption by adding correct class_size |
Date: |
Tue, 30 Apr 2024 15:45:52 +0100 |
On Mon, 29 Apr 2024 at 08:59, Thomas Huth <thuth@redhat.com> 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 this file wrote beyond
> the allocated buffer when setting the subc->type field.
>
> Fixes: 4fb37aea7e ("hw/char: Implement STM32L4x5 USART skeleton")
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
Applied to target-arm.next, thanks.
-- PMM