xserver/hw/kdrive/src
Chris Clayton af1c57152e 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-09 13:47:31 -06:00
..
fourcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kcmap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kdrive.c Fix up formatting of initializers for arrays of structs 2012-08-06 15:22:53 -07:00
kdrive.h dix: Remove #includes of mibstore.h 2012-09-23 10:31:27 -07:00
kinfo.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kinput.c kdrive: fix build error on gcc 4.8 for out-of-bounds array access 2013-09-09 13:47:31 -06:00
kmode.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kshadow.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kxv.c Xv: Remove excessive module-induced indirection 2012-07-09 23:28:37 -07:00
kxv.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Makefile.am kdrive: Remove unused kmap.c 2010-01-06 20:27:45 +06:00