Browse Source

Fixed memory waste by oversized feature descriptor objects. Coverity CID 21.

1.4.2
Thomas Schmitt 7 years ago
parent
commit
9917a1ddeb
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 2
      libburn/drive.c

2
cdrskin/cdrskin_timestamp.h

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.26.154728"
#define Cdrskin_timestamP "2015.10.26.183813"

2
libburn/drive.c

@ -3445,7 +3445,7 @@ int burn_feature_descr_new(struct burn_feature_descr **new,
*new = NULL;
if (descr_len < 4)
return 0;
(*new) = o = calloc(1, sizeof(struct burn_speed_descriptor));
(*new) = o = calloc(1, sizeof(struct burn_feature_descr));
if (o == NULL)
return -1;
o->feature_code = (descr[0] << 8) | descr[1];

Loading…
Cancel
Save