File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
cpp/ql/src/Security/CWE/CWE-078 Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,17 @@ module ExecTaintConfig implements DataFlow::StateConfigSig {
150150 predicate isBarrierOut ( DataFlow:: Node node ) {
151151 isSink ( node , _) // Prevent duplicates along a call chain, since `shellCommand` will include wrappers
152152 }
153+
154+ predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
155+
156+ Location getASelectedSinkLocation ( DataFlow:: Node sink ) {
157+ exists ( DataFlow:: Node concatResult , Expr command , ExecState state |
158+ result = [ concatResult .getLocation ( ) , command .getLocation ( ) ] and
159+ isSink ( sink , state ) and
160+ isSinkImpl ( sink , command , _) and
161+ concatResult = state .getOutgoingNode ( )
162+ )
163+ }
153164}
154165
155166module ExecTaint = TaintTracking:: GlobalWithState< ExecTaintConfig > ;
You can’t perform that action at this time.
0 commit comments