Ensure I2C write buffer does not overflow #20

Closed
opened 2024-04-28 18:01:42 +00:00 by sebgab · 0 comments
Owner

void i2c_write_handler(uint8_t data) {

The write does not check if the buffer will overflow and will cause an issue if the master sends too much data.
This should be fixed.

https://code.e1m1.xyz/Mikrokontrollersystemer-gruppe-4/mikrokontrollersystemer-prosjekt/src/commit/ae1c50ee09f2a64f93c0e17cbeefae3c338c1ea7/prosjekt.X/i2c.c#L54 The write does not check if the buffer will overflow and will cause an issue if the master sends too much data. This should be fixed.
sebgab self-assigned this 2024-04-28 18:01:42 +00:00
sebgab added the due date 2024-04-29 2024-04-28 18:02:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

2024-04-29

Dependencies

No dependencies set.

Reference
Mikrokontrollersystemer-gruppe-4/mikrokontrollersystemer-prosjekt#20
No description provided.