zephyriot / zephyr-issues

0 stars 0 forks source link

Static code scan (coverity) issues seen #2303

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Shilpashree L C:

As per the Coverity scan analyses on Aug 03,2017, there were some potential defects that were found in /tests/net/ file has mentioned below. Please fix or provide comments to square it off in coverity : https://scan9.coverity.com/reports.htm#v31655/p12996

||CID|| ||Type|| ||Category|| ||File|| ||Function|| |173630| |Out-of-bounds access| |Memory - corruptions| |/tests/net/udp/src/main.c| |run_tests| |173657| |Dereference null return value| |Null pointer dereference| |/tests/net/icmpv6/src/main.c| |run_tests| |173648| |Dereference null return value| |Null pointer dereferences| |/tests/net/lib/zoap/src/main.c| |server_resource_1_get| |173636| |Unchecked return value| |Error handling issues| |/tests/net/ieee802154/l2/src/ieee802154_test.c| |test_ack_reply| |173653| |Dereference after null check| |Null pointer dereferences| |/tests/net/lib/dns_resolve/src/main.c| |test_init|

(Imported from Jira ZEP-2472)

nashif commented 7 years ago

by Jukka Rissanen:

Lowering the priority as these are test programs.

nashif commented 7 years ago

by Shilpashree L C:

173630 173657 173636
173653 are still shown in latest coverity scan as of Aug 29,2017