Bug 1230910 Create a universal exception handler filter for mingw draft
authorTom Ritter <tom@mozilla.com>
Wed, 08 Mar 2017 19:09:11 +0000
changeset 496067 f34b617d41f893eb917e6fe6716cd533cccc9aa9
parent 496066 4b5f0764277f6788f6978fb282ea472c3c6be94c
child 496068 3c955dc5ef762b0a2751eb96cb116418f447c7f8
push id48518
push userbmo:tom@mozilla.com
push dateThu, 09 Mar 2017 19:30:51 +0000
bugs1230910
milestone52.0.1
Bug 1230910 Create a universal exception handler filter for mingw MozReview-Commit-ID: 8fSIi3NT22O
security/sandbox/chromium/sandbox/win/src/mingw_ehandler.cc
security/sandbox/chromium/sandbox/win/src/mingw_ehandler.h
security/sandbox/moz.build
new file mode 100644
--- /dev/null
+++ b/security/sandbox/chromium/sandbox/win/src/mingw_ehandler.cc
@@ -0,0 +1,11 @@
+#include "sandbox/win/src/mingw_ehandler.h"
+
+namespace sandbox {
+
+long CALLBACK
+ehandler(EXCEPTION_POINTERS *pointers)
+{
+  return EXCEPTION_EXECUTE_HANDLER;
+}
+
+}
new file mode 100644
--- /dev/null
+++ b/security/sandbox/chromium/sandbox/win/src/mingw_ehandler.h
@@ -0,0 +1,10 @@
+#ifndef SANDBOX_SRC_MINGW_EHANDLER_H__
+#define SANDBOX_SRC_MINGW_EHANDLER_H__
+
+namespace sandbox {
+
+long CALLBACK ehandler(EXCEPTION_POINTERS *pointers);
+
+}  // namespace sandbox
+
+#endif  // SANDBOX_SRC_MINGW_EHANDLER_H__
--- a/security/sandbox/moz.build
+++ b/security/sandbox/moz.build
@@ -86,16 +86,17 @@ elif CONFIG['OS_ARCH'] == 'WINNT':
         'chromium/sandbox/win/src/handle_closer.cc',
         'chromium/sandbox/win/src/handle_closer_agent.cc',
         'chromium/sandbox/win/src/handle_dispatcher.cc',
         'chromium/sandbox/win/src/handle_interception.cc',
         'chromium/sandbox/win/src/handle_policy.cc',
         'chromium/sandbox/win/src/interception.cc',
         'chromium/sandbox/win/src/interception_agent.cc',
         'chromium/sandbox/win/src/job.cc',
+        'chromium/sandbox/win/src/mingw_ehandler.cc',
         'chromium/sandbox/win/src/named_pipe_dispatcher.cc',
         'chromium/sandbox/win/src/named_pipe_interception.cc',
         'chromium/sandbox/win/src/named_pipe_policy.cc',
         'chromium/sandbox/win/src/policy_broker.cc',
         'chromium/sandbox/win/src/policy_engine_opcodes.cc',
         'chromium/sandbox/win/src/policy_engine_processor.cc',
         'chromium/sandbox/win/src/policy_low_level.cc',
         'chromium/sandbox/win/src/policy_target.cc',