Home | History | Annotate | Download | only in usb
History log of /src/sys/dev/usb/uvideoreg.h
RevisionDateAuthorComments
 1.8  10-Apr-2023  mlelstv Better descriptor parsing.
Add sanity check if no default format is found.
 1.7  14-May-2022  riastradh uvideo(4): Fix lengths of various frame descriptors.

This driver doesn't use the frame interval members, which are either
fixed (if continuous) or flexible (if discrete) and so can't be
encoded in C types correctly. If we did use them, it would be
necessary to use pointer arithmetic on char pointers in the enclosing
descriptor buffer. But we don't, so this is simpler, and fixes the
sizeof checks to avoid running off the end of invalid descriptors.

Should fix failure to parse legitimate descriptors (without
regressing to choking on malicious ones):

-uvideo: found format (index 1) type 9 size 1280x720 size 1843200 stride 2560 interval 333333
- ^ picking this one
-uvideo: found format (index 2) type 9 size 640x480 size 614400 stride 1280 interval 333333
+uvideo: truncated CS subtype-0x7 descriptor, length 30 < 38uvideo: unimplemented VS CS descriptor len=30 type=0x24 subtype=0x07
+uvideo: unimplemented VS CS descriptor len=30 type=0x24 subtype=0x07
 1.6  14-Nov-2021  andvar revert bPreferedVersion rename. It's named like the by spec (from jmcneill).
 1.5  13-Nov-2021  andvar s/bPreferedVersion/bPreferredVersion/ in struct property definition.
 1.4  23-Dec-2011  jakllsch Revert previous due to active usbmp branch(es).
 1.3  22-Dec-2011  jakllsch Adjust-away inconsistent and trailing whitespace.
 1.2  20-Sep-2008  jmcneill branches: 1.2.2; 1.2.4; 1.2.6; 1.2.18; 1.2.40;
Add UYVY support.
 1.1  09-Sep-2008  jmcneill USB Video Class capture device driver, part of Patrick Mahoney's Google
Summer of Code 2008 project.
 1.2.40.1  18-Feb-2012  mrg merge to -current.
 1.2.18.2  04-May-2009  yamt sync with head.
 1.2.18.1  20-Sep-2008  yamt file uvideoreg.h was added on branch yamt-nfs-mp on 2009-05-04 08:13:22 +0000
 1.2.6.2  19-Oct-2008  haad Sync with HEAD.
 1.2.6.1  20-Sep-2008  haad file uvideoreg.h was added on branch haad-dm on 2008-10-19 22:17:10 +0000
 1.2.4.2  28-Sep-2008  mjf Sync with HEAD.
 1.2.4.1  20-Sep-2008  mjf file uvideoreg.h was added on branch mjf-devfs2 on 2008-09-28 10:40:35 +0000
 1.2.2.3  10-Oct-2008  skrll Sync with HEAD.
 1.2.2.2  24-Sep-2008  wrstuden Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
 1.2.2.1  20-Sep-2008  wrstuden file uvideoreg.h was added on branch wrstuden-revivesa on 2008-09-24 16:38:56 +0000

RSS XML Feed