Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c_slave.c: fix buffer overrun on s_i2c_handle_complete()
Fixing a buffer overrun of i2c_slave->data_buf. The i2c_ll_read_rxfifo function was using t->rcv_fifo_cnf (the I2C slave reading code's buffer size) as the limit for how many bytes on write on i2c_slave->data_buf. This buffer size for i2c_slave->data_buf is generally smaller than the buffer that the I2C slave reading code has.
- Loading branch information