[PATCH 1/3] Don't ignore the return value of asprintf()

Steve Grubb sgrubb at redhat.com
Sat Feb 9 16:50:49 UTC 2013


On Friday, February 08, 2013 07:12:33 PM Tyler Hicks wrote:
> If an error occurs in asprintf(), the contents of the strp variable are
> undefined. asprintf()'s return value must be checked and the parameter
> passed into asprintf() should be set to NULL upon error.

Applied. I think there are a couple places where it will obviously segfault in 
auditctl.c. But the patch does clean up a bunch of warnings.

-Steve




More information about the Linux-audit mailing list