Repository navigation
feat(ocr): take sillybos 4, which holds a page to a ceiling on either side - #92
Merged
Merged
Conversation
… side sillybos 4.0.0 adds max_side, a bound on either side of any one image, frame, tile or rendered page. The pixel budget alone let through a page a few pixels wide and a million tall, which is what an abnormally tall TIFF needed to make libtiff write colour data to an arbitrary address (CVE-2025-9900). Tetrak's policy now sets it from a constant of its own, MAX_SIDE, at sillybos's default of 30,000: three times the longest side of an A3 page at 600 dpi, and no scan Tetrak has read comes near it. A test checks that a strip within the pixel budget is refused through open_image with the reason an operator can act on. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Deploying tetrak with
|
| Latest commit: |
6b692ac
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0229e6f5.tetrak.pages.dev |
| Branch Preview URL: | https://feat-sillybos-4.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.
What
Raises the sillybos pin from
>=3,<4to>=4,<5. sillybos 4.0.0 addsmax_side, a bound on either side of any one image, frame, tile or rendered page: the pixel budget alone let through a page a few pixels wide and a million tall, which is what an abnormally tall TIFF needed to make libtiff write colour data to an arbitrary address (CVE-2025-9900).imaging.MAX_SIDE = 30_000, passed into Tetrak's policy alongside the other constants. It is sillybos's own default, three times the longest side of an A3 page at 600 dpi, and no scan Tetrak has read comes near it.open_imagewith "300 pixels on its longest side; the limit is 250" once the constant is lowered to 250.Checks
The input-limit tests pass against sillybos 4.0.0 (13 of 13). The three failures in the full OCR suite on this Mac are the Vision backend's
ocrmacpackage being absent from the venv, unrelated to this change.🤖 Generated with Claude Code