You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@jaguNET.com> on 1996/09/12 23:41:01 UTC
malloc error checking
Hmmm... I've seen a few places where it's assumed that malloc() will
be successful. One particularly disturbing place is alloc.c where
if malloc_block()'s malloc fails, it simply returns NULL. Note that
new_block() doesn't check the return value.
Shouldn't we adjust things so if malloc()s fail, we perror and exit?
--
Jim Jagielski << jim@jaguNET.com >> | "There is a time for laughing,
** jaguNET Access Services ** | and a time for not laughing,
Email: info@jaguNET.com | and this is not one of them"
++ http://www.jaguNET.com/ +++ Voice/Fax: 410-931-3157 ++