From d1da5718c7a974401e682fa2d32467a3ca426566 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 10 Oct 2015 16:32:44 +0200 Subject: [PATCH] Corrected allocation size of a pointer array. Coverity CID 12586. --- 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 061fe16..b7550ac 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -3797,7 +3797,7 @@ int iso_analyze_mbr_ptable(IsoImage *image, int flag) /* Register partition as iso_mbr_partition_request */ if (sai->mbr_req == NULL) { 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) {ret = ISO_OUT_OF_MEM; goto ex;} }