1
0
mirror of https://git.code.sf.net/p/linux-ima/ima-evm-utils synced 2025-04-28 06:33:36 +02:00

ima-evm-utils: use uint32_t for template length

The template length should never be less than zero.  Replace "int" with
"uint32_t".

Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
Mimi Zohar 2020-07-06 09:24:14 -04:00
parent ff26f9704e
commit d9f015035a

View File

@ -1404,9 +1404,9 @@ struct template_entry {
uint32_t name_len; uint32_t name_len;
} header __packed; } header __packed;
char name[TCG_EVENT_NAME_LEN_MAX + 1]; char name[TCG_EVENT_NAME_LEN_MAX + 1];
int template_len; uint32_t template_buf_len;
uint32_t template_len;
uint8_t *template; uint8_t *template;
int template_buf_len;
}; };
static uint8_t zero[MAX_DIGEST_SIZE]; static uint8_t zero[MAX_DIGEST_SIZE];