Corrected allocation size of a pointer array. Coverity CID 12586.

This commit is contained in:
Thomas Schmitt 2015-10-10 16:32:44 +02:00
parent afb2878773
commit d1da5718c7

View File

@ -3797,7 +3797,7 @@ int iso_analyze_mbr_ptable(IsoImage *image, int flag)
/* Register partition as iso_mbr_partition_request */ /* Register partition as iso_mbr_partition_request */
if (sai->mbr_req == NULL) { if (sai->mbr_req == NULL) {
sai->mbr_req = calloc(ISO_MBR_ENTRIES_MAX, sai->mbr_req = calloc(ISO_MBR_ENTRIES_MAX,
sizeof(struct iso_mbr_partition_request)); sizeof(struct iso_mbr_partition_request *));
if (sai->mbr_req == NULL) if (sai->mbr_req == NULL)
{ret = ISO_OUT_OF_MEM; goto ex;} {ret = ISO_OUT_OF_MEM; goto ex;}
} }