check_overflow: silence some "not allocating enough data" false positives
commitad9c18a721fa7decb2db05e159d83cf52c47df5b
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Jul 2013 08:09:53 +0000 (8 11:09 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 8 Jul 2013 08:09:53 +0000 (8 11:09 +0300)
treed90cfc2669bebc2ec41c8c705478b6887fc5922a
parent07b31a3a7b8d4b74f7de60ee2774753beb4485d6
check_overflow: silence some "not allocating enough data" false positives

The warning messages from here are mostly caused because you have a call
tree that returns an allocated struct.  The size of the struct changes but
the call tree takes a couple runs of building the database before it is
all updated.

I have changed it to only warn if the function returning the allocated
buffer returns NULL.  This will silence the warnings.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_overflow.c