$NetBSD: patch-af,v 1.7.2.2 2009/06/08 21:05:22 spz Exp $

Upstream fix for DoS vulnerability taken from here:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530831

--- src/ulaw.c.orig	2009-03-22 19:17:14.000000000 +0000
+++ src/ulaw.c	2009-06-08 10:03:02.000000000 +0100
@@ -59,7 +59,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 ;
 } /* ulaw_init */
