Date: Wed, 16 Jul 2008 16:14:25 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-usb@freebsd.org, Alexey Dokuchaev <danfe@nsu.ru> Subject: Re: usb/117185: [umodem] [patch] Add support for UNION interface descriptor Message-ID: <200807161614.26974.hselasky@c2i.net> In-Reply-To: <200807161300.m6GD0A8a042062@freefall.freebsd.org> References: <200807161300.m6GD0A8a042062@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 16 July 2008, Alexey Dokuchaev wrote: > =A0+=A0=A0=A0=A0=A0=A0if (restart) > =A0+=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0p =3D (uByte *)(restart) + = restart->bLength; Maybe you can add some extra range checks here. Remember the descriptors co= me=20 from the device itself, and might be corrupt. =2D-HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807161614.26974.hselasky>