Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Sep 2005 09:52:01 +0200 (CEST)
From:      Simun Mikecin <numisemis@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        aa8vb@nc.rr.com
Subject:   ports/86579: [fix] multimedia/fxtv: Segmentation fault with recent Xorg
Message-ID:  <20050926075201.7A80526D04D@mail.logos.hr>
Resent-Message-ID: <200509260800.j8Q80RCn099041@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86579
>Category:       ports
>Synopsis:       [fix] multimedia/fxtv: Segmentation fault with recent Xorg
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 26 08:00:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Simun Mikecin
>Release:        FreeBSD 6.0-BETA5 i386
>Organization:
>Environment:
System: FreeBSD data.home.hr 6.0-BETA5 FreeBSD 6.0-BETA5 #0: Fri Sep 23 21:13:44 CEST 2005 root@data.home.hr:/var/obj/usr/src.6/sys/DATA i386


	
>Description:
Recent Xorg update causes segmentation fault during startup of fxtv.

"temp_station" variable should be filled by XtVaGetValues(), but the
variable gets a NULL value. Segmentation fault is in the libc strcmp
function, cause it doesn't check if one of it's parameters is NULL.
	
>How-To-Repeat:
try fxtv with the latest Xorg version from ports.
	
>Fix:
--- tvmenu.c.orig	Fri Sep 23 23:56:25 2005
+++ tvmenu.c	Fri Sep 23 23:56:25 2005
@@ -589,7 +589,7 @@
 
         XtVaSetValues(children[i], XtNleftBitmap, pix, NULL);
 #else
-        if ( strcmp( actual_station, temp_station ) == 0 )
+        if ( strcmp( actual_station, temp_station==NULL ? "" : temp_station ) == 0 )
             new_popup_item = children[i];
 #endif
     }
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050926075201.7A80526D04D>