commit | 873bce734f798ca6c48823b13eed295e6375f639 | [log] [tgz] |
---|---|---|
author | Soumya Managoli <quic_c_smanag@quicinc.com> | Fri Jan 06 14:37:20 2023 +0530 |
committer | Michael Bestas <mkbestas@lineageos.org> | Tue Jun 06 17:43:24 2023 +0300 |
tree | 5f1c2cc639737a984daeeb2848eebc3205e575ae | |
parent | aaad10248cc7377e8eef4d6e8d421384bfdbea89 [diff] |
ASoC: msm-pcm-q6-v2: Add dsp buf check Current logic copies user buf size of data from the avail dsp buf at a given offset. If this offset returned from DSP in READ_DONE event goes out of bounds or is corrupted, then it can lead to out of bounds DSP buffer access, resulting in memory fault. Fix is to add check for this buf offset, if it is within the buf size range. Change-Id: I7753cc6db394704dbb959477150141d42b836bef Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>