diff options
author | Jamin Lin <jamin_lin@aspeedtech.com> | 2025-05-21 09:21:20 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-22 14:36:49 +0100 |
commit | a50b243ea67514aad4b8ebdca63cf088f42e56ca (patch) | |
tree | 31005b0f7a06ed57c33b6c91ca7ba40724fd76d3 /meta/lib/oeqa/sdk/files/rust/hello/git@git.enea.com:linux | |
parent | afee84f8d3c1ca1b4dcab06abeb01ca229338947 (diff) | |
download | poky-a50b243ea67514aad4b8ebdca63cf088f42e56ca.tar.gz |
uboot-sign: Fix unintended "-e" written into ITS
An unintended "-e" string may be written into the generated ITS file when users
set the UBOOT_FIT_USER_SETTINGS variable to include custom binaries in the U-Boot
image.
This issue is caused by the use of 'echo -e', which behaves inconsistently across
different shells. While bash interprets '-e' as enabling escape sequences
(e.g., \n, \t), dash—the default /bin/sh on many systems—does not recognize
'-e' and treats it as a literal string. As a result, "-e" can be mistakenly
injected into the ITS file under certain build environments.
To ensure consistent and shell-agnostic behavior, replace 'echo -e' with
'printf', which is well-defined by POSIX and behaves reliably across all common
shells.
This change improves portability and prevents malformed ITS files caused by unintended
string injection.
Fixes: c12e013 ("uboot-sign: support to add users specific image tree source")
(From OE-Core rev: 1d5d22a38188f2c879e289a9732b620b0a6f7a6e)
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/files/rust/hello/git@git.enea.com:linux')
0 files changed, 0 insertions, 0 deletions