From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#33133: 26.1.50; zlib-decompress-region too rigid Date: Wed, 24 Oct 2018 10:16:16 +0900 Organization: Emacsen advocacy group Message-ID: References: <87a7n4mbos.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1540343711 4090 195.159.176.226 (24 Oct 2018 01:15:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2018 01:15:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-unknown-cygwin) Cc: Kevin Ryde , 33133@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 03:15:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF7lK-0000uz-Me for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 03:15:06 +0200 Original-Received: from localhost ([::1]:45067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF7nR-0003V4-5z for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2018 21:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gF7nK-0003Ul-JE for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 21:17:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gF7nF-0004Qe-4a for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 21:17:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34721) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gF7nD-0004P1-A9 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 21:17:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gF7nC-0006ZU-5j for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2018 21:17:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Oct 2018 01:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33133 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33133-submit@debbugs.gnu.org id=B33133.154034378825217 (code B ref 33133); Wed, 24 Oct 2018 01:17:02 +0000 Original-Received: (at 33133) by debbugs.gnu.org; 24 Oct 2018 01:16:28 +0000 Original-Received: from localhost ([127.0.0.1]:38979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF7me-0006Yf-3U for submit@debbugs.gnu.org; Tue, 23 Oct 2018 21:16:28 -0400 Original-Received: from bonobo.maple.relay.mailchannels.net ([23.83.214.22]:4624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gF7mb-0006YU-Dv for 33133@debbugs.gnu.org; Tue, 23 Oct 2018 21:16:26 -0400 X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D7D94502121; Wed, 24 Oct 2018 01:16:20 +0000 (UTC) Original-Received: from hampton.hostforweb.net (unknown [100.96.26.166]) (Authenticated sender: tih5qno0ow) by relay.mailchannels.net (Postfix) with ESMTPA id 53C70501839; Wed, 24 Oct 2018 01:16:20 +0000 (UTC) X-Sender-Id: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net Original-Received: from hampton.hostforweb.net (hampton.hostforweb.net [172.245.115.217]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Wed, 24 Oct 2018 01:16:20 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: tih5qno0ow|x-authuser|yamaoka@hampton.hostforweb.net X-MailChannels-Auth-Id: tih5qno0ow X-Ruddy-Ruddy: 45b2524842cb0e12_1540343780732_1419938232 X-MC-Loop-Signature: 1540343780732:102784458 X-MC-Ingress-Time: 1540343780731 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1gF7mT-009umR-50; Tue, 23 Oct 2018 20:16:18 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:Qo2Rzd+w62/tHdHM1fjtafiG3KE= X-OutGoing-Spam-Status: No, score=-0.2 X-AuthUser: yamaoka@hampton.hostforweb.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:151538 Archived-At: On Tue, 23 Oct 2018 20:26:59 -0400, Noam Postavsky wrote: > We could have zlib-decompress-region ignore unexpected eof as well, > e.g., the below (though it should obviously be enhanced to depend on a > new parameter): > --- i/src/decompress.c > +++ w/src/decompress.c > @@ -206,7 +206,7 @@ DEFUN ("zlib-decompress-region", Fzlib_decompress_region, > while (inflate_status == Z_OK); > - if (inflate_status != Z_STREAM_END) > + if (inflate_status != Z_STREAM_END && inflate_status != Z_BUF_ERROR) > return unbind_to (count, Qnil); > unwind_data.start = 0; I confirmed that it makes it work for the corrupted web site in question. Thank you!