File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
cpp/ql/lib/semmle/code/cpp/security Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1717
1818import cpp
1919import PrintfLike
20- private import semmle.code.cpp.ir.dataflow.ResolveCall
2120
2221bindingset [ index]
2322private string toCause ( Function func , int index ) {
@@ -39,7 +38,7 @@ private predicate wrapperFunctionStep(
3938 source .hasDefinition ( ) and
4039 exists ( FunctionCall call , Expr arg , Parameter sourceParam |
4140 // there is a 'call' to 'target' with argument 'arg' at index 'targetParamIndex'
42- target = resolveCall ( call ) and
41+ target = call . getTarget ( ) and
4342 arg = call .getArgument ( targetParamIndex ) and
4443 // 'call' is enclosed in 'source'
4544 source = call .getEnclosingFunction ( ) and
@@ -155,7 +154,7 @@ abstract class FunctionWithWrappers extends Function {
155154 */
156155 predicate outermostWrapperFunctionCall ( Expr arg , string callChain ) {
157156 exists ( Function targetFunc , FunctionCall call , int argIndex |
158- targetFunc = resolveCall ( call ) and
157+ targetFunc = call . getTarget ( ) and
159158 this .wrapperFunction ( targetFunc , argIndex , callChain ) and
160159 (
161160 exists ( Function sourceFunc | sourceFunc = call .getEnclosingFunction ( ) |
You can’t perform that action at this time.
0 commit comments