Skip to content

File#openInputStream reads entire file, rather than streaming #3334

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


This is easy to reproduce, open a large file and you will exhaust memory.

import('dart:io');

main() {
  var opts = new Options();
  var trace_file = new File(opts.arguments[0]);
  var input_stream = trace_file.openInputStream();
}

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.library-io

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions