Roughsketch / imagesize

Quickly probe the size of various image formats without reading the entire file.
MIT License
57 stars 12 forks source link

JPEG images with an APPn section can break. #2

Closed Roughsketch closed 6 years ago

Roughsketch commented 7 years ago

If an APPn section contains a FF byte, it will potentially skip over the SOF0 section and go until the end of the buffer.

Roughsketch commented 6 years ago

I believe this is fixed with the newer version since I rewrote the JPEG handling. Closing this unless I find one where it breaks.