Skip site navigation (1)Skip section navigation (2)
Date:      5 Feb 2005 07:16:30 -0000
From:      "Alexey A.Ukhov" <a.ukhov@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/77121: fixed serious bug in AxKit::CharsetConv class. Updated to AxKit 1.6.2 version.
Message-ID:  <20050205071630.66647.qmail@sml.tomsk.ru>
Resent-Message-ID: <200502050720.j157KKiN036840@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77121
>Category:       ports
>Synopsis:       fixed serious bug in AxKit::CharsetConv class. Updated to AxKit 1.6.2 version.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 05 07:20:20 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alexey A. Ukhov
>Release:        FreeBSD 5.3-RELEASE-p5 i386
>Organization:
startext Unternehmensberatung GmbH
>Environment:
System: FreeBSD sml.tomsk.ru 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #1: Sun Jan 16 20:27:10 NOVT 2005 ukhov@sml.tomsk.ru:/usr/obj/usr/src/sys/Gateway i386
>Description:
        Fixed critical bug in AxKit::CharsetConv class.
	We had crash of Apache child and multiple errors in log file like
		httpd in free(): error: pointer to wrong page
		httpd in free(): error: pointer to wrong page
		httpd in free(): error: pointer to wrong page
	Updated to AxKit 1.6.2 version.
>How-To-Repeat:
	Just use Apache::AxKit::CharsetConv class
	    {
        	my $encoding = <param:encoding />;
	        my $iconv = Apache::AxKit::CharsetConv->new($encoding,"UTF-8");
	        $query = $iconv->convert($query);
	    }
	On exit from local scope you will have apache child crash and zero length request in browser.
>Fix:
	In file CharsetConv.xs, line 197 changed
	      free(self);
	to
	      Safefree(self);

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050205071630.66647.qmail>