Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4504 closed Bug (fixed)

Crash when adding malformed magnet link

Reported by: akima Owned by: jordan
Priority: Normal Milestone: 2.40
Component: libtransmission Version: 2.33
Severity: Normal Keywords: magnet crash
Cc:

Description

The following magnet link works fine:

magnet:?xt=urn:btih:4af6fb7cbfb8771f98a92302693b31e863b89d3e&dn=Ubuntu+10.10+amd64&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.ccc.de%3A80

If you strip the magnet link down to the first "&tr" then Transmission will crash when you add it:

magnet:?xt=urn:btih:4af6fb7cbfb8771f98a92302693b31e863b89d3e&dn=Ubuntu+10.10+amd64&tr

The presence of the "&tr" that is not followed by an equals and a tracker URL appears to be what causes the crash.

I am using Transmission 2.33 (12565) GTK on Ubuntu 10.04

Change History (5)

comment:1 follow-up: Changed 10 years ago by livings124

Can you post the corresponding crash report. That URL adds fine for me (in the Mac client) in 2.33 and 2.40b2, although with any trackers.

comment:2 in reply to: ↑ 1 Changed 10 years ago by akima

Replying to livings124:

Can you post the corresponding crash report. That URL adds fine for me (in the Mac client) in 2.33 and 2.40b2, although with any trackers.

I checked the ~/.config/transmission directory after it crashed. There don't appear to be any crash reports or debug related files.

I checked the trac wiki and can't see any instructions for creating a crash report/debug files.

Any advice?

comment:3 Changed 10 years ago by jordan

  • Milestone changed from None Set to 2.40
  • Owner set to jordan
  • Status changed from new to assigned

comment:4 follow-up: Changed 10 years ago by jordan

  • Component changed from Transmission to libtransmission
  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed for 2.40 by r12915. Thanks for the bug report!

comment:5 in reply to: ↑ 4 Changed 10 years ago by akima

Replying to jordan:

Fixed for 2.40 by r12915. Thanks for the bug report!

Thanks for the fix ;)

Note: See TracTickets for help on using tickets.