commit | 98b1107be2423573f65bd44a0d3a1bde69789131 | [log] [tgz] |
---|---|---|
author | Channagoud Kadabi <ckadabi@codeaurora.org> | Thu Mar 12 15:14:22 2015 -0700 |
committer | Channagoud Kadabi <ckadabi@codeaurora.org> | Thu Mar 12 15:14:22 2015 -0700 |
tree | 915b17f3fbc68b5f2bf3a18c6b8b91f690c7a7f6 | |
parent | 8d60466f358d773b91648c4d2fb793e7fbd764da [diff] |
platform: msm_shared: Fix buffer over read Fix buffer read while reading mbr partition type in the partition parser. Change-Id: Iaeaf80fcd7c5fec464db37ca200e612f46e7e12c
diff --git a/platform/msm_shared/partition_parser.c b/platform/msm_shared/partition_parser.c index 2338060..970d7ce 100644 --- a/platform/msm_shared/partition_parser.c +++ b/platform/msm_shared/partition_parser.c
@@ -976,7 +976,7 @@ { unsigned int type_offset = TABLE_ENTRY_0 + OFFSET_TYPE; - if (size < type_offset) { + if (size < (type_offset + sizeof (*partition_type))) { goto end; }