OSDN Git Service

soc: msm: add size check to fix out of bounds on ANC
authorTimothy Sham <tsham@codeaurora.org>
Mon, 28 May 2018 21:17:41 +0000 (17:17 -0400)
committerTimothy Sham <tsham@codeaurora.org>
Fri, 1 Jun 2018 17:35:21 +0000 (13:35 -0400)
commit49662914af86d4b7ef721a87c07f1dbff8c96387
tree7cc696579a1684d70900f204db3f58b9a437b661
parent5cb5749cd7fc25ad09fce7ce083aeb38e2a42fe5
soc: msm: add size check to fix out of bounds on ANC

Before calling audio ANC ioctl functions, compare the
allocated buffer size to the size of the header and ANC cmd header
to ensure the buffer is big enough.

Change-Id: I8fcd0a830853d802bbb11fc243a4d392fbe384f3
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
drivers/soc/qcom/qdsp6v2/audio_anc.c
include/uapi/linux/msm_audio_anc.h