]> jfr.im git - irc/atheme/libmowgli-2.git/commit
Build System & core/heap: add method to disable heap allocator
authorAaron Jones <redacted>
Sun, 20 Jan 2019 17:38:44 +0000 (17:38 +0000)
committerAaron Jones <redacted>
Sun, 20 Jan 2019 17:49:38 +0000 (17:49 +0000)
commit2ea73fc31b8cc00e6bceed1c1dd06ad9cb5e80bc
treeca320d294292976dbc4d5bb7caf7bee9640d60a1
parent10636cb44689b0b9182347f82cfdf1bc2eaf9313
Build System & core/heap: add method to disable heap allocator

The heap allocator was found to be hiding a use-after-free error
in an unrelated program (not Atheme IRC Services).

Add a configure option to make mowgli.heap just wrap around
mowgli.alloc directly. This allows hardened memory allocators to
be plugged into the latter, which affect all individual object
allocations made by the former.

The disabled implementation also features more debug logging.
configure
configure.ac
src/libmowgli/core/heap.c
src/libmowgli/core/heap.disabled.c [new file with mode: 0644]
src/libmowgli/core/heap.enabled.c [new file with mode: 0644]
src/libmowgli/platform/autoconf.h.in