Revision: 18563
          http://sourceforge.net/p/edk2/code/18563
Author:   lzeng14
Date:     2015-09-30 04:39:34 +0000 (Wed, 30 Sep 2015)
Log Message:
-----------
Vlv2TbltDevicePkg FvbRuntimeDxe: Fix CalculateCheckSum16 input incorrect length

The input length should be "The size, in bytes, of Buffer.",
the divide sizeof (UINT16) operation is not needed and incorrect.

Cc: David Wei <[email protected]>
Cc: Tim He <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: David Wei <[email protected]>

Modified Paths:
--------------
    trunk/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c

Modified: trunk/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c
===================================================================
--- trunk/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c        2015-09-30 
04:30:34 UTC (rev 18562)
+++ trunk/edk2/Vlv2TbltDevicePkg/FvbRuntimeDxe/FvbInfo.c        2015-09-30 
04:39:34 UTC (rev 18563)
@@ -2,7 +2,7 @@
   Defines data structure that is the volume header found.
   These data is intent to decouple FVB driver with FV header.
 
-Copyright (c) 2006  - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006  - 2015, Intel Corporation. All rights reserved.<BR>
                                                                                
    
 
   This program and the accompanying materials are licensed and made available 
under
@@ -165,7 +165,7 @@
       //
       // Update the checksum value of FV header.
       //
-      FvHeader->Checksum = CalculateCheckSum16 ((UINT16 *) FvHeader, 
FvHeader->HeaderLength / sizeof (UINT16));
+      FvHeader->Checksum = CalculateCheckSum16 ((UINT16 *) FvHeader, 
FvHeader->HeaderLength);
 
       *FvbInfo = FvHeader;
 


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to