]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: Fix buffer overflow in do_acpi_dump()
authorAndrew Scull <ascull@google.com>
Sun, 3 Apr 2022 10:39:09 +0000 (10:39 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 29 Apr 2022 15:11:36 +0000 (11:11 -0400)
commit3849ca7b2f8363dee751c6918df0aacf64cde3bd
tree728e63f6e501a84e9337c10727473d277f3a6615
parent53cb97c093061b81ab3247c432d15be011353470
acpi: Fix buffer overflow in do_acpi_dump()

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>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/acpi.c