RAVE deallocates the value and replaces the variable in the heap with a NULL opcode (0x40
).
How Rust Drops Variables:
- Allocation
- Deallocation
- Reading
- Variable Spoofing [
Dealloc::delete()
]
You can still overwrite values with *adr = 5
.
mod rave
fn main() {
}
mod rave
fn main(){
let addr = rave::Alloc::string("my &str");
}
mod rave
fn main() {
let addr = rave::Alloc::string("my &str");
println!("{}", rave::StrOut::decode(rave::Read::string(addr)).as_str());
}
mod rave
fn main(){
let addr = rave::Alloc::string("my &str");
println!("{}", rave::StrOut::decode(rave::Read::string(addr)).as_str());
rave::Dealloc::string(addr);
}