Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 6903 invoked by uid 6000); 14 Dec 1997 11:26:40 -0000 Received: (qmail 6895 invoked from network); 14 Dec 1997 11:26:38 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 14 Dec 1997 11:26:38 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with ESMTP id LAA23002 for ; Sun, 14 Dec 1997 11:25:50 GMT Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id LAA26722 for ; Sun, 14 Dec 1997 11:25:32 GMT Message-ID: <3493C221.433788D9@algroup.co.uk> Date: Sun, 14 Dec 1997 11:25:21 +0000 From: Ben Laurie Organization: A.L. Digital Ltd. X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: [PATCH] PR#1319: RedirectMatch gone / causes SIGSEGV References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Dean Gaudet wrote: > > RedirectMatch gone / causes a SIGSEGV. This is fixed here. > > But when I was testing Redirect gone / I found it wasn't working right... > it turns out to be a bug introduced by a change to alloc.c between > revisions 1.41 and 1.42 -- Stanley Gambarin pointed out that pstrcat(p, > NULL) returned bogosity (an uninitialized byte) and suggested that it > return NULL in this case. I put that in... but it turns out that > mod_alias was relying on it returning something non-NULL even in this > case. So this patch includes a tweak which causes pstrcat(p, NULL) to > return an empty string... which should be more compatible. +1 (untested). Cheers, Ben. -- Ben Laurie |Phone: +44 (181) 735 0686|Apache Group member Freelance Consultant |Fax: +44 (181) 735 0689|http://www.apache.org and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author A.L. Digital Ltd, |http://www.algroup.co.uk/Apache-SSL London, England. |"Apache: TDG" http://www.ora.com/catalog/apache