btshowmetainfo doesn't verify the file type
Bug #108101 reported by
Lars Ljung
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bittorrent (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: bittorrent
Btshowmetainfo should check if the file is a bittorrent file before trying to extract any information. As it is now it reads the whole file into memory before trying to decode it. It the file is big, let's say a 700 MiB ISO-image, this will take a long time and the process can't even be killed with "kill -9".
To post a comment you must log in.
Added a patch to solve the problem, it just checks for "d8:announce" and prints an error message it the file is of the wrong type.