overflow: remove strncpy() false positives
commita6089f9cd3145fb2af58b10cd31866b46b78858f
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Jun 2012 17:57:44 +0000 (18 20:57 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 18 Jun 2012 17:57:44 +0000 (18 20:57 +0300)
tree92d8d024f0464ac0ab22b521fa2c88b5840f1f65
parent7adadfd7fbac6cc8d85d0d5980e45f0a75350035
overflow: remove strncpy() false positives

We generate the list of overflow functions automatically.  If we see a
place that does:

strncpy(foo, bar, sizeof(bar));

then we assume that the second parameter of the function should always be
at least the number of bytes passed in parameter three.  Normally people do
this the right way which is:

strncpy(foo, bar, sizeof(foo));

But sometimes they do it the wrong way and we need to ignore them.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_data/kernel.sizeof_param.remove