Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

ali1234
Copy link
Contributor

@ali1234 ali1234 commented Mar 5, 2023

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
Copy link
Collaborator

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

@Daft-Freak Daft-Freak merged commit d45e728 into 32blit:master Mar 5, 2023
@ali1234 ali1234 deleted the erasebounds branch March 5, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants