mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
C++: Fix DefinitionByReferenceNode.toString
This predicate now has a value also for calls to function pointers.
This commit is contained in:
@@ -246,6 +246,9 @@ class DefinitionByReferenceNode extends InstructionNode {
|
|||||||
result =
|
result =
|
||||||
instr.getPrimaryInstruction().(CallInstruction).getStaticCallTarget().getName() +
|
instr.getPrimaryInstruction().(CallInstruction).getStaticCallTarget().getName() +
|
||||||
" output argument"
|
" output argument"
|
||||||
|
or
|
||||||
|
not exists(instr.getPrimaryInstruction().(CallInstruction).getStaticCallTarget()) and
|
||||||
|
result = "output argument"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user