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

list panic when size > isize::MAX #1750

Open
andrew-ld opened this issue Feb 6, 2020 · 0 comments
Open

list panic when size > isize::MAX #1750

andrew-ld opened this issue Feb 6, 2020 · 0 comments
Labels
C-compat A discrepancy between RustPython and CPython

Comments

@andrew-ld
Copy link

code

[...] * (2 << 61)

result

thread 'main' panicked at 'capacity overflow', src/liballoc/raw_vec.rs:777:5

expected result

an MemoryError exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-compat A discrepancy between RustPython and CPython
Projects
None yet
Development

No branches or pull requests

1 participant