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-2BfV0V05... To manage Coverity Scan email notifications for "frr@lists.nox.tf", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05...