On 6/21/12 11:47 AM, szymon.kal...@uj.edu.pl 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.

Chet

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



Reply via email to