mirror_edk2/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers
Krzysztof Koch 48d5d6d5e0 ShellPkg: acpiview: SRAT: Prevent buffer overruns
Modify the SRAT parsing logic to prevent reading past the table buffer
length provided.

Check if the Static Resource Allocation Structure's buffer fits in the
SRAT table buffer before its contents are dumped.

Prevent buffer overruns when reading the Static Resource Allocation
Structure's header.

References:
- ACPI 6.3, January 2019, Section 5.2.16

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>
2019-08-12 10:14:07 -07:00
..
Bgrt ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Dbg2 ShellPkg: acpiview: DBG2: Prevent buffer overruns 2019-08-12 10:13:41 -07:00
Dsdt ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Fadt ShellPkg: acpiview: FADT: Remove redundant forward declarations 2019-07-19 08:32:43 -07:00
Gtdt ShellPkg: acpiview: GTDT: Prevent buffer overruns 2019-08-12 10:13:46 -07:00
Iort ShellPkg: acpiview: IORT: Prevent buffer overruns 2019-08-12 10:13:49 -07:00
Madt ShellPkg: acpiview: MADT: Prevent buffer overruns 2019-08-12 10:13:56 -07:00
Mcfg ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Pptt ShellPkg: acpiview: PPTT: Prevent buffer overruns 2019-08-12 10:14:03 -07:00
Rsdp ShellPkg: acpiview: RSDP: Make code consistent with other parsers 2019-07-31 09:52:50 -07:00
Slit ShellPkg/AcpiView: Fix IA32 link error 2019-08-05 14:18:10 -07:00
Spcr ShellPkg: acpiview: SPCR: Remove redundant forward declaration 2019-07-19 08:32:49 -07:00
Srat ShellPkg: acpiview: SRAT: Prevent buffer overruns 2019-08-12 10:14:07 -07:00
Ssdt ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Xsdt ShellPkg: acpiview: XSDT: Remove redundant ParseAcpi() call 2019-07-31 09:52:47 -07:00