From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#28212: Grafting crashes when replacement lies near the end of buffer Date: Fri, 25 Aug 2017 00:10:43 +0200 Message-ID: <87valchb18.fsf@gnu.org> References: <87bmn5ihdk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dl0M9-0002LX-9G for bug-guix@gnu.org; Thu, 24 Aug 2017 18:12:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dl0M6-0000Fm-34 for bug-guix@gnu.org; Thu, 24 Aug 2017 18:12:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:44620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dl0M5-0000Fg-VO for bug-guix@gnu.org; Thu, 24 Aug 2017 18:12:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dl0M5-0007jR-QG for bug-guix@gnu.org; Thu, 24 Aug 2017 18:12:01 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87bmn5ihdk.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 24 Aug 2017 08:56:07 +0200") 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: 28212-done@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > As reported by Leo and then analyzed by Mark, grafting crashes when the > replacement string lies near the end of buffer: > > https://lists.gnu.org/archive/html/guix-devel/2017-07/msg00445.html [...] > 173: 1 [replace-store-references # ...] > In unknown file: > ?: 0 [put-bytevector # ...] > > ERROR: In procedure put-bytevector: > ERROR: In procedure put-bytevector: Value out of range: 0 > builder for `/gnu/store/n420a0qs7vwnbaj4j3knhfy9j7zqwvs4-go-1.9rc1.drv' f= ailed with exit code 1 I believe commit 94e86a6b67c7a02f5f11358743f3b9f11997059c fixes this. Thanks a lot for your analysis, Mark! Ludo=E2=80=99.