Skip to content

Commit acac3a0

Browse files
committed
C++: Respond to review comments.
1 parent 6965cf7 commit acac3a0

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

cpp/ql/lib/semmle/code/cpp/models/implementations/Fopen.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ private class Fopen extends Function, AliasFunction, SideEffectFunction, TaintFu
4949
}
5050

5151
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
52-
this.hasGlobalOrStdName(["fopen", "freopen", "_wfopen", "_fsopen", "_wfsopen"]) and
52+
(
53+
this.hasGlobalOrStdName(["fopen", "freopen"]) or
54+
this.hasGlobalName(["_wfopen", "_fsopen", "_wfsopen"])
55+
) and
5356
input.isParameterDeref(0) and
5457
output.isReturnValueDeref()
5558
or

0 commit comments

Comments
 (0)