Skip to content

Two small fixes from fuzz testing.#208

Merged
sonam-pankaj95 merged 2 commits into
StarlightSearch:mainfrom
filament-dm:auto-fuzz
Jun 8, 2026
Merged

Two small fixes from fuzz testing.#208
sonam-pankaj95 merged 2 commits into
StarlightSearch:mainfrom
filament-dm:auto-fuzz

Conversation

@wesc

@wesc wesc commented May 26, 2026

Copy link
Copy Markdown
Contributor
  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.

@sonam-pankaj95

Copy link
Copy Markdown
Collaborator

Thank you for your contributions.

@sonam-pankaj95 sonam-pankaj95 merged commit 11b6449 into StarlightSearch:main Jun 8, 2026
5 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