image-fit: fit_check_format check for valid FDT
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 13 Jan 2021 01:09:12 +0000 (02:09 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 13 Jan 2021 01:38:00 +0000 (02:38 +0100)
commitea1a9ec5f430359720d9a0621ed1acfbba6a142a
tree082f34fbda5ba90e3af478d145aedc96024c2bd1
parent5dad05a0e61d759af2df8cf900d044a8485bd747
image-fit: fit_check_format check for valid FDT

fit_check_format() must check that the buffer contains a flattened device
tree before calling any device tree library functions.

Failure to do may cause segmentation faults.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
common/image-fit.c