Skip to content

Commit 13a5c61

Browse files
committed
ERR33-C: library can access stdin by reference
1 parent 01661b9 commit 13a5c61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c/cert/src/rules/ERR33-C/DetectAndHandleStandardLibraryErrors.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ ControlFlowNode ferrorNotchecked(FileWriteFunctionCall write) {
441441
not isShortCircuitedEdge(mid, result) and
442442
result = mid.getASuccessor() and
443443
//Stop recursion on call to ferror on the correct file
444-
not accessSameTarget(result.(FerrorCall).getArgument(0), write.getFileExpr())
444+
not sameFileSource(result.(FerrorCall), write)
445445
)
446446
}
447447

0 commit comments

Comments
 (0)