Hacker News new | ask | show | jobs
by nirmal 5934 days ago
This works most of the time because jpg files are decoded from the first byte until the last byte of the image. Any bytes after need not be inspected. Zip/rar are decompressed from the last byte going backwards. Again stopping as the final byte of the archive is seen.