Re: missing sanity checks for malloc() in bash-4.3.3x in directory 'supp
From:
Chet Ramey
Subject:
Re: missing sanity checks for malloc() in bash-4.3.3x in directory 'support', file 'man2html.c'
Date:
Fri, 10 Jul 2015 17:02:05 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
On 7/8/15 4:57 PM, Bill Parker wrote:
> Hello All,
> In reviewing code in directory 'support, file 'man2html.c', I found
> numerous instances of calls to malloc() being made, without a check for
> a return value of NULL, indicating failure. The patch file below adds
> the checks after calls to malloc():
Thanks, I'll take a look. This code has existed in essentially this form
for about 15 years without a problem -- I'm the only one who really needs
to ever run it -- so it might be simpler to just replace `malloc'
with `xmalloc' and copy xmalloc from the rest of bash.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/