Skip to content

Commit 9771891

Browse files
authored
librasan: Fix errno_location function name (#3172)
1 parent c3475cd commit 9771891

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libafl_qemu/librasan/asan/src/maps/libc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct FunctionErrnoLocation;
4545

4646
impl Function for FunctionErrnoLocation {
4747
type Func = unsafe extern "C" fn() -> *mut c_int;
48-
const NAME: &'static CStr = c"errno_location";
48+
const NAME: &'static CStr = c"__errno_location";
4949
}
5050

5151
static OPEN_ADDR: AtomicGuestAddr = AtomicGuestAddr::new();

libafl_qemu/librasan/asan/src/mmap/libc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct FunctionErrnoLocation;
5555

5656
impl Function for FunctionErrnoLocation {
5757
type Func = unsafe extern "C" fn() -> *mut c_int;
58-
const NAME: &'static CStr = c"errno_location";
58+
const NAME: &'static CStr = c"__errno_location";
5959
}
6060

6161
#[derive(Debug)]

0 commit comments

Comments
 (0)