Return-Path: X-Original-To: apmail-perl-modperl-cvs-archive@www.apache.org Delivered-To: apmail-perl-modperl-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B004FE9DB for ; Thu, 14 Mar 2013 09:27:53 +0000 (UTC) Received: (qmail 75768 invoked by uid 500); 14 Mar 2013 09:27:53 -0000 Delivered-To: apmail-perl-modperl-cvs-archive@perl.apache.org Received: (qmail 75564 invoked by uid 500); 14 Mar 2013 09:27:46 -0000 Mailing-List: contact modperl-cvs-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@perl.apache.org List-Id: Delivered-To: mailing list modperl-cvs@perl.apache.org Received: (qmail 75521 invoked by uid 99); 14 Mar 2013 09:27:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 09:27:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Mar 2013 09:27:39 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 7EBFA2388906; Thu, 14 Mar 2013 09:25:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1456372 - in /perl/modperl/trunk: Changes xs/Apache2/RequestIO/Apache2__RequestIO.h Date: Thu, 14 Mar 2013 09:25:34 -0000 To: modperl-cvs@perl.apache.org From: stevehay@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130314092534.7EBFA2388906@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stevehay Date: Thu Mar 14 09:25:34 2013 New Revision: 1456372 URL: http://svn.apache.org/r1456372 Log: On Perl 5.17.9, t/apache/read2.t fails because an "uninitialized value" warning is generated for the buffer being autovivified. This is because the sv_setpvn() that's meant to vivify the buffer doesn't perform set magic; the warning is generated by the immediately following SvPV_force(). Patch to fix this from rt.cpan.org #83922. [Zefram] Modified: perl/modperl/trunk/Changes perl/modperl/trunk/xs/Apache2/RequestIO/Apache2__RequestIO.h Modified: perl/modperl/trunk/Changes URL: http://svn.apache.org/viewvc/perl/modperl/trunk/Changes?rev=1456372&r1=1456371&r2=1456372&view=diff ============================================================================== --- perl/modperl/trunk/Changes (original) +++ perl/modperl/trunk/Changes Thu Mar 14 09:25:34 2013 @@ -12,6 +12,12 @@ Also refer to the Apache::Test changes l =item 2.0.8-dev +On Perl 5.17.9, t/apache/read2.t fails because an "uninitialized value" +warning is generated for the buffer being autovivified. This is because +the sv_setpvn() that's meant to vivify the buffer doesn't perform set +magic; the warning is generated by the immediately following SvPV_force(). +Patch to fix this from rt.cpan.org #83922. [Zefram] + Fix t/perl/hash_attack.t to work with Perl 5.14.4, 5.16.3 etc, which contain a fix for CVE-2013-1667 (memory exhaustion with arbitrary hash keys). This resolves rt.perl.org #116863, from where the patch was taken. Modified: perl/modperl/trunk/xs/Apache2/RequestIO/Apache2__RequestIO.h URL: http://svn.apache.org/viewvc/perl/modperl/trunk/xs/Apache2/RequestIO/Apache2__RequestIO.h?rev=1456372&r1=1456371&r2=1456372&view=diff ============================================================================== --- perl/modperl/trunk/xs/Apache2/RequestIO/Apache2__RequestIO.h (original) +++ perl/modperl/trunk/xs/Apache2/RequestIO/Apache2__RequestIO.h Thu Mar 14 09:25:34 2013 @@ -227,6 +227,10 @@ apr_status_t mpxs_setup_client_block(req #define mpxs_should_client_block(r) \ (r->read_length || ap_should_client_block(r)) +#ifndef sv_setpvn_mg +# define sv_setpvn_mg sv_setpvn +#endif + /* alias */ #define mpxs_Apache2__RequestRec_READ(r, buffer, len, offset) \ mpxs_Apache2__RequestRec_read(aTHX_ r, buffer, len, offset) @@ -239,7 +243,7 @@ static SV *mpxs_Apache2__RequestRec_read STRLEN blen; if (!SvOK(buffer)) { - sv_setpvn(buffer, "", 0); + sv_setpvn_mg(buffer, "", 0); } (void)SvPV_force(buffer, blen); /* make it a valid PV */