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

Arguments of OLED_CURSOR could use better validation #121

Open
jose1711 opened this issue Mar 18, 2023 · 0 comments
Open

Arguments of OLED_CURSOR could use better validation #121

jose1711 opened this issue Mar 18, 2023 · 0 comments

Comments

@jose1711
Copy link
Contributor

Configurator uses only very basic check of OLED_CURSOR arguments, common to color boundary checks:

return 0 <= int(name) <= 255;

This results in OLED_CURSOR 255 255 evaluated as OK even though both arguments are beyond display limits (128x64).

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

No branches or pull requests

1 participant