Skip to content

Commit ed8b3fa

Browse files
authored
Fixed CodeQL security findings (#5)
1 parent 0564fd4 commit ed8b3fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/eventlist/xml/scvd/scvd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ func getOne(filename *string, events map[uint16]Event,
147147
// create a components map indexed by "no" to speed up things
148148
components := make(map[uint8]*GroupComponent)
149149
for _, component := range viewer.Events.Group.Component {
150-
var no int64
151-
no, err = strconv.ParseInt(component.No, 0, 0)
150+
var no uint64
151+
no, err = strconv.ParseUint(component.No, 0, 8)
152152
if err != nil {
153153
break
154154
}

0 commit comments

Comments
 (0)