Skip to content

Incorrect size returned by __wasi_environ_sizes_get #27

@shritesh

Description

@shritesh

The documentation for __wasi_environ_get says "The sizes of the buffers should match that returned by __wasi_environ_sizes_get" but the WASI implementations that I tested (wasmtime and wasmer) expect a buffer with space for additional null pointer at the end. The sysroot too implements it that way.

This is in contrast with __wasi_args_get and __wasi_args_sizes_get that say the same thing but do as documented.

I'm not sure if this is a bug or the expected behavior. If it is, it should be documented as such.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething in this repository is erroneous and should be corrected.questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions