buf_size: buffer allocations in the same file are not special
commit51b7a0f7cce70757b67c091b325d657c8dc06989
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Dec 2013 12:01:36 +0000 (11 15:01 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Dec 2013 12:01:36 +0000 (11 15:01 +0300)
treee0d9a4d60ea4f44c607c3b105d909514cb7a56ae
parent80165c27ccb22409aafb3c62143e4ce95839562e
buf_size: buffer allocations in the same file are not special

The thought here was that if a buffer is allocated in the file then it's
probably used in the file.  That's probably true, but unless the variable
is static other allocations can be used as well.

In other words this patch means that we say we know the size of the buffer
less often than before.  It should eliminate some false positives.

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