Coverity-updates archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
New Defects reported by Coverity Scan for NetBSD-i386-kernel
Hi,
Please find the latest report on new defect(s) introduced to NetBSD-i386-kernel found with Coverity Scan.
1 new defect(s) introduced to NetBSD-i386-kernel found with Coverity Scan.
56 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1355427: Control flow issues (DEADCODE)
/sys/arch/x86/x86/cpu_rng.c: 123 in cpu_rng_rdseed()
________________________________________________________________________________________________________
*** CID 1355427: Control flow issues (DEADCODE)
/sys/arch/x86/x86/cpu_rng.c: 123 in cpu_rng_rdseed()
117 explicit_memset(&lo, 0, sizeof(lo));
118 explicit_memset(&hi, 0, sizeof(hi));
119 #else
120 __asm __volatile("rdseed %0; setc %1" : "=r"(*out), "=qm"(rndsts));
121 #endif
122 if (rndsts != 1)
>>> CID 1355427: Control flow issues (DEADCODE)
>>> Execution cannot reach this statement: "goto exhausted;".
123 goto exhausted;
124
125 return sizeof(*out) * NBBY;
126
127 /*
128 * Userspace could have exhausted RDSEED, but the
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/netbsd-i386-kernel?tab=overview
To manage Coverity Scan email notifications for "coverity-updates%netbsd.org@localhost", click https://scan.coverity.com/subscriptions/edit?email=coverity-updates%40netbsd.org&token=487286ca1a9a4f4bd485d16f66b5e782
Home |
Main Index |
Thread Index |
Old Index