rakshasa/rtorrent — Issue #25: XML-RPC integer overflow
Author: nickbp
Created: 2012-01-22 20:08:02+00:00
State: open

This 4478.4MB torrent will appear as 382.4MB:
http://cdimage.debian.org/debian-cd/6.0.3/amd64/bt-dvd/debian-6.0.3-amd64-DVD-1.iso.torrent:

$ XMLRPC_TRACE_XML=1 xmlrpc localhost d.get_size_bytes 47913E5A2559C95211E761834010965D8AD6FF29
XML-RPC CALL:

\r\n
\r\n
d.get_size_bytes\r\n
\r\n
47913E5A2559C95211E761834010965D8AD6FF29\r\n
\r\n
\r\n

XML-RPC RESPONSE:

\r\n
\r\n
\r\n
400990208\r\n
\r\n
\r\n

Result:

Integer: 400990208 (-> 382.4MB)