fix exec_path()
This commit is contained in:
parent
8627b808a0
commit
cbbe73864b
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "qemu_libafl_bridge"
|
name = "qemu_libafl_bridge"
|
||||||
version = "0.3.1"
|
version = "0.3.2"
|
||||||
authors = ["Andrea Fioraldi <andreafioraldi@gmail.com>"]
|
authors = ["Andrea Fioraldi <andreafioraldi@gmail.com>"]
|
||||||
description = "QEMU and LibAFL bridge lib"
|
description = "QEMU and LibAFL bridge lib"
|
||||||
repository = "https://github.com/AFLplusplus/qemu-libafl-bridge/"
|
repository = "https://github.com/AFLplusplus/qemu-libafl-bridge/"
|
||||||
|
@ -100,7 +100,7 @@ impl QemuEmulator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn exec_path(&self) -> &str {
|
pub fn exec_path(&self) -> &str {
|
||||||
unsafe { from_utf8_unchecked(from_raw_parts(exec_path, strlen(exec_path) + 1)) }
|
unsafe { from_utf8_unchecked(from_raw_parts(exec_path, strlen(exec_path))) }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user