1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

net/x11vnc: patch CVE-2020-29074

Security: CVE-2020-29074
MFC: 2024Q4
This commit is contained in:
Dirk Meyer 2024-11-08 18:48:33 +01:00
parent a2e118fa21
commit 78dcb38f4a
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= x11vnc
PORTVERSION= 0.9.16
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= net
MAINTAINER= dinoex@FreeBSD.org

View File

@ -0,0 +1,11 @@
--- src/scan.c.orig 2019-01-05 13:22:11 UTC
+++ src/scan.c
@@ -320,7 +320,7 @@ static int shm_create(XShmSegmentInfo *shm, XImage **x
#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);