Skip to content

list panic when size > isize::MAX #1750

Closed

Description

@andrew-ld

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions