[BOOTLIB]

- Avoid uninitialized ComputeHash variable in BlImgLoadImageWithProgress2
CORE-13265 #resolve

svn path=/trunk/; revision=74571
This commit is contained in:
Thomas Faber 2017-05-17 16:06:24 +00:00
parent be8b65c8a9
commit 1338881e3b

View file

@ -507,6 +507,7 @@ BlImgLoadImageWithProgress2 (
/* Check if we should compute hash and/or signatures */ /* Check if we should compute hash and/or signatures */
ComputeSignature = ImageFlags & BL_LOAD_IMG_COMPUTE_SIGNATURE; ComputeSignature = ImageFlags & BL_LOAD_IMG_COMPUTE_SIGNATURE;
ComputeHash = FALSE;
if ((ComputeSignature) || (ImageFlags & BL_LOAD_IMG_COMPUTE_HASH)) if ((ComputeSignature) || (ImageFlags & BL_LOAD_IMG_COMPUTE_HASH))
{ {
ComputeHash = TRUE; ComputeHash = TRUE;
@ -561,7 +562,7 @@ BlImgLoadImageWithProgress2 (
} }
/* Is the read fully complete? We need to finalize the hash if requested */ /* Is the read fully complete? We need to finalize the hash if requested */
if (ComputeHash != RemainingLength) if (ComputeHash)
{ {
// todo: CRYPTO IS HARD // todo: CRYPTO IS HARD
} }