summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/parse.h
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2008-07-31 15:26:26 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2008-07-31 15:26:26 +0000
commit6960c6b7f96163e79aa75b0ef330c8c13fc523bd (patch)
tree8e0e032c4f1eb24d4ba1679d80005cbf9ef2c97f /usr.bin/sudo/parse.h
parentf2e6d8b2683777ebbb87b4ba5a457be2e7a7fafb (diff)
- 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@
Diffstat (limited to 'usr.bin/sudo/parse.h')
0 files changed, 0 insertions, 0 deletions