bug-bash
[Top][All Lists]
Advanced

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

Bash-2.05 patch 4


From: Chet Ramey
Subject: Bash-2.05 patch 4
Date: Tue, 24 Apr 2001 13:42:16 -0400

                             BASH PATCH REPORT
                             =================

Bash-Release: 2.05
Patch-ID: bash205-004

Bug-Reported-by: address@hidden (Markus Schwarzenberg)
Bug-Reference-ID: <address@hidden>

Bug-Description:

An uninitialized variable will occasionally cause bash to segmentation
fault on some systems.  The bug was reported as affecting Solaris 7.

Patch:

*** ../bash-2.05/stringlib.c    Wed Feb 14 17:00:42 2001
--- stringlib.c Tue Apr 17 08:10:29 2001
***************
*** 221,224 ****
--- 221,225 ----
        p++;
  
+       ind = r - ret;
        RESIZE_MALLOCED_BUFFER (ret, ind, 2, rlen, rlen);
        r = ret + ind;                  /* in case reallocated */


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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