You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 335eed9
Browse filesBrowse the repository at this point in the historyBrowse files
fix(sanitize): bound destination scans to eliminate quadratic sanitization
Bound the forward scans in inlineDestinationSpan, referenceLinkDestinationSpan,
and angleAutoLinkSpan to maxLinkDestinationLength so malformed/unterminated
candidates fail fast instead of scanning to end-of-input on every call.
Also reject a reference-link bare destination when parenthesis depth is
nonzero at termination, so unbalanced destinations are left for hidden-content
neutralization rather than incorrectly masked.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 69c5ab30-9815-4c07-8385-11a206e68f66
0 commit comments