Home
last modified time | relevance | path

Searched refs:shdr_size (Results 1 – 1 of 1) sorted by relevance

/optee_os-3.20.0/core/crypto/
A Dsigned_hdr.c22 size_t shdr_size; in shdr_alloc_and_copy() local
31 shdr_size = SHDR_GET_SIZE((const struct shdr *)(img_va + offs)); in shdr_alloc_and_copy()
32 if (ADD_OVERFLOW(offs, shdr_size, &end) || end > img_size) in shdr_alloc_and_copy()
35 if (ADD_OVERFLOW(img_va, shdr_size, &tmp)) in shdr_alloc_and_copy()
38 shdr = malloc(shdr_size); in shdr_alloc_and_copy()
41 memcpy(shdr, (const uint8_t *)img + offs, shdr_size); in shdr_alloc_and_copy()
44 if (shdr_size != SHDR_GET_SIZE(shdr)) { in shdr_alloc_and_copy()

Completed in 21 milliseconds