mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:55:41 +00:00
[BOOTLIB]
- Avoid uninitialized ComputeHash variable in BlImgLoadImageWithProgress2 CORE-13265 #resolve svn path=/trunk/; revision=74571
This commit is contained in:
parent
be8b65c8a9
commit
1338881e3b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue