Repository navigation
feat(imaging): refuse a file whose tags claim more data than it holds, with sillybos 6 - #113
Merged
Merged
Conversation
…, with sillybos 6 Raises the pin from >=5,<6 to >=6,<7 and the lock from 5.0.0 to 6.0.1. sillybos 6.0.0 refuses by default a TIFF, or the EXIF block of a JPEG or PNG, whose tags claim more data between them than the file holds: thousands of tags pointing at the same bytes, which cost Pillow 1.6 GB to open a 144 KB file (CVE-2026-128066). No writer produces such a file; one now goes to the triage queue with the reason. 6.0.1 also refuses a JPEG with a second frame header before its image data, whose size Pillow would report from the wrong header. 5.1.0's policy on a greyscale or palette TIFF's spare samples comes with it and stays at its default, which allows them (CVE-2026-128067). That flaw needs the opened TIFF saved back with its tag table, and Tetrak saves only copies of a frame and PNGs: a carrier file saves cleanly through both, on a Pillow whose floor here already has the fix. All 1,645 scans in this checkout, the Armenian evaluation pages and one book's page frames get the same verdict from 5.0.0 and 6.0.1. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Deploying tetrak with
|
| Latest commit: |
8a8674d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d68326d8.tetrak.pages.dev |
| Branch Preview URL: | https://feat-sillybos-6.tetrak.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raises the sillybos pin from
>=5,<6to>=6,<7, and the lock from 5.0.0 to 6.0.1. Three sillybos releases come with it.What changes for a run
page_documents) and PNGs (orientation), and a carrier file saves cleanly through both. The Pillow floor here (>=13.0) already has the fix as well.What was checked
InputRefusedErrorwith sillybos's reason.ruff check,ruff format --check,uv lock --checkandpytest -m "not slow"pass locally, apart from threetest_vision.pytests that fail on a Mac without thevisionextra installed; they fail the same way onmain's code.uv lock --upgrade-package sillyboschanged only the sillybos entry inuv.lock.🤖 Generated with Claude Code