buf_size: use strncpy() and friends to set the buf size
commitd04c5e3dff3085f436e2c2c78b52bcc4be2d0269
authorDan Carpenter <error27@gmail.com>
Sat, 31 Jul 2010 12:05:27 +0000 (31 14:05 +0200)
committerDan Carpenter <error27@gmail.com>
Sat, 31 Jul 2010 12:05:27 +0000 (31 14:05 +0200)
treed2fc820592ed59c5fdeea6c5e5fb8ab2b49cc0a6
parentfd4682e9acf155179a7958bcc523094b75689210
buf_size: use strncpy() and friends to set the buf size

If the code does this:
strncpy(to, from, 5);
That probably means that "to" is has five bytes.  Not always but generally.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_overflow.c
smatch_buf_size.c
validation/sm_overflow2.c [new file with mode: 0644]