summaryrefslogtreecommitdiff
path: root/user/perl-re-engine-re2/fix-nullptr-retval.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-04-22 19:11:49 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:58 -0500
commit6fd576d51323c7dc9e3fb492c510d12a2ff9e8e5 (patch)
tree3344ce1b5ba6ba5a0acb19d1d84c3eff42ef151e /user/perl-re-engine-re2/fix-nullptr-retval.patch
parent89acf1f5fe46aa780dda9ac531b17423a2ac3332 (diff)
downloadpackages-6fd576d51323c7dc9e3fb492c510d12a2ff9e8e5.tar.gz
packages-6fd576d51323c7dc9e3fb492c510d12a2ff9e8e5.tar.bz2
packages-6fd576d51323c7dc9e3fb492c510d12a2ff9e8e5.tar.xz
packages-6fd576d51323c7dc9e3fb492c510d12a2ff9e8e5.zip
user/perl-re-engine-re2: bump { 0.13 --> 0.14 }. add patch for nullptr type mismatch. fixes #571.
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();