From b664a9fe58c26323699bb7f3798092491fd3bd12 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 14 Oct 2016 00:05:07 +0200 Subject: Fixed a memory manager crash when a memory leak occurs in a plugin - Plugins were accidentally using the core's memory manager instead of the HPM-safe wrappers. - As a side-effect of this, plugins shall not be able to hook into the iMalloc interface. - The issue was introduced in e7c2f7d827ad286dc826e483391e64b8ffe2720b Signed-off-by: Haru --- src/common/HPMi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/HPMi.h') diff --git a/src/common/HPMi.h b/src/common/HPMi.h index 19b9b20a5..143c325c1 100644 --- a/src/common/HPMi.h +++ b/src/common/HPMi.h @@ -231,6 +231,7 @@ struct HPMi_interface { /* Hooking */ struct HPMHooking_interface *hooking; + struct malloc_interface *memmgr; }; #ifdef HERCULES_CORE #define HPM_SYMBOL(n, s) (HPM->share((s), (n)), true) -- cgit v1.2.3-70-g09d2