xserver-multidpi/hw/kdrive
Chris Clayton 1110b71e36 kdrive: fix build error on gcc 4.8 for out-of-bounds array access
I'm getting a error building xorg-server-1.14.1.902 with thelatest snapshot
of gcc-4.8:

input.c:225:43: error: array subscript is above array bounds
[-Werror=array-bounds]

This is because kdNumInputFds can become equal to KD_MAX_INPUT_FDS in
KdRegisterFd(). This means that in KdUnregisterFd(), kdInputFds[j + 1] can
be beyond the end of the array.

Signed-off-by: Chris Clayton <chris2553@googlemail.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-09-06 07:04:17 +10:00
..
ephyr ephyr: Fix warning about XID vs unsigned long * by changing function args 2013-08-21 09:10:49 -07:00
fake Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
fbdev Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
linux kdrive: Fix const cast warnings in driver name handling. 2013-08-21 09:10:45 -07:00
src kdrive: fix build error on gcc 4.8 for out-of-bounds array access 2013-09-06 07:04:17 +10:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00
Xkdrive.man The great kdrive purge. 2008-05-16 08:16:01 -04:00