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
tree: c54ad8298c4a044acc7efe8a485e77c7696ffd95
  1. asoc/
  2. config/
  3. dsp/
  4. include/
  5. ipc/
  6. soc/
  7. Android.mk
  8. Makefile
  9. Makefile.am
  10. NOTICE