[edk2-devel] [PATCH 3/3] SecurityPkg: Issues reported by ECC in EDK2.

Yao, Jiewen jiewen.yao at intel.com
Thu Feb 13 10:23:08 UTC 2020


Reviewed-by: Jiewen Yao <Jiewen.yao at intel.com>

> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of GuoMinJ
> Sent: Thursday, February 13, 2020 4:34 PM
> To: devel at edk2.groups.io
> Cc: GuoMinJ <newexplorerj at gmail.com>
> Subject: [edk2-devel] [PATCH 3/3] 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 at gmail.com>
> ---
>  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 4 ++--
>  SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
> b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
> index 1fe1955cab..9a5f987e68 100644
> --- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
> +++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
> @@ -772,7 +772,7 @@ Tcg2GetEventLog (
>    return EFI_SUCCESS;
>  }
> 
> -/*
> +/**
>    Return if this is a Tcg800155PlatformIdEvent.
> 
>    @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 FALSE  This is NOT a Tcg800155PlatformIdEvent.
> 
> -*/
> +**/
>  BOOLEAN
>  Is800155Event (
>    IN      VOID                      *NewEventHdr,
> diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
> b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
> index 7e94a8e1ed..4852d86906 100644
> --- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
> +++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
> @@ -460,7 +460,7 @@ MeasureCRTMVersion (
>             );
>  }
> 
> -/*
> +/**
>    Get the FvName from the FV header.
> 
>    Causion: The FV is untrusted input.
> @@ -470,7 +470,7 @@ MeasureCRTMVersion (
> 
>    @return FvName pointer
>    @retval NULL   FvName is NOT found
> -*/
> +**/
>  VOID *
>  GetFvName (
>    IN EFI_PHYSICAL_ADDRESS           FvBase,
> --
> 2.17.1
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#54355): https://edk2.groups.io/g/devel/message/54355
Mute This Topic: https://groups.io/mt/71236337/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list