mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/secure_boot_sig_failed_crash_v4.2' into 'release/v4.2'
secure boot: Fix crash if signature verification fails in app (v4.2) See merge request espressif/esp-idf!11924
This commit is contained in:
commit
7ceaac64bf
@ -229,6 +229,7 @@ static esp_err_t image_load(esp_image_load_mode_t mode, const esp_partition_pos_
|
|||||||
if (true) {
|
if (true) {
|
||||||
#endif // end checking for JTAG
|
#endif // end checking for JTAG
|
||||||
err = verify_secure_boot_signature(sha_handle, data, image_digest, verified_digest);
|
err = verify_secure_boot_signature(sha_handle, data, image_digest, verified_digest);
|
||||||
|
sha_handle = NULL; // verify_secure_boot_signature finishes sha_handle
|
||||||
}
|
}
|
||||||
#else // SECURE_BOOT_CHECK_SIGNATURE
|
#else // SECURE_BOOT_CHECK_SIGNATURE
|
||||||
// No secure boot, but SHA-256 can be appended for basic corruption detection
|
// No secure boot, but SHA-256 can be appended for basic corruption detection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user