Removing commented out code and altering comments to explain why the code was removed.

This commit is contained in:
REDMOND\brodes
2024-09-04 12:44:36 -04:00
parent cc953c87d9
commit 77b88afa9e

View File

@@ -129,11 +129,7 @@ class StrncpyBA extends BufferAccess {
result = this.(FunctionCall).getArgument(0) and
bufferDesc = "destination buffer" and
accessType = 2
// Ignore this case as reading past the source null terminator is not the behavior of strncpy
// or
// result = this.(FunctionCall).getArgument(1) and
// bufferDesc = "source buffer" and
// accessType = 2
// NOTE, ignoring getting the source buffer (arg 1) since reading past the the source null terminator is not the behavior of strncpy
}
override Expr getSizeExpr() { result = this.(FunctionCall).getArgument(2) }