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