Package: bittorrent Version: 3.4.2-11 Severity: normal Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu hardy ubuntu-patch
Hi, In https://bugs.launchpad.net/ubuntu/+source/bittorrent/+bug/108101 it was reported that Btshowmetainfo can use up a lot of memory scanning a file that isn't even a torrent. Lars L and Andrea Veri wrote the patch at http://patches.ubuntu.com/b/bittorrent/extracted/01_btshow-meta-info.dpatch to check whether the file is a torrent before scanning the whole file. Please consider applying it. I have put the patch at the bottom of this mail for your convenience. Thanks, James #! /bin/sh /usr/share/dpatch/dpatch-run ## 01_btshow-meta-info.dpatch by Andrea Veri <[EMAIL PROTECTED]> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ --- bittorrent-3.4.2/btshowmetainfo.py 2007-02-19 19:33:28.000000000 +0000 +++ bittorrent.3.4.2.new/btshowmetainfo.py 2007-04-20 14:57:24.000000000 +0100 @@ -21,6 +21,10 @@ for metainfo_name in argv[1:]: metainfo_file = open(metainfo_name, 'rb') + if metainfo_file.read(11) != 'd8:announce': + print '%s: Not a BitTorrent metainfo file' % metainfo_name + continue + metainfo_file.seek(0) metainfo = bdecode(metainfo_file.read()) metainfo_file.close() announce = metainfo['announce'] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

