mirror_edk2/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers
Krzysztof Koch 58cc0ffe68 ShellPkg: acpiview: Allow passing buffer length to DumpGasStruct()
Modify the signature of the DumpGasStruct() function to include the
buffer length parameter and to return the number of bytes parsed by
the function.

This way it becomes possible to prevent buffer overruns when dumping
Generic Address Structure's (GAS) fields in the acpiview table
parsers.

Update all existing DumpGasStruct() calls in acpiview to add the
length argument.

Signed-off-by: Krzysztof Koch <krzysztof.koch@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Zhichao Gao <zhichao.gao@intel.com>
2019-07-31 09:52:43 -07:00
..
Bgrt ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Dbg2 ShellPkg: acpiview: Allow passing buffer length to DumpGasStruct() 2019-07-31 09:52:43 -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: Remove redundant forward declarations 2019-07-19 08:33:03 -07:00
Iort ShellPkg: acpiview: IORT: Remove redundant forward declarations 2019-07-19 08:33:00 -07:00
Madt ShellPkg: acpiview: MADT: Remove redundant forward declarations 2019-07-19 08:32:56 -07:00
Mcfg ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Pptt ShellPkg: acpiview: Improve PPTT table field validation 2019-07-02 17:21:59 +08:00
Rsdp ShellPkg: acpiview: RSDP: Remove redundant forward declarations 2019-07-19 08:32:36 -07:00
Slit ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Spcr ShellPkg: acpiview: SPCR: Remove redundant forward declaration 2019-07-19 08:32:49 -07:00
Srat ShellPkg: acpiview: SRAT: Remove redundant forward declarations 2019-07-19 08:32:53 -07:00
Ssdt ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
Xsdt ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00