First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 95495
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Emanuele Giaquinta (RETIRED) <exg@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
grep.diff grep.diff patch Emanuele Giaquinta (RETIRED) 2005-06-08 13:40 0000 461 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 95495 depends on: Show dependency tree
Show dependency graph
Bug 95495 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-08 13:37 0000
When a file ends with a '\r\n' grep will segfault when matching the perl regexp
'\n'. The following code demonstrates it:

echo -en '\015\012' >test
grep -P '\n' test

Solution: the attached patch, taken from upstream, solves the problem.

------- Comment #1 From Emanuele Giaquinta (RETIRED) 2005-06-08 13:40:02 0000 -------
Created an attachment (id=60861) [edit]
grep.diff

------- Comment #2 From SpanKY 2005-06-12 15:24:04 0000 -------
fixed in 2.5.1-r8, thanks

------- Comment #3 From Jakub Moc 2005-07-13 16:41:26 0000 -------
*** Bug 98935 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug