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

Simon Glass
2022-04-11T18:42:19Z

On Sun, 3 Apr 2022 at 04:39, Andrew Scull <ascull@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@google.com>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
> Cc: Bin Meng <bmeng.cn@gmail.com>
> ---
> cmd/acpi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

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