You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to #13, but not caused by a misuse of the API, it can happen whenever the input is invalid.
The only times it doesn't happen is when the error isn't reported at all (#20).
; cat examples/compress.rs
use std::io::{self, Write};
fn main() {
let compressed = b"xxxxxxxxxxx";
if let Err(e) = brotli_decompressor::writer::DecompressorWriter::new(io::stdout(), 1024).write(compressed) {
eprintln!("{}", e);
}
}
; cargo run --example compress -q; echo $?
Invalid Data
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/jnelson/work/rust-brotli-decompressor/src/writer.rs:260:88
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
101
The text was updated successfully, but these errors were encountered:
jongiddy
added a commit
to jongiddy/rust-brotli-decompressor
that referenced
this issue
Dec 8, 2022
Dropping a `DecompressorWriterCustomIo` needs to call a version of
`close` that does not take the `error_if_invalid_data` object. At drop
time, this object may already have been taken in the `write` call.
Fixesdropbox#21
This is similar to #13, but not caused by a misuse of the API, it can happen whenever the input is invalid.
The only times it doesn't happen is when the error isn't reported at all (#20).
The text was updated successfully, but these errors were encountered: