zephyr/tests/unit
Peter Bigot 53762239c1 lib: cbprintf: fix mishandling of precision string output
If a precision flag is included for s formatting that bounds the
maximum output length, so we need to use strnlen rather than strlen to
get the amount of data to emit.  With that flag we can't expect there
to be a terminating NUL following the text to print.

Also fix handling of an empty precision, which should behave as if a
precision of zero was provided.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-12-18 08:23:24 -05:00
..
base64 cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00
cbprintf lib: cbprintf: fix mishandling of precision string output 2020-12-18 08:23:24 -05:00
crc cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00
intmath cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00
list Revert "tests: dlist to add a testcase and add some tags" 2020-07-02 14:40:20 -05:00
math_extras cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00
rbtree Revert "tests: rbtree to add and modify some tastcases" 2020-07-02 14:40:20 -05:00
timeutil cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00
util sys: util: Add clamp macro 2020-11-05 12:12:17 +01:00