Skip to content

Commit 0addb2d

Browse files
authored
Update IncorrectChangingWorkingDirectory.ql
1 parent c3b1d7e commit 0addb2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313

1414
import cpp
15+
import semmle.code.cpp.commons.Exclusions
1516

1617
/** Holds if a `fc` function call is available before or after a `chdir` function call. */
1718
predicate inExistsChdir(FunctionCall fcp) {
@@ -27,7 +28,7 @@ predicate inExistsChdir(FunctionCall fcp) {
2728
)
2829
}
2930

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. */
3132
predicate outExistsChdir(FunctionCall fcp) {
3233
exists(FunctionCall fctmp |
3334
exists(FunctionCall fctmp2 |

0 commit comments

Comments
 (0)