Skip to content

feat(ocr): take sillybos 4, which holds a page to a ceiling on either side - #92

Merged
stephen-masters merged 1 commit into
mainfrom
feat/sillybos-4
Nov 1, 2026
Merged

stephen-masters merged 1 commit into
mainfrom
feat/sillybos-4

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

What

Raises the sillybos pin from >=3,<4 to >=4,<5. 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).

  • 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.
  • A test that a 20 x 300 strip is refused through open_image with "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 ocrmac package being absent from the venv, unrelated to this change.

🤖 Generated with Claude Code

… 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>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6b692ac
Status: ✅  Deploy successful!
Preview URL: https://0229e6f5.tetrak.pages.dev
Branch Preview URL: https://feat-sillybos-4.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 61b73aa into main Nov 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant