Fix bug 10025 - Lack of Sanity Checking in calls to malloc()/calloc().
authorBill Parker <wp02855@gmail.com>
Wed, 17 Jul 2013 22:30:35 +0000 (15:30 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 17 Jul 2013 23:12:19 +0000 (16:12 -0700)
commit9b58da986680a92b350f02cd31ff64f30fecd07c
tree3a9bd6255f1f1c06f8812fd68f1be984add69ea0
parent9b2aa351ceb756d6ea63f3158f0e983ae7262da8
Fix bug 10025 - Lack of Sanity Checking in calls to malloc()/calloc().

In reviewing various files in Samba-4.0.7, I found a number
of instances where malloc()/calloc() were called without the
checking the return value for a value of NULL, which would
indicate failure.

(NB. The changes needed to ccan, iniparser, popt and heimdal
will be reported upstream, not patched inside Samba).

Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Simo Source <idra@samba.org>
lib/ntdb/tools/growtdb-bench.c
lib/ntdb/tools/ntdbtorture.c
lib/replace/getifaddrs.c
lib/tdb/test/run-transaction-expand.c
lib/tdb/tools/tdbtorture.c
nsswitch/nsstest.c
source4/librpc/rpc/pyrpc_util.c
source4/torture/gentest.c