From 8317a8099cc23e24f287c8b4e698c624d3306073 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Mon, 10 May 2021 08:51:09 +0900 Subject: [PATCH] rtpjitterbuffer: Check if item is not null before dereferencing it [Version] 1.16.2-24 [Issue Type] SVACE (DEREF_AFTER_NULL) Change-Id: I595e4cd750b7a2f51ee66cbf9e37a17388f7437e Signed-off-by: Sangchul Lee --- gst/rtpmanager/rtpjitterbuffer.c | 3 +++ packaging/gst-plugins-good.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/rtpmanager/rtpjitterbuffer.c b/gst/rtpmanager/rtpjitterbuffer.c index 6ef7df2..7d86dc0 100644 --- a/gst/rtpmanager/rtpjitterbuffer.c +++ b/gst/rtpmanager/rtpjitterbuffer.c @@ -1259,6 +1259,9 @@ rtp_jitter_buffer_pop (RTPJitterBuffer * jbuf, gint * percent) /* let's clear the pointers so we can ensure we don't free items that are * still in the jitterbuffer */ +#ifdef __TIZEN__ + if (item) +#endif item->next = item->prev = NULL; return (RTPJitterBufferItem *) item; diff --git a/packaging/gst-plugins-good.spec b/packaging/gst-plugins-good.spec index 098a955..224ed29 100644 --- a/packaging/gst-plugins-good.spec +++ b/packaging/gst-plugins-good.spec @@ -3,7 +3,7 @@ Name: gst-plugins-good Version: 1.16.2 -Release: 23 +Release: 24 License: LGPL-2.1+ Summary: GStreamer Streaming-Media Framework Plug-Ins Url: http://gstreamer.freedesktop.org/ -- 2.7.4