mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1491783: Allow file delete and write during VerifySignature;r=aklotz
Differential Revision: https://phabricator.services.mozilla.com/D6014 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
5cc8361837
commit
b29044d236
@ -265,7 +265,8 @@ SignedBinary::VerifySignature(const wchar_t* aFilePath)
|
||||
|
||||
// Now we need to hash the file at aFilePath.
|
||||
// Since we're hashing this file, let's open it with a sequential scan hint.
|
||||
HANDLE rawFile = ::CreateFileW(aFilePath, GENERIC_READ, FILE_SHARE_READ,
|
||||
HANDLE rawFile = ::CreateFileW(aFilePath, GENERIC_READ,
|
||||
FILE_SHARE_READ | FILE_SHARE_DELETE | FILE_SHARE_WRITE,
|
||||
nullptr, OPEN_EXISTING,
|
||||
FILE_FLAG_SEQUENTIAL_SCAN, nullptr);
|
||||
if (rawFile == INVALID_HANDLE_VALUE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user