accb07958b
- Fix a buffer overflow in the FvwmAuto module. fvwm-FvwmAuto-overflow.patch OBS-URL: https://build.opensuse.org/request/show/1062276 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/fvwm2?expand=0&rev=49
12 lines
255 B
Diff
12 lines
255 B
Diff
--- modules/FvwmAuto/FvwmAuto.c.orig
|
|
+++ modules/FvwmAuto/FvwmAuto.c
|
|
@@ -340,6 +340,8 @@ main(int argc, char **argv)
|
|
{
|
|
len = max(len, strlen(leave_fn));
|
|
}
|
|
+ /* add space for newline and trailing 0 */
|
|
+ len += 2;
|
|
if (do_pass_id)
|
|
{
|
|
len += 32;
|