bug-grep
[Top][All Lists]
Advanced

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

[bug-grep] [patch #3840] fix for off by one error in src/grep.c:prpendin


From: Claudio Fontana
Subject: [bug-grep] [patch #3840] fix for off by one error in src/grep.c:prpending()
Date: Sun, 20 Mar 2005 18:58:46 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10

URL:
  <http://savannah.gnu.org/patch/?func=detailitem&item_id=3840>

                 Summary: fix for off by one error in src/grep.c:prpending()
                 Project: grep
            Submitted by: sick_soul
            Submitted on: Sun 03/20/2005 at 18:58
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

This patch fixes an off by one error in prpending(), which was 
cutting the end of line sentinel.

This problem manifests with segfaults/wrong output when prpending() deals
with input that reaches the end of file.





    _______________________________________________________

Carbon-Copy List:

CC Address                          | Comment
------------------------------------+-----------------------------
address@hidden                | 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 03/20/2005 at 18:58  Name: fix_prpending.patch  Size: 476B   By:
sick_soul
fix  for off by one error in src/grep.c:prpending()
<http://savannah.gnu.org/patch/download.php?item_id=3840&item_file_id=4369>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?func=detailitem&item_id=3840>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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