diff options
author | zeising <zeising@FreeBSD.org> | 2018-09-08 20:31:06 +0800 |
---|---|---|
committer | zeising <zeising@FreeBSD.org> | 2018-09-08 20:31:06 +0800 |
commit | b8d449920f123f0da961a3f26bf6d58d9b4bcfd5 (patch) | |
tree | b6178528b4808ec688387c523b0a6472bab4f588 /x11-wm/spectrwm/files | |
parent | 5030a53256d379e6d6b2d3e6bd6f1a87bbd039b5 (diff) | |
download | freebsd-ports-gnome-b8d449920f123f0da961a3f26bf6d58d9b4bcfd5.tar.gz freebsd-ports-gnome-b8d449920f123f0da961a3f26bf6d58d9b4bcfd5.tar.zst freebsd-ports-gnome-b8d449920f123f0da961a3f26bf6d58d9b4bcfd5.zip |
x11-wm/spectrwm: Update to 3.2.0
Adjust CFLAGS to more closely match upstream.
Changelog: https://github.com/conformal/spectrwm/releases/tag/SPECTRWM_3_2_0
Diffstat (limited to 'x11-wm/spectrwm/files')
-rw-r--r-- | x11-wm/spectrwm/files/ea3e6da-oob-fix.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/x11-wm/spectrwm/files/ea3e6da-oob-fix.patch b/x11-wm/spectrwm/files/ea3e6da-oob-fix.patch deleted file mode 100644 index 3c539ffae7af..000000000000 --- a/x11-wm/spectrwm/files/ea3e6da-oob-fix.patch +++ /dev/null @@ -1,30 +0,0 @@ -From ea3e6da62247572e92c4ba00f70eab73f6254adf Mon Sep 17 00:00:00 2001 -From: Tobias Stoeckmann <tobias@stoeckmann.org> -Date: Sat, 14 Oct 2017 10:22:31 +0200 -Subject: [PATCH] Fix OOB while reading bar input. - -If the status bar script returns NUL as the first character through -stdin, spectrwm is prone to an out of boundary access. Depending on -the memory layout of the machine, it could turn into an OOB write. - -The fix is simple: If the string is empty, do not further check for -newline character. - -Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org> ---- - spectrwm.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/spectrwm.c b/spectrwm.c -index 9d3ec23..9b0ad2c 100644 ---- spectrwm.c -+++ spectrwm.c -@@ -2761,7 +2761,7 @@ bar_extra_update(void) - while (fgets(b, sizeof(b), stdin) != NULL) { - if (bar_enabled) { - len = strlen(b); -- if (b[len - 1] == '\n') { -+ if (len > 0 && b[len - 1] == '\n') { - /* Remove newline. */ - b[--len] = '\0'; - |