CPP: Make wordexp take an indirect argument.

This commit is contained in:
Alex Eyers-Taylor
2023-08-21 18:38:48 +01:00
parent a2f2b6c33f
commit 45ddb4832c

View File

@@ -40,7 +40,7 @@ module WordexpTaintConfig implements DataFlow::ConfigSig {
predicate isSink(DataFlow::Node sink) {
exists(FunctionCall fc | fc.getTarget() instanceof WordexpFunction |
fc.getArgument(0) = sink.asExpr() and
fc.getArgument(0) = sink.asIndirectArgument(1) and
not isCommandSubstitutionDisabled(fc)
)
}