Closed dsan-dev closed 1 month ago
The "Nonportable behavior" subsection of the Linux man-page indicates that malloc, calloc, and realloc may return NULL without setting errno.
Thus, in non-POSIX platforms, GCC -fanalyzer correctly warns about possible NULL dereferences.
-fanalyzer
Applied, thanks.
The "Nonportable behavior" subsection of the Linux man-page indicates that malloc, calloc, and realloc may return NULL without setting errno.
Thus, in non-POSIX platforms, GCC
-fanalyzer
correctly warns about possible NULL dereferences.