crash when reading invalid tta file
Got segmentation:
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `ffprobe_g'.
Program terminated with signal 11, Segmentation fault.
#0 0x08062016 in tta_read_packet (s=dwarf2_read_address: Corrupted DWARF expression.
) at tta.c:130
130 size = st->index_entries[c->currentframe].size;
[New Thread 28405300 (LWP 1807013/ffprobe_g)]
(gdb) bt
#0 0x08062016 in tta_read_packet (s=dwarf2_read_address: Corrupted DWARF expression.
) at tta.c:130
#1 0x08064ac5 in av_read_packet (s=Unhandled dwarf expression opcode 0xa7
) at utils.c:750
#2 0x080653af in read_frame_internal (s=Unhandled dwarf expression opcode 0x0
) at utils.c:1221
#3 0x080682ae in avformat_find_stream_info (ic=Unhandled dwarf expression opcode 0xd7
) at utils.c:2452
#4 0x08048b20 in main (argc=2, argv=0xbfbfe680) at ffprobe.c:1085
Current language: auto; currently minimal
(gdb)