From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 26 08:00:29 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D769416A41F for ; Mon, 26 Sep 2005 08:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27C1943D49 for ; Mon, 26 Sep 2005 08:00:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8Q80Rc8099050 for ; Mon, 26 Sep 2005 08:00:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8Q80RCn099041; Mon, 26 Sep 2005 08:00:27 GMT (envelope-from gnats) Resent-Date: Mon, 26 Sep 2005 08:00:27 GMT Resent-Message-Id: <200509260800.j8Q80RCn099041@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simun Mikecin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8939F16A41F for ; Mon, 26 Sep 2005 07:52:19 +0000 (GMT) (envelope-from sime@logos.hr) Received: from mail.logos.hr (gates.logos.hr [213.149.47.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EAF243D4C for ; Mon, 26 Sep 2005 07:52:18 +0000 (GMT) (envelope-from sime@logos.hr) Received: from localhost (localhost.logos.hr [127.0.0.1]) by mail.logos.hr (Postfix) with ESMTP id ACBF226D04E; Mon, 26 Sep 2005 09:52:16 +0200 (CEST) Received: from mail.logos.hr ([127.0.0.1]) by localhost (mail.logos.hr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 88843-03; Mon, 26 Sep 2005 09:52:01 +0200 (CEST) Received: by mail.logos.hr (Postfix, from userid 34062) id 7A80526D04D; Mon, 26 Sep 2005 09:52:01 +0200 (CEST) Message-Id: <20050926075201.7A80526D04D@mail.logos.hr> Date: Mon, 26 Sep 2005 09:52:01 +0200 (CEST) From: Simun Mikecin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: aa8vb@nc.rr.com Subject: ports/86579: [fix] multimedia/fxtv: Segmentation fault with recent Xorg X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Simun Mikecin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 08:00:30 -0000 >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: