OSDN Git Service

ais: match type to avoid array overflow
authorAndy Sun <bins@codeaurora.org>
Tue, 6 Mar 2018 08:16:39 +0000 (16:16 +0800)
committerAndy Sun <bins@codeaurora.org>
Tue, 6 Mar 2018 08:16:46 +0000 (16:16 +0800)
commiteed92b4a0f8f5b79e294e909f27aed47112dd748
tree60607e65fa14e4b61e5331cf6c6a34cb3ba265f0
parenta337c17cebeadebddd57cfae9d7953567969be06
ais: match type to avoid array overflow

Fix buffer overflow and array index out of bounds cases.
Because size of int(32bits) unequal to size of long(64bits).

Change-Id: I45a70ec5b6926698bb444fc78f85785bc4a25ea5
Signed-off-by: Andy Sun <bins@codeaurora.org>
drivers/media/platform/msm/ais/camera/camera.c