Skip to content

VM crashes on too-large new List(n) argument. #23227

@lrhn

Description

@lrhn

Example code:
  new List(268435456); // Smallest number triggering crash on IA32.
Gives:
runtime/vm/object.cc:19102: error: Fatal error in Array::New: invalid len 268435456

Aborted (core dumped)

The mentioned line is commented as:

    // This should be caught before we reach here.
    FATAL1("Fatal error in Array::New: invalid len %" Pd "\n", len);

so the comment seems to not hold.

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions