Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-5] src/lib/libusbhid



Module Name:    src
Committed By:   riz
Date:           Sun Nov 21 02:32:26 UTC 2010

Modified Files:
        src/lib/libusbhid [netbsd-5]: data.c

Log Message:
Pull up following revision(s) (requested by plunky in ticket #1398):
        lib/libusbhid/data.c: revision 1.6
hid_get_data() will read an extra byte if the data being read ends on
a byte boundary. This byte is subsequently discarded, but it could be
a byte from memory after the end of the report being parsed.
Fix this by rounding up and ending the loop one earlier.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.26.1 src/lib/libusbhid/data.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index