summaryrefslogtreecommitdiff
path: root/lang/spidermonkey24/files/patch-bug894240
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
commit26b4c8f71f91d22e081b27814782686edde0c90a (patch)
tree1c321c39372c25d8634e75b5c8e08edc676b296d /lang/spidermonkey24/files/patch-bug894240
parentNew port: math/py-optuna: A hyperparameter optimization framework (diff)
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed With hat: portmgr
Notes
Notes: svn path=/head/; revision=559822
Diffstat (limited to 'lang/spidermonkey24/files/patch-bug894240')
-rw-r--r--lang/spidermonkey24/files/patch-bug89424020
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/spidermonkey24/files/patch-bug894240 b/lang/spidermonkey24/files/patch-bug894240
new file mode 100644
index 000000000000..a805435382d0
--- /dev/null
+++ b/lang/spidermonkey24/files/patch-bug894240
@@ -0,0 +1,20 @@
+commit 19a4ba5c90a9
+Author: Mike Hommey <mh+mozilla@glandium.org>
+Date: Wed Jul 17 16:16:55 2013 +0900
+
+ Bug 894240 - Fix pointer dereference in js::cli::OptionParser::extractValue. r=Waldo
+---
+ js/src/shell/jsoptparse.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- shell/jsoptparse.cpp.orig 2013-10-29 20:40:20 UTC
++++ shell/jsoptparse.cpp
+@@ -253,7 +253,7 @@ OptionParser::extractValue(size_t argc, char **argv, s
+ char *eq = strchr(argv[*i], '=');
+ if (eq) {
+ *value = eq + 1;
+- if (value[0] == '\0')
++ if (*value[0] == '\0')
+ return error("A value is required for option %.*s", eq - argv[*i], argv[*i]);
+ return Okay;
+ }