xserver/os
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult 435de433cd
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / Release pushed tag (push) Waiting to run
os: io: fix NULL output buffer after FlushClient()
FlushClient() does drops the output buffer, when it becomes empty.
This previously wasn't any problem and actually intented, because we've
returned from the write path directly after FlushClient() was called.

But now we've changed the call order, so it's called from within
OutputBufferMakeRoom(), so we need to make sure we always got valid
output buffer before trying to access it.

For the future, we should think about whether dropping output buffers
really makes sense at all. Instead we could leave them as they are
(over the client's lifetime) and maybe just trim when they've went
too big.

Fixes: 1c13cfa6ca
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-07 14:00:25 +02:00
..
.gitignore
access.c os: xtrans: drop XSERV_t and x11_t defines 2025-07-18 22:29:38 +02:00
alloc.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
audit.h os: unexport audit functions 2024-04-15 19:54:34 +00:00
auth.c os: auth: let GenerateAuthorization() return 0 on error 2025-06-12 16:52:59 +02:00
auth.h os: auth: generate XIDs in proto funcs only on success 2025-06-12 16:52:56 +02:00
backtrace.c os: backtrace: Fix -Wincompatible-pointer-types compiler error on 32-bit targets 2025-02-07 16:58:02 +02:00
bug_priv.h os: move BUG_*() macros to own private header 2025-02-17 19:32:48 +00:00
busfault.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
busfault.h os: fix missing include of misc.h in busfault.h 2024-04-16 14:19:59 +02:00
client.c os: use NULL instead of NullClient 2025-07-18 22:24:55 +02:00
client_priv.h os: export SetCriticalOutputPending for nvidia 2025-06-16 10:32:48 +02:00
cmdline.c os: helper for parsing an counting-flag or value-flag option 2025-06-12 17:21:46 +02:00
cmdline.h os: helper for parsing an counting-flag or value-flag option 2025-06-12 17:21:46 +02:00
connection.c io: os: simplify FlushClient() 2025-08-04 15:55:36 +02:00
ddx_priv.h os: unexport ddx callbacks 2024-05-08 09:37:35 +02:00
fmt.c os: move out Format*() functions 2024-03-09 17:34:51 +00:00
fmt.h os: unexport xstrtokenize() 2025-06-12 17:21:44 +02:00
inputthread.c os: unexport internal logging functions 2025-06-12 17:21:46 +02:00
io.c os: io: fix NULL output buffer after FlushClient() 2025-08-07 14:00:25 +02:00
log.c xserver: os/log.c: ignore alternate forms in log formats 2025-07-29 16:21:02 +02:00
log_priv.h os: log: add syslog support 2025-06-12 17:21:46 +02:00
meson.build os: generic socket layer init function 2025-08-07 12:40:35 +02:00
mitauth.c dix: add dixAllocServerXID() 2025-06-12 17:21:48 +02:00
mitauth.h os: auth: generate XIDs in proto funcs only on success 2025-06-12 16:52:56 +02:00
osdep.h io: os: simplify FlushClient() 2025-08-04 15:55:36 +02:00
osinit.c meson: move MAXCLIENTS and LIMITCLIENTS into dix-config.h 2025-07-30 14:55:40 +02:00
ospoll.c os: ospoll: include winsock2.h on WIN32 instead of misc.h 2025-07-31 17:41:20 +02:00
ospoll.h os: ospoll: use stdbool instead of X11's Bool 2025-07-31 15:22:07 +02:00
ossock.c os: cross platform socket close() wrapper 2025-08-07 12:40:35 +02:00
ossock.h os: cross platform socket close() wrapper 2025-08-07 12:40:35 +02:00
probes_priv.h os: move probes.h and rename it to probes_priv.h 2025-07-18 04:51:30 +02:00
reallocarray.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
screensaver.h os: unexport screen saver timer functions 2024-09-01 20:23:10 +00:00
serverlock.c os: move -nolock help message printing to serverlock.h 2024-07-26 22:26:07 +00:00
serverlock.h os: move -nolock help message printing to serverlock.h 2024-07-26 22:26:07 +00:00
strcasecmp.c os: drop own implementation of strcasecmp() and strncasecmp() 2025-06-12 17:21:46 +02:00
strcasestr.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
string.c os: unexport xstrtokenize() 2025-06-12 17:21:44 +02:00
strlcat.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
strlcpy.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
strndup.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
timingsafe_memcmp.c timingsafe_memcmp: Fix meson build 2017-05-10 10:56:16 -04:00
transport.c os: incorporate xtrans xtrans-1.6.0 2025-07-18 22:29:38 +02:00
utils.c os: xtrans: drop XSERV_t and x11_t defines 2025-07-18 22:29:38 +02:00
WaitFor.c os: drop unused TimerCheck() 2025-02-23 17:46:13 +00:00
xdmauth.c os: xtrans: drop XSERV_t and x11_t defines 2025-07-18 22:29:38 +02:00
xdmauth.h os: auth: generate XIDs in proto funcs only on success 2025-06-12 16:52:56 +02:00
xdmcp.c os: generic socket layer init function 2025-08-07 12:40:35 +02:00
xdmcp.h os: xdmcp: fix missing include of <X11/Xdmcp.h> 2025-07-28 16:20:58 +02:00
xprintf.c os: xprintf: fix includes 2025-07-31 17:01:10 +02:00
xserver_poll.c os: xserver_poll: replace own typedef by size_t 2025-07-31 14:50:05 +02:00
xserver_poll.h os: xserver_poll: skip defining symbols already defined by mingw 2025-07-31 15:28:08 +02:00
xsha1.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
xsha1.h include: move xsha1.h to os/ 2024-03-03 23:11:05 +00:00
xstrans.c os: xtrans: drop XSERV_t and x11_t defines 2025-07-18 22:29:38 +02:00
Xtrans.c os: cross platform ioctl() wrapper 2025-08-07 12:40:35 +02:00
Xtrans.h os: generic socket layer init function 2025-08-07 12:40:35 +02:00
Xtransint.h os: xtrans: drop _XSERVTransReadv() et al 2025-07-31 17:09:37 +02:00
Xtranslcl.c os: xtrans: drop _XSERVTransReadv() et al 2025-07-31 17:09:37 +02:00
Xtranssock.c os: cross platform socket close() wrapper 2025-08-07 12:40:35 +02:00
Xtransutil.c os: generic socket layer init function 2025-08-07 12:40:35 +02:00