Bug 1232765 - Remove the workaround added in bug 1022050

This commit is contained in:
Ehsan Akhgari 2016-02-07 14:50:50 -05:00
parent 86d04bd25d
commit 84a0f038cf

View File

@ -408,14 +408,14 @@ IsBadExecPtr(uintptr_t aPtr)
{ {
BOOL ret = false; BOOL ret = false;
#if defined(_MSC_VER) && !defined(__clang__) #ifdef _MSC_VER
__try { __try {
JumpTo(aPtr); JumpTo(aPtr);
} __except (EXCEPTION_EXECUTE_HANDLER) { } __except (EXCEPTION_EXECUTE_HANDLER) {
ret = true; ret = true;
} }
#else #else
printf("INFO | exec test not supported on MinGW or clang-cl builds\n"); printf("INFO | exec test not supported on MinGW build\n");
// We do our best // We do our best
ret = IsBadReadPtr((const void*)aPtr, 1); ret = IsBadReadPtr((const void*)aPtr, 1);
#endif #endif