Skip to content

Long parameter lists cause core dumped #4858

@xiaxinmeng

Description

@xiaxinmeng

If a function takes long parameter lists, the rustpython reports a core dumped

test.py

def f(*args): return len(args)
f(*([0]*(2**32+1)))

Crash message:

memory allocation of 34359738376 bytes failed
Aborted (core dumped)

Environment:
Ubuntu 18.04
rustpython v0.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions