Re: [pcre-dev] Memory corruption in PCRE compile (Version 6.…

Top Page
Delete this message
Author: Vinayaka Bhat
Date:  
To: 'pcre-dev@exim.org'
Subject: Re: [pcre-dev] Memory corruption in PCRE compile (Version 6.6) for invalid regex
Thanks Philip for your reply.

Eg of an invalid regex: (*)

In this case only an asterisk is provided(An asterisk cannot be the first element in a regex)

I would grateful if you could confirm the behaviour for this regex.

Thanks,
Vinayak
-----Original Message-----
From: Philip Hazel [mailto:ph10@hermes.cam.ac.uk]
Sent: Tuesday, October 13, 2009 8:47 PM
To: Vinayaka Bhat
Cc: 'pcre-dev@???'
Subject: Re: [pcre-dev] Memory corruption in PCRE compile (Version 6.6) for invalid regex

On Tue, 13 Oct 2009, Vinayaka Bhat wrote:

> Is there a known issue in PCRE compilation wherein memory corruption
> happens when we attempt to compile an invalid regular expression?
>
> The version I am using is 6.6
>
> #define PCRE_MAJOR          6
> #define PCRE_MINOR          6
> #define PCRE_PRERELEASE
> #define PCRE_DATE           06-Feb-2006


There have been many releases since then; the current release is 7.9 and
there is a new release 8.00 in "final testing" - I hope to release it
next week. Lots of bugs have been fixed since Feb 2006. Please test with
the latest version. As you have not specified what the invalid regular
expression is, I cannot test it for myself.

Philip

--
Philip Hazel