mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
Update IncorrectChangingWorkingDirectory.ql
This commit is contained in:
@@ -50,6 +50,7 @@ where
|
||||
fc.getTarget().hasGlobalOrStdName("chroot") and
|
||||
not inExistsChdir(fc) and
|
||||
not outExistsChdir(fc) and
|
||||
// in this section I want to exclude calls to functions containing chroot that have a direct path to chdir, or to a function containing chdir
|
||||
exists(FunctionCall fctmp |
|
||||
fc.getEnclosingStmt().getParentStmt*() = fctmp.getTarget().getEntryPoint().getChildStmt*() and
|
||||
not inExistsChdir(fctmp) and
|
||||
|
||||
Reference in New Issue
Block a user