Prevent infinite loop in unstable AST JSDoc scanner - #1
Conversation
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Claim check for #1 — 2 of 5 claims checked · 2 presentClaims vs diff (5)
Attention (2)
Author attestation — draft, confirm or editWhat changed: Guard both identifier parts and hyphens with Confirm attestation in Antelier After confirmation, each answer is checked against the same diff as the PR claims. Rules applied (2) · Provenance · Not read (21 lines)
Rule version Generated by Antelier. Every citation resolves to diff bytes; no human has reviewed these results. |
The unstable AST JSDoc scanner could loop indefinitely when a scan range ended immediately after
-, because the range check did not guard the full identifier condition.Changes
pos < end:x-reaches EOF and preserves the expected tokens.