Skip to content

pdf-content-stream: best-effort parse corrupted streams#156

Merged
Velli20 merged 1 commit into
mainfrom
cs-recovery
May 16, 2026
Merged

pdf-content-stream: best-effort parse corrupted streams#156
Velli20 merged 1 commit into
mainfrom
cs-recovery

Conversation

@Velli20
Copy link
Copy Markdown
Owner

@Velli20 Velli20 commented May 16, 2026

Make content-stream parsing recover from malformed tokens, operator syntax, and inline images without aborting the full stream. Recovery now clears pending operands, guarantees cursor progress, and lets later operators parse normally.

Update the content-stream API docs and tests to reflect that syntax corruption is skipped best-effort, while resolution and decoding errors remain fatal.

Make content-stream parsing recover from malformed tokens,
operator syntax, and inline images without aborting the full
stream. Recovery now clears pending operands, guarantees cursor
progress, and lets later operators parse normally.

Update the content-stream API docs and tests to reflect that
syntax corruption is skipped best-effort, while resolution and
decoding errors remain fatal.

Co-authored-by: Codex <codex@openai.com>
@Velli20 Velli20 merged commit 7c5c230 into main May 16, 2026
4 checks passed
@Velli20 Velli20 deleted the cs-recovery branch May 16, 2026 04:30
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.

2 participants