]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Fix incorrect PPTT FlagName dereference
authorChris Jones <christopher.jones@arm.com>
Tue, 14 Dec 2021 12:37:36 +0000 (20:37 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 7 Feb 2022 01:52:17 +0000 (01:52 +0000)
commit6fb09da89f88000a7592171a0ce08cf1feaa0646
treeb786a8a7366883fc22cac8db5134de11af747799
parenta4b7aa362d94bbe0287663cab9af4ab503f6185d
ShellPkg: Fix incorrect PPTT FlagName dereference

Bugzilla: 3770 (https://bugzilla.tianocore.org/show_bug.cgi?id=3770)

The PPTT parser in AcpiView incorrectly dereferences a pointer to
FlagName when trying to log an error with the PPTT cache flags, which
can lead to random crashes and other errors.

Also fix some spacing in the error message to ensure the message is
printed cleanly.

Signed-off-by: Chris Jones <christopher.jones@arm.com>
Reviewed-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pptt/PpttParser.c