xserver-multidpi/hw/kdrive
Alan Coopersmith 2b1c1300cc ephyrGLXQueryServerString: Stop making an unused copy of server_string
ephyrGLXQueryServerString() carefully allocated a buffer padded to the
word-aligned string length for sending to the client, copied the string
to it, and then forgot to use it, potentially reading a few bytes of
garbage past the end of the server_string buffer.

Since WriteToClient already handles the necessary padding, just send
it the actual length of the original server_string, and don't bother
making a padded copy.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Daniel Stone <daniel@fooishbar.org>
2012-07-09 22:52:30 -07:00
..
ephyr ephyrGLXQueryServerString: Stop making an unused copy of server_string 2012-07-09 22:52:30 -07:00
fake Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
fbdev Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
linux Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
src Merge branch 'sigio-vt-switch-issues' into for-keith 2012-07-04 21:23:48 +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