ports/109436: net/rdesktop segmentation fault

Oleg Lomaka oleg.lomaka at gmail.com
Thu Feb 22 15:40:08 UTC 2007


>Number:         109436
>Category:       ports
>Synopsis:       net/rdesktop segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 22 15:40:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Lomaka
>Release:        RELENG_6
>Organization:
>Environment:
6.2-STABLE FreeBSD 6.2-STABLE #6: Wed Jan 17 10:22:07 EET 2007 i386
>Description:
net/rdesktop segmentation fault in file xclip.c line 210
function lf2crlf, on line '*o++ = '\0';'
>How-To-Repeat:
Occasionally when work with VMWare on remote Windows workstation
>Fix:


Patch attached with submission follows:

--- xclip.c.orig	Mon Aug  7 14:45:43 2006
+++ xclip.c	Thu Feb 22 17:24:58 2007
@@ -207,7 +207,7 @@
 	*length = o - result;
 
 	/* Convenience */
-	*o++ = '\0';
+	if (*length > 0) *o++ = '\0';
 
 	return result;
 }
@@ -288,6 +288,10 @@
 {
 	DEBUG_CLIPBOARD(("xclip_send_data_with_convert: target=%s, size=%u\n",
 			 XGetAtomName(g_display, target), (unsigned) source_size));
+	if (source == 0)
+	{
+		return False;
+	}
 
 #ifdef USE_UNICODE_CLIPBOARD
 	if (target == format_string_atom ||

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list