zephyriot / zephyr-issues

0 stars 0 forks source link

Coverity issue seen with CID: 175365 , in file: /subsys/bluetooth/controller/hci/hci.c #2431

Closed nashif closed 7 years ago

nashif commented 7 years ago

Reported by Shilpashree L C:

Static Coverity issue seen as per the analyses done on 09/09/17 Category: Memory - corruptions Function: le_rand Please fix or provide comments to square it off in coverity in the link: https://scan9.coverity.com/reports.htm#v32951/p12996

(Imported from Jira ZEP-2602)

nashif commented 7 years ago

by Vinayak Kariappa Chettimada:

This is false positive.

3. index_parm: Pointer rand is directly accessed by indexing it with octets.
 71                d = &rand[octets];

but this is how its populated:

85                while (avail--) {
 86                        *(--d) = *s++;
 87                }
nashif commented 7 years ago

by Carles Cufi:

This is a false positive, as marked in Coverity