summaryrefslogtreecommitdiff
path: root/audio/sox/files/patch-wav.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sox/files/patch-wav.c')
-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)
- {