Source-Changes archive

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

CVS commit: src/lib/libusbhid

Module Name:    src
Committed By:   plunky
Date:           Wed May 12 18:28:20 UTC 2010

Modified Files:
        src/lib/libusbhid: data.c

Log Message:
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.6 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