Subject: CVS commit: pkgsrc
To: None <pkgsrc-changes@NetBSD.org>
From: Reinoud Zandijk <firstname.lastname@example.org>
Date: 09/05/2005 23:41:13
Module Name: pkgsrc
Committed By: reinoud
Date: Mon Sep 5 23:41:13 UTC 2005
pkgsrc/net/btget: Makefile distinfo
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
With this small fix the repeated crashes that i experienced are gone. Author
has been notified of the possible problem.
To generate a diff of this commit:
cvs rdiff -r1.11048 -r1.11049 pkgsrc/doc/CHANGES
cvs rdiff -r184.108.40.206 -r1.2 pkgsrc/net/btget/Makefile pkgsrc/net/btget/distinfo
cvs rdiff -r220.127.116.11 -r1.2 pkgsrc/net/btget/patches/patch-ab
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.