Commit 21b0d6e
Peter Huene
Fix WasiCtxBuilder so that stdin, stdout, and stderr accept files.
A regression in bytecodealliance#1561 caused "invalid argument" errors when `stdin`, `stdout`,
and `stderr` are given a file handle.
This was missed in Wasmtime CI because previously only a pipe handle was being
used.
It was caught in the .NET implementation CI because it uses file handles for
its WASI tests.
Fixes bytecodealliance#1735.1 parent c9e3b71 commit 21b0d6e
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
372 | | - | |
373 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
374 | 378 | | |
375 | 379 | | |
376 | 380 | | |
| |||
379 | 383 | | |
380 | 384 | | |
381 | 385 | | |
| 386 | + | |
382 | 387 | | |
383 | 388 | | |
384 | 389 | | |
| |||
0 commit comments