xserver-multidpi/hw/xfree86/loader
Alan Coopersmith b680bda34d 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>
2009-05-08 12:27:11 -07:00
..
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
loader.c Fix a couple off-by-one array boundary checks. 2009-05-08 12:27:11 -07:00
loader.h Remove more Lynx leftovers 2008-07-17 09:35:30 -07:00
loaderProcs.h Don't include fontmod.h 2009-01-20 23:46:48 -05:00
loadext.c xfree86: ANSI cleanups 2009-01-11 08:54:11 +01:00
loadmod.c Don't leak canonical module name and patterns if module is built-in 2009-04-01 15:56:55 -07:00
Makefile.am Add sdksyms.sh to EXTRA_DIST to correct make distcheck 2009-01-06 05:01:32 -02:00
os.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
sdksyms.sh Add casts to generated entries in sdksyms.c to silence type mismatch warnings 2009-04-24 00:23:51 -07:00