summaryrefslogtreecommitdiff
path: root/www/firefox52/patches/patch-js_xpconnect_src_XPCConvert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/firefox52/patches/patch-js_xpconnect_src_XPCConvert.cpp')
-rw-r--r--www/firefox52/patches/patch-js_xpconnect_src_XPCConvert.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/firefox52/patches/patch-js_xpconnect_src_XPCConvert.cpp b/www/firefox52/patches/patch-js_xpconnect_src_XPCConvert.cpp
new file mode 100644
index 00000000000..af7d1925a79
--- /dev/null
+++ b/www/firefox52/patches/patch-js_xpconnect_src_XPCConvert.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-js_xpconnect_src_XPCConvert.cpp,v 1.1 2017/04/27 01:55:57 ryoon Exp $
+
+Suggested workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1147837
+Avoids a crash on big endian 64 bit architectures.
+
+--- js/xpconnect/src/XPCConvert.cpp.orig 2015-03-21 04:42:37.000000000 +0100
++++ js/xpconnect/src/XPCConvert.cpp 2015-03-30 13:49:16.000000000 +0200
+@@ -134,7 +134,7 @@
+ d.setNumber(*static_cast<const float*>(s));
+ return true;
+ case nsXPTType::T_DOUBLE:
+- d.setNumber(*static_cast<const double*>(s));
++ d.setNumber(CanonicalizeNaN(*static_cast<const double*>(s)));
+ return true;
+ case nsXPTType::T_BOOL :
+ d.setBoolean(*static_cast<const bool*>(s));