mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-02 22:30:20 -06:00
main gained a guard refusing truncated scans too short for their frame; this branch's own header check refused those files first with a different error. Drop it and widen main's guard instead: a complete file is measured on its length (the scan walk may stop early on odd marker layouts), a truncated one on its scan data as before. A frame needs at least a one-bit DC code per 8x8 block, so 2048 pixels a byte stays far above any real JPEG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>