[pcre-dev] PCRE: Access Violation with studied pattern

Top Page
Delete this message
Author: Ralf Junker
Date:  
To: pcre-dev@exim.org, Philip Hazel
Subject: [pcre-dev] PCRE: Access Violation with studied pattern
The attached pcretest input causes PCRE to abort with an access
violation at pcre_exec.c, line 4828.

The error happens only if PCRE_UTF8 is defined and if the pattern is
studied. If the subject is any shorter than given, there is no error.
However, it may be longer.

I appologize for running against PCRE 8.02 only, but time did not permit
to test against PCRE 8.10 RC1.

I would appreciate if a fix would make it into 8.10 final.

Ralf
/\s?xxx\s/8S
\x{E0}0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456