From f34726aa3b47c45c3a4cc28610cfcc3b9c0e475c Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 10 Oct 2013 08:54:04 +0200 Subject: + md5 initialization for error cases --- src/SFileVerify.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/SFileVerify.cpp') diff --git a/src/SFileVerify.cpp b/src/SFileVerify.cpp index 1354bfc..4509388 100644 --- a/src/SFileVerify.cpp +++ b/src/SFileVerify.cpp @@ -638,6 +638,9 @@ static DWORD VerifyFile( // automatically check the patched version of the file // + // Make sure the md5 is initialized + memset(md5, 0, sizeof(md5)); + // If we have to verify raw data MD5, do it before file open if(dwFlags & SFILE_VERIFY_RAW_MD5) { -- cgit v1.2.3