This is the mail archive of the
mailing list for the Cygwin project.
Re: grep -P segfault
- From: Frodak <frodak17 at yahoo dot com>
- To: cygwin at cygwin dot com
- Cc: bug-grep at gnu dot org
- Date: Fri, 26 Jan 2007 15:28:39 -0800 (PST)
- Subject: Re: grep -P segfault
--- Brian Dessent wrote:
> Brian Dessent wrote:
> > Right before calling memchr, beg points to the
> first byte in the string
> > "hello\n", end points to the \n character, and so
> does buflim. Thus
> > (buflim - end) is zero, and memchr returns NULL.
> From there match_size
> > is miscalculated and from there it's all downhill.
> The test for EOL
> > should be skipped if buflim == end.
> I see this is an old bug, reported and fixed in CVS
> nearly two years
> And yet apparently the last released version is
> still 2.5.1a from
> 19-Nov-2004. Sigh.
That same email states:
"Generally, the -P option is only an experimental
feature, which can
crash in some cases, especially when you use the more
features of Perl regexps."
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html