ASoC: msm-pcm-host-voice: Address buffer overflow in hpcm capture copy
There is no check for the copy data size of the
ADSP returned payload. Add check for the max
hpcm_buf_node size before copy to avoid
buffer out of bounds issue.
Issue: FP3SEC-1131
Change-Id: Id647888430ce302359a857ef54d321bee99889bf
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
(cherry picked from commit 72c4f6adfc620ab50903303f6c96b4bc33382510)
(cherry picked from commit 8749c502772e8e6f60e0abdedeb90a2b4b75e395)
1 file changed