Skip to content

🐛 fix(fuzz): resolve four OSS-Fuzz reports - #1675

Merged
gaborbernat merged 5 commits into
tox-dev:mainfrom
gaborbernat:fix/fuzz-failures-20261110
Nov 11, 2026
Merged

gaborbernat merged 5 commits into
tox-dev:mainfrom
gaborbernat:fix/fuzz-failures-20261110

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Four recent OSS-Fuzz reports found an out-of-bounds write in phone recognition and failures in XML serialization, CLI text output, and selector translation. 🛡️ After this PR, the phone recognizer stops adding chunks at its capacity, XML comments keep their boundaries after invalid characters are removed, and the CLI writes text files without converting line endings.

Deeply nested XPath expressions now raise XPathDepthError, a ValueError subclass, when the parser's depth cap is hit. The selector check treats that error as out of scope, so the fuzzer does not report it as a translation difference.

CSS translation can produce XPath beyond the parser depth cap. Raise the
typed depth error used by evaluation so the selector oracle can reject
these inputs.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 11, 2026
@gaborbernat
gaborbernat merged commit 503ea4d into tox-dev:main Nov 11, 2026
56 of 57 checks passed
@codspeed

codspeed Bot commented Nov 11, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 25.15%

2 warnings

⚠️ 1 benchmark with a significant change ran on different hardware

Its base and head results were measured on machines with a different CPU, core count or memory, so the change might not come from the code. Run base and head on the same runner type.

Learn more about Macro Runners

See affected benchmarks

⚠️ 1 benchmark with a significant change ran in a different software environment

Its base and head results were measured with a different OS or toolchain, such as compiler, runtime or library versions, so the change might come from this difference rather than from the code. Open the benchmark to see what changed.

See affected benchmarks

⚡ 1 improved benchmark
✅ 581 untouched benchmarks
⏩ 89 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_feature[shadow-slot-comments] 137.5 µs 109.8 µs +25.15%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing gaborbernat:fix/fuzz-failures-20261110 (b8d4b68) with main (99a760b)

Open in CodSpeed

Footnotes

  1. 89 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat deleted the fix/fuzz-failures-20261110 branch November 11, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant