[pcre-dev] [Bug 651] New: Accepting wrong posix class name

Top Page
Delete this message
Author: Felipe Pena
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 651] New: Accepting wrong posix class name
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=651
           Summary: Accepting wrong posix class name
           Product: PCRE
           Version: N/A
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: felipensp@???
                CC: pcre-dev@???



I'd noted that check_posix_name() not is called when in class name appears an
escape, or space.

See the tests:

re> /[[:foo:]]/

Failed: unknown POSIX class name at offset 3

OK!

re> /[[:f\oo:]]/
data> [[:foo:]]

0: :]

and

re> /[[: :]]/
data> /[[::]]/

0: :]


Odd...


Is it a normal behavior? Althrough accepts a illegal class name, match just the
end too.


Regards,
Felipe Pena.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email