Skip to content

Commit

Permalink
Fixed CodeQL security findings (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgn42 authored Aug 31, 2022
1 parent 0564fd4 commit ed8b3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/eventlist/xml/scvd/scvd.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ func getOne(filename *string, events map[uint16]Event,
// create a components map indexed by "no" to speed up things
components := make(map[uint8]*GroupComponent)
for _, component := range viewer.Events.Group.Component {
var no int64
no, err = strconv.ParseInt(component.No, 0, 0)
var no uint64
no, err = strconv.ParseUint(component.No, 0, 8)
if err != nil {
break
}
Expand Down

0 comments on commit ed8b3fa

Please sign in to comment.