Commit 25f0d40c authored by csharp@chromium.org's avatar csharp@chromium.org

Catch EXCEPTION_IN_PAGE_ERROR errors in SafeGetImageInfo

It is ok for SafeGetImageInfo to fails to get the image info, so catch
exceptions instead of dying.

BUG=343925

Review URL: https://codereview.chromium.org/171153003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252062 0039d316-1c4b-4281-b951-d872f2087c98
parent d81ac4a9
......@@ -148,7 +148,8 @@ void SafeGetImageInfo(const base::win::PEImage& pe,
*flags |= sandbox::MODULE_HAS_CODE;
}
}
} __except(GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION ?
} __except((GetExceptionCode() == EXCEPTION_ACCESS_VIOLATION ||
GetExceptionCode() == EXCEPTION_IN_PAGE_ERROR) ?
EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH) {
out_name->clear();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment