1 $NetBSD: patch-ad,v 1.12 2009/06/08 09:30:17 tron Exp $
3 Upstream fix for DoS vulnerability taken from here:
5 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530831
7 --- src/pcm.c.orig 2009-03-22 19:17:14.000000000 +0000
8 +++ src/pcm.c 2009-06-08 10:03:02.000000000 +0100
13 - psf->sf.frames = psf->datalength / psf->blockwidth ;
14 + psf->sf.frames = psf->blockwidth > 0 ? psf->datalength / psf->blockwidth : 0 ;