Skip to content

Two small fixes from fuzz testing.#208

Open
wesc wants to merge 2 commits into
StarlightSearch:mainfrom
filament-dm:auto-fuzz
Open

Two small fixes from fuzz testing.#208
wesc wants to merge 2 commits into
StarlightSearch:mainfrom
filament-dm:auto-fuzz

Conversation

@wesc
Copy link
Copy Markdown
Contributor

@wesc wesc commented May 26, 2026

  1. When docx-parser::MarkdownDocument receives corrupt or empty input, its from_file panics. We now catch these panics and convert them into Errors in FileProcessor::process_file.
  2. Statistical functions panic when given bad inputs, potentially causing _find_optimal_threshold to crash the process. _find_optimal_threshold now handles bad input safely, and we remove the panics from the math functions.

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.

1 participant