Index: head/audio/vorbis-tools/Makefile =================================================================== --- head/audio/vorbis-tools/Makefile (revision 396531) +++ head/audio/vorbis-tools/Makefile (revision 396532) @@ -1,42 +1,42 @@ # Created by: t.vanklaveren@student.utwente.nl # $FreeBSD$ PORTNAME= vorbis-tools PORTVERSION= 1.4.0 -PORTREVISION= 8 +PORTREVISION= 9 PORTEPOCH= 3 CATEGORIES= audio MASTER_SITES= http://downloads.xiph.org/releases/vorbis/ MAINTAINER= naddy@FreeBSD.org COMMENT= Play, encode, and manage Ogg Vorbis files LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libao.so:${PORTSDIR}/audio/libao \ libcurl.so:${PORTSDIR}/ftp/curl \ libFLAC.so:${PORTSDIR}/audio/flac \ libkate.so:${PORTSDIR}/multimedia/libkate \ libspeex.so:${PORTSDIR}/audio/speex \ libvorbis.so:${PORTSDIR}/audio/libvorbis USES= cpe iconv pkgconfig CPE_VENDOR= xiph GNU_CONFIGURE= yes CONFIGURE_ENV= PTHREAD_LIBS="-lpthread" CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/vorbis-tools ${INSTALL_DATA} ${WRKSRC}/ogg123/ogg123rc-example \ ${STAGEDIR}${PREFIX}/share/examples/vorbis-tools/ogg123rc .include Index: head/audio/vorbis-tools/files/patch-oggenc_audio.c =================================================================== --- head/audio/vorbis-tools/files/patch-oggenc_audio.c (nonexistent) +++ head/audio/vorbis-tools/files/patch-oggenc_audio.c (revision 396532) @@ -0,0 +1,26 @@ +--- oggenc/audio.c.orig 2010-03-24 08:27:14 UTC ++++ oggenc/audio.c +@@ -245,8 +245,8 @@ static int aiff_permute_matrix[6][6] = + int aiff_open(FILE *in, oe_enc_opt *opt, unsigned char *buf, int buflen) + { + int aifc; /* AIFC or AIFF? */ +- unsigned int len; +- unsigned char *buffer; ++ unsigned int len, readlen; ++ unsigned char buffer[22]; + unsigned char buf2[8]; + aiff_fmt format; + aifffile *aiff = malloc(sizeof(aifffile)); +@@ -269,9 +269,9 @@ int aiff_open(FILE *in, oe_enc_opt *opt, + return 0; /* Weird common chunk */ + } + +- buffer = alloca(len); +- +- if(fread(buffer,1,len,in) < len) ++ readlen = len < sizeof(buffer) ? len : sizeof(buffer); ++ if(fread(buffer,1,readlen,in) < readlen || ++ (len > readlen && !seek_forward(in, len-readlen))) + { + fprintf(stderr, _("Warning: Unexpected EOF in reading AIFF header\n")); + return 0; Property changes on: head/audio/vorbis-tools/files/patch-oggenc_audio.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property