]> git.ipfire.org Git - thirdparty/u-boot.git/commit
fdt: Check for overlapping data and FDT
authorSimon Glass <sjg@chromium.org>
Wed, 21 Dec 2022 23:08:21 +0000 (16:08 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 18 Jan 2023 18:49:13 +0000 (11:49 -0700)
commit9557592edc82cc690db2e81ef249a772f60078cb
treedb3e536d874bf16a81b118f7980cbbe31920708e
parentec4f327145ead89a5fd6714baa878112818b7147
fdt: Check for overlapping data and FDT

If the FDT overlaps with the data region of the image, or with the stack,
it can become corrupted before relocation. Add a check for this, behind a
debug flag, as it can be very confusing and time-consuming to debug.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c