Skip to content

fix(render): prevent footnote and link syntax from exposing HTML - #87

Merged
chaliy merged 1 commit into
mainfrom
codex/fix-fuzz-release
Nov 26, 2026
Merged

chaliy merged 1 commit into
mainfrom
codex/fix-fuzz-release

Conversation

@chaliy

@chaliy chaliy commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Prevent footnote references followed by colons from becoming reference-link definitions. Escape table-title pipes/backticks and encode URL backticks so malformed links cannot expose raw HTML from later code spans.

Why

The latest nightly fuzz run found S17 violations in HTML, Markdown and arbitrary IR rendering. Fix them before the patch release.

Before / After

Before: all three downloaded crash inputs fail deterministic safety regressions (raw HTML or an unapproved URL scheme).
After: 57 output-safety tests and 11 HTML golden fixtures pass. CLI smoke output preserves the table, encodes the URL backtick as %60, escapes title pipes/backticks, and retains <table> inside code.

Validation: just pre-pr passed (workspace tests, lint, knowledge/script checks, examples, dependency/license policy). Strict scheme oracle, exact crash seeds and minimized IR fixture retained. Knowledge and changelog updated.

Risk

  • Low: escaping changes Markdown source spelling while preserving intended visible content and destinations.

Checklist

  • Tests added or updated
  • Backward compatibility considered

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@chaliy
chaliy merged commit ff401b7 into main Nov 26, 2026
26 checks passed
@chaliy chaliy mentioned this pull request Nov 26, 2026
2 tasks done
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