Repository navigation
fix(imaging): stop sending scanned PDFs to triage as JavaScript, with sillybos 6.0.3 - #114
Merged
Merged
Conversation
… sillybos 6.0.2 sillybos before 6.0.2 took the three bytes /JS anywhere in a PDF for a script, and megabytes of compressed page images spell them by chance. Long scanned PDFs went to the triage queue as "a PDF with JavaScript", and so did ten of the searchable PDFs this package wrote into workspace/processed, when read back in. 6.0.2 counts /JS only beside the name of an action that can carry a script. Raises the floor from >=6 to >=6.0.2, so that an upgrade brings the fix with it, and the lock from 6.0.1 to 6.0.2. All 1,645 scans in this checkout, the Armenian evaluation pages and one book's page frames now pass; the only verdicts that changed are those ten. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Deploying tetrak with
|
| Latest commit: |
ef370b5
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://0e7a4e50.tetrak.pages.dev |
| Branch Preview URL: | https://fix-sillybos-6-0-2.tetrak.pages.dev |
6.0.3 reads a PDF name whole wherever a read boundary falls. It changes no verdict for Tetrak's policy, which refuses no image codec: all 1,645 scans Tetrak reads pass as they do on 6.0.2. The floor stays at 6.0.2, the release that stopped the false JavaScript refusals. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The floor now matches the lock, so an upgrade from PyPI gets the same release a checkout does: the false JavaScript refusals fixed in 6.0.2 and the PDF name scan fixed in 6.0.3. Co-authored-by: Yvette Mankerian <yvettekm@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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 floor from
>=6to>=6.0.3, and the lock from 6.0.1 to 6.0.3.Why
sillybos before 6.0.2 took the three bytes
/JSanywhere in a PDF for a script. Megabytes of compressed page images spell those bytes by chance, so a long scanned PDF could go to the triage queue as "a PDF with JavaScript" when it held none. The chance grows with the size of the file. 6.0.2 counts/JSonly beside the name of an action that can carry a script.What changes for a run
workspace/processedwere refused when read back in. All ten now pass.Why the floor and not only the lock
The lock decides what a checkout and CI install. The floor decides what someone upgrading
tetrakfrom PyPI gets. Without it, an environment that already holds sillybos 6.0.0 or 6.0.1 keeps the false refusals. The fix for those came in 6.0.2; the floor is set at 6.0.3 so that it matches the lock and an upgrade gets the release a checkout does. Typed as afix, so merging cuts a patch release that carries the floor.What was checked
/JS(and expects it to be read. It fails on sillybos 6.0.1.ruff check,ruff format --check,uv lock --checkandpytest -m "not slow"pass locally, apart from the threetest_vision.pytests that need thevisionextra on a Mac.🤖 Generated with Claude Code