Skip to content

fix: handle Infinity results and improve eval safety in calculator#646

Merged
steam-bell-92 merged 2 commits into
steam-bell-92:mainfrom
Pratikshya32:fix/calculator-operator-chaining
May 25, 2026
Merged

fix: handle Infinity results and improve eval safety in calculator#646
steam-bell-92 merged 2 commits into
steam-bell-92:mainfrom
Pratikshya32:fix/calculator-operator-chaining

Conversation

@Pratikshya32
Copy link
Copy Markdown

Fixes #645

This PR updates the calculator project to evaluate expressions via a sandboxed Function sandbox and clears previous outputs safely if an out-of-bounds Infinity result occurs.

Requesting gssoc, gssoc:approved point labels!

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

Someone is attempting to deploy a commit to the Anuj's projects Team on Vercel.

A member of the Team first needs to authorize it.

@steam-bell-92 steam-bell-92 merged commit 707daa0 into steam-bell-92:main May 25, 2026
4 of 8 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 Thank you for your contribution!

Your Pull Request has been merged successfully.

We appreciate the time and effort you put into improving this project. Contributions like yours help the repository grow and stay useful for everyone.

If you'd like to contribute again, please check the open issues and make sure you are assigned before opening another Pull Request.

Thanks again for your support! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Calculator handles Infinity results poorly and uses unsafe eval()

2 participants