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
integer overflow in computing byte's object representation #66709
Comments
# PyBytes_Repr(PyObject *obj, int smartquotes) |
New changeset d9cd11eda152 by Benjamin Peterson in branch '2.7': New changeset f5c662a7f7e6 by Benjamin Peterson in branch '3.3': New changeset ed31cdf11ac2 by Benjamin Peterson in branch '3.4': New changeset 0ddc5fc5f395 by Benjamin Peterson in branch 'default': |
It would be nice to have a "bigmem" test checking that repr(b'\x00'*(2**30+1)) doesn't crash anymore. |
The code doesn't crash any more. It took me more than 5 GB of resident memory and about 90 CPU seconds to reproduce the circumstances of the overflow. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: