pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/mozjs68 mozjs68: add one more patch necessary for...
details: https://anonhg.NetBSD.org/pkgsrc/rev/797128f933be
branches: trunk
changeset: 441566:797128f933be
user: maya <maya%pkgsrc.org@localhost>
date: Fri Nov 06 09:11:31 2020 +0000
description:
mozjs68: add one more patch necessary for paxctl-safety.
affects wasm. found while using firefox, which experiences a lot more js.
PKGREVISION++
diffstat:
lang/mozjs68/Makefile | 4 +-
lang/mozjs68/distinfo | 3 +-
lang/mozjs68/patches/patch-vm_ArrayBufferObject.cpp | 24 +++++++++++++++++++++
3 files changed, 28 insertions(+), 3 deletions(-)
diffs (58 lines):
diff -r d03cc29cec7c -r 797128f933be lang/mozjs68/Makefile
--- a/lang/mozjs68/Makefile Fri Nov 06 08:59:54 2020 +0000
+++ b/lang/mozjs68/Makefile Fri Nov 06 09:11:31 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2020/11/05 16:35:24 nia Exp $
+# $NetBSD: Makefile,v 1.11 2020/11/06 09:11:31 maya Exp $
DISTNAME= mozjs68_68.6.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= lang
MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs68/
EXTRACT_SUFX= .tar.xz
diff -r d03cc29cec7c -r 797128f933be lang/mozjs68/distinfo
--- a/lang/mozjs68/distinfo Fri Nov 06 08:59:54 2020 +0000
+++ b/lang/mozjs68/distinfo Fri Nov 06 09:11:31 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2020/11/05 16:35:24 nia Exp $
+$NetBSD: distinfo,v 1.4 2020/11/06 09:11:31 maya Exp $
SHA1 (mozjs68_68.6.0.orig.tar.xz) = 98eb63629e8889caa738fa15591fe8eeba73b227
RMD160 (mozjs68_68.6.0.orig.tar.xz) = 7b00f416e1e767b0595fbd7e4c26c42c83ccd7a1
@@ -7,5 +7,6 @@
SHA1 (patch-.._.._config_rules.mk) = cf3421d991e1cbfab4c0cdcb7b648b1388fa32d5
SHA1 (patch-.._.._python_mozbuild_mozbuild_backend_recursivemake.py) = dda670432e5673c5d28dcf6c4902d4a724e71170
SHA1 (patch-jit_ProcessExecutableMemory.cpp) = 575c1ab68e6558344c09481927c40f0b4308319a
+SHA1 (patch-vm_ArrayBufferObject.cpp) = c8460d3b59eb57731e5a1df8d61ff3f02344d8d2
SHA1 (patch-vm_JSONPrinter.cpp) = 384f26d9602844a3a586184c8971d48a07453645
SHA1 (patch-vm_JSONPrinter.h) = b92c335185886f79d15f2d9d348bf10e4a714c6e
diff -r d03cc29cec7c -r 797128f933be lang/mozjs68/patches/patch-vm_ArrayBufferObject.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/mozjs68/patches/patch-vm_ArrayBufferObject.cpp Fri Nov 06 09:11:31 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-vm_ArrayBufferObject.cpp,v 1.1 2020/11/06 09:11:31 maya Exp $
+
+PaX MPROTECT safety for NetBSD.
+
+--- vm/ArrayBufferObject.cpp.orig 2020-03-05 20:57:04.000000000 +0000
++++ vm/ArrayBufferObject.cpp
+@@ -179,9 +179,17 @@ void* js::MapBufferMemory(size_t mappedS
+ return nullptr;
+ }
+ #else // XP_WIN
++
++#ifdef PROT_MPROTECT
++ void* data =
++ MozTaggedAnonymousMmap(nullptr, mappedSize,
++ PROT_MPROTECT(PROT_EXEC | PROT_WRITE | PROT_READ),
++ MAP_PRIVATE | MAP_ANON, -1, 0, "wasm-reserved");
++#else
+ void* data =
+ MozTaggedAnonymousMmap(nullptr, mappedSize, PROT_NONE,
+ MAP_PRIVATE | MAP_ANON, -1, 0, "wasm-reserved");
++#endif
+ if (data == MAP_FAILED) {
+ liveBufferCount--;
+ return nullptr;
Home |
Main Index |
Thread Index |
Old Index