Tag: 7e2a10836c0455cb3ca397f89b8280496148d571

fs/qnx4: decrement sizeof size in strncmp

Author: Julia Lawall <julia@diku.dk> As an identical match is wanted in this case, strcmp can be used instead. The semantic match that lead to detecting this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression foo; constant char *abc; @@ *strncmp(foo, abc, sizeof(abc)) // Signed-off-by: Julia Lawall Signed-off-by: Anders Larsen Signed-off-by: Jiri Kosina — fs/qnx4/inode.c | …

Continue reading