Skip to content

Commit

Permalink
fix potential overflow (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsachiherman authored Oct 19, 2023
1 parent 37379dd commit f41b84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/events/cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func ParseCursor(input string) (Cursor, error) {
parsed := toid.Parse(idInt)

// Parse the second part (event order)
eventOrder, err := strconv.ParseInt(parts[1], 10, 64) //lint:ignore gomnd
eventOrder, err := strconv.ParseUint(parts[1], 10, 32) //lint:ignore gomnd
if err != nil {
return Cursor{}, fmt.Errorf("invalid event id %s: %w", input, err)
}
Expand Down

0 comments on commit f41b84e

Please sign in to comment.