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

Improve checking of *out_size in rans4x16 & arith #127

Merged
merged 1 commit into from
Sep 4, 2024

Commits on Sep 4, 2024

  1. Improve checking of *out_size in rans4x16 & arith

    These should be set to a minimum of at least rans_compress_bound_4x16()
    or arith_compress_bound()  but as they're user supplied parameters we
    ought to consider the possibility of them being smaller and the
    potential for an encode failure.  (Although arguably it's a user error
    too as we're not using the API as intended.)
    
    This happens in many places, but not consistently when very small
    sizes are given such that we don't have room for the compression
    header meta-data.
    jkbonfield committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    027ebf6 View commit details
    Browse the repository at this point in the history