[PATCH] malloc: Enable assertions if UNIT_TEST is enabled

Tom Rini trini at konsulko.com
Wed Oct 11 20:38:25 CEST 2023


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
> assertions are enabled in sandbox.
> 
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20231011/04e08b51/attachment.sig>


More information about the U-Boot mailing list