net_if_ipv6_addr_rm calls k_delayed_work_cancel() on uninitialized k_delayed_work object #3830
Labels
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Milestone
Reported by Andrew Boie:
Found while testing some new code which checks that all kernel API calls are on valid, initialized kernel objects.
This issue is in subsys/net/ip/net_if.c line 671. "lifetime" is a struct k_delayed_work that was never initialized with k_delayed_work_init().
Steps to reproduce:
tests/net/tcp
tests/net/mgmt
tests/net/ipv6
Example:
(Imported from Jira ZEP-2397)
The text was updated successfully, but these errors were encountered: