Open
Description
The data type of count
in these two functions are incorrectly being int8_t
, while length
is uint8_t
. This will cause an overflow when transmitting data with length > 128 and corrupt the data before buffer.
i2cdevlib/Arduino/I2Cdev/I2Cdev.cpp
Lines 208 to 222 in 2a0d98f
More occurrences have been found in #750 .
Below is an overflow captured when reading 168 bytes from a MPU6050 FIFO, which caused function frame corruption and crashed the program.
Metadata
Metadata
Assignees
Labels
No labels