From fefa55ae7f2236264a7578dfd50e9945d5b0b1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 16 Jun 2016 10:57:32 -0400 Subject: rtp-tfrc: Fix memset to the right size This was reported from static analysis by dcb314@hotmail.com https://bugs.freedesktop.org/show_bug.cgi?id=96546 --- gst/fsrtpconference/fs-rtp-tfrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/fsrtpconference/fs-rtp-tfrc.c b/gst/fsrtpconference/fs-rtp-tfrc.c index 11aa6b1b..f1435519 100644 --- a/gst/fsrtpconference/fs-rtp-tfrc.c +++ b/gst/fsrtpconference/fs-rtp-tfrc.c @@ -158,7 +158,7 @@ fs_rtp_tfrc_init (FsRtpTfrc *self) self->extension_type = EXTENSION_NONE; self->extension_id = 0; - memset (self->pts, 0, 128); + memset (self->pts, 0, 128 * sizeof (gboolean)); self->systemclock = gst_system_clock_obtain (); } @@ -1444,7 +1444,7 @@ fs_rtp_tfrc_codecs_updated (FsRtpTfrc *self, GST_OBJECT_LOCK (self); - memset (self->pts, 0, 128); + memset (self->pts, 0, 128 * sizeof (gboolean)); for (item = codec_associations; item; item = item->next) { CodecAssociation *ca = item->data; -- cgit v1.2.1