]> granicus.if.org Git - sudo/commit
If asprintf() or vasprintf() fail, set the dest pointer to NULL
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 3 Jun 2015 17:07:56 +0000 (11:07 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 3 Jun 2015 17:07:56 +0000 (11:07 -0600)
commit9884df8c9e499f948cc40e09b78faa25b820e4ee
treed327aa3da26747277f907a1773469243ebe6dbed
parent7a1cf7f53942d880764ff9bae5f3b5048717fb3d
If asprintf() or vasprintf() fail, set the dest pointer to NULL
like BSD and Solaris do.  This appears to be the direction glibc
is going as well.
lib/util/snprintf.c