Nmap Development mailing list archives

[PATCH] migrate leftover malloc() calls to safe_malloc()


From: Brandon Enright <bmenrigh () ucsd edu>
Date: Fri, 20 Jun 2008 23:22:26 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As part of a memory leak that I'm trying to track down I've migrated
all the remaining malloc() calls to use safe_malloc().

Because safe_malloc() does return-code checking I've removed the
assert() and other checking in places where malloc() was still
being used.

Patch attached.

Brandon

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkhcO7IACgkQqaGPzAsl94JxPQCgsU/lnR7GO6PUru99yOj+XL2m
SlMAn1a9SWoPbbPK35ubkrxzHlJJsalB
=wtk+
-----END PGP SIGNATURE-----

Attachment: malloc.patch
Description:


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: