4a18d615a4
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> |
||
---|---|---|
.. | ||
base64 | ||
cbprintf | ||
crc | ||
intmath | ||
list | ||
math_extras | ||
net_timeout | ||
rbtree | ||
timeutil | ||
util | ||
winstream |