WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@CakesStuff
Copy link

The previous memset used an incorrect variable causing various issues with single line comments.

The previous memset used an incorrect variable causing various issues with single line comments.
@BugByteBender
Copy link

BugByteBender commented Aug 25, 2025

Oh, dear @CakesStuff did you say about this?

This should use row->rsize instead of row->size, since row->hl is allocated based on row->rsize (the rendered size), not the original size. The fix is simply using the correct length - no null termination needed since this isn't string data.

Someone should apply this patch, because this can occur during normal editing operations.

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.

2 participants