Skip to content

Commit 9ffb3ff

Browse files
committed
Go: IncorrectIntegerConversion
1 parent 9bcf7c5 commit 9ffb3ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

go/ql/lib/semmle/go/security/IncorrectIntegerConversionLib.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,10 @@ private module ConversionWithoutBoundsCheckConfig implements DataFlow::StateConf
441441
DataFlow::simpleLocalFlowStep(node1, node2, _)
442442
}
443443

444-
predicate observeDiffInformedIncrementalMode() {
445-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 selects sink.getASuccessor (/Users/d10c/src/semmle-code/ql/go/ql/src/Security/CWE-681/IncorrectIntegerConversionQuery.ql@26:8:26:20)
444+
predicate observeDiffInformedIncrementalMode() { any() }
445+
446+
Location getASelectedSinkLocation(DataFlow::Node sink) {
447+
result = sink.getASuccessor().getLocation()
446448
}
447449
}
448450

0 commit comments

Comments
 (0)