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 a8c7dc3 commit 9dd30f0Copy full SHA for 9dd30f0
c/common/src/codingstandards/c/OutOfBounds.qll
@@ -949,6 +949,8 @@ module OOB {
949
// remove flow from `src` to `dst` in a buffer access function call
950
// the standard library models such flow through functions such as memcpy, strcpy, etc.
951
exists(BufferAccessLibraryFunctionCall fc | node.asExpr() = fc.getReadArg().getAChild*())
952
+ or
953
+ node.asDefiningArgument() instanceof AddressOfExpr
954
}
955
956
0 commit comments