audk/ShellPkg
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
..
Application ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
DynamicCommand ShellPkg: Add NetworkPkg/NetworkPkg.dec as the package dependency 2019-05-21 10:35:15 +08:00
Include ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Library ShellPkg: acpiview: SRAT: Prevent buffer overruns 2019-08-12 10:14:07 -07:00
ShellPkg.dec ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
ShellPkg.dsc ShellPkg: Add shell with all commands integrated 2019-08-05 14:18:16 -07:00