[dev] New Defects reported by Coverity Scan for freerangerouting/frr
scan-admin at coverity.com
scan-admin at coverity.com
Thu Sep 7 12:44:29 EDT 2017
Hi,
Please find the latest report on new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
1 new defect(s) introduced to freerangerouting/frr found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1455482: Incorrect expression (BAD_SIZEOF)
/lib/thread.c: 62 in cpu_record_hash_key()
________________________________________________________________________________________________________
*** CID 1455482: Incorrect expression (BAD_SIZEOF)
/lib/thread.c: 62 in cpu_record_hash_key()
56 static struct list *masters;
57
58
59 /* CLI start ---------------------------------------------------------------- */
60 static unsigned int cpu_record_hash_key(struct cpu_thread_history *a)
61 {
>>> CID 1455482: Incorrect expression (BAD_SIZEOF)
>>> Taking the size of "&a->func", which is the address of an object, is suspicious.
62 int size = sizeof (&a->func);
63
64 return jhash(&a->func, size, 0);
65 }
66
67 static int cpu_record_hash_cmp(const struct cpu_thread_history *a,
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRa7dJ8klHLUFWVd2fqpS-2B-2FHaN43B-2FQ11ntcKmbKat2WeHs8691VOJpZofPkpp-2BRBqc-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJngH8YmWClTe9k4yAkfM4w7E6UQuzKgqliEmL7MVp4shZhtzQeWFZSGeFiFSJUIm9eo5Gc2e47-2BiOo-2Beda71NJvlErXg64UbG-2FJm2k27P-2Bm-2BBq6be3uVXZ4QL5qh9qtwyb9xOs37gbdT8uBFLPoZrSmbrdjad7g7-2FneQFkjqPEEyQ-3D-3D
To manage Coverity Scan email notifications for "frr at lists.nox.tf", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4lcTWm1Zma8LQDNpOYqrETKrqBiM18kcBcL8b08LzBPOYJYGySZ4Vv7d5QYcnSbGxl3QyORKgEmDxh-2BE2mj6dp1V4JSs2jbMZuLnEQJOW0Z0-3D_d-2Fi2nRutHp-2FDWtw8JRg-2Bc1m9CS4-2B5uVbodfDyLsp-2FJngH8YmWClTe9k4yAkfM4w7sBcK-2FPD4-2FulfMPzHmyU2tstqgZIB6FZIaOY69cio3BdhxOsOfS-2FvZTAVo3rHvW0lXbHu2rAOfZPFzRbCTtmhMkQ5TDNxJT1o0Phlkcj84-2FULpHm5Xyu3n0SyqX-2BZXn1bLk3UrcwKVoeE5f5065eQ8g-3D-3D
More information about the dev
mailing list