flxdec: fix integer overflow
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 2 May 2014 13:18:08 +0000 (14:18 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 2 May 2014 13:18:08 +0000 (14:18 +0100)
Coverity 1139859

gst/flx/gstflxdec.c

index 35e934e..3df4e9b 100644 (file)
@@ -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);