X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SignedCapsulePkg%2FLibrary%2FEdkiiSystemCapsuleLib%2FEdkiiSystemCapsuleLib.c;fp=SignedCapsulePkg%2FLibrary%2FEdkiiSystemCapsuleLib%2FEdkiiSystemCapsuleLib.c;h=dfd8d107aabc78c55ba98bfea14e942caa2b18d0;hp=18205519bf3d7ffc208ea2d3012221e3ee592816;hb=ce5354d68ce815d98f31ecc03f71fe9cfccedc39;hpb=ba47ae9352b6024805b03818d9df03bfe06e1821 diff --git a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c index 18205519bf..dfd8d107aa 100644 --- a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c +++ b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c @@ -6,7 +6,7 @@ CapsuleAuthenticateSystemFirmware(), ExtractAuthenticatedImage() will receive untrusted input and do basic validation. - Copyright (c) 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -386,7 +386,7 @@ ExtractAuthenticatedImage ( DEBUG((DEBUG_ERROR, "ExtractAuthenticatedImage - dwLength too small\n")); return FALSE; } - if (ImageAuth->AuthInfo.Hdr.dwLength > MAX_UINTN - sizeof(UINT64)) { + if ((UINTN) ImageAuth->AuthInfo.Hdr.dwLength > MAX_UINTN - sizeof(UINT64)) { DEBUG((DEBUG_ERROR, "ExtractAuthenticatedImage - dwLength too big\n")); return FALSE; }