openbsd-ports/x11/qt4/patches/patch-src_gui_image_qnativeimage_cpp
sthen 7e3095cdd6 Partially revert fix for CVE-2013-0254 which does not work with our
privilege-separated X and caused broken displays for applications using
qt frames, diff from dcoppa, okay espie.

(An alternative fix would be to disable shm support, i.e.
"CONFIGURE_ARGS += -no-mitshm", I'd prefer this but it would need further
testing).
2013-10-24 08:39:14 +00:00

17 lines
683 B
Plaintext

$OpenBSD: patch-src_gui_image_qnativeimage_cpp,v 1.1 2013/10/24 08:39:14 sthen Exp $
Partially revert fix for CVE-2013-0254 which does not work with our
privilege-separated X.
--- src/gui/image/qnativeimage.cpp.orig Thu Oct 10 22:18:28 2013
+++ src/gui/image/qnativeimage.cpp Thu Oct 10 22:18:55 2013
@@ -176,7 +176,7 @@ QNativeImage::QNativeImage(int width, int height, QIma
bool ok;
xshminfo.shmid = shmget(IPC_PRIVATE, xshmimg->bytes_per_line * xshmimg->height,
- IPC_CREAT | 0700);
+ IPC_CREAT | 0777);
ok = xshminfo.shmid != -1;
if (ok) {
xshmimg->data = (char*)shmat(xshminfo.shmid, 0, 0);