commit | 4cf00a6125e828caef9851a4569646ff118e617f | [log] [tgz] |
---|---|---|
author | Emil Gydesen <emil.gydesen@nordicsemi.no> | Tue Jun 25 13:08:08 2024 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Jun 27 08:48:31 2024 -0400 |
tree | 6e1c775ecc552d88caf6caf3ea416b61b944d7ca | |
parent | a895abab8635fd306679091b287c5cc52ccfde42 [diff] |
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: Emil Gydesen <emil.gydesen@nordicsemi.no>