PaulStoffregen / ST7735_t3

Teensy 3.x Optimized Version of Adafruit_ST7735 (1.8 inch TFT Display)
33 stars 16 forks source link

Pixel function - check clip rectangle... #24

Closed KurtE closed 3 years ago

KurtE commented 3 years ago

The code to check the clip rectangle was commented out.

There is a forum thread: https://forum.pjrc.com/threads/65791-Teensy4-0-ST7735-Freezing-when-using-frame-buffer?p=266280#post266280

Where the user was calling drawLine with two negative values and one of those values turned out to dall the pixel function with a bogus negative value, and as we did not check the bounds it wrote over something which crashed the sketch