mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +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 =
|
||||
instr.getPrimaryInstruction().(CallInstruction).getStaticCallTarget().getName() +
|
||||
" output argument"
|
||||
or
|
||||
not exists(instr.getPrimaryInstruction().(CallInstruction).getStaticCallTarget()) and
|
||||
result = "output argument"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user