aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Wankadia <junyer@google.com>2018-07-11 03:30:01 -0700
committerPaul Wankadia <junyer@google.com>2018-07-11 10:31:41 +0000
commit3b4a3d57f3a0231cfb70ad649099c3aed0499555 (patch)
treea1c0131d1cb058725a4b7881282704d479d39d0b
parentb277f4c78767c9df3aeaea848ff0059e60e358cc (diff)
downloadregex-re2-3b4a3d57f3a0231cfb70ad649099c3aed0499555.tar.gz
Fix the "DFA out of memory" error for the reverse Prog.
Change-Id: If9a1914e7b598b21dabd81ef61293368c15587f6 Reviewed-on: https://code-review.googlesource.com/30230 Reviewed-by: Paul Wankadia <junyer@google.com>
-rw-r--r--re2/re2.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/re2/re2.cc b/re2/re2.cc
index 7d787a8..3f28ba3 100644
--- a/re2/re2.cc
+++ b/re2/re2.cc
@@ -668,9 +668,9 @@ bool RE2::Match(const StringPiece& text,
Prog::kLongestMatch, &match, &dfa_failed, NULL)) {
if (dfa_failed) {
if (options_.log_errors())
- LOG(ERROR) << "DFA out of memory: size " << prog_->size() << ", "
- << "bytemap range " << prog_->bytemap_range() << ", "
- << "list count " << prog_->list_count();
+ LOG(ERROR) << "DFA out of memory: size " << prog->size() << ", "
+ << "bytemap range " << prog->bytemap_range() << ", "
+ << "list count " << prog->list_count();
// Fall back to NFA below.
skipped_test = true;
break;