Merge pull request #20059 from MathiasVP/no-more-as-expr-inUncontrolledProcessOperation

C++: Reduce duplication in `cpp/uncontrolled-process-operation`
This commit is contained in:
Jeroen Ketema
2025-07-15 21:17:08 +02:00
committed by GitHub

View File

@@ -23,7 +23,7 @@ predicate isProcessOperationExplanation(DataFlow::Node arg, string processOperat
exists(int processOperationArg, FunctionCall call |
isProcessOperationArgument(processOperation, processOperationArg) and
call.getTarget().getName() = processOperation and
call.getArgument(processOperationArg) = [arg.asExpr(), arg.asIndirectExpr()]
call.getArgument(processOperationArg) = arg.asIndirectExpr()
)
}