commit | 3856945ce9f3b338d62a01a038b75d61a5cd1049 | [log] [tgz] |
---|---|---|
author | Sri Karri <sridur@codeaurora.org> | Fri Mar 16 12:46:14 2018 +0530 |
committer | Karsten Tausche <karsten@fairphone.com> | Tue Nov 13 16:22:27 2018 +0100 |
tree | 5ae96e692816ddbb163d7478b4f4786b7c75d7b6 | |
parent | 58207a2eaaa5cdd7868358b79d7ffabc26c42bf4 [diff] |
mm-video-v4l2: Protect buffer access and increase input buffer size. Protect buffer access for below scenarios: *Increase the scope of buf_lock in free_buffer to avoid access of freed buffer for both input and output buffers. Also, add check before output buffer access. *Disallow allocate buffer mode after client has called use buffer. Allocate additional 512 bytes of memory for input buffers on top of allocation size as per hardware requirement. CRs-Fixed: 2119840 Issue: SEC-1431 Issue: SEC-1432 Change-Id: Ic570d8248806ee492f68b51cb73139cf5c5028e5 (cherry picked from commit https://source.codeaurora.org/quic/la/platform/hardware/qcom/media/commit/?id=d41a7a4c7d43fa67f2e4a487b8a1fb0aac38226d)