Loading...
--- libmalloc/libmalloc-474.0.13/src/vm.h
+++ libmalloc/libmalloc-409.81.2/src/vm.h
@@ -28,8 +28,7 @@
static inline bool
mvm_aslr_enabled(void)
{
- extern struct mach_header __dso_handle;
- return _dyld_get_image_slide(&__dso_handle);
+ return _dyld_get_image_slide((const struct mach_header *)_NSGetMachExecuteHeader()) != 0;
}
MALLOC_NOEXPORT