Author: tfaber
Date: Wed May 17 16:06:24 2017
New Revision: 74571
URL:
http://svn.reactos.org/svn/reactos?rev=74571&view=rev
Log:
[BOOTLIB]
- Avoid uninitialized ComputeHash variable in BlImgLoadImageWithProgress2
CORE-13265 #resolve
Modified:
trunk/reactos/boot/environ/lib/misc/image.c
Modified: trunk/reactos/boot/environ/lib/misc/image.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/environ/lib/misc/imag…
==============================================================================
--- trunk/reactos/boot/environ/lib/misc/image.c [iso-8859-1] (original)
+++ trunk/reactos/boot/environ/lib/misc/image.c [iso-8859-1] Wed May 17 16:06:24 2017
@@ -507,6 +507,7 @@
/* Check if we should compute hash and/or signatures */
ComputeSignature = ImageFlags & BL_LOAD_IMG_COMPUTE_SIGNATURE;
+ ComputeHash = FALSE;
if ((ComputeSignature) || (ImageFlags & BL_LOAD_IMG_COMPUTE_HASH))
{
ComputeHash = TRUE;
@@ -561,7 +562,7 @@
}
/* Is the read fully complete? We need to finalize the hash if requested */
- if (ComputeHash != RemainingLength)
+ if (ComputeHash)
{
// todo: CRYPTO IS HARD
}