mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Update IncorrectChangingWorkingDirectory.ql
This commit is contained in:
@@ -36,6 +36,7 @@ predicate outExistsChdir(FunctionCall fcp) {
|
||||
fctmp2.getTarget().hasGlobalOrStdName("chdir") or
|
||||
fctmp2.getTarget().hasGlobalOrStdName("fchdir")
|
||||
) and
|
||||
// we are looking for a call containing calls chdir and fchdir
|
||||
fctmp2.getEnclosingStmt().getParentStmt*() = fctmp.getTarget().getEntryPoint().getChildStmt*()
|
||||
) and
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user