After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775887 - qtdemux/xmptag: memory leak in gst_tag_list_from_xmp_buffer
qtdemux/xmptag: memory leak in gst_tag_list_from_xmp_buffer
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: 1.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-09 15:16 UTC by Hanno Böck
Modified: 2016-12-13 09:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hanno Böck 2016-12-09 15:16:40 UTC
This file causes a memory leak:
http://samples.mplayerhq.hu/ffmpeg-bugs/trac/ticket5624/2_8bv_4444_int.mov

ASAN error:
==3135==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 4 byte(s) in 1 object(s) allocated from:
    #0 0x4d4e38 in malloc (/usr/bin/gst-discoverer-1.0+0x4d4e38)
    #1 0x7f1a58727c98 in g_malloc /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gmem.c:94
    #2 0x7f1a587417fe in g_strdup /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gstrfuncs.c:363
    #3 0x7f1a5a19d3a6 in gst_tag_list_from_xmp_buffer /f/gstreamer/gst-plugins-base/gst-libs/gst/tag/gstxmptag.c:1316:46
    #4 0x7f1a4c1fd66c in qtdemux_parse_udta /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:12531:18
    #5 0x7f1a4c1c44d1 in qtdemux_parse_tree /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:12875:5
    #6 0x7f1a4c1b4d4a in gst_qtdemux_loop_state_header /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:4228:7
    #7 0x7f1a4c1b4d4a in gst_qtdemux_loop /f/gstreamer/gst-plugins-good/gst/isomp4/qtdemux.c:5765
    #8 0x7f1a5954ca03 in gst_task_func /f/gstreamer/gstreamer/gst/gsttask.c:334:5
    #9 0x7f1a5874a857 in g_thread_pool_thread_proxy /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthreadpool.c:307
    #10 0x7f1a58749ec4 in g_thread_proxy /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthread.c:784
    #11 0x7f1a581c6453 in start_thread (/lib64/libpthread.so.0+0x7453)
    #12 0x7f1a57cf65dc in clone (/lib64/libc.so.6+0xe75dc)

SUMMARY: AddressSanitizer: 4 byte(s) leaked in 1 allocation(s).
Comment 1 Sebastian Dröge (slomo) 2016-12-09 15:37:54 UTC
commit 2f62720d71a42f20f0b00a77881543e36adcb8d3
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Fri Dec 9 17:36:47 2016 +0200

    xmptag: Don't leak the namespace string if there are multiple
    
    https://bugzilla.gnome.org/show_bug.cgi?id=775887