Skip to content

Commit a9c3dd7

Browse files
committed
fix: add index range check for isa frequencies in getSpecFrequencyBuckets
Signed-off-by: Harper, Jason M <[email protected]>
1 parent a4a3b4e commit a9c3dd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/report/table_helpers.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ func getSpecFrequencyBuckets(outputs map[string]script.ScriptOutput) ([][]string
357357
if isaFreqs[0] == "0.0" {
358358
continue
359359
} else {
360+
if i >= len(isaFreqs) {
361+
return nil, fmt.Errorf("index out of range for isa frequencies")
362+
}
360363
row = append(row, isaFreqs[i])
361364
}
362365
}

0 commit comments

Comments
 (0)