[X2Go-Commits] [nx-libs] 33/219: xkbUtils.c: Catch division by zero
git-admin at x2go.org
git-admin at x2go.org
Sat Sep 28 12:10:17 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit 4df77fe73fe03dc3098190f3702c0d5ab415968a
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Wed May 15 19:42:29 2019 +0200
xkbUtils.c: Catch division by zero
Fixes ArcticaProject/nx-libs#808
---
nx-X11/programs/Xserver/xkb/xkbUtils.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/nx-X11/programs/Xserver/xkb/xkbUtils.c b/nx-X11/programs/Xserver/xkb/xkbUtils.c
index 028f32454..21a5ce76a 100644
--- a/nx-X11/programs/Xserver/xkb/xkbUtils.c
+++ b/nx-X11/programs/Xserver/xkb/xkbUtils.c
@@ -685,6 +685,10 @@ unsigned act;
else group= newGroup;
}
else {
+#ifdef NXAGENT_SERVER
+ /* we have seen division by zero here */
+ if (ctrls->num_groups != 0)
+#endif
group%= ctrls->num_groups;
}
}
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list