#22 RegularExpression::match() bug

closed
nobody
None
5
2004-11-01
2004-02-28
No

Was:
int rc = regexec(&m_expr, to_7bits(text).c_str(),
m_numSubs + 1, matches, 0);

has to be:
int rc = regexec(&m_expr, text.c_str(), m_numSubs + 1,
matches, 0);

(remove to_7bit()).

Else it does non find characters with code over 127.

Discussion

  • Brian Burton

    Brian Burton - 2004-11-01

    Logged In: YES
    user_id=294579

    Hmm. The to_7bits() call was intentional to prevent crashes
    in weak regex implementations.

     
  • Brian Burton

    Brian Burton - 2004-11-01
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks