Closed catenacyber closed 6 months ago
One fix may be in inflate_loop
Instead of
if (status as i32) < 0 {
return Err(MZError::Data);
}
add a check before like
if (status == TINFLStatus::FailedCannotMakeProgress) && orig_in_len == 0 {
return Err(MZError::Buf);
}
Thanks for bringing this up!
To me it seems that rather than making this specific case work by adjusting inflate_loop
, miniz_oxide
should be changed to report results similarly to zlib
.
If you agree, this issue could be closed in favour of a similar one over at miniz_oxide
. Maybe I am missing something though.
miniz_oxide should be changed to report results similarly to zlib.
I agree.
Maybe I am missing something though.
Maybe I am missing something as well (like I should not use a Vec but another structure)
If you agree, this issue could be closed in favour of a similar one over at miniz_oxide.
Did you open one there already ? Or should I (next year) ?
Did you open one there already ? Or should I (next year) ?
I'd be grateful if you would open the issue and manage it whenever you get the chance. Thanks a lot!
Closing in favor of https://github.com/Frommi/miniz_oxide/issues/143
Using code
And Cargo.toml
panicks
While Cargo.toml
succeeds in printing Hello
@alexcrichton this example comes from https://datatracker.ietf.org/doc/html/rfc7692#section-7.2.3.1