Re: [edk2-devel] [PATCH v1 1/1] ShellPkg: acpiview: Validate ACPI table 'Length' field

2020-02-10 Thread Gao, Zhichao
> -Original Message- > From: devel@edk2.groups.io On Behalf Of Krzysztof > Koch > Sent: Friday, January 31, 2020 12:20 AM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Gao, Zhichao ; > matteo.carl...@arm.com; sami.muja...@arm.com; n...@arm.com > Subject: [edk2-devel]

Re: [edk2-devel] [PATCH v1 1/1] ShellPkg: acpiview: Validate ACPI table 'Length' field

2020-01-30 Thread Sami Mujawar
Reviewed-by: Sami Mujawar Regards, Sami Mujawar -Original Message- From: Krzysztof Koch Sent: 30 January 2020 16:20 To: devel@edk2.groups.io Cc: ray...@intel.com; zhichao@intel.com; Matteo Carlini ; Sami Mujawar ; nd Subject: [PATCH v1 1/1] ShellPkg: acpiview: Validate ACPI

[edk2-devel] [PATCH v1 1/1] ShellPkg: acpiview: Validate ACPI table 'Length' field

2020-01-30 Thread Krzysztof Koch
Check if the ACPI table length, as reported in the ACPI table header, is big enough to fit at least the header itself. If not, report an error to the user and stop parsing the table in order to prevent buffer overruns. Signed-off-by: Krzysztof Koch --- Changes can be seet at: