Skip to content

Inconsistent out of bounds errors #260

@sagikazarmark

Description

@sagikazarmark

The library currently handles out of bounds errors inconsistently:

  • Strings exceeding int64 and uint64 bounds will return an error (from strconv)
  • Strings exceeding other int/uint types won't return an error (unless it overflows int64/uint64) (no bit size in strconv)
  • Any other number conversions will silently overflow (which is how Go handles casting internally)

At least string parsing should be consistent.

Also see #171

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions