DivestOS/Patches/Linux_CVEs/CVE-2017-9720/ANY/0001.patch

33 lines
1.3 KiB
Diff
Raw Normal View History

2017-11-07 17:32:46 -05:00
From 737f415a5c637802786ec6d36288220cb4d3ae4d Mon Sep 17 00:00:00 2001
From: Fei Zhang <feizhang@codeaurora.org>
2017-11-07 17:32:46 -05:00
Date: Wed, 17 May 2017 14:14:54 +0800
Subject: msm:camera: correct stats query out of boundary
fix one potential out of boundary query of stats info.
Change-Id: I13e4bf8802fcce529f9268c272e4727619d5ad8f
Signed-off-by: Fei Zhang <feizhang@codeaurora.org>
---
drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2017-11-07 17:32:46 -05:00
mode change 100644 => 100755 drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
diff --git a/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c b/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
2017-11-07 17:32:46 -05:00
old mode 100644
new mode 100755
index d4d2c82..8d2d8e7
--- a/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
+++ b/drivers/media/platform/msm/camera_v2/isp/msm_isp_stats_util.c
2017-11-07 17:32:46 -05:00
@@ -885,7 +885,7 @@ int msm_isp_update_stats_stream(struct vfe_device *vfe_dev, void *arg)
&update_cmd->update_info[i];
/*check array reference bounds*/
if (STATS_IDX(update_info->stream_handle)
- > vfe_dev->hw_info->stats_hw_info->num_stats_type) {
+ >= vfe_dev->hw_info->stats_hw_info->num_stats_type) {
pr_err("%s: stats idx %d out of bound!", __func__,
2017-11-07 17:32:46 -05:00
STATS_IDX(update_info->stream_handle));
return -EINVAL;
--
cgit v1.1