release signal before destroy pipeline 26/215526/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.030744 accepted/tizen/5.5/unified/mobile/hotfix/20201027.065427 accepted/tizen/5.5/unified/wearable/hotfix/20201027.121350 accepted/tizen/unified/20191011.075957 submit/tizen/20191011.040514 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 submit/tizen_5.5_wearable_hotfix/20201026.184302 tizen_5.5.m2_release
authorEunhye Choi <eunhae1.choi@samsung.com>
Thu, 10 Oct 2019 05:47:11 +0000 (14:47 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Thu, 10 Oct 2019 07:06:49 +0000 (16:06 +0900)
- resolve ASAN issue about heap-use-after-free
- freed mem is accessed by no-more-pads/pad-added.

[Version] 0.1.31

Change-Id: Ie0295bc40b9c0d5e4b0781a4d3b984c4f5285c64

packaging/capi-mediademuxer.spec
src/port_gst/mediademuxer_port_gst.c

index a61f42c..9d70954 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-mediademuxer
 Summary:    A Media Demuxer library in Tizen Native API
-Version:    0.1.30
+Version:    0.1.31
 Release:    1
 Group:      Multimedia/API
 License:    Apache-2.0
index 6c1cb1c..7812329 100644 (file)
@@ -1836,6 +1836,12 @@ static int gst_demuxer_unprepare(MMHandleType pHandle)
        MEDIADEMUXER_CHECK_NULL(pHandle);
        mdgst_handle_t *gst_handle = (mdgst_handle_t *)pHandle;
 
+       /* disconnect signal handler */
+       if (gst_handle->demux) {
+               g_signal_handlers_disconnect_by_func(gst_handle->demux, __gst_on_pad_added, gst_handle);
+               g_signal_handlers_disconnect_by_func(gst_handle->demux, __gst_no_more_pad, gst_handle);
+       }
+
        /*Modification : Fix pipeline state change was block by appsink When EOS received and appsink also has many datas*/
        int indx = 0;
        track *atrack = gst_handle->info.head;