
10 Oct
2023
10 Oct
'23
4:57 p.m.
On Sat, 7 Oct 2023 at 20:02, Sean Anderson seanga2@gmail.com wrote:
dlmalloc has some sanity checks it performs on free() which can help
detect
memory corruption. However, they are only enabled if DEBUG is defined
before
including common.h. Define DEBUG earlier if UNIT_TEST is enabled so that assertions are enabled in sandbox.
Signed-off-by: Sean Anderson seanga2@gmail.com
common/dlmalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org