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.
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 1341546:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/sys/netinet6/nd6.c: 406 in nd6_llinfo_settimer_locked()


________________________________________________________________________________________________________
*** CID 1341546:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
/sys/netinet6/nd6.c: 406 in nd6_llinfo_settimer_locked()
400     		ln->ln_expire = 0;
401     		ln->ln_ntick = 0;
402     		callout_halt(&ln->ln_timer_ch, &ln->lle_lock);
403     	} else {
404     		ln->ln_expire = time_uptime + xtick / hz;
405     		LLE_ADDREF(ln);
>>>     CID 1341546:  Integer handling issues  (CONSTANT_EXPRESSION_RESULT)
>>>     "xtick > 2147483647" is always false regardless of the values of its operands. This occurs as the logical operand of if.
406     		if (xtick > INT_MAX) {
407     			ln->ln_ntick = xtick - INT_MAX;
408     			callout_reset(&ln->ln_timer_ch, INT_MAX,
409     			    nd6_llinfo_timer, ln);
410     		} else {
411     			ln->ln_ntick = 0;


________________________________________________________________________________________________________
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