overflow: silence glibc strcmp false positives with string literal
commit3d395324543679042f196adcd2f65de524c726e7
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 8 Aug 2015 20:41:15 +0000 (8 23:41 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 8 Aug 2015 20:41:15 +0000 (8 23:41 +0300)
tree30241abe5c955349f76bf8bda0cb09575c2ba6ad
parent9561ee4453185504072b661ff4f0af7ea2c4bc86
overflow: silence glibc strcmp false positives with string literal

The glibc strcmp() and strncmp() macros produce a lot of false positives
when you pass them short string literals.  If you read beyond the end of
a string literal, it's not really harmful.  They do this because it is
faster.  (I am going on what I remember from the last time I tried to
silence these warnings).

Reported-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_overflow.c