[python-docx] Add new project integration#15793
Open
MR-SS wants to merge 6 commits into
Open
Conversation
|
MR-SS is integrating a new project: |
Author
|
Hello, I am currently working on improving the fuzzer. After running it for 8 hours, I did not observe the performance/behavior I expected. I am now in the process of optimizing and enhancing it. Thank you. |
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.
Adds fuzzing integration for
python-docx, the foundational Python library for reading and writing Microsoft Word (.docx) files (30M+ monthly downloads).This integration implements an Atheris fuzzer that takes raw bytes, treats them as a
.docx(ZIP) stream, and forces deep traversal of the underlying XML AST.To maximize coverage and ensure the fuzzer does not halt on shallow ZIP corruption, all standard decompression errors (
zlib.error,EOFError,OSError,RuntimeError) are explicitly ignored, forcing the fuzzer to focus purely on XML memory exhaustion (OOM), infinite loops, and native crashes in thelxmlbindings.Proof of Value:
During local testing, this fuzzer successfully traversed the ZIP logic and discovered multiple unhandled edge cases where standard decompression errors bypassed the
PackageNotFoundErrorhandler and crashed the application. I have compiled these and reported them upstream here: