Bug 1230910 Create a universal exception handler filter for mingw
MozReview-Commit-ID: 8fSIi3NT22O
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',