From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Feb 15 17:40:19 2005 Return-Path: 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 876E616A4CF for ; Tue, 15 Feb 2005 17:40:19 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D9D443D1F for ; Tue, 15 Feb 2005 17:40:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j1FHeIs5013589 for ; Tue, 15 Feb 2005 17:40:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j1FHeIuC013588; Tue, 15 Feb 2005 17:40:18 GMT (envelope-from gnats) Resent-Date: Tue, 15 Feb 2005 17:40:18 GMT Resent-Message-Id: <200502151740.j1FHeIuC013588@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, "Kay Lehmann" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0DE016A4CE for ; Tue, 15 Feb 2005 17:36:23 +0000 (GMT) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id C203E43D49 for ; Tue, 15 Feb 2005 17:36:22 +0000 (GMT) (envelope-from kay_lehmann@web.de) Received: from bippes.finkenkrug.ev (lehmann.in-dsl.de [217.197.85.240]) (authenticated bits=0)j1FHa6tA013675 for ; Tue, 15 Feb 2005 18:36:20 +0100 Message-Id: <1108489273.0@bippes.finkenkrug.ev> Date: Tue, 15 Feb 2005 18:41:13 +0100 From: "Kay Lehmann" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.4 Subject: ports/77564: [Maintainer Update] sysutils/lineakd: Fix segfaults on AMD64 (Superseeds ports/77479) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 17:40:19 -0000 >Number: 77564 >Category: ports >Synopsis: [Maintainer Update] sysutils/lineakd: Fix segfaults on AMD64 (Superseeds ports/77479) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue Feb 15 17:40:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Kay Lehmann >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD 5.3-STABLE #3: Sat Feb 5 18:15:46 CET 2005 root@bippes.finkenkrug.ev:/usr/obj/usr/src/sys/bippes >Description: This is the patch which has been commited to cvs of lineakd to fix problems described in pr=ports/77479. The fix offered there seem to miss a line that has been changed in cvs. So I think cvs-version (which has been tested from Linux-folks) should be complete. >How-To-Repeat: >Fix: --- patch-lineak__defloader.cpp begins here --- --- lineak/defloader.cpp.orig Tue Feb 15 18:28:46 2005 +++ lineak/defloader.cpp Tue Feb 15 18:28:49 2005 @@ -129,7 +129,7 @@ // Handle empty lines. loc = tmp.find('='); // empty line - if (loc == string::npos) + if (loc == (unsigned int)string::npos) continue; // key == the name of the key. @@ -157,13 +157,13 @@ //cout << akey; /** Now determine if this is a toggleable key. We will have to parse the name format name1|name2 if indeed it is a toggleable key. */ - if ((unsigned int)key.find('|') != string::npos) { + if ((unsigned int)key.find('|') != (unsigned int)string::npos) { key+='|'; akey->setToggle(true); int index; string tmp; //vectornames; - while (((unsigned int)(index = key.find('|'))) != string::npos) { + while (((unsigned int)(index = key.find('|'))) != (unsigned int)string::npos) { tmp = key.substr(0,index); //cout << "adding toggle name: " << tmp << " to " << akey->getName() << endl; akey->addToggleName(tmp); --- patch-lineak__defloader.cpp ends here --- >Release-Note: >Audit-Trail: >Unformatted: