Skip to content

Commit 9dd30f0

Browse files
author
Nikita Kraiouchkine
committed
Remove defining argument nodes from data-flow graph
1 parent a8c7dc3 commit 9dd30f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c/common/src/codingstandards/c/OutOfBounds.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,8 @@ module OOB {
949949
// remove flow from `src` to `dst` in a buffer access function call
950950
// the standard library models such flow through functions such as memcpy, strcpy, etc.
951951
exists(BufferAccessLibraryFunctionCall fc | node.asExpr() = fc.getReadArg().getAChild*())
952+
or
953+
node.asDefiningArgument() instanceof AddressOfExpr
952954
}
953955
}
954956

0 commit comments

Comments
 (0)