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.

2 new defect(s) introduced to NetBSD-amd64-kernel found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 1293640:  Memory - corruptions  (OVERRUN)
/sys/dev/bluetooth/btmagic.c: 1565 in btmagic_input_magict()


________________________________________________________________________________________________________
*** CID 1293640:  Memory - corruptions  (OVERRUN)
/sys/dev/bluetooth/btmagic.c: 1565 in btmagic_input_magict()
1559     				sc->sc_nfingers--;
1560     				KASSERT(sc->sc_nfingers >= 0);
1561     			}
1562     			break;
1563     		}
1564     
>>>     CID 1293640:  Memory - corruptions  (OVERRUN)
>>>     Overrunning array "sc->sc_ax" of 16 4-byte elements at element index 64 (byte offset 256) using index "id" (which evaluates to 64).
1565     		sc->sc_ax[id] = ax;
1566     		sc->sc_ay[id] = ay;
1567     	}
1568     
1569     	if (dx != 0 || dy != 0 || dz != 0 || dw != 0 || mb != sc->sc_mb) {
1570     		sc->sc_mb = mb;

** CID 1293641:  Memory - corruptions  (OVERRUN)
/sys/dev/bluetooth/btmagic.c: 1566 in btmagic_input_magict()


________________________________________________________________________________________________________
*** CID 1293641:  Memory - corruptions  (OVERRUN)
/sys/dev/bluetooth/btmagic.c: 1566 in btmagic_input_magict()
1560     				KASSERT(sc->sc_nfingers >= 0);
1561     			}
1562     			break;
1563     		}
1564     
1565     		sc->sc_ax[id] = ax;
>>>     CID 1293641:  Memory - corruptions  (OVERRUN)
>>>     Overrunning array "sc->sc_ay" of 16 4-byte elements at element index 64 (byte offset 256) using index "id" (which evaluates to 64).
1566     		sc->sc_ay[id] = ay;
1567     	}
1568     
1569     	if (dx != 0 || dy != 0 || dz != 0 || dw != 0 || mb != sc->sc_mb) {
1570     		sc->sc_mb = mb;
1571     


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