Computer Scientist

Saturday, 19 February 2011

Found a Bug in jBittorrentAPI

Actually, this is my first time to find some bugs in other's work.....

In it's TorrentProcessor class, it get the value of file length using a Long.inValue. The precision has been lost a lot, even if it assign it back to a long value. Because of this bug, I got a overflowed number with minus to be inserted into mysql's unsigned big int column!! Obviously, a error message is obtained.

Actually, the reason that I will use this package is that, it can read all of the files that C version's bencode program can not read. Whenever I process the files from Pirate Bay, there would be a segmentation fault sent back to me.

Good work for jBittorrentAPI.....

No comments:

Post a Comment