Reviewed-by: Jiewen Yao <jiewen....@intel.com> > -----Original Message----- > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Ard > Biesheuvel > Sent: Wednesday, June 10, 2020 4:18 PM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel <ard.biesheu...@arm.com>; Kinney, Michael D > <michael.d.kin...@intel.com>; Gao, Liming <liming....@intel.com>; Yao, > Jiewen <jiewen....@intel.com>; Sami Mujawar <sami.muja...@arm.com>; > Ilias Apalodimas <ilias.apalodi...@linaro.org> > Subject: [edk2-devel] [PATCH 2/5] StandaloneMmPkg/Core: fix bogus FV pointer > in DEBUG string > > 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.biesheu...@arm.com> > --- > StandaloneMmPkg/Core/Dispatcher.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/StandaloneMmPkg/Core/Dispatcher.c > b/StandaloneMmPkg/Core/Dispatcher.c > index 2f795d01dc1f..c99e6c04c8de 100644 > --- a/StandaloneMmPkg/Core/Dispatcher.c > +++ b/StandaloneMmPkg/Core/Dispatcher.c > @@ -816,7 +816,7 @@ FvIsBeingProcessed ( > { > > KNOWN_FWVOL *KnownFwVol; > > > > - DEBUG ((DEBUG_INFO, "FvIsBeingProcessed - 0x%08x\n", KnownFwVol)); > > + DEBUG ((DEBUG_INFO, "FvIsBeingProcessed - 0x%08x\n", FwVolHeader)); > > > > KnownFwVol = AllocatePool (sizeof (KNOWN_FWVOL)); > > ASSERT (KnownFwVol != NULL); > > -- > 2.26.2 > > > -=-=-=-=-=-= > Groups.io Links: You receive all messages sent to this group. > > View/Reply Online (#61040): https://edk2.groups.io/g/devel/message/61040 > Mute This Topic: https://groups.io/mt/74792289/1772286 > Group Owner: devel+ow...@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [jiewen....@intel.com] > -=-=-=-=-=-=
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#61239): https://edk2.groups.io/g/devel/message/61239 Mute This Topic: https://groups.io/mt/74792289/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-