[Bug 359899] New: array indices off by 1 in evdev input driver
https://bugzilla.novell.com/show_bug.cgi?id=359899 Summary: array indices off by 1 in evdev input driver Product: openSUSE 11.0 Version: Alpha 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: meissner@novell.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Created an attachment (id=193841) --> (https://bugzilla.novell.com/attachment.cgi?id=193841) evdev-max-fixes.patch gcc 4.3 warned: evdev_axes.c: In function 'EvdevAxesRealSyn': evdev_axes.c:170: warning: array subscript is above array bounds evdev_axes.c:189: warning: array subscript is above array bounds It uses axes[0x3f], which should be valid. reviewing the code shows that XXX_MAX values are used a arraysizes, however the arraysize should be XXX_MAX+1. I fixed the array sizes and various checks to match reality better. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=359899
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=359899
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=359899
User sndirsch@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=359899#c1
Stefan Dirsch
participants (1)
-
bugzilla_noreply@novell.com