mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
89afb761ba
If output_cmd_background is given a valid mode as the first argument, then there is no file given and an error should be returned. join_args should not be called with an argc of zero since it sets the last character to the null terminator. With an argc of zero, the length is zero causing a heap buffer overflow when setting the byte before the start of argv to '\0'. This probably will not ever generate a segfault, but may cause data corruption to whatever is directly before it in memory. To make other such cases easier to detect, this also adds a sway_assert in join_args when argc is zero. |
||
---|---|---|
.. | ||
background-image.c | ||
cairo.c | ||
ipc-client.c | ||
list.c | ||
log.c | ||
loop.c | ||
meson.build | ||
pango.c | ||
stringop.c | ||
util.c |