From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 2 18:50:23 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FBBA16A4CE for ; Wed, 2 Feb 2005 18:50:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDA2D43D5F for ; Wed, 2 Feb 2005 18:50:22 +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 j12IoMbs008846 for ; Wed, 2 Feb 2005 18:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j12IoMI3008845; Wed, 2 Feb 2005 18:50:22 GMT (envelope-from gnats) Resent-Date: Wed, 2 Feb 2005 18:50:22 GMT Resent-Message-Id: <200502021850.j12IoMI3008845@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, fergus cameron Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F2A716A4CE for ; Wed, 2 Feb 2005 18:48:56 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8009743D3F for ; Wed, 2 Feb 2005 18:48:56 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j12ImuXc060953 for ; Wed, 2 Feb 2005 18:48:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j12Imun5060952; Wed, 2 Feb 2005 18:48:56 GMT (envelope-from nobody) Message-Id: <200502021848.j12Imun5060952@www.freebsd.org> Date: Wed, 2 Feb 2005 18:48:56 GMT From: fergus cameron To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/77031: [patch] comm(1) unable to handle lines greater than LINE_MAX (2048) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Feb 2005 18:50:23 -0000 >Number: 77031 >Category: misc >Synopsis: [patch] comm(1) unable to handle lines greater than LINE_MAX (2048) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 02 18:50:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: fergus cameron >Release: FreeBSD rabbit.cobbled.net 5.3-STABLE FreeBSD 5.3-STABLE #3: Tue Dec 7 20:41:00 GMT 2004 root@rabbit.cobbled.net:/usr/cabinet/software/binary/FreeBSD/build/usr/cabinet/software/source/FreeBSD/RELENG_5/sys/RABBIT i386 >Organization: cameron-consulting.ie >Environment: FreeBSD rabbit.cobbled.net 5.3-STABLE FreeBSD 5.3-STABLE #3: Tue Dec 7 20:41:00 GMT 2004 root@rabbit.cobbled.net:/usr/cabinet/software/binary/FreeBSD/build/usr/cabinet/software/source/FreeBSD/RELENG_5/sys/RABBIT i386 >Description: comm(1) utility will incorrectly handle lines longer than 2048 characters. >How-To-Repeat: create test files with lines of greater length than 2048 and run the utility against them. note that due to the way lines are processed it 'appears' to work, however comparisons and line ouputs are incorrect. >Fix: patch at ftp://ftp.cameron-consulting.ie/comm.c-diff anon access via "ftp@cameron-consulting.ie" user name this is a large patch (for the size of the problem) and equates to almost a complete re-write of the utility. the case insensitive option still needs re-implemented. let me know of issues with the code and or style as it has changed greatly to suit personal (in-experienced) coding style. >Release-Note: >Audit-Trail: >Unformatted: