Skip to content

fix: don't panic on quoted Reference URIs - #118

Merged
adamdecaf merged 1 commit into
masterfrom
fix-quoted-reference-uri-panic
Aug 13, 2026
Merged

fix: don't panic on quoted Reference URIs#118
adamdecaf merged 1 commit into
masterfrom
fix-quoted-reference-uri-panic

Conversation

@adamdecaf

Copy link
Copy Markdown
Member

Summary

The scheduled fuzzer crashed in run 31659873348 with:

panic: etree: path has mismatched filter quotes

findReferencedElement interpolated the Reference URI into an etree path (.//[@ID='%s']). A quote in the URI made FindElement / MustCompilePath panic.

Look up referenced elements by walking attribute values instead, and save the crashing input in the fuzz corpus.

Test plan

  • go test ./...
  • go test -run=FuzzValidator/9f0b5d517ccd5fef
  • go test -run='TestReferenceURIWithQuoteDoesNotPanic|TestValidatorQuotedReferenceURI'

Interpolating a Reference URI into an etree path made FindElement
panic when the URI contained a quote. Look up referenced elements
by attribute value instead, and save the crashing fuzzer input.
@adamdecaf
adamdecaf merged commit b2b0d1f into master Aug 13, 2026
3 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.

1 participant