xserver/hw/xfree86/loader
Jeremy Huddleston 597747c655 Fix a couple off-by-one array boundary checks.
Error: Write outside array bounds at Xext/geext.c:406
        in function 'GEWindowSetMask' [Symbolic analysis]
       In array dereference of cli->nextSib[extension] with index 'extension'
       Array size is 128 elements (of 4 bytes each), index <= 128

Error: Buffer overflow at dix/events.c:592
	in function 'SetMaskForEvent' [Symbolic analysis]
       In array dereference of filters[deviceid] with index 'deviceid'
       Array size is 20 elements (of 512 bytes each), index >= 0 and index <= 20

Error: Read buffer overflow at hw/xfree86/loader/loader.c:226
	in function 'LoaderOpen' [Symbolic analysis]
       In array dereference of refCount[new_handle] with index 'new_handle'
       Array size is 256 elements (of 4 bytes each), index >= 1 and index <= 256

These bugs were found using the Parfait source code analysis tool.
For more information see http://research.sun.com/projects/parfait

Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit b680bda34d)
(cherry picked from commit 04c9e80f08)

Signed-off-by: Keith Packard <keithp@keithp.com>
2009-06-29 14:15:17 -07:00
..
dixsym.c Remove XEvIE 2008-11-04 16:01:07 +10:30
dlloader.c Fix "warning: assignment discards qualifiers from pointer target type". 2008-06-24 15:04:01 -04:00
dlloader.h Remove a useless open() of the module we're about to load. 2006-07-21 22:55:41 -04:00
extsym.c Fix Xinerama's consolidated visual handling. 2008-02-22 15:19:54 -05:00
loader.c Fix a couple off-by-one array boundary checks. 2009-06-29 14:15:17 -07:00
loader.h Remove more Lynx leftovers 2008-07-17 09:35:30 -07:00
loaderProcs.h X11/fonts/fontmod.h doesn't exist anymore. 2009-02-18 16:43:23 -08:00
loadext.c Another round of loader sense-beating. Remove the (unused) server export 2006-06-19 00:57:18 -04:00
loadmod.c Don't leak canonical module name and patterns if module is built-in 2009-05-08 22:56:28 -07:00
Makefile.am Ugh, remove trailing backslash. 2008-07-24 15:02:40 -04:00
misym.c Remove a bunch of unused API from the mi export list. 2008-10-03 17:51:20 -04:00
os.c Unifdef ISC 2008-10-02 17:03:54 -04:00
sym.h Unbreak unbreaking the loader. Re-add the symbol reference lists so that the 2006-06-21 20:49:21 -04:00
xf86sym.c Merge commit 'origin/master' 2008-11-25 22:19:08 -08:00