]> git.dujemihanovic.xyz Git - u-boot.git/commit
dlmalloc: Make sure allocation size is within malloc area
authorRichard Weinberger <richard@nod.at>
Fri, 2 Aug 2024 10:08:46 +0000 (12:08 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Aug 2024 22:14:36 +0000 (16:14 -0600)
commit9b9368b5c4dc24b3b999743db26fb915981d26a9
tree359bc26f3807ac4b26a3f74682754c8e3bd44246
parent0a10b49206a29b4aa2f80233a3e53ca0466bb0b3
dlmalloc: Make sure allocation size is within malloc area

Since U-Boot does not support memory overcommit we can
enforce that the allocation size is within the malloc area.
This is a simple and efficient hardening measure to mitigate
further integer overflows in dlmalloc.

Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/dlmalloc.c