google / wuffs

Wrangling Untrusted File Formats Safely
Other
4.06k stars 129 forks source link

PNG decoder won't decode partial images #71

Closed pjanx closed 2 years ago

pjanx commented 2 years ago

wuffs_base__image_decoder__decode_frame() yields with a "short read" for truncated images even with a closed source buffer, and doesn't write any pixel data in this case. libpng does, as I have tested through gdk-pixbuf.

pjanx commented 2 years ago

Thanks.