diff options
author | Paul Wankadia <junyer@google.com> | 2018-07-11 03:30:01 -0700 |
---|---|---|
committer | Paul Wankadia <junyer@google.com> | 2018-07-11 10:31:41 +0000 |
commit | 3b4a3d57f3a0231cfb70ad649099c3aed0499555 (patch) | |
tree | a1c0131d1cb058725a4b7881282704d479d39d0b | |
parent | b277f4c78767c9df3aeaea848ff0059e60e358cc (diff) | |
download | regex-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.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |