buf_size: handle places that dynamically alocate sometimes
commitc0a2f8829594cc107ce7d2862ec6f2ce4d5898aa
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 Nov 2013 23:08:51 +0000 (30 02:08 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 29 Nov 2013 23:08:51 +0000 (30 02:08 +0300)
tree63305b877f49cc188dd614c9ec20f9c6897667d8
parent37e9d111522b856935c5e0df0a2b51fdc11c1150
buf_size: handle places that dynamically alocate sometimes

There are some places which use a buffer on the stack for small buffers and
a dynamically allocated buffer if they need more space.  (This is probably
more common in the kernel where the stack space is so limited).  Taking
the larger size solves a few false positives.

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