mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-26 17:02:00 +02:00
windows: Enable heap terminate-on-corruption
This is default behavior from Windows 8 onwards, however we still support Windows 7, so it should make sense to explicitly enable this. More info: https://docs.microsoft.com/en-us/windows/win32/api/heapapi/nf-heapapi-heapsetinformation
This commit is contained in:
parent
e258ce792a
commit
f2645c2601
@ -879,6 +879,9 @@ bool AppInitBasicSetup()
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// Enable Data Execution Prevention (DEP)
|
// Enable Data Execution Prevention (DEP)
|
||||||
SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
|
SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
|
||||||
|
|
||||||
|
// Enable heap terminate-on-corruption
|
||||||
|
HeapSetInformation(nullptr, HeapEnableTerminationOnCorruption, nullptr, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!SetupNetworking())
|
if (!SetupNetworking())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user