commit | 8b2a481b34bedc5fd3a2a6ec75b5a88f6f1cc3fc | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Sat Oct 07 22:01:56 2023 -0400 |
committer | Tom Rini <trini@konsulko.com> | Wed Oct 11 13:22:29 2023 -0400 |
tree | bf49b2d39cf93afcec1694ee0c61c1945591fb5e | |
parent | d16f3d7b40e1e4c099b5c4e46959242022abb446 [diff] |
malloc: Enable assertions if UNIT_TEST is enabled 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> Reviewed-by: Simon Glass <sjg@chromium.org>