From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 19 05:20:15 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 68E3A16A41F for ; Fri, 19 Aug 2005 05:20:15 +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 C70B543D49 for ; Fri, 19 Aug 2005 05:20:14 +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 j7J5KEdU037393 for ; Fri, 19 Aug 2005 05:20:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j7J5KEfj037392; Fri, 19 Aug 2005 05:20:14 GMT (envelope-from gnats) Resent-Date: Fri, 19 Aug 2005 05:20:14 GMT Resent-Message-Id: <200508190520.j7J5KEfj037392@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, Phil Kernick Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7A5F16A41F for ; Fri, 19 Aug 2005 05:11:45 +0000 (GMT) (envelope-from philk@rotfl.com.au) Received: from mail.rotfl.com.au (eth1779.sa.adsl.internode.on.net [150.101.235.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2937643D45 for ; Fri, 19 Aug 2005 05:11:44 +0000 (GMT) (envelope-from philk@rotfl.com.au) Received: from localhost (localhost.rotfl.com.au [127.0.0.1]) by mail.rotfl.com.au (Postfix) with ESMTP id 84D1E453F3 for ; Fri, 19 Aug 2005 14:41:41 +0930 (CST) Received: from mail.rotfl.com.au ([127.0.0.1]) by localhost (mail.rotfl.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 39172-09 for ; Fri, 19 Aug 2005 14:41:35 +0930 (CST) Message-Id: <20050819051135.CE42A453F2@mail.rotfl.com.au> Date: Fri, 19 Aug 2005 14:41:35 +0930 (CST) From: Phil Kernick To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/85113: Patch for double-free in port www/squirm X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Phil Kernick List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 05:20:15 -0000 >Number: 85113 >Category: ports >Synopsis: Patch for double-free in port www/squirm >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: Fri Aug 19 05:20:14 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Phil Kernick >Release: FreeBSD 5.4-RELEASE-p6 i386 >Organization: >Environment: System: FreeBSD catbert.rotfl.com.au 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Mon Aug 15 13:12:48 CST 2005 root@catbert.rotfl.com.au:/usr/src/sys/i386/compile/CATBERT i386 >Description: port www/squirm under FreeBSD 5.4 aborts with a chunk already freed error. This is a software bug in the application and causes it to not work at all under 5.x. >How-To-Repeat: Run squirm as root from a command line, and press Ctrl+D. squirm will about with an "error: chunk is already free". >Fix: Apply this patch to fix the problem: --- lists.c.orig Fri Aug 19 13:53:29 2005 +++ lists.c Fri Aug 19 14:23:42 2005 @@ -366,7 +366,6 @@ next = head->next; if(head->patterns.pattern) { cfree(head->patterns.pattern); - regfree(&(head->patterns.cpattern)); } if(head->patterns.replacement) cfree(head->patterns.replacement); @@ -383,7 +382,6 @@ if(prev->patterns.pattern) { cfree(prev->patterns.pattern); - regfree(&(prev->patterns.cpattern)); } if(prev->patterns.replacement) cfree(prev->patterns.replacement); >Release-Note: >Audit-Trail: >Unformatted: