]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StandaloneMmPkg/Core: fix bogus FV pointer in DEBUG string
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Tue, 9 Jun 2020 08:16:05 +0000 (10:16 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 16 Jun 2020 16:15:00 +0000 (16:15 +0000)
FvIsBeingProcessed () emits a DEBUG print with the intent to print
the memory address of the FV that is being processed, but instead,
it prints the contents of an uninitialized stack variable.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
StandaloneMmPkg/Core/Dispatcher.c

index 2f795d01dc1ffe1512c28c4fb0b88b451bdca232..c99e6c04c8de31a4ef7022a7cafee6a9db88c5a2 100644 (file)
@@ -816,7 +816,7 @@ FvIsBeingProcessed (
 {\r
   KNOWN_FWVOL   *KnownFwVol;\r
 \r
-  DEBUG ((DEBUG_INFO, "FvIsBeingProcessed - 0x%08x\n", KnownFwVol));\r
+  DEBUG ((DEBUG_INFO, "FvIsBeingProcessed - 0x%08x\n", FwVolHeader));\r
 \r
   KnownFwVol = AllocatePool (sizeof (KNOWN_FWVOL));\r
   ASSERT (KnownFwVol != NULL);\r