Home
last modified time | relevance | path

Searched hist:"820042 a5ca744ced2b90364313bc002d3b8e4a2e" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/tee/
H A Dtadb.c820042a5ca744ced2b90364313bc002d3b8e4a2e Fri Mar 09 16:13:23 UTC 2018 Jens Wiklander <jens.wiklander@linaro.org> core: tee_tadb_ta_read(): reduce tmp buffer

Large memory allocations with malloc() can fail due to a fragmented
heap. The easiest way to avoid such failures is obviously to allocate
smaller buffers.

Reduces the size of the temporary buffer used in tee_tadb_ta_read() when
skipping over bytes in the payload. Instead of max 4k use 256 bytes.
Impact on performance should be minimal as not much data are skipped in
the payload.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>