From afb2878773620fb8fd5659d35a53b195f6c18181 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 10 Oct 2015 16:28:48 +0200 Subject: [PATCH] Corrected allocation size of a pointer array. Coverity CID 12585. --- libisofs/fs_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index c8836c9..061fe16 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -4281,7 +4281,7 @@ int iso_analyze_gpt(IsoImage *image, IsoDataSource *src, int flag) block_count = block_count + 1 - start_block; if (sai->gpt_req == NULL) { 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) return ISO_OUT_OF_MEM; }