8000 list panic when size > isize::MAX · Issue #1750 · RustPython/RustPython · GitHub
[go: up one dir, main page]

Skip to content

list panic when size > isize::MAX #1750

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

Closed
andrew-ld opened this issue Feb 6, 2020 · 0 comments · Fixed by #5418
Closed

list panic when size > isize::MAX #1750

andrew-ld opened this issue Feb 6, 2020 · 0 comments · Fixed by #5418
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

Successfully merging a pull request may close this issue.

1 participant
0