Implement a broader Miri stub to test more of the code for UB
Maintainers usually reply within 1 day
@nicholasbishop is already working on this.
Since Mar 26, 2023.
Assessment
This issue has not been assessed yet.
Description
Right now our Miri coverage is pretty limited since most of uefi requires interacting with the UEFI environment. There's a solution though, which is to create stubs for that environment. We do a small version of this in the file tests: https://github.com/rust-osdev/uefi-rs/blob/main/uefi/src/proto/media/file/mod.rs#L447
I've been experimenting on and off with doing this more broadly, and it has helped me find various problems that I've already submitted fixes for. I'm hoping it will also help give us confidence around issues like https://github.com/rust-osdev/uefi-rs/issues/685; we can't know exactly what a real UEFI implementation does in all cases, so we can never be 100% sure that Rust's abstract machine isn't being violated in some way, but I think with a sensible stub implementation we can get closer.
For now I don't have code that's even close to being PR-able yet, but filing this as a tracking issue.
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 205
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 15
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-osdev/uefi-rs
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
rust-osdev/uefi-rs#2053 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rust-osdev/uefi-rs#2030 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rust-osdev/uefi-rs#2028 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
rust-osdev/uefi-rs#1991 · 6 comments ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
rust-osdev/uefi-rs#1990 · 2 comments ·
Maintainers usually reply within 1 day
All issues in rust-osdev/uefi-rs
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·