blob: 888e8be114c28e2152191499ec7aeabee47f050e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-aa,v 1.15 2009/06/08 09:30:17 tron Exp $
Upstream fix for DoS vulnerability taken from here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530831
--- src/alaw.c.orig 2009-03-22 19:17:13.000000000 +0000
+++ src/alaw.c 2009-06-08 10:03:02.000000000 +0100
@@ -69,7 +69,7 @@
else
psf->datalength = 0 ;
- psf->sf.frames = psf->datalength / psf->blockwidth ;
+ psf->sf.frames = psf->blockwidth > 0 ? psf->datalength / psf->blockwidth : 0 ;
return 0 ;
} /* alaw_init */
|