pkgsrc/net/btget/distinfo
reinoud 1f09a6872f 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.
2005-09-05 23:41:13 +00:00

7 lines
355 B
Text

$NetBSD: distinfo,v 1.2 2005/09/05 23:41:13 reinoud Exp $
SHA1 (libbt-1.04.tar.gz) = ee65205f3e5575d86d5fec0b2958bb8855ec0fa5
RMD160 (libbt-1.04.tar.gz) = a6b827fa1d5dc7a27ab78fefe2ac5009ef115f2a
Size (libbt-1.04.tar.gz) = 309186 bytes
SHA1 (patch-aa) = 3f045800da8d372d45fcf59fe2f1f9fb0a288a20
SHA1 (patch-ab) = 9111ce4a3f5332fd02dc218990f1e75a3e71b563