Repository navigation
fix(research): pin bounded PDF Brotli decoder - #1246
Merged
Merged
Conversation
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.
Summary
Pin Maple Research's PDF reader to the bounded
pdf_oxidedecoder in OpenSecretCloud/pdf_oxide#3.The dependency change rejects Brotli's nonstandard large-window header before its reader can allocate a very large ring buffer, and caps decoded stream output at the existing PDFOxide FlateDecode limit. This is a PDF resource-exhaustion fix. It does not claim that Maple's Rust decoder has Google's C decoder memory-corruption CVE-2026-111497.
Scope
pdf_oxidegit revision in Maple Research'sCargo.tomlandCargo.lock.2bc9246782fe874a97e57e348acc7a9eaa27ca4d, now contained inmaple-0.3.74at merge commitc4aa3c184113cae9f9daf104c32c87886e0e5440.Validation
cargo test --locked --release --lib decoders::brotli::tests— 4 passed; formatting check passed.cargo test --locked --lib pdf_extractor::tests— 14 passed, 1 model-backed OCR test ignored.extract_document_content_implreturned ordinary errors for both malformed PDFs, then extracted text from the valid PDF. The temporary test and fixtures were not committed. The GUI file picker and packaged app runtime were not exercised.cargo metadata --locked,cargo fmt --check, andcargo test --locked --all-targets— passed (427 library tests and 3 binary tests; 2 ignored).git diff --check— passed.Need help on this PR? Tag
@codesmith-botwith what you need.