mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 13:14:32 +02:00
Merge branch 'fix/esp_tee_coverity_issues' into 'master'
fix(esp_tee): Fix coverity issue from the `attestation` component Closes IDF-12867 See merge request espressif/esp-idf!40054
This commit is contained in:
@@ -272,6 +272,10 @@ static esp_err_t get_part_digest(const esp_partition_pos_t *pos, esp_att_part_di
|
||||
|
||||
part_digest->type = ESP_ATT_DIGEST_TYPE_SHA256;
|
||||
size_t digest_len = digest_type_to_len(part_digest->type);
|
||||
|
||||
if (metadata.image_len < digest_len) {
|
||||
return ESP_ERR_INVALID_SIZE;
|
||||
}
|
||||
size_t image_len = metadata.image_len - digest_len;
|
||||
|
||||
uint8_t *digest = calloc(digest_len, sizeof(uint8_t));
|
||||
|
@@ -21,7 +21,7 @@ CONFIG_DEFAULT = [
|
||||
|
||||
CONFIG_OTA = [
|
||||
# 'config, target, skip_autoflash, markers',
|
||||
('ota', target, 'y', (pytest.mark.host_test,))
|
||||
('ota', target, 'y', (pytest.mark.generic,))
|
||||
for target in SUPPORTED_TARGETS
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user