Subject: CVS commit: pkgsrc
From: Reinoud Zandijk
Date: 2005-09-06 01:41:13
Message id: 20050905234113.C31942DA27@cvs.netbsd.org

Log Message:
Fix small bug in bittorrent message handling.

If i understand the code correctly a message is send with a 4 byte length in
front of a block of data. If the data length was less than 80 a stack reserved
memory block was used to avoid over-malloc'ing for small pieces. This block was
declared 80 bytes long... so it would overflow if messages of aprox. 80 bytes
were sent for the length bytes were not accounted for. Claimed more for
certain.

With this small fix the repeated crashes that i experienced are gone. Author
has been notified of the possible problem.

Files:
RevisionActionfile
1.2modifypkgsrc/net/btget/Makefile
1.2modifypkgsrc/net/btget/distinfo
1.2modifypkgsrc/net/btget/patches/patch-ab