buf_size: fix handling of declarations with named elements
commitbacd8f544e3efa979fb73d57cf2ccea116387586
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Jun 2013 08:48:23 +0000 (17 11:48 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Jun 2013 08:48:23 +0000 (17 11:48 +0300)
treeb024c14a85779800b299d373a5ad26f4c67987f6
parent520a1d375d6f8348297b6bb2fe783aee03cef8a7
buf_size: fix handling of declarations with named elements

This was leading to buffers sizes smaller than intended which caused false
positives.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_buf_size.c
validation/sm_buf_size7.c [new file with mode: 0644]