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 6facb93..a702b45 100644
--- a/platform/msm_shared/partition_parser.c
+++ b/platform/msm_shared/partition_parser.c
@@ -930,7 +930,7 @@
 {
 	unsigned int type_offset = TABLE_ENTRY_0 + OFFSET_TYPE;
 
-	if (size < type_offset) {
+	if (size < (type_offset + sizeof (*partition_type))) {
 		goto end;
 	}