[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #13847] memchr() not checked on Pexecute() - leads to segfault
From: |
Shlomi Fish |
Subject: |
[bug #13847] memchr() not checked on Pexecute() - leads to segfault |
Date: |
Tue, 19 Jul 2005 07:57:05 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) KHTML/3.3.2 (like Gecko) |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13847>
Summary: memchr() not checked on Pexecute() - leads to
segfault
Project: grep
Submitted by: shlomif
Submitted on: Tue 07/19/2005 at 07:57
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
There is a call to memchr() in Pexecute (in search.c) which is not checked for
NULL return value, and as a result can crash the program.
The attached patch fixes the problem. Note that the added test was not tested,
because I could not get the GNU Build System to re-build the build-files on my
system.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 07/19/2005 at 07:57 Name: grep-patch.diff Size: 1.51KB By:
shlomif
Patch to correct the problem.
<http://savannah.gnu.org/bugs/download.php?item_id=13847&item_file_id=2726>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13847>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #13847] memchr() not checked on Pexecute() - leads to segfault,
Shlomi Fish <=