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

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

@ -4396,7 +4396,7 @@ int iso_analyze_apm(IsoImage *image, IsoDataSource *src, int flag)
name[32] = 0;
if (sai->apm_req == NULL) {
sai->apm_req = calloc(ISO_APM_ENTRIES_MAX,
sizeof(struct iso_apm_partition_request));
sizeof(struct iso_apm_partition_request *));
if (sai->apm_req == NULL)
return ISO_OUT_OF_MEM;
}

Loading…
Cancel
Save