Skip to content

Fix: Compiler freeze when using invalid token between doc comment and next statement/node#2381

Merged
timotheeguerin merged 3 commits into
microsoft:mainfrom
timotheeguerin:fix/doc-freeze
Sep 6, 2023
Merged

Fix: Compiler freeze when using invalid token between doc comment and next statement/node#2381
timotheeguerin merged 3 commits into
microsoft:mainfrom
timotheeguerin:fix/doc-freeze

Conversation

@timotheeguerin

@timotheeguerin timotheeguerin commented Sep 6, 2023

Copy link
Copy Markdown
Member

fix #2338

Issue was when parsing a list we'd get stuck when there is doc comment as the doc comment would change the tracking position and we wouldn't realize the parsing list is not making progress.

@github-actions

github-actions Bot commented Sep 6, 2023

Copy link
Copy Markdown
Contributor

Changes in this PR will be published to the following url to try(check status of TypeSpec Pull Request Try It pipeline for publish status):
Playground: https://cadlplayground.z22.web.core.windows.net/prs/2381/

Website: https://cadlwebsite.z1.web.core.windows.net/prs/2381/

@timotheeguerin
timotheeguerin enabled auto-merge (squash) September 6, 2023 22:36
@timotheeguerin
timotheeguerin merged commit af7fd4f into microsoft:main Sep 6, 2023
@timotheeguerin
timotheeguerin deleted the fix/doc-freeze branch March 4, 2025 18:33
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.

[compiler] Crash due to heap exhaustion

2 participants