xserver/hw
Mikhail Dmitrichenko c017c9ffeb 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-15 23:38:29 +00:00
..
kdrive treewide: fix typos 2026-03-14 16:52:19 +00:00
vfb vfb: use snprintf when writing XWD window name 2026-04-15 23:38:29 +00:00
xfree86 xf86: drop no longer needed entries from default driver list for Intel 2026-04-11 18:05:19 +00:00
xnest Xnest: use authorative declarations from X11/XKBlib.h 2026-01-25 10:40:01 -08:00
xquartz meson: replace join_paths() with / operator 2026-03-28 10:02:41 -07:00
xwayland xwayland: Commit surface on configure event 2026-04-09 08:52:39 +00:00
xwin meson: replace join_paths() with / operator 2026-03-28 10:02:41 -07:00
meson.build meson.build: print a summary of the DDX to build 2026-01-25 10:40:01 -08:00