Skip to content

Commit 62b3c3c

Browse files
authored
Update IncorrectChangingWorkingDirectory.ql
1 parent 738354b commit 62b3c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-243/IncorrectChangingWorkingDirectory.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ where
6363
fc.getTarget().hasGlobalOrStdName("chdir") or
6464
fc.getTarget().hasGlobalOrStdName("fchdir")
6565
) and
66-
fc instanceof ExprInVoidContext
66+
fc instanceof ExprInVoidContext and
6767
not isFromMacroDefinition(fc) and
6868
msg = "Unchecked return value for call to '" + fc.getTarget().getName() + "'."
6969
select fc, msg

0 commit comments

Comments
 (0)