[PATCH 2/8] acpi: Fix buffer overflow in do_acpi_dump()

Simon Glass sjg at chromium.org
Mon Apr 11 20:35:25 CEST 2022


On Sun, 3 Apr 2022 at 04:39, Andrew Scull <ascull at google.com> wrote:
>
> When do_acpi_dump() converts the table name to upper case, pass the
> actual size of the output buffer so that the null terminator doesn't get
> written beyond the end of the buffer.
>
> Signed-off-by: Andrew Scull <ascull at google.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Wolfgang Wallner <wolfgang.wallner at br-automation.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> ---
>  cmd/acpi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list