1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/audio/mpg123/files/patch-common.c
Alexander Leidinger f14a57d93b - Fix security issues (and remove forbidden):
* Patch for CAN-2003-0577 was obtained via OpenBSD from
    http://marc.theaimsgroup.com/?l=bugtraq&m=104274357314340&w=2
  * Patch for CAN-2003-0865 was obtained via OpenBSD from
    http://www.debian.org/security/2004/dsa-435

Submitted by:	Marius Strobl <marius@alchemy.franken.de>
2004-03-27 14:16:04 +00:00

12 lines
353 B
C

--- common.c.orig Thu Jul 17 19:20:43 2003
+++ common.c Thu Jul 17 19:22:04 2003
@@ -123,7 +123,7 @@ int head_check(unsigned long head)
return FALSE;
if(!((head>>17)&3))
return FALSE;
- if( ((head>>12)&0xf) == 0xf)
+ if( ((head>>12)&0xf) == 0xf || ((head>>12)&0xf) == 0)
return FALSE;
if( ((head>>10)&0x3) == 0x3 )
return FALSE;