From d917c94037beb20b0413cf281afadaf583c28c6a Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 2 May 2014 14:18:08 +0100 Subject: [PATCH] flxdec: fix integer overflow Coverity 1139859 --- gst/flx/gstflxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/flx/gstflxdec.c b/gst/flx/gstflxdec.c index 35e934edb0..3df4e9b863 100644 --- a/gst/flx/gstflxdec.c +++ b/gst/flx/gstflxdec.c @@ -520,7 +520,7 @@ gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) GST_LOG ("(FLC) oframe2 : 0x%08x", flxh->oframe2); } - flxdec->size = (flxh->width * flxh->height); + flxdec->size = ((guint) flxh->width * (guint) flxh->height); /* create delta and output frame */ flxdec->frame_data = g_malloc (flxdec->size); -- 2.34.1