bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #13847] memchr() not checked on Pexecute() - leads to segfault


From: Tony Abou-Assaleh
Subject: Re: [bug #13847] memchr() not checked on Pexecute() - leads to segfault
Date: Tue, 19 Jul 2005 07:58:16 -0300 (ADT)

You can download nightly CVS releases from:

http://www.dal-acm.ca/~taa/grep/

Cheers,

TAA

--------------------------------------------------
Tony Abou-Assaleh
Ph.D. Candidate, Faculty of Computer Science
Dalhousie University, Halifax, NS, Canada, B3H 1W5
Fax:   902-492-1517
Email: address@hidden
WWW:   http://www.cs.dal.ca/~taa/
---------------------[THE END]--------------------


On Tue, 19 Jul 2005, Shlomi Fish wrote:

>
> 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/
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]