fa.openbsd.source-changes
[Top] [All Lists]

CVS: cvs.openbsd.org: src

Subject: CVS: cvs.openbsd.org: src
From: Marcus Glocker <mglocker@xxxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2008 15:29:47 UTC
Newsgroups: fa.openbsd.source-changes

CVSROOT:        /cvs
Module name:    src
Changes by:     mglocker@xxxxxxxxxxxxxxx        2008/07/31 09:26:25

Modified files:
        sys/dev        : video.c video_if.h 
        sys/dev/usb    : uvideo.c uvideo.h 

Log message:
- Don't relay on bFormatIndex as an internal array index, since this
field is unreliable and can start with any number.  Use an own internal
array index instead.

- If the read buffer is too small, return a propper error to the calling
functions.  Just check the buffer size if we use the read(2) method since
it doesn't affect mmap(2).

Fixes kernel crashes seen with the M$ LifeCam NX-6000 and internal
(laptop) Sonix chipsets.

Tested by jcs@ (Sonix) and myself (NX-6000).

OK deraadt@


<Prev in Thread] Current Thread [Next in Thread>