fix(lexer): prevent panic on unterminated string literal#3005
Conversation
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (2)
π WalkthroughWalkthroughThe ChangesLexer unterminated-string panic fix
Estimated code review effortπ― 2 (Simple) | β±οΈ ~5 minutes Poem
π₯ Pre-merge checks | β 5β Passed checks (5 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA βοΈ β
|
|
I have read the CLA Document and I hereby sign the CLA |
Closes #3004
The DSL lexer panics with a slice-out-of-range on an unterminated string that ends in a backslash (smallest input:
"\), reachable via SchemaWrite. Clamp the final slice inlexStringto the input length. Adds a lexer test over several unterminated-string inputs that panics before this change and passes after.Summary by CodeRabbit