gst/goom/filters.c: Avoid goom coredumping by clearing memory.

Original commit message from CVS:
* gst/goom/filters.c: (zoomFilterSetResolution):
Avoid goom coredumping by clearing memory.
Fixes 345679.
This commit is contained in:
Wim Taymans 2006-07-07 15:04:29 +00:00
parent 05f3962c11
commit cac797c2eb
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-07-07 Wim Taymans <wim@fluendo.com>
* gst/goom/filters.c: (zoomFilterSetResolution):
Avoid goom coredumping by clearing memory.
Fixes 345679.
2006-07-05 Sebastien Moutte <sebastien@moutte.net>
* win32/vs6/libgstid3demux.dsp:

View file

@ -350,7 +350,7 @@ zoomFilterSetResolution (GoomData * gd, ZoomFilterData * zf)
coeffs = (guint32 *) ((1 + ((unsigned int) (freecoeffs)) / 128) * 128);
#else
zf->buffer = malloc (sizeof (guint32) * zf->buffsize * 5);
zf->buffer = calloc (sizeof (guint32), zf->buffsize * 5);
zf->pos10 = zf->buffer;
zf->c[0] = zf->pos10 + zf->buffsize;
zf->c[1] = zf->c[0] + zf->buffsize;