Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 523156

Summary: net-libs/libvncserver-0.9.9 - x11vnc crash when client connect (buffer overflow detected), when ipv6 is disabled on host
Product: Gentoo Linux Reporter: David Flogeras <dflogeras2>
Component: [OLD] LibraryAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=972618
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix segfault in ipv4 only builds

Description David Flogeras 2014-09-18 18:40:41 UTC
If you compile without ipv6 support, the currently stable libvncserver will segfault when a new connection attempt is made (I currently use it via kde's krfb).  I found this bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=972618

It seems they fixed it in git a long time ago, but have yet to do a new release which incorporates the change.  I've taken the two commits from Comment 23 in the RH bug and created a patch file which seems to apply cleanly on 0.9.9.  Could we please get it added?

Reproducible: Always
Comment 1 David Flogeras 2014-09-18 18:41:18 UTC
Created attachment 385062 [details, diff]
Patch to fix segfault in ipv4 only builds
Comment 2 Michael Palimaka (kensington) gentoo-dev 2014-09-19 15:45:43 UTC
Thanks, fixed in CVS.

+  19 Sep 2014; Michael Palimaka <kensington@gentoo.org>
+  +files/libvncserver-0.9.9-segfault.patch, +libvncserver-0.9.9-r3.ebuild:
+  Backport patch from upstream solving a segfault when built with USE="-ipv6"
+  wrt bug #523156.