From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:45771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUzEX-0004g3-8u for guix-patches@gnu.org; Sun, 26 May 2019 15:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUzEU-0003hD-70 for guix-patches@gnu.org; Sun, 26 May 2019 15:55:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hUzEU-0003h6-4s for guix-patches@gnu.org; Sun, 26 May 2019 15:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hUzEU-0001PC-1H for guix-patches@gnu.org; Sun, 26 May 2019 15:55:02 -0400 Subject: [bug#35880] [PATCH 7/7] lzlib: 'lzread!' never returns more than it was asked for. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190524134238.22802-1-ludo@gnu.org> <20190524134238.22802-7-ludo@gnu.org> <877eaeo2zr.fsf@ambrevar.xyz> Date: Sun, 26 May 2019 21:54:50 +0200 In-Reply-To: <877eaeo2zr.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sat, 25 May 2019 19:31:04 +0200") Message-ID: <87zhn9kn3p.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Pierre Neidhardt Cc: 35880@debbugs.gnu.org Pierre Neidhardt skribis: >> Fixes a bug whereby 'lzread!' could return more than COUNT. > > Hmm... But why is this a bug? Because then the =E2=80=98read!=E2=80=99 method of the custom binary input = port could return more than =E2=80=98count=E2=80=99, which is understandably not permi= tted. > (By the way, nice rewrite, I like it much better than my C->Scheme > translation ;p) Heheh, I initially tried to minimize changes but I found it easier to reason about this version. Ludo=E2=80=99.