hermit-os / hermit-os/kernel

OpenOptions are not checked

Open
#2,409 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.