xserver-multidpi/hw
Justin Dou a73c28f0bd Replace malloc with calloc to initialize the buffers[] as NULL in do_get_buffers function
The calling for allocate_or_reuse_buffer may fail due to some reason, e.g. out of memory.
If the buffers[] were not initialized to be NULL, the following err_out may try to access an illegal memory, which will cause X crash afterward.

Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Signed-off-by: Justin Dou <Justin.Dou@intel.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2011-02-18 12:16:15 -08:00
..
dmx xdmxconfig: warning fix 2011-01-20 21:03:55 -05:00
kdrive man: refactor common code in the man pages makefiles 2011-01-18 15:11:10 -08:00
vfb man: refactor common code in the man pages makefiles 2011-01-18 15:11:10 -08:00
xfree86 Replace malloc with calloc to initialize the buffers[] as NULL in do_get_buffers function 2011-02-18 12:16:15 -08:00
xnest man: refactor common code in the man pages makefiles 2011-01-18 15:11:10 -08:00
xquartz XQuartz: Localization Updates 2011-01-28 21:13:38 -08:00
xwin Cygwin/X: Fix for Canadian Multilingual Standard keyboard layout handling 2011-02-05 20:54:49 +00:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00