msm: camera: icp: Prevent out of bound access in acquire
In ICP during acquire, no of output resource can change
from usespace. Change in no of output resource after the
memory allocation may result in out of bound access.
This can be avoided by checking value of no of output
resource during the allocation to the value copied from
userspace after allocation.
CRs-Fixed: 2414577
Change-Id: I063f472a7176caf25a9bd86324160974a915ffd8
Signed-off-by:
Prakasha Nayak <pnayak@codeaurora.org>
Loading
Please register or sign in to comment