zeusdeux / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

DFA out of memory #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.set_max_mem(1<<30)
2.
3.

What is the expected output? What do you see instead?
create DFA sucessfully,but DFA out of memory ,instead

What version of the product are you using? On what operating system?
latest version,on linux.

Please provide any additional information below.
NOTE: If you have a suggested patch, please see
http://code.google.com/p/re2/wiki/Contribute
for information about sending it in for review.  Thanks.

caused by this expression

in dfa.cc,max_mem()*2/3.
when 1<<30 *2 it will be a negative 

Original issue reported on code.google.com by charl...@126.com on 23 Apr 2013 at 9:35

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7f1c5387aac5.

Original comment by rsc@swtch.com on 10 Jan 2014 at 3:17