diff options
| author | Rahul Sharma <sharah@codeaurora.org> | 2017-07-18 17:26:03 +0530 |
|---|---|---|
| committer | Andy Sun <bins@codeaurora.org> | 2017-07-25 14:49:16 +0800 |
| commit | 86bad2f4c72e8d2409f95922d52b3e1a4fa62787 (patch) | |
| tree | 65faafbff844930a671b5de9db5b56d74665a41c /lib/mpi/mpi-bit.c | |
| parent | 26bb59b7f41080009fb5a6507b76017b39daea29 (diff) | |
msm: sensor: Fix to validate the settings size in flash
The size of the settings, copied from userspace, is directly checked
in msm_cci_data_queue with CCI_I2C_MAX_WRITE. This might cause
out of bound access in function msm_cci_data_queue as the max size is
MAX_I2C_REG_SET. Hence adding check on the size in flash driver itself.
Change-Id: Iaf8b62815282386af58d1b111876cc80411385a0
CR fixed: 2062894
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Andy Sun <bins@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
