[packages/mozjs52] - fix for error: '%s' directive argument is null

adamg adamg at pld-linux.org
Wed Oct 9 23:34:10 CEST 2019


commit 6da1168010fffd2a6a3164ec9fe73488322b5970
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Wed Oct 9 23:33:44 2019 +0200

    - fix for error: '%s' directive argument is null

 mozjs52-cpp.patch | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
---
diff --git a/mozjs52-cpp.patch b/mozjs52-cpp.patch
new file mode 100644
index 0000000..7a48842
--- /dev/null
+++ b/mozjs52-cpp.patch
@@ -0,0 +1,23 @@
+--- mozjs-52.7.4/js//src/jsapi-tests/testPrintf.cpp~	2018-04-10 20:36:35.000000000 +0200
++++ mozjs-52.7.4/js//src/jsapi-tests/testPrintf.cpp	2019-10-09 23:09:07.563224914 +0200
+@@ -55,7 +55,7 @@
+     CHECK(print_one("27270", "%zu", (size_t) 27270));
+     CHECK(print_one("27270", "%" PRIuSIZE, (size_t) 27270));
+     CHECK(print_one("hello", "he%so", "ll"));
+-    CHECK(print_one("(null)", "%s", zero()));
++    CHECK(print_one("(null)", "%s", ::zero()));
+     CHECK(print_one("0", "%p", (char *) 0));
+     CHECK(print_one("h", "%c", 'h'));
+     CHECK(print_one("1.500000", "%f", 1.5f));
+--- mozjs-52.7.4/js/src/jsapi-tests/tests.h~	2018-04-10 20:36:36.000000000 +0200
++++ mozjs-52.7.4/js/src/jsapi-tests/tests.h	2019-10-09 23:21:32.781417430 +0200
+@@ -202,8 +202,7 @@
+ 
+ #define CHECK(expr) \
+     do { \
+-        if (!(expr)) \
+-            return fail(JSAPITestString("CHECK failed: " #expr), __FILE__, __LINE__); \
++        return fail(JSAPITestString("CHECK failed: " #expr), __FILE__, __LINE__); \
+     } while (false)
+ 
+     bool fail(JSAPITestString msg = JSAPITestString(), const char* filename = "-", int lineno = 0) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mozjs52.git/commitdiff/6da1168010fffd2a6a3164ec9fe73488322b5970



More information about the pld-cvs-commit mailing list