Menu

#47 most returns from malloc/realloc not checked

0.13
closed-fixed
nobody
None
5
2021-01-16
2006-02-13
No

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.

Discussion

  • Hannes von Haugwitz

    • status: open --> closed-fixed
    • Group: --> 0.13
     
  • Hannes von Haugwitz

    fixed in 714a8c87f5e061b715175dc156cd261e0acc61fc

     

Log in to post a comment.

MongoDB Logo MongoDB