brilliantlabsAR / monocle-micropython

Micropython ported to the Monocle
ISC License
215 stars 27 forks source link

display.HLine(): missing parameter validation #266

Closed josuah closed 11 months ago

josuah commented 11 months ago

This leads to a crash, and can land in main.py soft-bricking the Monocle:

Reproducer:

MicroPython v1.20.0-261-g813d559bc on 2023-07-06; Monocle on nRF52832
Type "help()" for more information.
>>> import display
>>> display.show(display.HLine(0, -100, 240, display.GREEN, 10))
Device was disconnected.