[X2Go-Commits] [nx-libs] 391/429: Clipboard.c: sanity check for invalid resource
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:37:14 CEST 2021
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 124f5a5c6e4f37880c482d1037636ccfd7b6fca0
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Tue Mar 2 23:12:03 2021 +0100
Clipboard.c: sanity check for invalid resource
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 8844c88df..7fefd5ee1 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1592,6 +1592,14 @@ Bool nxagentCollectPropertyEventFromXServer(int resource)
int index = 0;
+ if (resource < 0)
+ {
+ #ifdef DEBUG
+ fprintf (stderr, "%s: resource [%d] is invalid.\n", __func__, resource);
+ #endif
+ return False;
+ }
+
/* determine the selection we are talking about here */
for (index = 0; index < nxagentMaxSelections; index++)
{
--
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