diff options
author | Haru <haru@dotalux.com> | 2016-10-14 00:05:07 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-10-14 00:12:49 +0200 |
commit | b664a9fe58c26323699bb7f3798092491fd3bd12 (patch) | |
tree | ca550a7255f93bd9430bf2a96c525de97392148e /src/common/HPMi.h | |
parent | b75799528a1394919fd5eb4c8763a96ee80a9325 (diff) | |
download | hercules-b664a9fe58c26323699bb7f3798092491fd3bd12.tar.gz hercules-b664a9fe58c26323699bb7f3798092491fd3bd12.tar.bz2 hercules-b664a9fe58c26323699bb7f3798092491fd3bd12.tar.xz hercules-b664a9fe58c26323699bb7f3798092491fd3bd12.zip |
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 <haru@dotalux.com>
Diffstat (limited to 'src/common/HPMi.h')
-rw-r--r-- | src/common/HPMi.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) |