mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
C++: No need to select the 'instruction' as the sink when the dataflow node has a better 'toString'.
This commit is contained in:
@@ -540,6 +540,6 @@ where
|
||||
offset = pai.getRight().getUnconvertedResultExpression() and
|
||||
n = source.getNode() and
|
||||
if k = 0 then kstr = "" else kstr = " + " + k
|
||||
select sink.getNode().asInstruction(), source, sink,
|
||||
select sink.getNode(), source, sink,
|
||||
"This " + operation + " might be out of bounds, as the pointer might be equal to $@ + $@" + kstr +
|
||||
".", n, n.toString(), offset, offset.toString()
|
||||
|
||||
Reference in New Issue
Block a user