Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/re2/re2-2020-05-01-compile-test-out-of-memory-fix.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-05-16 17:38:10 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-05-16 17:38:10 +0200
commit69ba4fe06e485fdf0d22eb068abf551b0211625f (patch)
treeae1f589ab7d5d8f96b068eb547815fcd822afab0 /extra/re2/re2-2020-05-01-compile-test-out-of-memory-fix.patch
parent0e4d7f8fa76c0d58f8f898a15eee91c09496b044 (diff)
extra/re2: patch for failing compile-test
Diffstat (limited to 'extra/re2/re2-2020-05-01-compile-test-out-of-memory-fix.patch')
-rw-r--r--extra/re2/re2-2020-05-01-compile-test-out-of-memory-fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/re2/re2-2020-05-01-compile-test-out-of-memory-fix.patch b/extra/re2/re2-2020-05-01-compile-test-out-of-memory-fix.patch
new file mode 100644
index 00000000..8b8b874c
--- /dev/null
+++ b/extra/re2/re2-2020-05-01-compile-test-out-of-memory-fix.patch
@@ -0,0 +1,12 @@
+diff -rauN re2-2020-05-01/re2/testing/compile_test.cc re2-2020-05-01-compile-test-out-of-memory-fix-patch/re2/testing/compile_test.cc
+--- re2-2020-05-01/re2/testing/compile_test.cc 2020-04-23 17:56:11.000000000 +0200
++++ re2-2020-05-01-compile-test-out-of-memory-fix-patch/re2/testing/compile_test.cc 2020-05-16 17:17:05.570251742 +0200
+@@ -236,7 +236,7 @@
+ "^(?P<name1>[^\\s]+)\\s+(?P<name2>[^\\s]+)\\s+(?P<name3>.+)$",
+ Regexp::LikePerl, NULL);
+ EXPECT_TRUE(re != NULL);
+- Prog* prog = re->CompileToProg(920);
++ Prog* prog = re->CompileToProg(850);
+ // If the memory budget has been exhausted, compilation should fail
+ // and return NULL instead of trying to do anything with NoMatch().
+ EXPECT_TRUE(prog == NULL);