xrdp/xrdp-disable-8-bpp-vnc-support.patch
Felix Zhang 55547a941a Accepting request 834273 from home:zhangxiaofei:branches:X11:RemoteDesktop
- Update to version 0.9.14
  + New features
    - Multi monitor and resize support for Xvnc backend #1343
      For more details see
      https://github.com/neutrinolabs/xrdp/wiki/Xvnc-backend-:-Multi-monitor-and-resize-support
    - Support Programmer Dvorak Keyboard #1663
  + Bug fixes
    - Fix odd shift key behavior (workaround) #397 #1522
    - Fix internal username/password buffer is smaller than RDP
      protocol specification #1648 #1653
    - Fix possible memory out-of-bounds accesses #1549
    - Fix memory allocation overflow #1557
    - Prevent chansrv input channels being scanned during a server
      reset #1595
    - Ignore TS_MULTIFRAGMENTUPDATE_CAPABILITYSET from client if fp
      disabled #1593
  + Known issues
    - FreeRDP 2.0.0-rc4 or later might not able to connect to xrdp
      due to xrdp's bad-mannered behaviour, add +glyph-cache option
      to FreeRDP to connect #1266
    - Audio redirection by MP3 codec doesn't sound with some
      client, use AAC instead #965
- Drop xrdp-fate319683-allow-vnc-resizing.patch: fixed upstream
- Rebase xrdp-default-config.patch
- Rebase xrdp-disable-8-bpp-vnc-support.patch
- Rebase xrdp-fate318398-change-expired-password.patch

OBS-URL: https://build.opensuse.org/request/show/834273
OBS-URL: https://build.opensuse.org/package/show/X11:RemoteDesktop/xrdp?expand=0&rev=87
2020-09-18 03:47:37 +00:00

35 lines
1.1 KiB
Diff

From: Fuminobu TAKEYAMA <ftake@geeko.jp>
Date: Mon, 01 May 2017 08:13:41 +0000
Subject: [PATCH] disable 8 bpp vnc support
Refresh the patch from Felix Zhang
Xvnc drops support for 8 bpp since 1.4.0. Trying to launch Xvnc in
8 bpp will cause it to dump core (bsc#991059).
---
vnc/vnc.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Index: b/vnc/vnc.c
===================================================================
--- a/vnc/vnc.c 2020-09-14 13:20:01.611135290 +0800
+++ b/vnc/vnc.c 2020-09-14 13:24:50.515034607 +0800
@@ -1914,13 +1914,16 @@ lib_mod_connect(struct vnc *v)
switch (v->server_bpp)
{
case 8:
+ v->server_msg(v, "VNC error - 8 bpp support is dropped "
+ "since Xvnc 1.4.0", 0);
+ return 1;
case 15:
case 16:
case 24:
case 32:
break;
default:
- v->server_msg(v, "VNC error - only supporting 8, 15, 16, 24 and 32 "
+ v->server_msg(v, "VNC error - only supporting 15, 16, 24 and 32 "
"bpp rdp connections", 0);
return 1;
}