summaryrefslogtreecommitdiff
path: root/user/x11vnc/CVE-2020-29074.patch
diff options
context:
space:
mode:
authorLeigh Arber <builder@Adelie-A7EEA3.vpn.adelielinux.org>2024-07-23 19:15:29 +0000
committerZach van Rijn <me@zv.io>2024-10-24 15:24:10 +0000
commit475f50002e55c952e23b91d9abbaac396d476ad8 (patch)
treec09cba40bb736aa0dfe84b61b864fb8736d8f30f /user/x11vnc/CVE-2020-29074.patch
parent471ce261a5b6230cacbd359760112033b0437c9d (diff)
downloadpackages-475f50002e55c952e23b91d9abbaac396d476ad8.tar.gz
packages-475f50002e55c952e23b91d9abbaac396d476ad8.tar.bz2
packages-475f50002e55c952e23b91d9abbaac396d476ad8.tar.xz
packages-475f50002e55c952e23b91d9abbaac396d476ad8.zip
user/x11vnc: patch for CVE-2020-29074
Closes: #389
Diffstat (limited to 'user/x11vnc/CVE-2020-29074.patch')
-rw-r--r--user/x11vnc/CVE-2020-29074.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/x11vnc/CVE-2020-29074.patch b/user/x11vnc/CVE-2020-29074.patch
new file mode 100644
index 000000000..2982c59b1
--- /dev/null
+++ b/user/x11vnc/CVE-2020-29074.patch
@@ -0,0 +1,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);