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

Core - App Crashes When Evaluating Expressions with a Leading Operator #12

Open
EmmmaTech opened this issue Sep 5, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@EmmmaTech
Copy link
Owner

This issue was found when testing for another similar issue, #11.

If you enter an expression like 0 + or 2 * the app will crash. This is most likely because the program is trying to access a value in the value stack that doesn't exist. This means that it will cause a buffer overflow and crash.

A solution to fix this includes checking if there are enough values and operators in the stack, and otherwise warn the user that this expression is invalid.

@EmmmaTech EmmmaTech added the bug Something isn't working label Sep 5, 2022
@r1cola
Copy link

r1cola commented Sep 6, 2022

Bread is proud of you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants