buggrep - Bugs: bug #4531, PCRE '(?s)a.*' segfaults

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4531: PCRE '(?s)a.*' segfaults

Submitted by:  None
Submitted on:  Wed 30 Jul 2003 11:37:35 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 24 Feb 2005 09:52:34 AM UTC, comment #3:

I checked the patch to the CVS.
Thank you, Claudio.

Stepan Kasal <kasal>
Project Member
Wed 23 Feb 2005 03:58:59 PM UTC, comment #2:

I have investigated the matter, and it turns out to be a grep problem. The segfault occurs in the pcre library only because grep sends a bogus pointer (0x1) to the pcre library function.

Patch and description:

http://lists.gnu.org/archive/html/bug-grep/2005-02/msg00023.html

I attach the patch again here.

Claudio

Anonymous
Thu 31 Jul 2003 09:50:52 AM UTC, comment #1:

This is probably a problem of the pcre library.
Please submit this bug report to pcre team.
It would be best if you verified that the bug is still present in the latest version of pcre library first.

Stepan

Stepan Kasal <kasal>
Project Member
Wed 30 Jul 2003 11:37:35 AM UTC, original submission:

"echo a | grep -P '(?s)a.*'" will segfault.

Anonymous

 

Attached Files
file #2610:  pgrep_consider_eof.patch added by None (920B - application/octet-stream - Patch to fix segfault with grep -P)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 24 Feb 2005 09:52:34 AM UTCkasalStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Wed 23 Feb 2005 03:58:59 PM UTCNoneAttached File-=>Added pgrep_consider_eof.patch, #2232

Back to the top


Powered by Savane 3.1-cleanup1