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 1351174: Memory - corruptions (OVERRUN)
/sys/fs/msdosfs/msdosfs_conv.c: 1613 in win2unixfn()
________________________________________________________________________________________________________
*** CID 1351174: Memory - corruptions (OVERRUN)
/sys/fs/msdosfs/msdosfs_conv.c: 1613 in win2unixfn()
1607 * files using the same (truncated) name.
1608 */
1609 *namlen += len;
1610 if (*namlen > sizeof(dp->d_name) - 1)
1611 *namlen = sizeof(dp->d_name) - 1;
1612 memmove(&dp->d_name[len], &dp->d_name[0], *namlen - len);
>>> CID 1351174: Memory - corruptions (OVERRUN)
>>> Overrunning array "buf" of 39 bytes by passing it to a function which accesses it at byte offset 510 using argument "len" (which evaluates to 511).
1613 memcpy(dp->d_name, buf, len);
1614
1615 #ifdef __NetBSD__
1616 dp->d_namlen = *namlen;
1617 #endif
1618
________________________________________________________________________________________________________
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