From: Sangchul Lee Date: Tue, 15 Mar 2022 06:44:17 +0000 (+0900) Subject: rtpjitterbuffer: Fix invalid memory access in rtp_jitter_buffer_pop() X-Git-Tag: 1.22.0~2125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7691c6776a9efdf6011fcef06101963c09b3a5a1;p=platform%2Fupstream%2Fgstreamer.git rtpjitterbuffer: Fix invalid memory access in rtp_jitter_buffer_pop() Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/rtpmanager/rtpjitterbuffer.c b/subprojects/gst-plugins-good/gst/rtpmanager/rtpjitterbuffer.c index af8cf63..32b1661 100644 --- a/subprojects/gst-plugins-good/gst/rtpmanager/rtpjitterbuffer.c +++ b/subprojects/gst-plugins-good/gst/rtpmanager/rtpjitterbuffer.c @@ -1309,7 +1309,8 @@ 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 */ - item->next = item->prev = NULL; + if (item) + item->next = item->prev = NULL; return (RTPJitterBufferItem *) item; }