Skip to content

Commit 9e11770

Browse files
committed
C++: mustwrite = false.
1 parent 88193dd commit 9e11770

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Strcpy.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class StrcpyFunction extends ArrayFunction, DataFlowFunction, TaintFunction, Sid
8383
override predicate hasSpecificWriteSideEffect(ParameterIndex i, boolean buffer, boolean mustWrite) {
8484
i = 0 and
8585
buffer = true and
86-
mustWrite = true
86+
mustWrite = false
8787
}
8888

8989
override predicate hasSpecificReadSideEffect(ParameterIndex i, boolean buffer) {

0 commit comments

Comments
 (0)