Vincent Lefevre fcfa6d2da0 Really avoid a potential buffer overflow for 'home'
Indeed, the test
strlen(home) > MAXPATHLEN - 8
is not sufficient due to the terminating null character

(if home has length MAXPATHLEN - 8, then MAXPATHLEN + 1
characters are written, which is larger than the buffer
size MAXPATHLEN).

See also:
b4e5968f0b
2024-07-08 16:16:14 +02:00
2023-01-13 22:45:46 +02:00
Description
Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells
9.9 MiB
Languages
C 76.7%
Roff 14.1%
PostScript 6%
Shell 1.4%
Makefile 1.1%
Other 0.7%