Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2d71d6d0 authored by Ajit Pandey's avatar Ajit Pandey
Browse files

dsp: adsp-loader: Add check around bytes read from nvmem cell



nvmem_cell_read() return no of bytes read in 'len' variable and
allocates similiar bytes of memory for buffer. Copy only these
number of bytes from buf to avoid out of bounds issues.

Change-Id: I712e5058d15deba939b6a743fcf5bff33ac51f84
Signed-off-by: default avatarAjit Pandey <ajitp@codeaurora.org>
parent 32ece77c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment