SecurityPkg: Issues reported by ECC in EDK2.

https://bugzilla.tianocore.org/show_bug.cgi?id=2515

Change the SecurityPkg to match the ECC check rule

Signed-off-by: GuoMinJ <newexplorerj@gmail.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
This commit is contained in:
GuoMinJ 2020-02-13 16:33:48 +08:00 committed by mergify[bot]
parent 1e947f9bf5
commit f9713abe95
2 changed files with 4 additions and 4 deletions

View File

@ -772,7 +772,7 @@ Tcg2GetEventLog (
return EFI_SUCCESS; return EFI_SUCCESS;
} }
/* /**
Return if this is a Tcg800155PlatformIdEvent. Return if this is a Tcg800155PlatformIdEvent.
@param[in] NewEventHdr Pointer to a TCG_PCR_EVENT_HDR/TCG_PCR_EVENT_EX data structure. @param[in] NewEventHdr Pointer to a TCG_PCR_EVENT_HDR/TCG_PCR_EVENT_EX data structure.
@ -783,7 +783,7 @@ Tcg2GetEventLog (
@retval TRUE This is a Tcg800155PlatformIdEvent. @retval TRUE This is a Tcg800155PlatformIdEvent.
@retval FALSE This is NOT a Tcg800155PlatformIdEvent. @retval FALSE This is NOT a Tcg800155PlatformIdEvent.
*/ **/
BOOLEAN BOOLEAN
Is800155Event ( Is800155Event (
IN VOID *NewEventHdr, IN VOID *NewEventHdr,

View File

@ -460,7 +460,7 @@ MeasureCRTMVersion (
); );
} }
/* /**
Get the FvName from the FV header. Get the FvName from the FV header.
Causion: The FV is untrusted input. Causion: The FV is untrusted input.
@ -470,7 +470,7 @@ MeasureCRTMVersion (
@return FvName pointer @return FvName pointer
@retval NULL FvName is NOT found @retval NULL FvName is NOT found
*/ **/
VOID * VOID *
GetFvName ( GetFvName (
IN EFI_PHYSICAL_ADDRESS FvBase, IN EFI_PHYSICAL_ADDRESS FvBase,