Open vorot93 opened 6 years ago
I can not reproduce this locally with the linked image.
Running
$ cargo run --example decode -- ./store_cover.jpg -o ./store_cover.png
inside a jpeg-decoder
git clone completes successfully and the png output looks fine.
As it turns out the actual bytes received were incomplete because of an error in one of network crates. I have uploaded the version that consists of said bytes and fails - it is available through the same link.
Perhaps it should error anyway but not in such a cryptic way.
The JPEG decoder fails cryprically with several of broken images like this one:
std::io::read_exact()
returnsfailed to read whole buffer
error.Here's the backtrace from GDB: