bspwm: adopt and fix buffer-overflow
This commit is contained in:
parent
88672d2f5d
commit
d2f7436dad
|
@ -0,0 +1,14 @@
|
||||||
|
Patch backported from: https://github.com/baskerville/bspwm/commit/ab81f1b10148311d0b798f96d472d4afcbb77ce5
|
||||||
|
--- src/bspwm.c.orig 2018-12-30 21:34:53.329062706 -0600
|
||||||
|
+++ src/bspwm.c 2018-12-30 21:36:16.149061038 -0600
|
||||||
|
@@ -163,8 +163,8 @@
|
||||||
|
|
||||||
|
if (FD_ISSET(sock_fd, &descriptors)) {
|
||||||
|
cli_fd = accept(sock_fd, NULL, 0);
|
||||||
|
- if (cli_fd > 0 && (n = recv(cli_fd, msg, sizeof(msg), 0)) > 0) {
|
||||||
|
- msg[n] = '\0';
|
||||||
|
+ if (cli_fd > 0 && (n = recv(cli_fd, msg, sizeof(msg)-1, 0)) > 0) {
|
||||||
|
+ msg[n] = '\0';
|
||||||
|
FILE *rsp = fdopen(cli_fd, "w");
|
||||||
|
if (rsp != NULL) {
|
||||||
|
handle_message(msg, n, rsp);
|
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'bspwm'
|
# Template file for 'bspwm'
|
||||||
pkgname=bspwm
|
pkgname=bspwm
|
||||||
version=0.9.5
|
version=0.9.5
|
||||||
revision=2
|
revision=3
|
||||||
makedepends="xcb-util-wm-devel xcb-util-keysyms-devel"
|
makedepends="xcb-util-wm-devel xcb-util-keysyms-devel"
|
||||||
short_desc="Tiling window manager based on binary space partitioning"
|
short_desc="Tiling window manager based on binary space partitioning"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Nathan Owens <ndowens04@gmail.com>"
|
||||||
license="BSD-2-Clause"
|
license="BSD-2-Clause"
|
||||||
homepage="https://github.com/baskerville/bspwm"
|
homepage="https://github.com/baskerville/bspwm"
|
||||||
distfiles="https://github.com/baskerville/bspwm/archive/${version}.tar.gz"
|
distfiles="https://github.com/baskerville/bspwm/archive/${version}.tar.gz"
|
||||||
|
|
Loading…
Reference in New Issue