Add a patch for uninitialised variables, courtesy of Dan Horák.
This commit is contained in:
parent
9851eb23a1
commit
f3a9fedf29
25
xrdp-0.9.14-vnc-uninit.patch
Normal file
25
xrdp-0.9.14-vnc-uninit.patch
Normal file
@ -0,0 +1,25 @@
|
||||
diff -ruN xrdp-0.9.14-v/vnc/vnc.c xrdp-0.9.14/vnc/vnc.c
|
||||
--- xrdp-0.9.14-v/vnc/vnc.c 2020-08-26 12:32:22.000000000 +1000
|
||||
+++ xrdp-0.9.14/vnc/vnc.c 2020-09-01 18:16:37.404290027 +1000
|
||||
@@ -1423,7 +1423,7 @@
|
||||
{
|
||||
int error;
|
||||
struct vnc_screen_layout layout = {0};
|
||||
- int response_code;
|
||||
+ int response_code = 0;
|
||||
|
||||
error = find_matching_extended_rect(v,
|
||||
rect_is_reply_to_us,
|
||||
@@ -1485,9 +1485,9 @@
|
||||
int srcy;
|
||||
unsigned int encoding;
|
||||
int pixel;
|
||||
- int r;
|
||||
- int g;
|
||||
- int b;
|
||||
+ int r = 0;
|
||||
+ int g = 0;
|
||||
+ int b = 0;
|
||||
int error;
|
||||
int need_size;
|
||||
struct stream *s;
|
@ -13,7 +13,7 @@ Summary: Open source remote desktop protocol (RDP) server
|
||||
Name: xrdp
|
||||
Epoch: 1
|
||||
Version: 0.9.14
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: ASL 2.0 and GPLv2+ and MIT
|
||||
URL: http://www.xrdp.org/
|
||||
Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz
|
||||
@ -34,8 +34,7 @@ Patch6: xrdp-0.9.14-log-snprintf.patch
|
||||
Patch7: xrdp-0.9.14-xfree86-evdev.patch
|
||||
Patch8: xrdp-0.9.14-fuse-pointer.patch
|
||||
Patch9: xrdp-0.9.14-arch.patch
|
||||
|
||||
ExcludeArch: s390x
|
||||
Patch10: xrdp-0.9.14-vnc-uninit.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libX11-devel
|
||||
@ -281,6 +280,9 @@ fi
|
||||
%{_datadir}/selinux/*/%{name}.pp
|
||||
|
||||
%changelog
|
||||
* Tue Sep 1 2020 Bojan Smojver <bojan@rexurive.com> - 1:0.9.14-3
|
||||
- Add a patch for uninitialised variables, courtesy of Dan Horák
|
||||
|
||||
* Mon Aug 31 2020 Bojan Smojver <bojan@rexurive.com> - 1:0.9.14-2
|
||||
- Bump up to 0.9.14
|
||||
- Add a set of patches to deal with new GCC warnings/errors
|
||||
|
Loading…
Reference in New Issue
Block a user