aboutsummaryrefslogtreecommitdiffstats
path: root/audio/bladeenc
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2003-02-06 03:23:54 +0800
committerdirk <dirk@FreeBSD.org>2003-02-06 03:23:54 +0800
commit292772fdf0f321ea7177e348b6bf79de8fcb6003 (patch)
tree8564c3ae464e3a85a481209092c6dfddd46472e5 /audio/bladeenc
parent5ff9429edaac00d62055d3eaff6d5ba00b8bffc9 (diff)
downloadfreebsd-ports-gnome-292772fdf0f321ea7177e348b6bf79de8fcb6003.tar.gz
freebsd-ports-gnome-292772fdf0f321ea7177e348b6bf79de8fcb6003.tar.zst
freebsd-ports-gnome-292772fdf0f321ea7177e348b6bf79de8fcb6003.zip
Fix prototypes for myFseek(). Otherwise could lead to code execution
during encoding. Submitted by: jedgar Inspired by: http://www.pivx.com/luigi/adv/blade942-adv.txt
Diffstat (limited to 'audio/bladeenc')
-rw-r--r--audio/bladeenc/files/patch-bladeenc_samplein.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/audio/bladeenc/files/patch-bladeenc_samplein.c b/audio/bladeenc/files/patch-bladeenc_samplein.c
index 78c10abbe8e7..038377d1c433 100644
--- a/audio/bladeenc/files/patch-bladeenc_samplein.c
+++ b/audio/bladeenc/files/patch-bladeenc_samplein.c
@@ -1,5 +1,5 @@
--- bladeenc/samplein.c.orig Tue May 8 14:11:53 2001
-+++ bladeenc/samplein.c Thu Sep 19 10:25:54 2002
++++ bladeenc/samplein.c Wed Feb 5 20:18:03 2003
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
@@ -8,3 +8,21 @@
#include "system.h"
#include "samplein.h"
+@@ -75,7 +76,7 @@
+ 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 @@
+
+ /* 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];
+