Skip to content

Fix a crash on certain unicode strings#11

Open
silkeh wants to merge 1 commit intoZaryob:mainfrom
silkeh:fix-segfault-unicode
Open

Fix a crash on certain unicode strings#11
silkeh wants to merge 1 commit intoZaryob:mainfrom
silkeh:fix-segfault-unicode

Conversation

@silkeh
Copy link

@silkeh silkeh commented Jun 11, 2025

Certain unicode strings could cause a difference in calculation between escape_size and escape. This could cause a buffer overflow in escape, which would usually lead to a segfault.

This also fixes the the encoding of certain 2-byte unicode characters, which could previously trigger such a crash.

Certain unicode strings could cause a difference in calculation between `escape_size` and `escape`.
This could cause a buffer overflow in `escape`, which would usually lead to a segfault.

This also fixes the the encoding of certain 2-byte unicode characters,
which could previously trigger such a crash.
@Neustradamus
Copy link

Any progress on it?

cc: @Zaryob.

@Zaryob
Copy link
Owner

Zaryob commented Jul 20, 2025

I couldn't look at it because I was busy, but I will check it out and get back to you as soon as possible.

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.

3 participants