]> git.dujemihanovic.xyz Git - u-boot.git/commit
image-host: refactor and protect for very long filenames
authorHugo Cornelis <hugo.cornelis@essensium.com>
Mon, 8 Jan 2024 14:24:30 +0000 (15:24 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jan 2024 22:50:27 +0000 (17:50 -0500)
commitbc01d9ff93f350a35c51ddb75f81c2a6f663b1c1
tree2cffa6259c0c6e97eb7435be18ef1f2788b55a78
parent9ba8187a84b4a23f43e8aedea0a1db1f769cb3f0
image-host: refactor and protect for very long filenames

This patch adds a function fit_image_read_key_iv_data that checks the
return value of snprintf and allows to generate a sensible error
message when generating binary images using filenames that are too
long for the OS to handle.

This is especially relevant for automated builds such as Buildroot and
Yocto builds.

Signed-off-by: Hugo Cornelis <hugo.cornelis@essensium.com>
tools/image-host.c