wasi-libc icon indicating copy to clipboard operation
wasi-libc copied to clipboard

WASI libc implementation for WebAssembly

Results 90 wasi-libc issues
Sort by recently updated
recently updated
newest added

Today dlmalloc has hardcoded `MALLOC_ALIGNMENT` of 2*pointer size: https://github.com/WebAssembly/wasi-libc/blob/3c4a3f94d1ce685a672ec9a642f1ae42dae16eb1/dlmalloc/src/malloc.c#L628 Emscripten has had the same issue basically forever, but its not standards compliant and is causing issues for some codebases that...

(this probably doesn't belong here, but I couldn't find better repo to raise it on) Are there any example of generation user-defined custom sections? I tried smth like this ```c...

With WASI modularization, each proposal will be moving to having its own error code, rather than a single unified errno across all WASI APIs: - https://github.com/WebAssembly/wasi-filesystem/issues/29 - https://github.com/WebAssembly/wasi-clocks/issues/5 - https://github.com/WebAssembly/wasi-random/issues/8...

after next snapshot

(this probably doesn't belong here, but I couldn't decide which repo to raise it on) Steps to reproduce: 1. clone https://github.com/aidanhs/wasm-stack-clobber 2. enter the repo directory 3. download and untar...

Currently, the corresponding code for `mkstemp`, `mkostemp` and `mkdtemp` is commented out, so any C code relying on those functions fails to compile: https://github.com/WebAssembly/wasi-libc/blob/5ccfab77b097a5d0184f91184952158aa5904c8d/libc-top-half/musl/include/stdlib.h#L116-L120 The comment says it's done because...

sbrk implementation in wasi-libc assumes the input is aligned to 64KB, and doesn't support negative inputs. Presumably this is sufficient for malloc implementation, but I'm not sure this is conformant...

I'm in the process of [experimentally] migrating some code that today gets compiled via Emscripten to wasi-sdk. Doing size comparisons, for one of the reactors the Emscripten-compiled binary is significantly...

This [code](https://github.com/WebAssembly/wasi-libc/blob/320054e84f8f2440def3b1c8700cedb8fd697bf8/libc-top-half/musl/src/env/setenv.c#L36) could lead to integer overflow into malloc. In its turn with subsequent `memcpy` it could lead to heap overflow. Hypothetically it could affect users. If it is matter,...

Hi! I have a use case when I need to periodically change WASI state (especially, envs) of already instantiated Wasm module. Seems that this [_initialize](https://github.com/WebAssembly/wasi-libc/blob/84c0778bff35bca3b5fa7814a3e1f3fb36362af6/libc-bottom-half/crt/crt1-reactor.c#L3) could work for me. I'm...

Hi there. I wanted to practice in using LLVM backend, for WebAssembly, while compiling with Clang (without usage of emscripten, in the current pipeline). I will have to re-write most...