fix prototypes for myFseek(). otherwise could lead to code execution

during encoding.

http://www.pivx.com/luigi/adv/blade942-adv.txt
This commit is contained in:
brad 2003-02-12 00:35:20 +00:00
parent 6acfc71d95
commit d5e4b59714
2 changed files with 27 additions and 7 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.22 2002/12/29 19:29:56 fgsch Exp $
# $OpenBSD: Makefile,v 1.23 2003/02/12 00:35:20 brad Exp $
COMMENT= "high-quality MP3 encoder"
DISTNAME= bladeenc-0.94.2-src-stable
PKGNAME= bladeenc-0.94.2
VERSION= 0.94.2
DISTNAME= bladeenc-${VERSION}-src-stable
PKGNAME= bladeenc-${VERSION}p1
CATEGORIES= audio
MASTER_SITES= http://bladeenc.mp3.no/source/ \
http://www.physik.TU-Berlin.DE/~ibex/ports/distfiles/
@ -12,6 +13,7 @@ HOMEPAGE= http://bladeenc.mp3.no/
MAINTAINER= Brad Smith <brad@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= "MP3 patent, http://mp3licensing.com/royalty/swenc.html"
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= "MP3 patent, http://mp3licensing.com/royalty/swenc.html"
@ -19,6 +21,6 @@ PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
WRKDIST= ${WRKDIR}/${PKGNAME}
WRKDIST= ${WRKDIR}/${DISTNAME:S/-src-stable//}
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-bladeenc_samplein_c,v 1.1 2003/02/12 00:22:21 brad Exp $
--- bladeenc/samplein.c.orig Tue Feb 11 19:17:30 2003
+++ bladeenc/samplein.c Tue Feb 11 19:17:54 2003
$OpenBSD: patch-bladeenc_samplein_c,v 1.2 2003/02/12 00:35:21 brad Exp $
--- bladeenc/samplein.c.orig Tue May 8 08:11:53 2001
+++ bladeenc/samplein.c Tue Feb 11 19:22:35 2003
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
@ -9,3 +9,21 @@ $OpenBSD: patch-bladeenc_samplein_c,v 1.1 2003/02/12 00:22:21 brad Exp $
#include "system.h"
#include "samplein.h"
@@ -75,7 +76,7 @@ static uint readRAWSamples (SI_Stream
static int initAIFF (SI_Stream *psInfo);
static uint readAIFFSamples (SI_Stream *psInfo, int nSamples, short *wpSamples);
-static int myFseek (FILE *fp, int offset);
+static int myFseek (FILE *fp, unsigned int offset);
@@ -613,7 +614,7 @@ static uint readAIFFSamples (SI_Stream
/* We can't use the real fseek() since you can't seek in a stream (stdin) */
-static int myFseek (FILE *fp, int offset)
+static int myFseek (FILE *fp, unsigned int offset)
{
char dummy[256];