Skip to content
Commit 2c2540ee authored by Emil Gydesen's avatar Emil Gydesen Committed by Henrik Brix Andersen
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 a0c8a437
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment