No description
  • C 94.1%
  • Python 2.2%
  • Roff 1.2%
  • Objective-C 1%
  • Meson 0.9%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult 8e88faae02 render: filter: fix integer-overflow bypass of convolution size check
convolutionFilterValidateParams() derives w/h from client-supplied
xFixed values via the sign-extending xFixedToInt(), then checked
'w * h > nparams' as a plain (signed) int product. A client can choose
negative w/h so the mathematical product is huge but the signed int
product wraps to a small or negative value, defeating the bounds check
that is supposed to reject a convolution kernel larger than the actual
parameter list.

Reject negative w/h outright and compare the product as int64_t so it
cannot wrap before the comparison.

Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt@vnc.biz>
(cherry picked from commit 6a97f6d38e)
2026-10-07 18:26:48 +02:00
.github .github: fix XTS build on MacOS 2026-04-17 18:50:03 +02:00
.gitlab-ci .github: switch dependencies to our new mirrors 2025-12-11 15:28:25 +01:00
composite composite: Fix PanoramiX overlay window release 2026-08-24 12:37:36 +02:00
config config/udev: guard against NULL subsystem in fallback bus id 2026-07-23 14:30:16 +02:00
damageext damageext: fix wrong REQUEST_SIZE_MATCH type in SProcDamageAdd 2026-04-27 15:25:09 +02:00
dbe Zero out structs to avoid leaking information via padding 2026-04-27 15:16:13 +02:00
dix dix: make InputDevIsFloating() static inline 2026-10-05 09:18:17 +02:00
doc Xnamespace: add some documentation 2025-06-12 17:21:48 +02:00
dri3 treewide: remove "lib" prefix in static_library names (meson) 2025-07-03 12:01:52 +02:00
exa exa: silence calloc() warning on mingw32 2025-12-19 12:40:37 +01:00
fb security: add integer overflow checks in allocation calculations 2026-10-02 17:11:46 +02:00
glamor glamor: fix memleak in error path of glamor_link_glsl_prog() 2026-10-07 16:23:46 +02:00
glx glx: zero-init xGLXQueryVersionReply to avoid leaking uninitialised bytes 2026-10-07 16:22:42 +02:00
hw xnest: Check malloc return values in GCOps to avoid NULL dereferences 2026-10-07 11:22:32 +02:00
include Revert "SDK: define BSD console macros unconditionally for driver builds" 2026-09-18 15:58:09 +02:00
man Fix minor punctuation error in manual page 2025-08-05 11:47:10 +02:00
mi mi: guard against NULL event pointer 2026-10-07 15:07:25 +02:00
miext miext: damage: use drawable pointer instead of list head pointer to avoid realloc() UAF 2026-10-02 16:56:27 +02:00
os darwin: Set thread priorities to user interactive or user initiated as appropriate 2026-08-24 12:35:49 +02:00
present present: byte-swap notify list in sproc_present_pixmap_synced 2026-06-12 19:01:45 +02:00
pseudoramiX pseudoramiX: add missing byte swapping in various fields 2026-04-28 11:03:03 +02:00
randr randr: fix heap overflow and size tracking in RRChangeProviderProperty 2026-08-24 13:56:53 +02:00
record record: stop using request length fields 2025-08-05 15:08:28 +02:00
render render: filter: fix integer-overflow bypass of convolution size check 2026-10-07 18:26:48 +02:00
test Xi: byte-swap DeviceChanged valuator and scroll data 2026-10-04 19:13:48 +02:00
Xext Xext: xtest: fix stack out-of-bounds write in ProcXTestFakeInput 2026-06-12 18:58:56 +02:00
xfixes treewide: remove "lib" prefix in static_library names (meson) 2025-07-03 12:01:52 +02:00
Xi Xi: xiselectev: fix OOB read in ProcXISelectEvents' non-swapped path 2026-10-07 18:26:16 +02:00
xkb xkb: Guard XkbAdjustGroup() against a keymap with no groups 2026-10-02 13:29:49 +02:00
.appveyor.yml
.dir-locals.el
.git-blame-ignore-revs
.gitignore
.gitlab-ci.yml .github: move CI scripts from .gitlab-ci/ to .github/scripts 2025-12-10 18:26:21 +01:00
.mailmap
.travis.yml
CoC.md it's time to add a CoC (code of conduct) 2025-06-12 17:21:47 +02:00
CODE_OF_CONDUCT.md it's time to add a CoC (code of conduct) 2025-06-12 17:21:47 +02:00
CONTRIBUTING.md CONTRIBUTION.md: "MR" / "MRs" -> pull request(s) 2025-06-27 19:22:18 +02:00
COPYING COPYING: add myself 2025-06-12 17:21:48 +02:00
meson.build hotfix release 25.0.0.25 2026-07-23 16:46:45 +02:00
meson_options.txt meson_options.txt: move xf86-* driver flags to separate section 2025-12-19 12:36:39 +01:00
README.md release/25.0: README.md: update for one year of XLibre 2026-06-15 16:48:24 +02:00
xlibre-server.pc.in xorg-server.pc: add more variables for easier driver builds 2026-01-08 17:17:22 +01:00
xorg-server.m4 xorg-server.m4: add helper macros for driver builds 2026-01-08 17:32:00 +01:00
xorg-server.pc.in xorg-server.pc: add more variables for easier driver builds 2026-01-08 17:17:22 +01:00
xserver.ent.in

XLibre Xserver

The XLibre Xserver is the community-managed display server for the X Window System Protocol Version 11 (Wikipedia), in short, X11.

1 year of XLibre screenshot
One Year of XLibre. See more liberated screens here.

Selected Features

  • All the good things from X.Org Server, including its unreleased features
  • TearFree modesetting by default and optionally atomic modesetting
  • Support for the Nvidia drivers 340, 390, 470, 570, and newer
  • Xnamespace extension for separating X clients
  • Support for seat management via seatd besides systemd-logind
  • Xfbdev, the generic framebuffer Xserver for Linux
  • CI builds for several BSDs, Linux, MacOS, and Microsoft Windows
  • Active community, cleanups, fixes, and development based on merit

To learn more about the features and mission of XLibre, please visit our homepage.

Switching to XLibre

The easiest way to install and run XLibre is to use your distribution's provided packages. Please see the Are We XLibre Yet? - (X11Libre/xserver Wiki) page for a list of the available options. If there is no option, then go on with building and installing XLibre from source.

Building XLibre

After cloning the Xserver repository or unpacking the sources and installing the dependencies, change into the source directory and run the Meson build tool:

cd "<source dir of xserver>"
meson setup <prefix> build <meson_options>
ninja -C build install

You may specify the install <prefix> with, for example, --prefix="$(pwd)/image" and add build time <meson_options> like so: -Dxnest=false. You may also want to build and install some graphics and input drivers. Please refer to the Building XLibre (X11Libre/xserver Wiki) page for more details.

Configuring XLibre

Until XLibre releases its own, you can find a detailed description of the configuration on the Configuration - Xorg (ArchWiki) page. If you have built and installed XLibre yourself, then change into the <prefix> directory with cd <prefix> and create a directory etc/X11 with a file xorg.conf and adjust it accordingly.

Starting with version 25.0.0.16, the proprietary Nvidia driver is autodetected and handled internally without any special configuration. Please see the Compatibility of XLibre (X11Libre/xserver Wiki) page for more details on the Nvidia driver and compatibility in general.

Running XLibre

If you installed XLibre using your distribution's provided packages, then the Xserver is usually started by init (Wikipedia) on system start. On other systems it should be possible to manually start XLibre with user permissions by invoking startx. Please refer to man startx for how to use it.

If you have built and installed XLibre yourself, then you may want to shutdown other Xservers, change into the <prefix> directory, and create a simple testx.sh file with the following contents:

#!/bin/sh
./bin/X :1 vt8 -logfile /dev/stdout &
_pid=$!
sleep 10 && kill $_pid

You can adjust the :1 vt8 and other options in the testx.sh file as detailed in man Xorg. Make the testx.sh executable and run it:

chmod 0770 testx.sh
./testx.sh

This should give you 10 glorious seconds of a black and beautiful and empty screen. Afterwards the Xserver complains about being killed, but there should be no other critical errors for a "test passed." For more details, please see Building XLibre (X11Libre/xserver Wiki).

I want to help!

That's great; there's enough to do for everyone. You may consider one of the many ideas and feature requests out there. To help in testing, you may consider becoming an XLibre Test Driver. Please also have a look at the good first and help wanted issues and the Liberated Screens.

If you want to work on anything, just let us know. If you have any questions, just ask. Thank you!

Contact

XLibre Discussions at GitHub | XLibre mailing list at FreeLists | @x11dev channel at Telegram | #xlibredev space at Matrix | XLibre security contact at GitHub