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

int(x) does not work for strings with preceding/trailing whitespace #68

Open
nielstron opened this issue Mar 5, 2023 · 0 comments
Open
Labels
bb: minor Minor issue according to bug bounty categorization bug bounty This issue is prized out as part of the Bug Bounty Program bug Something isn't working

Comments

@nielstron
Copy link
Contributor

nielstron commented Mar 5, 2023

Describe the bug
The function int(x) in the python standard lib implicitly strips the invoked string before converting it to an integer.
OpShin does not currently do this, breaking the semantic equivalence with python

Example

int("0\n") 
   -> 0 (in Python)
   -> error (in opshin)

Bug bounty: 200 ADA

@nielstron nielstron added the bug Something isn't working label Mar 5, 2023
@nielstron nielstron changed the title int(x) does not work for strings with preceding/trailing empty space int(x) does not work for strings with preceding/trailing whitespace Jul 14, 2023
@nielstron nielstron added bug bounty This issue is prized out as part of the Bug Bounty Program bb: minor Minor issue according to bug bounty categorization labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bb: minor Minor issue according to bug bounty categorization bug bounty This issue is prized out as part of the Bug Bounty Program bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant