CC: | DJosifovich [...] gmail.com |
Subject: | bug in Bencode.pm |
Date: | Sun, 04 Nov 2007 08:18:30 -0700 |
To: | bug-bencode [...] rt.cpan.org |
From: | DJosifovich [...] gmail.com |
Hello;
I downloaded your Bencode perl module this morning.
package Bencode;
=head1 NAME
Bencode - BitTorrent serialisation format
=head1 VERSION
This document describes Bencode version 1.0
I found two bugs.
First. If the a string has a newline (aka 0x0a aka ^J aka nl aka \n),
then $str_rx does not match resulting in "garbage at message". I'm finding
newlines in the peers values in the response from the tracker. They are
part of an ipaddress and-or port.
Second. If the string length is overly large, then the "garbage at message"
is also seen. Example, "d4:test20:fooe". I would have expected a different
or better error message. I found this bug while experimenting to find out
what the problem was in the first bug.
Is there an updated version? 1.0 seems unlikely to be the latest but it
was what I currently found on some website. I go look around more.
Best Regards,
Dennis