Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return an error if the buffer is too large. #354

Merged
merged 1 commit into from
Oct 10, 2024

Commits on Oct 9, 2024

  1. Return an error if the buffer is too large.

    So far, we would cast a uint64 to a int32 but that may result in an
    integer overflow if the uint64 cannot fit into the int32.  Since GoBytes
    does not support buffer sizes of type uint64, the next best thing to do
    is return an error if the given buffer is too large.
    NullHypothesis committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    d7466d5 View commit details
    Browse the repository at this point in the history