Browse Source

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

release-1.5.4.branch
Thomas Schmitt 6 years ago
parent
commit
d1da5718c7
  1. 2
      libisofs/fs_image.c

2
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;}
}

Loading…
Cancel
Save