summaryrefslogtreecommitdiff
path: root/audio/sox/files/patch-wav.c
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2004-10-16 01:59:03 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2004-10-16 01:59:03 +0000
commit42e3953cf0f85ae46336f4410807d76105056443 (patch)
treea9e22fa5768d80d6f477c873388c005e7cd420dd /audio/sox/files/patch-wav.c
parentFix a glaring bug: didn't account for NOPORTDOCS. (diff)
Update to 12.17.6.
Changes in this release: numerous bugfixes. Reviewed by and with: Dan Nelson <dnelson@allantgroup.com>
Diffstat (limited to '')
-rw-r--r--audio/sox/files/patch-wav.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/audio/sox/files/patch-wav.c b/audio/sox/files/patch-wav.c
deleted file mode 100644
index 2e7600888252..000000000000
--- a/audio/sox/files/patch-wav.c
+++ /dev/null
@@ -1,24 +0,0 @@
---- wav.c.old 2002-12-31 04:19:22.000000000 +0100
-+++ wav.c 2004-07-18 19:25:46.000000000 +0200
-@@ -917,6 +917,10 @@
- } else if(strncmp(magic,"ICRD",4) == 0){
- st_readdw(ft,&len);
- len = (len + 1) & ~1;
-+ if (len > 254) {
-+ fprintf(stderr, "Possible buffer overflow hack attack (ICRD)!\n");
-+ exit(109);
-+ }
- st_reads(ft,text,len);
- if (strlen(ft->comment) + strlen(text) < 254)
- {
-@@ -926,6 +930,10 @@
- } else if(strncmp(magic,"ISFT",4) == 0){
- st_readdw(ft,&len);
- len = (len + 1) & ~1;
-+ if (len > 254) {
-+ fprintf(stderr, "Possible buffer overflow hack attack (ISFT)!\n");
-+ exit(110);
-+ }
- st_reads(ft,text,len);
- if (strlen(ft->comment) + strlen(text) < 254)
- {