mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 13:08:12 +02:00
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> |
||
|---|---|---|
| .. | ||
| man | ||
| .gitignore | ||
| InitInput.c | ||
| InitOutput.c | ||
| meson.build | ||