[pkg-remote-commits] [xrdp] 01/01: Fix patch.
Dominik George
natureshadow-guest at moszumanska.debian.org
Thu Dec 21 23:59:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
natureshadow-guest pushed a commit to branch stretch
in repository xrdp.
commit 91d7a97d70b5750c22a381868f73f996438c6dba
Author: Dominik George <nik at naturalnet.de>
Date: Fri Dec 22 00:58:54 2017 +0100
Fix patch.
---
debian/patches/cve-2017-16927.patch | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/debian/patches/cve-2017-16927.patch b/debian/patches/cve-2017-16927.patch
index af8ea58..7aaced7 100644
--- a/debian/patches/cve-2017-16927.patch
+++ b/debian/patches/cve-2017-16927.patch
@@ -18,7 +18,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
/* reading username */
in_uint16_be(c->in_s, sz);
- buf[sz] = '\0';
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
-
+ buf[sz] = '\0';
@@ -34,7 +34,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
/* reading password */
in_uint16_be(c->in_s, sz);
- buf[sz] = '\0';
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
-
+ buf[sz] = '\0';
@@ -53,7 +53,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
if (sz > 0)
{
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
buf[sz] = '\0';
scp_session_set_domain(session, buf);
@@ -65,7 +65,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
if (sz > 0)
{
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
buf[sz] = '\0';
scp_session_set_program(session, buf);
@@ -77,7 +77,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
if (sz > 0)
{
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
buf[sz] = '\0';
scp_session_set_directory(session, buf);
@@ -89,7 +89,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
if (sz > 0)
{
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
buf[sz] = '\0';
scp_session_set_client_ip(session, buf);
@@ -102,7 +102,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
/* reading username */
in_uint16_be(c->in_s, sz);
- buf[sz] = '\0';
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
+ buf[sz] = '\0';
@@ -119,7 +119,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882463
/* reading password */
in_uint16_be(c->in_s, sz);
- buf[sz] = '\0';
-+ buf = g_new0(char, sz);
++ buf = g_new0(char, sz + 1;
in_uint8a(c->in_s, buf, sz);
+ buf[sz] = '\0';
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-remote/xrdp.git
More information about the pkg-remote-commits
mailing list