Skip to content

Bound HTML entity scanning to prevent denial of service - #29

Merged
sudo-py-dev merged 1 commit into
mainfrom
coderabbit/bound-entity-decoding-scan/7a96a420
Nov 9, 2026
Merged

sudo-py-dev merged 1 commit into
mainfrom
coderabbit/bound-entity-decoding-scan/7a96a420

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Limit entity terminator searches in src/office.rs to 11 bytes, preventing quadratic scanning of repeated unterminated entities while preserving the 10-byte entity-name limit and UTF-8 safety.

Add regression tests for valid and malformed entities, length boundaries, multibyte text, and HTML containing one million ampersands with varied suffixes.

Validation: Tests were not run.

View coding task

<!-- coderabbit-ai-generated:v1 -->
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d36d161-caa6-442c-87d9-b9cef2ffb44e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@sudo-py-dev
sudo-py-dev merged commit 64dfec2 into main Nov 9, 2026
8 checks passed
@sudo-py-dev
sudo-py-dev deleted the coderabbit/bound-entity-decoding-scan/7a96a420 branch November 9, 2026 11:59
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