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 cc953c8 commit 77b88afCopy full SHA for 77b88af
cpp/ql/lib/semmle/code/cpp/security/BufferAccess.qll
@@ -129,11 +129,7 @@ class StrncpyBA extends BufferAccess {
129
result = this.(FunctionCall).getArgument(0) and
130
bufferDesc = "destination buffer" and
131
accessType = 2
132
- // Ignore this case as reading past the source null terminator is not the behavior of strncpy
133
- // or
134
- // result = this.(FunctionCall).getArgument(1) and
135
- // bufferDesc = "source buffer" and
136
- // accessType = 2
+ // NOTE, ignoring getting the source buffer (arg 1) since reading past the the source null terminator is not the behavior of strncpy
137
}
138
139
override Expr getSizeExpr() { result = this.(FunctionCall).getArgument(2) }
0 commit comments