Skip to content

Long preloaded file not properly read on Windows #19955

@hjenryin

Description

@hjenryin

Version of emscripten/emsdk:

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.42 (6ede0b8fc1c979bb206148804bfb48b472ccc3da)
clang version 17.0.0 (https://github.com/llvm/llvm-project f3b64887de61020c09404bfee97b2fadd30df10a)
Target: wasm32-unknown-emscripten
Thread model: posix

Bug Description

In short, if a very long file (in my case, 116363 lines) is preloaded using --preload-file, nothing will go wrong when opening the html or js on linux. However on Windows, not all lines are included (in my case, only 112130 lines could be read), no matter using node or a browser.

A reproducing example can be found at https://github.com/hjenryin/wasm_test. How results can be reproduced can be found in the readme file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions