Hello community, here is the log from the commit of package xorg-x11-server for openSUSE:Factory checked in at 2015-12-16 17:41:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xorg-x11-server (Old) and /work/SRC/openSUSE:Factory/.xorg-x11-server.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xorg-x11-server" Changes: -------- --- /work/SRC/openSUSE:Factory/xorg-x11-server/xorg-x11-server.changes 2015-11-17 14:20:07.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.xorg-x11-server.new/xorg-x11-server.changes 2015-12-16 17:41:57.000000000 +0100 @@ -1,0 +2,7 @@ +Wed Nov 25 10:31:51 UTC 2015 - [email protected] + +- u_kdrive-UnregisterFd-Fix-off-by-one.patch + * Copy open file table correctly by avoiding an off-by-one error + (boo#867483). + +------------------------------------------------------------------- New: ---- u_kdrive-UnregisterFd-Fix-off-by-one.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xorg-x11-server.spec ++++++ --- /var/tmp/diff_new_pack.dA2nuk/_old 2015-12-16 17:41:59.000000000 +0100 +++ /var/tmp/diff_new_pack.dA2nuk/_new 2015-12-16 17:41:59.000000000 +0100 @@ -181,6 +181,7 @@ Patch160: u_vesa-Add-VBEDPMSGetCapabilities-VBEDPMSGet.patch Patch204: U_systemd-logind-do-not-rely-on-directed-signals.patch +Patch205: u_kdrive-UnregisterFd-Fix-off-by-one.patch Patch1000: n_xserver-optimus-autoconfig-hack.patch @@ -274,6 +275,7 @@ %patch160 -p1 %patch204 -p1 +%patch205 -p1 %patch1000 -p1 ++++++ u_kdrive-UnregisterFd-Fix-off-by-one.patch ++++++ From: Egbert Eich <[email protected]> Date: Tue Nov 24 16:10:08 2015 +0100 Subject: [PATCH]kdrive/UnregisterFd: Fix off by one Patch-mainline: to be upstreamed References: boo#867483 Signed-off-by: Egbert Eich <[email protected]> The number of FDs has been decremented already, therefore this number contains the index of the top one that is to me moved down. Signed-off-by: Egbert Eich <[email protected]> --- hw/kdrive/src/kinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index a539ca5..d28bbe0 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -221,7 +221,7 @@ KdUnregisterFd(void *closure, int fd, Bool do_close) if (do_close) close(kdInputFds[i].fd); kdNumInputFds--; - for (j = i; j < (kdNumInputFds - 1); j++) + for (j = i; j < kdNumInputFds; j++) kdInputFds[j] = kdInputFds[j + 1]; break; }
