pcre 8.37 with latest patches won't build
Message ID | 55D4CF3C.8080305@ipfire.org |
---|---|
State | Not Applicable |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id 5BF1B61354 for <patchwork@ipfire.org>; Wed, 19 Aug 2015 20:47:27 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 1BA643273; Wed, 19 Aug 2015 20:47:27 +0200 (CEST) Received: from [192.168.100.1] (p578D1E72.dip0.t-ipconnect.de [87.141.30.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id C93FA21A2 for <development@lists.ipfire.org>; Wed, 19 Aug 2015 20:47:24 +0200 (CEST) To: "IPFire: Development-List" <development@lists.ipfire.org> From: Matthias Fischer <matthias.fischer@ipfire.org> Subject: pcre 8.37 with latest patches won't build Organization: None Message-ID: <55D4CF3C.8080305@ipfire.org> Date: Wed, 19 Aug 2015 20:47:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Matthias Fischer
20 Aug 2015, 4:47 a.m. UTC
Hi, yesterday I tried to build the latest 'next', but it failed. It couldn't apply 'pcre-8.37-Fix-another-buffer-overflow.patch': ***SNIP*** Aug 18 19:03:54: Building pcre pcre-8.37.tar.gz checksum OK + cd /usr/src/lfs + make -f pcre LFS_BASEDIR=/usr/src install } /* In the real compile, search the name table. We check the name ***SNAP*** Deleting this section didn't help. Anyone else or my fault? Regards Matthias
Comments
Hi, sorry, this is not your fault. I fucked that up. I was sure that these patches built but clearly I did something wrong. I reverted the commit so that you can pull and resume your build and will then upload a new commit after I fixed this. Thanks for the notice. Best, -Michael On Wed, 2015-08-19 at 20:47 +0200, Matthias Fischer wrote: > Hi, > > yesterday I tried to build the latest 'next', but it failed. It > couldn't > apply 'pcre-8.37-Fix-another-buffer-overflow.patch': > > ***SNIP*** > Aug 18 19:03:54: Building pcre pcre-8.37.tar.gz checksum OK > + cd /usr/src/lfs > + make -f pcre LFS_BASEDIR=/usr/src install > ====================================== Installing pcre-8.37 ... > Install started; saving file list to /usr/src/lsalr ... > cd /usr/src/pcre-8.37 && patch -Np1 < > /usr/src/src/patches/pcre-8.37-Fix-buffer-overflow-for-named > -recursive-back-referen.patch > patching file pcre_compile.c > patching file testdata/testinput2 > patching file testdata/testoutput2 > cd /usr/src/pcre-8.37 && patch -Np1 < > /usr/src/src/patches/pcre-8.37-Fix-buffer-overflow-for-forward > -reference-within-bac.patch > patching file pcre_compile.c > patching file testdata/testinput2 > patching file testdata/testoutput2 > cd /usr/src/pcre-8.37 && patch -Np1 < > /usr/src/src/patches/pcre-8.37-Fix-another-buffer-overflow.patch > patching file pcre_compile.c > Hunk #1 FAILED at 7210. > 1 out of 1 hunk FAILED -- saving rejects to file pcre_compile.c.rej > patching file testdata/testinput2 > patching file testdata/testoutput11-16 > patching file testdata/testoutput11-32 > patching file testdata/testoutput11-8 > patching file testdata/testoutput2 > make: *** [/usr/src/log/pcre-8.37] Error 1 > ***SNAP*** > > 'pcre_compile.c.rej' says: > > ***SNIP*** > --- pcre_compile.c > +++ pcre_compile.c > @@ -7210,7 +7210,12 @@ > real compile this will be picked up and the reference > wrapped with > OP_ONCE to make it atomic, so we must space in case this > occurs. */ > > - if (recno == 0) *lengthptr += 2 + 2*LINK_SIZE; > + /* In fact, this can happen for a non-forward reference > because > + another group with the same number might be created later. > This > + issue is fixed "properly" in PCRE2. As PCRE1 is now in > maintenance > + only mode, we finesse the bug by allowing more memory > always. */ > + > + /* if (recno == 0) */ *lengthptr += 2 + 2*LINK_SIZE; > } > > /* In the real compile, search the name table. We check the > name > ***SNAP*** > > Deleting this section didn't help. Anyone else or my fault? > > Regards > Matthias
Hi, On 19.08.2015 21:34, Michael Tremer wrote: > sorry, this is not your fault. > > ... > > Thanks for the notice. No problem...the major work was done by the machine... ;-) Best Matthias