commit | 3189cd11264de647f17e51373577db0de12002fd | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Sun Apr 03 10:39:09 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Fri Apr 29 11:11:36 2022 -0400 |
tree | 728e63f6e501a84e9337c10727473d277f3a6615 | |
parent | 591393f48550835d87964676b7a27041bc4fb236 [diff] |
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>