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-user



Hi,

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

1 new defect(s) introduced to NetBSD-i386-user found with Coverity Scan.
6 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 1256491:  Out-of-bounds read  (OVERRUN)
/external/bsd/dhcpcd/dist/dhcpcd.c: 459 in configure_interface1()


________________________________________________________________________________________________________
*** CID 1256491:  Out-of-bounds read  (OVERRUN)
/external/bsd/dhcpcd/dist/dhcpcd.c: 459 in configure_interface1()
453     		else {
454     			uint32_t len;
455     			
456     			len = (uint32_t)strlen(ifp->name);
457     			if (len <= sizeof(ifo->iaid)) {
458     				memcpy(ifo->iaid, ifp->name, len);
>>>     CID 1256491:  Out-of-bounds read  (OVERRUN)
>>>     Overrunning array of 4 bytes at byte offset 4 by dereferencing pointer "&ifo->iaid[len]".
459     				memset(ifo->iaid + len, 0,
460     				    sizeof(ifo->iaid) - len);
461     			} else {
462     				/* IAID is the same size as a uint32_t */
463     				len = htonl(ifp->index);
464     				memcpy(ifo->iaid, &len, sizeof(len));


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, http://scan.coverity.com/projects/1448?tab=overview

To unsubscribe from the email notification for new defects, http://scan5.coverity.com/cgi-bin/unsubscribe.py




Home | Main Index | Thread Index | Old Index