commit | bc01d9ff93f350a35c51ddb75f81c2a6f663b1c1 | [log] [tgz] |
---|---|---|
author | Hugo Cornelis <hugo.cornelis@essensium.com> | Mon Jan 08 15:24:30 2024 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Jan 18 17:50:27 2024 -0500 |
tree | 2cffa6259c0c6e97eb7435be18ef1f2788b55a78 | |
parent | 9ba8187a84b4a23f43e8aedea0a1db1f769cb3f0 [diff] |
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>