buf_size, strlen: don't use strlen() to determine the buf size
commit3eacac9e63a8e704e676486b0196bf8d6d3060c1
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Aug 2015 12:27:46 +0000 (17 15:27 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 17 Aug 2015 12:27:46 +0000 (17 15:27 +0300)
tree04c9d9c4f246a8811430e6b9cec3bb9907bb988e
parentb000ae2b9e2b3eded07facb4a094935c0e768e80
buf_size, strlen: don't use strlen() to determine the buf size

There can be a buffer which is 20 characters but it only holds a 3
character string.  The buf size and the strlen() are different things and
should be handled separately.

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