Skip to content

Commit

Permalink
Fix the "DFA out of memory" error for the reverse Prog.
Browse files Browse the repository at this point in the history
Change-Id: If9a1914e7b598b21dabd81ef61293368c15587f6
Reviewed-on: https://code-review.googlesource.com/30230
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Jul 11, 2018
1 parent b277f4c commit 3b4a3d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions re2/re2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b4a3d5

Please sign in to comment.