by bitexploder · 2y ago · 0 comments
I don't really know what a VMM consists of, so I'm mostly surprised that this project is half a million lines of code.
- Do you know your invariants?
- Have you documented them?
- If using unsafe block, have you asserted them or guaranteed that they hold for any input?
Granted, Rust is kind of mediocre at teaching you this. It raises warning for unsafe fn without safety documentation block, but not when omittin safety comments in unsafe blocks.
Edit: And it turns out it's enabled as a warning in this repo.