usb/117185: [umodem] [patch] Add support for UNION interface descriptor

Hans Petter Selasky hselasky at c2i.net
Wed Jul 16 14:12:50 UTC 2008


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


More information about the freebsd-usb mailing list