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-amd64-kernel



Hi,

Please find the latest report on new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.

1 new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.
2 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 1340078:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/sys/external/bsd/common/include/linux/kernel.h: 166 in kstrtol()


________________________________________________________________________________________________________
*** CID 1340078:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/sys/external/bsd/common/include/linux/kernel.h: 166 in kstrtol()
160     static inline int
161     kstrtol(const char *s, unsigned base, long *vp)
162     {
163     	long long v;
164     
165     	v = strtoll(s, NULL, base);
>>>     CID 1340078:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
>>>     "v < -9223372036854775808LL /* -9223372036854775807L - 1 */" is always false regardless of the values of its operands. This occurs as the logical first operand of '||'.
166     	if (v < LONG_MIN || LONG_MAX < v)
167     		return -ERANGE;
168     	*vp = v;
169     	return 0;
170     }
171     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/netbsd-amd64-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