Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5970B1A7 for ; Wed, 4 Jan 2012 12:46:48 +0000 (UTC) Received: (qmail 85139 invoked by uid 500); 4 Jan 2012 12:46:48 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 84763 invoked by uid 500); 4 Jan 2012 12:46:41 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 84756 invoked by uid 99); 4 Jan 2012 12:46:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 12:46:38 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.103.221.48] (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2012 12:46:30 +0000 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20120104124608.COEN7093.mtaout02-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com>; Wed, 4 Jan 2012 12:46:08 +0000 Received: from cpc2-farn6-0-0-cust204.6-2.cable.virginmedia.com ([86.16.124.205]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20120104124607.HXEB23925.aamtaout04-winn.ispmail.ntl.com@cpc2-farn6-0-0-cust204.6-2.cable.virginmedia.com>; Wed, 4 Jan 2012 12:46:07 +0000 Received: by cpc2-farn6-0-0-cust204.6-2.cable.virginmedia.com (Postfix, from userid 1000) id B282536226; Wed, 4 Jan 2012 12:46:05 +0000 (GMT) From: Philip Martin To: dev@subversion.apache.org Cc: cmpilato@collab.net Subject: Re: svn commit: r1215374 - /subversion/trunk/subversion/libsvn_ra_neon/log.c References: <20111217005600.8A8712388860@eris.apache.org> Date: Wed, 04 Jan 2012 12:46:05 +0000 In-Reply-To: <20111217005600.8A8712388860@eris.apache.org> (cmpilato@apache.org's message of "Sat, 17 Dec 2011 00:56:00 -0000") Message-ID: <87ty4bk54i.fsf@stat.home.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=dmETdrZ3I3YA:10 a=rQIjMQ11qVYA:10 a=sOaj6hhuNKAA:10 a=IkcTkHD0fZMA:10 a=mV9VRH-2AAAA:8 a=1Bt73i40rOIiiwAZd2cA:9 a=7cSz_DNvseR0gH2WoWkA:7 a=QEXdDO2ut3YA:10 a=88iI8knYSJUA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 cmpilato@apache.org writes: > Author: cmpilato > Date: Sat Dec 17 00:56:00 2011 > New Revision: 1215374 > > URL: http://svn.apache.org/viewvc?rev=3D1215374&view=3Drev > Log: > Followup to r1215260, just tightening up some loose logic. > > * subversion/libsvn_ra_neon/log.c > (log_start_element): Reduce the scope of the check for an encoding > to just those tags for which it makes sense to have one. While > here, fix a long-standing potential segfault (apr_pstrdup on NULL > input). > (maybe_decode_log_cdata): Lose 'pool' parameter, and just store in > the result in lb->subpool. > (log_end_element): Update call to maybe_decode_log_cdata(). This causes log_tests.py 25 to fail with neon when built with -O2 on my Linux box, the test passes when built -O0. The compiler warns ../src/subversion/libsvn_ra_neon/log.c: In function =E2=80=98log_end_elemen= t=E2=80=99: ../src/subversion/libsvn_ra_neon/log.c:293: warning: =E2=80=98decoded_cdata= =E2=80=99 may be used uninitialized in this function but that may not be the cause since the patch below doesn't fix the fail: Index: subversion/libsvn_ra_neon/log.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- subversion/libsvn_ra_neon/log.c (revision 1227106) +++ subversion/libsvn_ra_neon/log.c (working copy) @@ -292,8 +292,7 @@ struct log_baton *lb =3D baton; const svn_string_t *decoded_cdata; =20 - if (lb->want_cdata) - SVN_ERR(maybe_decode_log_cdata(&decoded_cdata, lb)); + SVN_ERR(maybe_decode_log_cdata(&decoded_cdata, lb)); =20 switch (state) { --=20 Philip