arduino / arduino/ArduinoCore-avr
Potential Issue in I2C Timeout
Open
- Dominant language
- C
- Stars
- 1.5k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/arduino/ArduinoCore-avr/blob/c8c514c9a19602542bc32c7033f48fecbbda4401/libraries/Wire/src/utility/twi.c#L171
If `micros` overflows after the start and before the end of this read function, it will overflow and possibly return before the timeout.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in libraries/Wire/src/utility/twi.c around line 171 and inspect the read function's timeout calculation. Check behavior when micros overflows between the read's start and end, then verify that the timeout still behaves correctly across wraparound.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100