OpenOptions are not checked
Open
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 132
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 39
Description
The following program does not panic on Hermit, although it should return `EBADF` on `read`:
```rust
use std::fs::File;
use std::io::{Read, Write};
#[cfg(target_os = "hermit")]
use hermit as _;
const BUF_SIZE: usize = 8 * 1024;
fn main() {
let mut file = File::create("/tmp/hello.txt").unwrap();
let mut buf = vec![0; BUF_SIZE];
file.read(&mut buf).unwrap();
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.