mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Shared: Match line information on Alert and Sink locations.
This commit is contained in:
@@ -774,8 +774,10 @@ module TestPostProcessing {
|
||||
*/
|
||||
private string getSinkTag(int row) {
|
||||
getQueryKind() = "path-problem" and
|
||||
exists(string loc | queryResults(mainResultSet(), row, 4, loc) |
|
||||
if queryResults(mainResultSet(), row, 0, loc) then result = "Alert" else result = "Sink"
|
||||
exists(TestLocation sinkLoc, TestLocation selectLoc |
|
||||
mainQueryResult(row, 0, selectLoc) and
|
||||
mainQueryResult(row, 4, sinkLoc) and
|
||||
if sameLineInfo(selectLoc, sinkLoc) then result = "Alert" else result = "Sink"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user