Sylvestre Ledru 17e38beade Playground: fix corrupted file sizes in ls output
browser_wasi_shim's Filestat.write_bytes() uses setUint8 for the
1-byte filetype field at offset 16, leaving bytes 17-23 unwritten.
Since Rust allocates the stat buffer with MaybeUninit, those padding
bytes contain stack garbage that corrupts the struct.

Fix by replacing write_bytes with a version that writes filetype as
a full 8-byte BigUint64 (zero-extended), clearing the padding.
Also add a test asserting file sizes are reasonable.
2026-04-04 11:55:54 +02:00
2025-02-16 22:52:06 +01:00
2026-04-01 08:46:19 +02:00
2025-02-16 22:43:07 +01:00
2023-03-24 09:30:10 +00:00

coreutils documentations

This repository generates the user and dev documentations of https://github.com/uutils/coreutils

User documentation

It is available on: https://uutils.github.io/coreutils/docs/

Can be generated with:

cargo run --bin uudoc --all-features
cd docs
mdbook build

Developer documentation:

It is available on: https://uutils.github.io/dev/coreutils/

Can be generated with:

cargo doc --no-deps --all-features --workspace

The pages are committed daily into the gh-pages branch.

Build timing

Generated by cargo, the build timings can be seen on: https://uutils.github.io/cargo-timings/cargo-timing.html

S
Description
No description provided
Readme 60 MiB
Languages
CSS 42.2%
JavaScript 26.7%
HTML 19.7%
Shell 11.4%