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

This commit is contained in:
Thomas Schmitt 2015-10-10 16:28:48 +02:00
parent 4e7432c20f
commit afb2878773

View File

@ -4281,7 +4281,7 @@ int iso_analyze_gpt(IsoImage *image, IsoDataSource *src, int flag)
block_count = block_count + 1 - start_block; block_count = block_count + 1 - start_block;
if (sai->gpt_req == NULL) { if (sai->gpt_req == NULL) {
sai->gpt_req = calloc(ISO_GPT_ENTRIES_MAX, sai->gpt_req = calloc(ISO_GPT_ENTRIES_MAX,
sizeof(struct iso_gpt_partition_request)); sizeof(struct iso_gpt_partition_request *));
if (sai->gpt_req == NULL) if (sai->gpt_req == NULL)
return ISO_OUT_OF_MEM; return ISO_OUT_OF_MEM;
} }