Re: [PATCH] appwiz.cpl: Use sha256 checksums to validate Mono/Gecko downloads.
17 May
2017
17 May
'17
4:46 p.m.
Alex Henrie <alexhenrie24(a)gmail.com> writes:
+ if(BCryptOpenAlgorithmProvider(&alg, BCRYPT_SHA256_ALGORITHM, MS_PRIMITIVE_PROVIDER, 0)) + goto end; + if(BCryptCreateHash(alg, &hash, NULL, 0, NULL, 0, 0)) + goto end; + if(BCryptHashData(hash, (UCHAR *)file_map, size, 0)) + goto end; + if(BCryptFinishHash(hash, sha, sizeof(sha), 0)) + goto end;
UnmapViewOfFile(file_map);
You are leaking file_map on error. -- Alexandre Julliard julliard(a)winehq.org
3133
Age (days ago)
3133
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard