Skip to content

Stop parsing unknown value tokens#9

Merged
uesleibros merged 1 commit into
vbacollective:mainfrom
iDavi:agent/stop-on-invalid-token
Jul 9, 2026
Merged

Stop parsing unknown value tokens#9
uesleibros merged 1 commit into
vbacollective:mainfrom
iDavi:agent/stop-on-invalid-token

Conversation

@iDavi

@iDavi iDavi commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • terminate parsing when a value begins with an unsupported character

Root cause

ParseValue left m_Index unchanged for unknown leading characters. Object and array loops could re-enter at the same position indefinitely.

Validation

  • inspected control flow for {x}, [x], and {"a":x}; each now reaches end-of-input deterministically
  • no VBA runtime or test suite is available in this environment

Closes #6

@uesleibros uesleibros marked this pull request as ready for review July 9, 2026 22:31
@uesleibros uesleibros merged commit e1aa3fd into vbacollective:main Jul 9, 2026
1 check 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.

bug(ParseValue): malformed tokens with an unknown leading character can stall parsing

2 participants