most returns from malloc/realloc not checked
Brought to you by:
hvhaugwitz,
rvdb
Many calls to malloc and realloc are not checked for
returning NULL. As a result, when the system is
running low on memory, aide fails because of a NULL
pointer.
All returns from malloc and realloc should be checked
for NULL. When NULL is returned, aide should fail with
an "out of memory" error message instread of a
segmentation violation or bus error due to a bad NULL
pointer reference.
fixed in 714a8c87f5e061b715175dc156cd261e0acc61fc