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 c3b1d7e commit 0addb2dCopy full SHA for 0addb2d
cpp/ql/src/experimental/Security/CWE/CWE-243/IncorrectChangingWorkingDirectory.ql
@@ -12,6 +12,7 @@
12
*/
13
14
import cpp
15
+import semmle.code.cpp.commons.Exclusions
16
17
/** Holds if a `fc` function call is available before or after a `chdir` function call. */
18
predicate inExistsChdir(FunctionCall fcp) {
@@ -27,7 +28,7 @@ predicate inExistsChdir(FunctionCall fcp) {
27
28
)
29
}
30
-/** Holds if a `fc` function call is available before or before a function call containing a `chdir` call. */
31
+/** Holds if a `fc` function call is available before or after a function call containing a `chdir` call. */
32
predicate outExistsChdir(FunctionCall fcp) {
33
exists(FunctionCall fctmp |
34
exists(FunctionCall fctmp2 |
0 commit comments