add asan build (#179)

This commit is contained in:
water111
2021-01-03 12:31:42 -05:00
committed by GitHub
parent 7af6dce1b2
commit 95c81b675a
9 changed files with 51 additions and 19 deletions
+2 -2
View File
@@ -883,7 +883,7 @@ void* ultimate_memcpy(void* dst, void* src, uint32_t size) {
// GOAL function is unknown, lets see if its loaded:
auto sym = find_symbol_from_c("ultimate-memcpy");
if (sym->value == 0) {
return memcpy(dst, src, size);
return memmove(dst, src, size);
}
gfunc_774.offset = sym->value;
}
@@ -892,7 +892,7 @@ void* ultimate_memcpy(void* dst, void* src, uint32_t size) {
s7.offset, g_ee_main_mem))
.c();
} else {
return memcpy(dst, src, size);
return memmove(dst, src, size);
}
}