gecko-dev/mozglue/misc
David Major 76ce9d96fa Bug 1598119 - Disable Control Flow Guard for WindowsDllInterceptor returns r=handyman
Under the stronger Control Flow Guard scheme coming in clang 10, when a nop-space hook jumps back to the original API, at `ntdll!Whatever+2`, that address is not a registered jump target, so we crash with a CFG failure. Since this is a deliberate violation of the rules, let's disable CFG for these calls.

Based on my testing, this is the only place we need to use this attribute, so I placed its definition close to the use. (Had we needed more of these, I would have put it in mfbt/.)

Differential Revision: https://phabricator.services.mozilla.com/D59728

--HG--
extra : moz-landing-system : lando
2020-01-21 18:50:22 +00:00
..
decimal
interceptor Bug 1608645 - Ensure FindExportAddressTableEntry can handle a modified Export Table. r=aklotz 2020-01-21 00:44:28 +00:00
AutoProfilerLabel.cpp
AutoProfilerLabel.h
ConditionVariable_posix.cpp
ConditionVariable_windows.cpp
Debug.h
DynamicallyLinkedFunctionPtr.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
ImportDir.h
MutexPlatformData_posix.h
MutexPlatformData_windows.h
Mutex_posix.cpp
Mutex_windows.cpp
NativeNt.h Bug 1608645 - Ensure FindExportAddressTableEntry can handle a modified Export Table. r=aklotz 2020-01-21 00:44:28 +00:00
PlatformConditionVariable.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
PlatformMutex.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
Printf.cpp Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj 2019-12-20 07:16:43 +00:00
Printf.h
StackWalk.cpp Bug 1598196 - Support disabling the linker on Android in the code. r=froydnj 2019-11-21 14:57:24 +00:00
StackWalk.h
StackWalk_windows.h
TimeStamp.cpp
TimeStamp.h
TimeStamp_darwin.cpp Bug 1577236 - clang-10: Fix -Wimplicit-int-float-conversion warnings in TimeStamp r=froydnj 2019-11-20 21:06:33 +00:00
TimeStamp_posix.cpp
TimeStamp_windows.cpp Bug 1601796 - Use GetSystemTimePreciseAsFileTime instead of GetSystemTime+SystemTimeToFileTime. r=mayhemer,aklotz 2020-01-08 16:53:17 +00:00
TimeStamp_windows.h
WinUtils.h
WindowsMapRemoteView.cpp
WindowsMapRemoteView.h
WindowsProcessMitigations.cpp
WindowsProcessMitigations.h
WindowsUnicode.cpp
WindowsUnicode.h
moz.build Bug 1598196 - Support disabling the linker on Android in the code. r=froydnj 2019-11-21 14:57:24 +00:00
nsWindowsDllInterceptor.h Bug 1598119 - Disable Control Flow Guard for WindowsDllInterceptor returns r=handyman 2020-01-21 18:50:22 +00:00