rtspsrc: avoid potentially overflowing expression
authorJihae Yi <jihae.yi@samsung.com>
Wed, 4 Nov 2015 05:51:19 +0000 (14:51 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 24 Mar 2016 12:28:50 +0000 (14:28 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=757569

gst/rtsp/gstrtspsrc.c

index a57fff0..8ff5065 100644 (file)
@@ -1193,7 +1193,7 @@ gst_rtspsrc_get_property (GObject * object, guint prop_id, GValue * value,
     {
       guint64 timeout;
 
-      timeout = rtspsrc->tcp_timeout.tv_sec * G_USEC_PER_SEC +
+      timeout = ((guint64) rtspsrc->tcp_timeout.tv_sec) * G_USEC_PER_SEC +
           rtspsrc->tcp_timeout.tv_usec;
       g_value_set_uint64 (value, timeout);
       break;