Merge pull request #21209 from jketema/jketema/sql

C++: Simplify `cpp/sql-injection` barrier
This commit is contained in:
Jeroen Ketema
2026-01-23 13:33:19 +01:00
committed by GitHub

View File

@@ -45,9 +45,7 @@ module SqlTaintedConfig implements DataFlow::ConfigSig {
predicate isBarrier(DataFlow::Node node) {
node.asExpr().getUnspecifiedType() instanceof IntegralType
}
predicate isBarrierIn(DataFlow::Node node) {
or
exists(SqlBarrierFunction sql, int arg, FunctionInput input |
node.asIndirectArgument() = sql.getACallToThisFunction().getArgument(arg) and
input.isParameterDeref(arg) and