lamuguo / re2

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

runtime failure: Windows: string vs StringPiece #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Cause: 
I finish the windows port using pthread-win32 and modify some source code.
my program crash while use the debug version static library in windows, but use 
release version static library is ok.
Solution:
change pattarn_(string) variable in 196 line of re2.cc file to 
pattern(StringPiece) variable, and compile again.

Original issue reported on code.google.com by fanhaipi...@gmail.com on 10 Oct 2013 at 3:20

GoogleCodeExporter commented 9 years ago
This attachment is re2-20130802's windows port.
I use VS 2008 to create static library for windows appliction.

Original comment by fanhaipi...@gmail.com on 11 Oct 2013 at 2:04

Attachments:

GoogleCodeExporter commented 9 years ago
I don't understand why that fix would help. It seems less safe: we don't want 
Parse to keep any of the pieces from the caller. Can you show a short program 
that crashes?

Original comment by rsc@golang.org on 10 Jan 2014 at 3:24

GoogleCodeExporter commented 9 years ago
RE2 has moved to GitHub. I have not moved the issues over. If this issue is 
still important to you, please file a new one at 
https://github.com/google/re2/issues. Thank you.

Original comment by rsc@golang.org on 11 Dec 2014 at 4:45