This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Balloc() return result should be checked for NULL
- From: Aleksandr Platonov <pam at oktetlabs dot ru>
- To: newlib at sourceware dot org
- Date: Mon, 14 Feb 2011 17:12:53 +0300
- Subject: Balloc() return result should be checked for NULL
- Reply-to: newlib at sourceware dot org
Hi,
Balloc() could return NULL in case of memory allocation failure, but all
functions which use Balloc() dereference its return result without check
for NULL. Thus NULL dereference is possible.
--
Aleksandr Platonov