Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6405: Assertion exception thrown when using boost::regex_match
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-09 14:45:02
#6405: Assertion exception thrown when using boost::regex_match
-------------------------------+-------------------------
Reporter: ses44@⦠| Owner: johnmaddock
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: regex
Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------
Changes (by anonymous):
* status: closed => reopened
* resolution: worksforme =>
Comment:
I am afraid, we have the same issue on '''Win32''' platform (MS Visual
Stodio 2008 VC++, boost v.'''1.48'''):
{{{
bool isEmailAddressValid(const char* str)
{
if (str == NULL)
{
return false;
}
static const boost::regex
e("^[-a-zA-Z0-9_!#$`*+/=?^{}|.]+@([a-zA-Z0-9][-a-zA-Z0-9]+\\.)+[a-zA-Z]{2,4}$");
return boost::regex_match(str, e);
}
}}}
It works fine in '''Debug''', but throws an exeption:
{{{
Unhandled exception at 0x77a415de in tester.exe: 0xC0000005: Access
violation writing location 0x00000008.
}}}
in '''Release''' mode. We have tried to play with different prohject
settings, but that did not help.
Here is an example of input string which definetly brings an exeption:
"{{{p_at_[hidden]}}}".
--
Nikita A,
with best ragards,
and thanks a lot for your ansrewers in advance!
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6405#comment:5> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC