From b1af1071d3f780bc716f71cdb77e49ef409f4635 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 30 Aug 2019 15:19:45 +0200 Subject: community/seamonkey: fix for FS#63605 (string format can be null) --- community/seamonkey/PKGBUILD | 11 +++++++++++ community/seamonkey/seamonkey-2.49.4-string-fmt.patch | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 community/seamonkey/PKGBUILD create mode 100644 community/seamonkey/seamonkey-2.49.4-string-fmt.patch (limited to 'community') diff --git a/community/seamonkey/PKGBUILD b/community/seamonkey/PKGBUILD new file mode 100644 index 00000000..5aadd2bc --- /dev/null +++ b/community/seamonkey/PKGBUILD @@ -0,0 +1,11 @@ +# temporary workaround for FS#63605 + +# see FS#63605 +source+=('seamonkey-2.49.4-string-fmt.patch') +sha256sums+=('530471ffc123470c05f51e3f10d6690e161d2b64023983c08f9490b3f704f491') +eval "$( + declare -f prepare | \ + sed ' + 3 a patch -p1 -i "$srcdir/seamonkey-2.49.4-string-fmt.patch" + ' +)" diff --git a/community/seamonkey/seamonkey-2.49.4-string-fmt.patch b/community/seamonkey/seamonkey-2.49.4-string-fmt.patch new file mode 100644 index 00000000..6e0f31eb --- /dev/null +++ b/community/seamonkey/seamonkey-2.49.4-string-fmt.patch @@ -0,0 +1,12 @@ +diff -rauN seamonkey-2.49.4/mozilla/js/xpconnect/src/XPCWrappedNative.cpp seamonkey-2.49.4-string-fmt-patch/mozilla/js/xpconnect/src/XPCWrappedNative.cpp +--- seamonkey-2.49.4/mozilla/js/xpconnect/src/XPCWrappedNative.cpp 2018-07-12 04:17:10.000000000 +0200 ++++ seamonkey-2.49.4-string-fmt-patch/mozilla/js/xpconnect/src/XPCWrappedNative.cpp 2019-08-30 15:05:08.309875223 +0200 +@@ -2219,7 +2219,7 @@ + "(%s" : (i == count-1) ? + ", %s)" : ", %s"; + name = JS_sprintf_append(name, fmt, +- array[i]->GetNameString()); ++ (array[i]->GetNameString() != NULL) ? array[i]->GetNameString() : "(NULL)"); + } + } + } -- cgit v1.2.3-70-g09d2