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 656087 84f4b76f7b08a80440e372fb0359b58c3254b66c
parent 656086 95bba1e797682e55f7a13e5139533dc9282b9142
child 656088 7024725d287c94770eabfb48af55201c12000b76
push id77058
push userbmo:tom@mozilla.com
push dateWed, 30 Aug 2017 18:21:00 +0000
bugs1230910
milestone57.0a1
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
@@ -91,16 +91,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',