[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wheezy/lts - segfault in xrdp after upgrade to 0.5.0-2+deb7u2



Hi,

the following patch fixes the regression, at least for me:

--- a/sesman/libscp/libscp_v0.c	2017-12-12 14:07:58.000000000 +0100
+++ b/sesman/libscp/libscp_v0.c	2017-12-12 14:09:16.000000000 +0100
@@ -203,7 +203,7 @@

     /* reading username */
     in_uint16_be(c->in_s, sz);
-    buf[sz]=g_new0(char, sz);
+    buf=g_new0(char, sz);
     in_uint8a(c->in_s, buf, sz);
 	buf[sz] = '\0';
     if (0 != scp_session_set_username(session, buf))
@@ -217,7 +217,7 @@

     /* reading password */
     in_uint16_be(c->in_s, sz);
-    buf[sz]=g_new0(char, sz);
+    buf=g_new0(char, sz);
     in_uint8a(c->in_s, buf, sz);
 	buf[sz] = '\0';
     if (0 != scp_session_set_password(session, buf))


Hi again,

After the update xrdp-sesman started to segfault in libscp:


Thanks for the report. I did not catch this segfault during my tests.

Thanks for investigation.

I have a spare server with same configuration and will try to reproduce the issue.

I can reproduce the error on this spare server.

I would like to provide a backtrace, but have difficulties building a version with debug symbols included -- they get stripped, although i did:

export DEB_BUILD_OPTIONS=nostrip,noopt
dpkg-buildpackage -rfakeroot -uc -us

I'm not a C developer and am a bit lost between all this autoconf-stuff.

Is there another easy way to get a gdb-friendly version of libscp?

Best regards,

Frank.



--
Frank Richter
Leiter EDV
Tel: +49 37204 71 480
Fax: +49 37204 71 409
E-Mail: frank.richter@esda.com
WWW: http://www.esda.com
Esda Strumpfwerke GmbH
Achatstr. 5
09356 St. Egidien
HRB 4880, Registergericht Chemnitz
Geschäftsführer: Malte Daun, Daniela Göbel


Reply to: