mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
ShellPkg: acpiview: MADT: Prevent buffer overruns
Modify the parsing logic to prevent reading past the MADT table buffer length provided when parsing the Interrupt Controller Structure header. Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com> Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com> Reviewed-by: Zhichao Gao <zhichao.gao@inte.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
62cefaf44e
commit
05d402952d
@ -256,7 +256,7 @@ ParseAcpiMadt (
|
||||
0,
|
||||
NULL,
|
||||
InterruptContollerPtr,
|
||||
2, // Length is 1 byte at offset 1
|
||||
AcpiTableLength - Offset,
|
||||
PARSER_PARAMS (MadtInterruptControllerHeaderParser)
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user