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

Prevent OOB reads in lv_txt_utf8_next #55

Open
wants to merge 1 commit into
base: zephyr
Choose a base branch
from

Conversation

PwnVerse
Copy link

Description

The root cause of the bug is the assumption that the pointer *i always refers to a valid position within the null-terminated string txt. However, in cases where *i exceeds the string bounds or encounters a null terminator unexpectedly, the code performs invalid memory accesses.

@faxe1008
Copy link
Contributor

@PwnVerse thanks for the fix. I have raised this upstream issue:
lvgl/lvgl#7602

Also: your PR is targeting the zephyr branch (which is at 8.4.0). We transitioned to tracking the upstream master instead, which is 9.2.x. There will not be any more 8.4.0 releases.

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