]> git.baikalelectronics.ru Git - uboot.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)
commite09a72641a36e28fcddda8a003f28c0ddcabdae0
treedb3e536d874bf16a81b118f7980cbbe31920708e
parentc54e53687ce1bc48454a6d8061a2d9a73fcfe7c7
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