summaryrefslogtreecommitdiff
path: root/user/perl-re-engine-re2/fix-nullptr-retval.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-re-engine-re2/fix-nullptr-retval.patch')
-rw-r--r--user/perl-re-engine-re2/fix-nullptr-retval.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/perl-re-engine-re2/fix-nullptr-retval.patch b/user/perl-re-engine-re2/fix-nullptr-retval.patch
new file mode 100644
index 000000000..251d8e1ac
--- /dev/null
+++ b/user/perl-re-engine-re2/fix-nullptr-retval.patch
@@ -0,0 +1,12 @@
+diff -ur a/re2/re2/dfa.cc b/re2/re2/dfa.cc
+--- a/re2/re2/dfa.cc 2022-04-22 19:08:28.597201892 +0000
++++ b/re2/re2/dfa.cc 2022-04-22 19:09:19.608577242 +0000
+@@ -1734,7 +1734,7 @@
+ return false;
+ }
+ if (params.start == DeadState)
+- return NULL;
++ return false;
+ if (params.start == FullMatchState) {
+ if (run_forward == want_earliest_match)
+ *epp = text.begin();