1f09a6872f
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.
27 lines
900 B
Makefile
27 lines
900 B
Makefile
# $NetBSD: Makefile,v 1.2 2005/09/05 23:41:13 reinoud Exp $
|
|
#
|
|
|
|
DISTNAME= libbt-1.04
|
|
PKGNAME= ${DISTNAME:S/libbt/btget/}
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libbt/}
|
|
|
|
MAINTAINER= reinoud@NetBSD.org
|
|
HOMEPAGE= http://libbt.sourceforge.net/
|
|
COMMENT= Fast bittorrent client and library written in C
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/btget ${PREFIX}/bin/btget
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/btlist ${PREFIX}/bin/btlist
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/btcheck ${PREFIX}/bin/btcheck
|
|
${INSTALL_MAN} ${WRKSRC}/man/btget.1 ${PREFIX}/man/man1/btget.1
|
|
${INSTALL_MAN} ${WRKSRC}/man/btlist.1 ${PREFIX}/man/man1/btlist.1
|
|
${INSTALL_MAN} ${WRKSRC}/man/btcheck.1 ${PREFIX}/man/man1/btcheck.1
|
|
|
|
.include "../../www/curl/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|