mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 00:34:25 +00:00
An Exif signature inside a COM segment was taken for the EXIF APP1, and the copy was checked only against the end of the file, so a replacement longer than the APP1 overwrote the next marker. Walk the header segments to the first EXIF APP1 and copy only within its declared length.