Go to file
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
composite Use C99 designated initializers in various extension Replies 2012-07-09 19:58:30 -07:00
config Fix more poorly indented/wrapped comments & code 2012-07-09 19:14:50 -07:00
damageext Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
dbe Use C99 designated initializers in various extension Replies 2012-07-09 19:58:30 -07:00
dix Use C99 designated initializers in dix registry 2012-07-09 22:52:30 -07:00
doc Add screen-specific privates. 2012-07-05 13:39:50 -07:00
exa exa: pixmap sharing infrastructure (v3) 2012-07-07 10:37:10 +01:00
fb Use new screen-specific privates for fb window and gc privates 2012-07-05 13:40:18 -07:00
glx Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
hw ephyrGLXQueryServerString: Stop making an unused copy of server_string 2012-07-09 22:52:30 -07:00
include Remove unneccesary casts from WriteToClient calls 2012-07-09 19:12:56 -07:00
m4 Use XORG_STRICT_OPTION from util-macros 1.14 to set -Werror flags 2011-05-27 19:51:05 -07:00
man os: Add -displayfd option 2012-05-01 11:36:30 +10:00
mi Use C99 designated initializers in dix Events 2012-07-09 22:52:30 -07:00
miext api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
os Initialize padding bits to 0 in ErrorConnMax() 2012-07-09 22:52:30 -07:00
randr Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
record Use C99 designated initializers in various extension Replies 2012-07-09 19:58:30 -07:00
render Use C99 designated initializers in various extension Replies 2012-07-09 19:58:30 -07:00
test Merge branch 'sigio-vt-switch-issues' into for-keith 2012-07-04 21:23:48 +10:00
Xext Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
xfixes Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
Xi Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
xkb Use C99 designated initializers in extension Events 2012-07-09 22:52:30 -07:00
.gitignore doc: relocate xserver.ent in the package root directory 2011-05-14 11:22:26 -07:00
autogen.sh autogen.sh: Pass --force to autoreconf 2008-07-22 16:55:26 +03:00
configure.ac configure: bump dri2proto to 2.8 2012-07-07 10:39:10 +01:00
COPYING Add asprintf() implementation for platforms without it 2010-12-07 11:10:35 -08:00
devbook.am devbook.am: maintenance update from docbook.am 2011-09-21 14:07:52 -07:00
docbook.am docbook.am: embed css styles inside the HTML HEAD element 2011-09-21 14:07:49 -07:00
fix-miregion Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-miregion-private Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-patch-whitespace Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fix-region Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
Makefile.am man: relocate manual pages in the man subdir outside doc 2011-05-13 14:08:17 -07:00
manpages.am Xdmx.man: Show actual configured XKB defaults instead of old hardcoded values 2011-06-21 17:54:14 -07:00
README packaging: provide a default README file #24206 2010-01-27 14:00:17 -08:00
xorg-server.m4 macros: use PKG_CONFIG variable rather than executable name 2010-01-07 12:57:23 -08:00
xorg-server.pc.in xfree86: link modules against Xorg symbols on Cygwin 2012-04-05 21:57:07 -05:00
xserver.ent.in doc: relocate xserver.ent in the package root directory 2011-05-14 11:22:26 -07:00

					X Server

The X server accepts requests from client applications to create windows,
which are (normally rectangular) "virtual screens" that the client program
can draw into.

Windows are then composed on the actual screen by the X server
(or by a separate composite manager) as directed by the window manager,
which usually communicates with the user via graphical controls such as buttons
and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the
following article:
http://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the
Xorg mailing list:

        http://lists.freedesktop.org/mailman/listinfo/xorg

Please submit bug reports to the Xorg bugzilla:

        https://bugs.freedesktop.org/enter_bug.cgi?product=xorg

The master development code repository can be found at:

        git://anongit.freedesktop.org/git/xorg/xserver

        http://cgit.freedesktop.org/xorg/xserver

For patch submission instructions, see:

	http://www.x.org/wiki/Development/Documentation/SubmittingPatches

For more information on the git code manager, see:

        http://wiki.x.org/wiki/GitPage