Skip to content

list panic when size > isize::MAX #1750

Closed
@andrew-ld

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

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