Skip to content
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

Fix raqm_set_text_utf8/utf16 reading beyond len for multibyte #194

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

CallumDev
Copy link
Contributor

_raqm_u8_to_u32 and _raqm_u16_to_u32 were only incrementing in_len instead of increasing it by the amount of bytes/shorts read. Fix so raqm_set_text_utf8 and raqm_set_text_utf16 correctly interpret the len parameters as UTF-8 bytes/UTF-16 shorts

src/raqm.c Outdated Show resolved Hide resolved
src/raqm.c Outdated Show resolved Hide resolved
@khaledhosny khaledhosny merged commit 53167e1 into HOST-Oman:master Oct 9, 2024
5 checks passed
@khaledhosny
Copy link
Collaborator

Thanks!

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