-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Backport 3.6: zephyr: Add zero-len check for utf8_trunc #78286
Backport 3.6: zephyr: Add zero-len check for utf8_trunc #78286
Conversation
The function did not check if the provided string had a zero length before starting to truncate, which meant that last_byte_p could possible have pointed to the value before the string. Signed-off-by: Emil Gydesen <[email protected]>
The backport fails testing due to relying on some test functions added by #73841 Should I also backport the test functions, or should I just remove the test from the backport? |
@ceolin @henrikbrixandersen what do you suggest for the failing tests? Pull in the test dependencies, or remove the test? |
@Thalley imho just the fix is enough. |
Either is fine by me, but the simpler solution would be to not backport the tests. |
9d6ff14
to
1818d7a
Compare
Removed the test |
2c2540e
into
zephyrproject-rtos:v3.6-branch
Backports #74949
Fixes: #77956
Fixes: #77957