Fixed memory waste by oversized feature descriptor objects. Coverity CID 21.
This commit is contained in:
parent
7993b719a7
commit
9917a1ddeb
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2015.10.26.154728"
|
#define Cdrskin_timestamP "2015.10.26.183813"
|
||||||
|
@ -3445,7 +3445,7 @@ int burn_feature_descr_new(struct burn_feature_descr **new,
|
|||||||
*new = NULL;
|
*new = NULL;
|
||||||
if (descr_len < 4)
|
if (descr_len < 4)
|
||||||
return 0;
|
return 0;
|
||||||
(*new) = o = calloc(1, sizeof(struct burn_speed_descriptor));
|
(*new) = o = calloc(1, sizeof(struct burn_feature_descr));
|
||||||
if (o == NULL)
|
if (o == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
o->feature_code = (descr[0] << 8) | descr[1];
|
o->feature_code = (descr[0] << 8) | descr[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user