From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#30116: [PATCH] `substitute' crashes when file contains NUL characters (core-updates) Date: Sun, 14 Jan 2018 20:27:57 -0500 Message-ID: <87r2qrc3mq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eataE-0004XD-8u for bug-guix@gnu.org; Sun, 14 Jan 2018 20:29:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eataB-0002mT-4P for bug-guix@gnu.org; Sun, 14 Jan 2018 20:29:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eataB-0002mG-0W for bug-guix@gnu.org; Sun, 14 Jan 2018 20:29:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eataA-0000cG-Lx for bug-guix@gnu.org; Sun, 14 Jan 2018 20:29:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eatZD-0004NB-Qx for bug-guix@gnu.org; Sun, 14 Jan 2018 20:28:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eatZA-0002BW-MA for bug-guix@gnu.org; Sun, 14 Jan 2018 20:28:03 -0500 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]:42407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eatZA-0002BB-FT for bug-guix@gnu.org; Sun, 14 Jan 2018 20:28:00 -0500 Received: by mail-it0-x236.google.com with SMTP id p139so15002492itb.1 for ; Sun, 14 Jan 2018 17:28:00 -0800 (PST) Received: from apteryx ([45.72.232.234]) by smtp.gmail.com with ESMTPSA id k73sm12600109ioe.24.2018.01.14.17.27.58 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Jan 2018 17:27:58 -0800 (PST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 30116@debbugs.gnu.org SGVsbG8sDQoNCkkndmUgZW5jb3VudGVyZWQgdGhlIGZvbGxvd2luZyBjcmFzaCB3aGVuIHRyeWlu ZyB0byB1c2Ugc3Vic3RpdHV0ZSBvbiBhDQpmaWxlIHdoaWNoIGNvbnRhaW5zIE5VTCBjaGFyYWN0 ZXJzOg0KDQotLTg8LS0tLS0tLS0tLS0tLS0tY3V0IGhlcmUtLS0tLS0tLS0tLS0tLS1zdGFydC0t LS0tLS0tLS0tLS0+OC0tLQ0KKGRlZmluZSBwcm9ibGVtYXRpYy1maWxlICIvdG1wL2JwLWltYWdl LWRhdGEuZWwiKQ0Kc2NoZW1lQChndWl4IGJ1aWxkIHV0aWxzKT4gLG0gKGd1aXggYnVpbGQgdXRp bHMpDQpzY2hlbWVAKGd1aXggYnVpbGQgdXRpbHMpPiAoc3Vic3RpdHV0ZSogcHJvYmxlbWF0aWMt ZmlsZQ0KCQkJICAgICAoKCJ0b3RvIikgInRhdGEiKSkNCmljZS05L2Jvb3QtOS5zY206NzUyOjI1 OiBJbiBwcm9jZWR1cmUgZGlzcGF0Y2gtZXhjZXB0aW9uOg0Kc3RyaW5nIGNvbnRhaW5zICNcbnVs IGNoYXJhY3RlcjogIlwiSUkqXHgwMChceDAzXHgwMFx4MDDvv73vv73vv73vv73vv73vv73vv73v v73vv73vv71AQEBA77+977+977+977+9XHgwNFx4MDRceDA0XHgwNO+/ve+/ve+/ve+/vVx4MDFc eDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4 MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDRceDA0XHgwNFx4MDTvv73vv73vv73vv71CQkJC77+9 77+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+9 QEBAQO+/ve+/ve+/ve+/vVx4MDRceDA0XHgwNFx4MDTvv73vv73vv73vv71ceDAxXHgwMVx4MDFc eDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4 MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgw Me+/ve+/ve+/ve+/vVx4MDRceDA0XHgwNFx4MDTvv73vv73vv73vv71CQkJC77+977+977+977+9 77+977+977+977+977+977+977+977+9XHgwNFx4MDRceDA0XHgwNO+/ve+/ve+/ve+/vVx4MDFc eDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4 MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgw MVx4MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAx XHgwMVx4MDHvv73vv73vv73vv71ceDA0XHgwNFx4MDRceDA077+977+977+977+9QkJCQu+/ve+/ ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+9 77+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73v v73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+9 77+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MTBceDEwXHgxMFx4MTDvv73vv73vv73v v71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/ vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9 XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71c eDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4 MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDEwXHgxMFx4MTBceDEw77+977+977+977+9XHgw MVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAx XHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFc eDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4 MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgw MVx4MDFceDAx77+977+977+977+9XHgxMFx4MTBceDEwXHgxMO+/ve+/ve+/ve+/vVx4MDRceDA0 XHgwNFx4MDTvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwMVx4MDFc eDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4 MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgw MVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwNFx4MDRceDA0 XHgwNO+/ve+/ve+/ve+/vT4+Pj7vv73vv73vv73vv708PDw877+977+977+977+9XHgwNFx4MDRc eDA0XHgwNO+/ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4 MDFceDAx77+977+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDFceDAxXHgw MVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+977+977+977+9XHgwNFx4MDRceDA0 XHgwNO+/ve+/ve+/ve+/vT4+Pj7vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73v v73vv73vv73vv73vv73vv73vv73vv708PDw877+977+977+977+9XHgwNFx4MDRceDA0XHgwNO+/ ve+/ve+/ve+/vVx4MDFceDAxXHgwMVx4MDHvv73vv73vv73vv71ceDAxXHgwMVx4MDFceDAx77+9 77+977+977+9XHgwMVx4MDFceDAxXHgwMe+/ve+/ve+/ve+/vVx4MDRceDA0XHgwNFx4MDTvv73v v73vv73vv70+Pj4+77+977+977+977+977+977+977+977+977+977+977+977+977+977+977+9 77+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+977+9 77+977+9PDw8PO+/ve+/ve+/ve+/vVx4MGZceDBmXHgwZlx4MGbvv73vv73vv73vv71ceDBmXHgw Zlx4MGZceDBm77+977+977+977+9XHgwZlx4MGZceDBmXHgwZu+/ve+/ve+/ve+/vT4+Pj7vv73v v73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73vv73v v73vv73vv73vv73vv73vv71ceDE0XHgwMFx4MDBceDAxXHgwM1x4MDBceDAxXHgwMFx4MDBceDAw XG4iDQoNCkVudGVyaW5nIGEgbmV3IHByb21wdC4gIFR5cGUgYCxidCcgZm9yIGEgYmFja3RyYWNl IG9yIGAscScgdG8gY29udGludWUuDQpzY2hlbWVAKGd1aXggYnVpbGQgdXRpbHMpIFsxXT4gL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