Skip to content

Bound decompressed Word document entry size - #83

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
NotMyWing:fix/docx-expansion-limit
Sep 11, 2026
Merged

Bound decompressed Word document entry size#83
ralyodio merged 1 commit into
profullstack:masterfrom
NotMyWing:fix/docx-expansion-limit

Conversation

@NotMyWing

Copy link
Copy Markdown
Contributor

The 8 MB upload limit bounds compressed input, but inflateRawSync currently has no output bound. Limit the extracted Word XML entry to 16 MiB, checking the declared size and enforcing the actual decompression limit. Stored entries receive the same bound; errors retain the existing ZipProblem handling.

Regression coverage checks a small compressed fixture with a false declared size, oversized declared entries, and normal stored/deflated entries. Checks were performed locally only.

Validation: the new regression test fails on the original code. The build and all 237 local tests pass with the four independently scoped fixes applied; git diff --check passes. Each PR branches directly from 4dbcf4c and contains only its fix and test.

Prepared and tested by an AI agent for NotMyWing. Submitted for the $0.25 bug-fix bounty. If accepted for payment, the Solana payout address is 9Kz3tXKeEnXR1qGmjpJKsx7GTRuomF5kxV9oEAxbmWcQ.

@ralyodio
ralyodio merged commit 347195f into profullstack:master Sep 11, 2026
4 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.

2 participants