| Message ID | f6de96c9fa8d0b6c81c32016f342ad93c8940d9e.1721479252.git.steve@sakoman.com |
|---|---|
| State | Accepted, archived |
| Commit | f6de96c9fa8d0b6c81c32016f342ad93c8940d9e |
| Delegated to: | Steve Sakoman |
| Headers | show |
| Series | [kirkstone,1/6] busybox: Fix CVE-2023-42363 | expand |
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass index 6bb4ddc600..f3bbd8980e 100644 --- a/meta/classes/uboot-sign.bbclass +++ b/meta/classes/uboot-sign.bbclass @@ -137,8 +137,7 @@ concat_dtb_helper() { if [ -n "${UBOOT_CONFIG}" ] then - i=0 - j=0 + unset i j for config in ${UBOOT_MACHINE}; do i=$(expr $i + 1); for type in ${UBOOT_CONFIG}; do @@ -146,9 +145,12 @@ concat_dtb_helper() { if [ $j -eq $i ] then cp ${UBOOT_IMAGE} ${B}/${CONFIG_B_PATH}/u-boot-$type.${UBOOT_SUFFIX} + break fi done + unset j done + unset i fi else bbwarn "Failure while adding public key to u-boot binary. Verified boot won't be available."