Skip to content
Commit 4cf00a61 authored by Emil Gydesen's avatar Emil Gydesen Committed by Anas Nashif
Browse files

zephyr: Add zero-len check for utf8_trunc



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: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent a895abab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment