-
Notifications
You must be signed in to change notification settings - Fork 5.7k
go_to_line: Avoid byte slicing crash in short status labels #40963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance we can have a test for this?
|
Hi @SomeoneToIgnore , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_first_char_extraction_utf8_safetyhas already tested the fixed core logic
Whatever it tested, it was not panicking, right?
My point is to recreate a panic that we fix in a separate test: otherwise it might come back later, because nothing ensures it's not broken.
Thank you for adding the new test, but this test does not fail on main for me — which means that we're not recreating a panic that we fix yet.
Signed-off-by: Xiaobo Liu <[email protected]>
|
In Introduce the |
Signed-off-by: Xiaobo Liu <[email protected]>
|
Sorry, this doesn't actually seem to be a bug, nor is it related to the crash reported. Thanks for your submission! |
Yes I did, did not you see that in the diff provided here: ?
is unchanged there. Can you provide me a diff that I can |
|
You're right, I've analyzed it and it was indeed my mistake. I'm sorry for the trouble. |



Closes #40962
Release Notes: