We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063bff0 commit 0cd859cCopy full SHA for 0cd859c
cpp/ql/src/Security/CWE/CWE-468/SuspiciousAddWithSizeof.ql
@@ -28,7 +28,8 @@ where
28
// If we see an addWithSizeof then we expect the type of
29
// the pointer expression to be `char*` or `void*`. Otherwise it
30
// is probably a mistake.
31
- addWithSizeof(e, sizeofExpr, _) and not isCharSzPtrExpr(e)
+ addWithSizeof(e, sizeofExpr, _) and
32
+ not isCharSzPtrExpr(e)
33
select sizeofExpr,
34
"Suspicious sizeof offset in a pointer arithmetic expression. The type of the pointer is $@.",
35
e.getFullyConverted().getType() as t, t.toString()
0 commit comments