WorksButNotTested db1d38eeb6
LibAFL_QEMU/librasan: Add support for reading environment (#3241)
* Add support for reading environment

* Fix clippy

* Review fixes
2025-05-20 21:48:08 +02:00

19 lines
327 B
Rust

#[cfg(test)]
#[cfg(feature = "hooks")]
mod tests {
use core::ptr::null_mut;
use asan::hooks::{free::free, malloc::malloc};
#[test]
fn test_free_null() {
unsafe { free(null_mut()) };
}
#[test]
fn test_free_buff() {
let p = unsafe { malloc(10) };
unsafe { free(p) }
}
}