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:
Laukik Hase
2025-06-27 18:24:24 +05:30
2 changed files with 5 additions and 1 deletions

View File

@@ -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));

View File

@@ -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
]