summaryrefslogtreecommitdiff
path: root/user/x11vnc/CVE-2020-29074.patch
blob: 2982c59b119e2eb1fc6786f3e80ee33444042c1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- x11vnc-0.9.16/src/scan.c	2024-07-23 04:47:17.680000000 +0000
+++ x11vnc-0.9.16/src/scan.c	2024-07-23 04:48:25.080000000 +0000
@@ -320,7 +320,7 @@
 
 #if HAVE_XSHM
 	shm->shmid = shmget(IPC_PRIVATE,
-	    xim->bytes_per_line * xim->height, IPC_CREAT | 0777);
+	    xim->bytes_per_line * xim->height, IPC_CREAT | 0600);
 
 	if (shm->shmid == -1) {
 		rfbErr("shmget(%s) failed.\n", name);