pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox52 Avoid a crash on big endian machines. Bu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a416e7cb2ad0
branches:  trunk
changeset: 383698:a416e7cb2ad0
user:      martin <martin%pkgsrc.org@localhost>
date:      Wed Aug 08 08:49:58 2018 +0000

description:
Avoid a crash on big endian machines. Bump revision.

diffstat:

 www/firefox52/Makefile                                    |   4 ++--
 www/firefox52/distinfo                                    |   3 ++-
 www/firefox52/patches/patch-js_src_vm_StructuredClone.cpp |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 983bc8ec246e -r a416e7cb2ad0 www/firefox52/Makefile
--- a/www/firefox52/Makefile    Wed Aug 08 08:10:24 2018 +0000
+++ b/www/firefox52/Makefile    Wed Aug 08 08:49:58 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2018/07/30 12:23:11 jmcneill Exp $
+# $NetBSD: Makefile,v 1.30 2018/08/08 08:49:58 martin Exp $
 
 FIREFOX_VER=           ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
 MOZ_BRANCH=            52.9
@@ -6,7 +6,7 @@
 
 DISTNAME=      firefox-${FIREFOX_VER}.source
 PKGNAME=       firefox52-${MOZ_BRANCH}${MOZ_BRANCH_MINOR:S/b/beta/:S/esr//}
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    www
 MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
 MASTER_SITES+= ${MASTER_SITE_MOZILLA_ALL:=firefox/releases/${FIREFOX_VER}/source/}
diff -r 983bc8ec246e -r a416e7cb2ad0 www/firefox52/distinfo
--- a/www/firefox52/distinfo    Wed Aug 08 08:10:24 2018 +0000
+++ b/www/firefox52/distinfo    Wed Aug 08 08:49:58 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2018/07/30 12:23:11 jmcneill Exp $
+$NetBSD: distinfo,v 1.18 2018/08/08 08:49:58 martin Exp $
 
 SHA1 (firefox-52.9.0esr.source.tar.xz) = df3d47518b380fe934e32a288515c25435fd82a7
 RMD160 (firefox-52.9.0esr.source.tar.xz) = 8940269f0a515c0066b6ab2eea1da8963d27617b
@@ -59,6 +59,7 @@
 SHA1 (patch-js_src_jit_arm_Architecture-arm.cpp) = f0b554c169643b8447b4f29168d61ea257b18782
 SHA1 (patch-js_src_jit_none_AtomicOperations-sparc.h) = b44992a869d6d08809a9edc28f1ad6f40632d392
 SHA1 (patch-js_src_moz.build) = ce9110506086d15a011d0985b58dd4e7d1b6ec5f
+SHA1 (patch-js_src_vm_StructuredClone.cpp) = 7e992825e996c43419318893b704a2aa380b0d2a
 SHA1 (patch-js_xpconnect_src_XPCConvert.cpp) = 915777e9bb5366be41866cdb6ea0ad2b1c006dde
 SHA1 (patch-js_xpconnect_src_xpcprivate.h) = e09e37819961bae40a9f276ae1ee510d2956c23e
 SHA1 (patch-media_libcubeb_src_cubeb.c) = 3be0bf511cbd3b1c691fadb081acaf38838c36f4
diff -r 983bc8ec246e -r a416e7cb2ad0 www/firefox52/patches/patch-js_src_vm_StructuredClone.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/firefox52/patches/patch-js_src_vm_StructuredClone.cpp Wed Aug 08 08:49:58 2018 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-js_src_vm_StructuredClone.cpp,v 1.1 2018/08/08 08:49:58 martin Exp $
+
+Fix a crash on big endian machines. Reported in bugzilla
+as #1481740.
+
+--- js/src/vm/StructuredClone.cpp.orig 2018-06-21 20:53:54.000000000 +0200
++++ js/src/vm/StructuredClone.cpp      2018-08-08 10:15:04.949370197 +0200
+@@ -925,6 +925,7 @@ JSStructuredCloneData::discardTransferab
+ 
+         void* content;
+         SCInput::getPtr(point.peek(), &content);
++      content = (void*)NativeEndian::swapFromLittleEndian(reinterpret_cast<uint64_t>(content));
+         point.next();
+         if (!point.canPeek())
+             return;



Home | Main Index | Thread Index | Old Index