-
Notifications
You must be signed in to change notification settings - Fork 54
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
'attempt to add with overflow' during deflate. #74
Comments
Yeah seems similar. The backtrace points to line 0 in core.rs for some reason, so I will try to reproduce to find which variable overflows. |
Attempt to fix overflow panic when calling compress with a >4GB large slice. (#74)
Sorry for taking a while to try to solve this. Are you able to test if it works on the latest commit? I've changed the buffers to use usize for indexing, and it fixed the overflow when testing with a huge file for me, so hopefully it solves this too. |
Thanks for fixing it. I didn't test the library standalone,I got the error while building rustc itself (package step) . I'll try and update here. |
I'm also hitting this whilst compiling rustc - is it possible to publish the I'd like to submit a PR to flate2, then subsequently to rustc, fixing the overflow errors during |
Ah, thought I had put it up, seems I put up the c api part instead. |
cargo update -p miniz_oxide 0.3.7 includes a fix for Frommi/miniz_oxide#74 which solves a panic while generating rust distribution tarballs.
Found as part of the Rust compiler build.
miniz version - miniz_oxide-0.3.5
Rust version tag : release v1.41.1
Channel : nightly
config.toml
during x.py install
solana-labs/solana#5411 looks similar.
The text was updated successfully, but these errors were encountered: