Treferwynd / transmission-remote-gtk

Automatically exported from code.google.com/p/transmission-remote-gtk
GNU General Public License v2.0
0 stars 0 forks source link

parse_torrent segfault #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This was a nasty one to solve... it is triggered by a torrent file with empty 
list elements, which are odd but entirely ok.

** Message: Connected to Transmission 2.40b2 (12908), getting torrents...

Program received signal SIGSEGV, Segmentation fault.
0x0000000000435b9e in be_free (node=0xa3c760) at bencode.c:209
209                 for (i = 0; node->val.l[i]; ++i)
(gdb) bt
#0  0x0000000000435b9e in be_free (node=0xa3c760) at bencode.c:209
#1  0x0000000000435bfc in be_free (node=0x7618b0) at bencode.c:219
#2  0x00000000004354e3 in trg_parse_torrent_file (filename=0x998f80 "...") at 
trg-file-parser.c:166
#3  0x0000000000433e20 in trg_torrent_add_dialog_set_filenames (d=0x89c200, 
filenames=0x863c10) at trg-torrent-add-dialog.c:716
#4  0x0000000000434673 in trg_torrent_add_dialog_constructor (type=10008976, 
n_construct_properties=5, construct_params=0x98b1f0) at 
trg-torrent-add-dialog.c:867

Original issue reported on code.google.com by reardo...@gmail.com on 26 Sep 2011 at 1:05

Attachments:

GoogleCodeExporter commented 9 years ago
thanks

Original comment by a...@eth0.org.uk on 26 Sep 2011 at 5:35