Skip to content

dart:io readAsBytes will crash if the file size is greater than INT_MAX on flutter windows embedder #50129

Open
@jonahwilliams

Description

@jonahwilliams

Repro:

void main() async {
  await File('path/to/huge_file').readAsBytes();
}

The file I am using is approximately 3.3 GB. INT_MAX bytes in GB is approximately 2.147483647 GB.

I'm not able to get a backtrace, but the popup that shows the assert shows the path minkernel\crts\ucrt\src\appcrt\lowio\read.cpp

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestarea-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-iotriagedIssue has been triaged by sub team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions