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

Submitter:  None
Submitted:  Wed 30 Jul 2003 11:37:35 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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>
Group 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>
Group Member
Wed 30 Jul 2003 11:37:35 AM UTC, original submission:  

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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-02-24 kasal StatusNone Fixed
    Open/ClosedOpen Closed
2005-02-23 None Attached File- Added pgrep_consider_eof.patch, #2232

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code