[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#466274: marked as done (bittorrent: check to see if file is a torrent before reading it in to memory)



Your message dated Fri, 18 Oct 2019 04:23:38 +0000
with message-id <E1iLJne-000Co3-DG@fasolo.debian.org>
and subject line Bug#936210: Removed package(s) from unstable
has caused the Debian Bug report #466274,
regarding bittorrent: check to see if file is a torrent before reading it in to memory
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
466274: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466274
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: bittorrent
Version: 3.4.2-11
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
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 <bluekuja@ubuntu.com>
##
## 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']





--- End Message ---
--- Begin Message ---
Version: 3.4.2-12+rm

Dear submitter,

as the package bittorrent has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/936210

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply to: