From: Jihae Yi Date: Wed, 4 Nov 2015 05:51:19 +0000 (+0900) Subject: rtspsrc: avoid potentially overflowing expression X-Git-Tag: 1.10.4~503 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da5c8a954c5d5f86cd650ef87cfbe569c964491b;p=platform%2Fupstream%2Fgst-plugins-good.git rtspsrc: avoid potentially overflowing expression https://bugzilla.gnome.org/show_bug.cgi?id=757569 --- diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index a57fff0..8ff5065 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -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;