Re: [PATCH] malloc: Enable assertions if UNIT_TEST is enabled

2023-10-11 Thread Tom Rini
On Sat, Oct 07, 2023 at 10:01:56PM -0400, Sean Anderson 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 > a

Re: [PATCH] malloc: Enable assertions if UNIT_TEST is enabled

2023-10-10 Thread Simon Glass
On Sat, 7 Oct 2023 at 20:02, Sean Anderson 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 a