zephyr/tests/unit
Piotr Pryga 4a18d615a4 slist: Fix sys_slist_append_list with head and tail NULL break a list
If the sys_slist_t instance is not empty, its head and tail points to
some sys_snode_t instances. If sys_slist_append_list is executed with
tail being NULL the list object is corrupted. Tail of the sys_slist_t
instance is set to NULL. If one executes sys_slist_append on that node,
then nodes pointed by head are lost.

The commit fixes the issue and adds unit tests to verify correct
behavior.

Added change verifies if head and tail of appended list are not NULL.
In other case the list object is invalid and should not be appended
to a valid list instance.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2022-04-15 11:50:29 -07:00
..
base64
cbprintf everywhere: fix typos 2022-03-18 13:24:08 -04:00
crc
intmath everywhere: fix typos 2022-03-18 13:24:08 -04:00
list slist: Fix sys_slist_append_list with head and tail NULL break a list 2022-04-15 11:50:29 -07:00
math_extras
net_timeout
rbtree everywhere: fix typos 2022-03-18 13:24:08 -04:00
timeutil
util sys: util: Change return type of ARRAY_SIZE to size_t 2022-03-23 14:09:23 +01:00
winstream