https://bugs.exim.org/show_bug.cgi?id=1816
Bug ID: 1816
Summary: PCRE2 Demo code failed
Product: PCRE
Version: 10.21 (PCRE2)
Hardware: x86
OS: Windows
Status: NEW
Severity: bug
Priority: medium
Component: Code
Assignee: ph10@???
Reporter: xuboying@???
CC: pcre-dev@???
Dear PCRE2 Team:
Description:
PCRE2 hangs and crash in the demo code,
http://www.pcre.org/current/doc/html/pcre2demo.html
Reproduce:
Modifying following in demo code
//before:
pattern = (PCRE2_SPTR)argv[i];
subject = (PCRE2_SPTR)argv[i+1];
//after:
std::string X = std::string(2000, 'x');
pattern = (PCRE2_SPTR)R"(^(.)+$)";
subject = (PCRE2_SPTR)X.c_str();
System:
Windows 7 VC++ 2013, target x86 (Debug and Release)
Call stack:
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
--snip--
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_data_free_8() C
TestPCRE2Plus.exe!_pcre2_match_8() C
> TestPCRE2Plus.exe!main(int argc=1, char * * argv=0x006deaa8) Line 139 C++
[External Code]
[Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll]
About Me:
I'm a fan of Regex and PCRE and PERL and Python and C++
I started a Project named PCRE2Plus, which is using PYTHON style as C++ wrapper
for PCRE2
https://github.com/xuboying/PCRE2Plus/issues/2
BR
Boying
--
You are receiving this mail because:
You are on the CC list for the bug.