mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-28 14:43:37 +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:
parent
ff26f9704e
commit
d9f015035a
@ -1404,9 +1404,9 @@ struct template_entry {
|
||||
uint32_t name_len;
|
||||
} header __packed;
|
||||
char name[TCG_EVENT_NAME_LEN_MAX + 1];
|
||||
int template_len;
|
||||
uint32_t template_buf_len;
|
||||
uint32_t template_len;
|
||||
uint8_t *template;
|
||||
int template_buf_len;
|
||||
};
|
||||
|
||||
static uint8_t zero[MAX_DIGEST_SIZE];
|
||||
|
Loading…
x
Reference in New Issue
Block a user