From cac797c2eb278032b3f58c373a7b75ee9835c1c5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 7 Jul 2006 15:04:29 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/goom/filters.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d472365ac2..c1652d911d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-07-07 Wim Taymans + + * gst/goom/filters.c: (zoomFilterSetResolution): + Avoid goom coredumping by clearing memory. + Fixes 345679. + 2006-07-05 Sebastien Moutte * win32/vs6/libgstid3demux.dsp: diff --git a/gst/goom/filters.c b/gst/goom/filters.c index 866885be01..b898e89cd0 100644 --- a/gst/goom/filters.c +++ b/gst/goom/filters.c @@ -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;