GNOME Bugzilla – Bug 726801
rfbsrc: specifying out-of-bounds resolution leads to segfault
Last modified: 2014-08-28 06:54:29 UTC
Created attachment 272527 [details] [review] patch which clamps resolution When using rfbsrc, setting offset properties (offset-x, offset-y) or rectangle size properties (width, height) to values greater than what the VNC server provides causes a segfault. I'm attaching a patch that prevents the crash by clamping the values just after the connection is made. The same problem exists in 0.10, and the same patch applies cleanly, fixing the problem.
Ping.
Thanks for the patch! Please attach patches in "git format-patch" format in the future :) commit 105b52e88a097bdbc18f01a79851c8432de773df Author: Blake Tregre <blake.tregre@gmail.com> Date: Thu Aug 28 09:53:17 2014 +0300 rfbsrc: Clamp out of bounds resolutions to prevent segfaults https://bugzilla.gnome.org/show_bug.cgi?id=726801