mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +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 */
|
||||
ComputeSignature = ImageFlags & BL_LOAD_IMG_COMPUTE_SIGNATURE;
|
||||
ComputeHash = FALSE;
|
||||
if ((ComputeSignature) || (ImageFlags & BL_LOAD_IMG_COMPUTE_HASH))
|
||||
{
|
||||
ComputeHash = TRUE;
|
||||
|
@ -561,7 +562,7 @@ BlImgLoadImageWithProgress2 (
|
|||
}
|
||||
|
||||
/* Is the read fully complete? We need to finalize the hash if requested */
|
||||
if (ComputeHash != RemainingLength)
|
||||
if (ComputeHash)
|
||||
{
|
||||
// todo: CRYPTO IS HARD
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue