Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML-RPC integer overflow #25

Closed
nickbp opened this issue Jan 22, 2012 · 5 comments
Closed

XML-RPC integer overflow #25

nickbp opened this issue Jan 22, 2012 · 5 comments

Comments

@nickbp
Copy link

nickbp commented Jan 22, 2012

rTorrent 0.8.6/0.12.6, Debian Squeeze x86

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)

@rakshasa
Copy link
Owner

64bit is supported if you need it.

@nickbp
Copy link
Author

nickbp commented Jan 23, 2012

Could you clarify? In this case the software is running on a pentium 3, how do I solve this problem given a 686 build?

@rakshasa
Copy link
Owner

Ask the XMLRPC guys, not me.

@nickbp
Copy link
Author

nickbp commented Jan 23, 2012

So it's a problem with the XML-RPC library rtorrent is using?

@pyroscope
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants