Reviewed-by: Liming Gao <[email protected]>
> -----Original Message----- > From: edk2-devel [mailto:[email protected]] On Behalf Of > Zhang, Chao B > Sent: Thursday, June 16, 2016 2:13 PM > To: [email protected] > Cc: Zhang, Chao B <[email protected]>; Gao, Liming > <[email protected]> > Subject: [edk2] [PATCH] SecurityPkg: Tcg2Smm: Fix type casting issue > > Fix type casting issue introduced by > 38ce4e3902310db6dcdcda8157e828317124842b > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Chao Zhang <[email protected]> > --- > SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c > b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c > index 1c2d8ba..19d9b48 100644 > --- a/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c > +++ b/SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.c > @@ -284,8 +284,8 @@ UpdatePPVersion ( > for (DataPtr = (UINT8 *)(Table + 1); > DataPtr <= (UINT8 *) ((UINT8 *) Table + Table->Length - > PHYSICAL_PRESENCE_VERSION_SIZE); > DataPtr += 1) { > - if (AsciiStrCmp(DataPtr, PHYSICAL_PRESENCE_VERSION_TAG) == 0) { > - Status = AsciiStrCpyS(DataPtr, PHYSICAL_PRESENCE_VERSION_SIZE, > PPVer); > + if (AsciiStrCmp((CHAR8 *)DataPtr, PHYSICAL_PRESENCE_VERSION_TAG) > == 0) { > + Status = AsciiStrCpyS((CHAR8 *)DataPtr, > PHYSICAL_PRESENCE_VERSION_SIZE, PPVer); > DEBUG((EFI_D_INFO, "TPM2 Physical Presence Interface Version update > status 0x%x\n", Status)); > return Status; > } > -- > 1.9.5.msysgit.1 > > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

