XLibre Xserver
Go to file
Olivier Fourdan 34ea020344 glamor: Fix possible double-free
If glamor_link_glsl_prog() fails, we may jump to the failed code path
which frees the variable vs_prog_string and fs_prog_string.

But those variables were already freed just before, so in that case we
end up freeing the memory twice.

Simply move the free at the end of the success code path so we are sure
to free the values only once, either in the successful of failed code
paths.

Fixes: 2906ee5e4 - glamor: Fix leak in glamor_build_program()
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1629>
2024-07-29 13:49:27 +00:00
.gitlab-ci Update CI for Xwayland explicit sync 2024-04-09 06:11:03 +00:00
Xext xv: unexport XvPortNotifyRec 2024-07-26 23:51:13 +00:00
Xi treewide: replace xnfreallocarray macro call by XNFreallocarray() 2024-07-26 23:41:33 +00:00
composite dix: unexport fields from opaque.h not used by modules/drivers 2024-06-23 21:19:27 +00:00
config treewide: replace xnfcalloc() calls by XNFcallocarray() 2024-07-26 23:41:33 +00:00
damageext include: move private definitions out of extinit.h 2024-04-30 00:47:38 +00:00
dbe xace: typesafe hook function for XACE_SCREEN_ACCESS 2024-06-23 21:07:48 +00:00
dix treewide: replace xnfrealloc() calls to XNFrealloc() 2024-07-26 23:41:33 +00:00
doc prevent name clash on Windows w/ RT_* defines 2024-04-15 18:59:23 -07:00
dri3 treewide: replace xnfalloc() calls to XNFalloc() 2024-07-26 23:41:33 +00:00
exa Move sizeof to second argument in calloc calls 2024-07-19 23:45:21 +00:00
fb render: move private definitions out of public glyphstr.h 2024-03-03 22:54:16 +00:00
glamor glamor: Fix possible double-free 2024-07-29 13:49:27 +00:00
glx treewide: replace xnfstrdup() calls by XNFstrdup() 2024-07-26 23:41:34 +00:00
hw compiler.h: drop translation of Sun compiler platform defines to gcc 2024-07-28 23:26:37 +00:00
include treewide: replace xnfreallocarray macro call by XNFreallocarray() 2024-07-26 23:41:33 +00:00
man Xserver.man: Note that -byteswappedclients is the default in this release 2024-03-23 10:27:03 -07:00
mi treewide: replace xnfalloc() calls to XNFalloc() 2024-07-26 23:41:33 +00:00
miext os: unexport Os*() functions 2024-04-16 14:20:30 +02:00
os xv: move noXvExtension to xvmain.c 2024-07-26 23:51:13 +00:00
present present: On *BSD, epoll-shim is needed to emulate eventfd() 2024-05-22 09:00:11 +00:00
pseudoramiX fix missing includes of <X11/Xfuncproto.h> 2024-07-20 17:18:38 +00:00
randr dix: unexport fields from opaque.h not used by modules/drivers 2024-06-23 21:19:27 +00:00
record record: clean up Sun/Solaris specific hack 2024-06-18 00:41:38 +00:00
render xace: typesafe hook function for XACE_RESOURCE_ACCESS 2024-06-23 21:07:48 +00:00
test treewide: replace xnfstrdup() calls by XNFstrdup() 2024-07-26 23:41:34 +00:00
xfixes Move sizeof to second argument in calloc calls 2024-07-19 23:45:21 +00:00
xkb treewide: replace xnfstrdup() calls by XNFstrdup() 2024-07-26 23:41:34 +00:00
.appveyor.yml appveyor: Add libxcvt build dep 2021-11-04 13:03:25 +00:00
.dir-locals.el .dir-locals.el: Add missing final newline 2019-10-01 17:05:28 +00:00
.gitignore Clean up the .gitignore file 2024-01-12 00:50:24 +00:00
.gitlab-ci.yml ci: enable building security extension 2024-07-23 09:17:36 +02:00
.mailmap Add a .mailmap file to canonicalize author names and emails 2023-03-15 18:10:51 +00:00
.travis.yml travis: Add OSX meson build to matrix 2019-05-02 15:42:58 +00:00
COPYING modesetting: Merge modesetting's COPYING into the xserver's. 2014-09-15 12:46:02 -07:00
README.md Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
meson.build meson: make AF_INET6 check work with stricter compiler flags 2024-07-27 11:59:34 -07:00
meson_options.txt os: drop SUN-DES-1 authentication 2024-06-18 00:52:11 +00:00
xorg-server.m4 xorg-server.m4: just all cflags instead of just sdkdir 2018-09-20 20:12:24 +01: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: https://en.wikipedia.org/wiki/X_server

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

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

The primary development code repository can be found at:

https://gitlab.freedesktop.org/xorg/xserver

For patch submission instructions, see:

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

As with other projects hosted on freedesktop.org, X.Org follows its Code of Conduct, based on the Contributor Covenant. Please conduct yourself in a respectful and civilized manner when using the above mailing lists, bug trackers, etc:

https://www.freedesktop.org/wiki/CodeOfConduct