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