Corrected allocation size of a pointer array. Coverity CID 12587.
This commit is contained in:
parent
d1da5718c7
commit
af55722830
@ -4396,7 +4396,7 @@ int iso_analyze_apm(IsoImage *image, IsoDataSource *src, int flag)
|
|||||||
name[32] = 0;
|
name[32] = 0;
|
||||||
if (sai->apm_req == NULL) {
|
if (sai->apm_req == NULL) {
|
||||||
sai->apm_req = calloc(ISO_APM_ENTRIES_MAX,
|
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)
|
if (sai->apm_req == NULL)
|
||||||
return ISO_OUT_OF_MEM;
|
return ISO_OUT_OF_MEM;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user