added safety notice

wip/its-not-my-fault
ondra05 2023-06-10 16:46:04 +02:00
parent e6710fb2c8
commit 207760a636
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
use {
hbvm::{validate::validate, vm::Vm, RuntimeErrors},
hbvm::{validate::validate, vm::Vm},
std::io::{stdin, Read},
};

View File

@ -4,8 +4,12 @@
// # General safety notice:
// - Validation has to assure there is 60 registers (r0 - r59)
// - Instructions has to be valid as specified (values and sizes)
// - Instructions have to be valid as specified (values and sizes)
// - Mapped pages should be at least 8 KiB
// - Yes, I am aware of the UB when jumping in-mid of instruction where
// the read byte corresponds to an instruction whose lenght exceets the
// program size. If you are (rightfully) worried about the UB, for now just
// append your program with 11 zeroes.
mod mem;
mod value;