xserver/hw/vfb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mikhail Dmitrichenko b14180e40a
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 / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
vfb: use snprintf when writing XWD window name
The window name buffer after XWDFileHeader is fixed at
XWD_WINDOW_NAME_LEN (60 bytes).  sprintf could overflow when
hostname is close to maximum length and combined with the
prefix "Xvfb " + display + screen number.

Switch to snprintf to guarantee we never write beyond the
allocated buffer.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko222@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2172>
2026-04-21 12:26:48 +02:00
..
man man pages: remove extraneous PP macros 2025-05-31 15:01:49 -07:00
.gitignore
InitInput.c vfb: use dixAddAtom() 2025-07-23 12:24:27 +02:00
InitOutput.c vfb: use snprintf when writing XWD window name 2026-04-21 12:26:48 +02:00
meson.build dix: drop DDXBEFORERESET symbol 2025-08-04 11:41:48 +02:00