Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

On Wednesday 16 July 2008, Alexey Dokuchaev wrote:
>  +      if (restart)
>  +              p = (uByte *)(restart) + restart->bLength;

Maybe you can add some extra range checks here. Remember the descriptors come 
from the device itself, and might be corrupt.

--HPS


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807161614.26974.hselasky>