mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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:
parent
05f3962c11
commit
cac797c2eb
2 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue