From 42e3953cf0f85ae46336f4410807d76105056443 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Sat, 16 Oct 2004 01:59:03 +0000 Subject: Update to 12.17.6. Changes in this release: numerous bugfixes. Reviewed by and with: Dan Nelson --- audio/sox/files/patch-wav.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 audio/sox/files/patch-wav.c (limited to 'audio/sox/files/patch-wav.c') 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) - { -- cgit v1.2.3