[Top][All Lists]

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

Re: Use of uninitialized values in mail checking

From: Chet Ramey
Subject: Re: Use of uninitialized values in mail checking
Date: Fri, 22 Jun 2012 09:20:37 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0

On 6/21/12 11:47 AM, address@hidden wrote:

> Bash Version: 4.2
> Patch Level: 29
> Release Status: release
> I found that behavior of bash depends on uninitialized values in memory.
> In function file_mod_date_changed (mailcheck.c), if mailstat returns a
> non-zero
> value, we are checking condition finfo.st_size == 0, where finfo.st_size is
> uninitialized. In those rare cases when finfo.st_size is zero and
> mailfiles[i]->file_size > 0 we update mailfiles array with some random values
> (while the file may even not exist).

Thanks for the report.  This will be fixed in the next version of bash.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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