multipartdemux: segfault
@drakkan
Submitted by Nicola Link to original bug (#659573)
Description
I have the following segfault with multipartdemux:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeaed8700 (LWP 15906)]
0x00007ffff7211c60 in g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff7211c60 in g_str_hash ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff71def6d in g_hash_table_lookup ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff44d97be in gst_multipart_demux_get_gstname (
pad=<value optimized out>, buf=<value optimized out>)
at multipartdemux.c:246
#3 gst_multipart_find_pad_by_mime (pad=<value optimized out>,
buf=<value optimized out>) at multipartdemux.c:323
#4 gst_multipart_demux_chain (pad=<value optimized out>,
buf=<value optimized out>) at multipartdemux.c:589
#5 0x00007ffff7b57d0a in gst_pad_push (pad=0x7e4020, buffer=0x768180)
at gstpad.c:4710
#6 0x00007ffff50ce29a in gst_base_src_loop (pad=0x7e4020) at gstbasesrc.c:2552
#7 0x00007ffff7b7d61d in gst_task_func (task=0x6e7060) at gsttask.c:318
#8 0x00007ffff7219b16 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007ffff72173e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff6b89d8c in start_thread (arg=0x7fffeaed8700)
at pthread_create.c:304
#11 0x00007ffff68d504d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()
attacched is a dump of the stream that generate the problem, you can reproduce with:
gst-launch filesrc location=... ! multipartdemux ! ...
the stream is supposed to be audio/x-raw-int, rate=8000,channels=1,endianness=1234,width=16,depth=16,signed=true