Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94ff2e5 commit 605db44Copy full SHA for 605db44
1 file changed
cpp/ql/src/semmle/code/cpp/models/implementations/Printf.qll
@@ -203,7 +203,7 @@ class Syslog extends FormattingFunction {
203
this instanceof TopLevelFunction and (
204
hasGlobalName("syslog")
205
) and
206
- not hasDefinition()
+ not exists(getDefinition().getFile().getRelativePath())
207
}
208
209
override int getFormatParameterIndex() { result=1 }
0 commit comments