32blit / 32blit-sdk

32blit SDK
https://32blit.com
MIT License
197 stars 69 forks source link

Firmware: reject erase commands beyond the end of external flash #809

Closed ali1234 closed 1 year ago

ali1234 commented 1 year ago

This prevents a crash when QSPI tries to read/access past the end of flash as a result of a bad serial command.

There's also a patch waiting for the tools to stop it from doing that.

Daft-Freak commented 1 year ago

Ouch, yeah out-of-bounds accesses can get quite nasty.