We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738354b commit 62b3c3cCopy full SHA for 62b3c3c
cpp/ql/src/experimental/Security/CWE/CWE-243/IncorrectChangingWorkingDirectory.ql
@@ -63,7 +63,7 @@ where
63
fc.getTarget().hasGlobalOrStdName("chdir") or
64
fc.getTarget().hasGlobalOrStdName("fchdir")
65
) and
66
- fc instanceof ExprInVoidContext
+ fc instanceof ExprInVoidContext and
67
not isFromMacroDefinition(fc) and
68
msg = "Unchecked return value for call to '" + fc.getTarget().getName() + "'."
69
select fc, msg
0 commit comments