Date: Tue, 15 Feb 2005 18:41:13 +0100 From: "Kay Lehmann" <kay_lehmann@web.de> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/77564: [Maintainer Update] sysutils/lineakd: Fix segfaults on AMD64 (Superseeds ports/77479) Message-ID: <1108489273.0@bippes.finkenkrug.ev> Resent-Message-ID: <200502151740.j1FHeIuC013588@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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; //vector<string>names; - 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1108489273.0>