From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 20:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 43597@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16009777868018 (code B ref -1); Thu, 24 Sep 2020 20:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Sep 2020 20:03:06 +0000 Received: from localhost ([127.0.0.1]:41815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLXSM-00025G-Hv for submit@debbugs.gnu.org; Thu, 24 Sep 2020 16:03:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:55852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLXSK-000258-Ba for submit@debbugs.gnu.org; Thu, 24 Sep 2020 16:03:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLXSH-0002rM-A4 for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 16:03:04 -0400 Received: from mout.gmx.net ([212.227.17.21]:45461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLXSC-0002ee-Us for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 16:03:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600977775; bh=XF1eNzVN3MHDzd4ovGC16JBuobrbJjxK0vOqBEqO5e0=; h=X-UI-Sender-Class:From:To:Subject:Date; b=dXxO8r9GToK77hsweJymkUD4T9sk4xqh4HH+wRTb/lhbeugQBNHMOmWVwsIDk4h+G JwRQFw0kNKH0nCAI89jMvzeB8CnFIRzkEbL6OamiyY2cyhk4rkTr/BeXNu4qhwff7k bYj5xIIci/LU6lvIEvoWzMeoi77Mi3PKqhm6lhHw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.220.84]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mi2O1-1kzFvS2ExV-00e7wr for ; Thu, 24 Sep 2020 22:02:55 +0200 From: Stephen Berman Date: Thu, 24 Sep 2020 22:02:50 +0200 Message-ID: <874knnvt79.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:iVYOL2WSWFVC4p6Rw5C3KQ1TQEJnej/7EeZfNZkvbCITqJ5z2Vt 1KvtihOEy4/Ax9lSaTfX88GymCmQxTLxT2PudMelh5YP8c/kS+PR3ZKQLkYfgGk/JdktIEV TjtYm5aSheO2msgrZjyEGbwG/MGAYWEMHm+XDDA0dVpqRi1JJVnspL/D6/1lATSEajypjnU tuVYNM/4k7IH9NiR1FIJA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:sYshL8VyeM0=:Aap38p43ZvnUxlUyqBnwYm 3lmKiWAMObLUqVvwQIP/Hj6BbPCIrR3Bp53pzdCk8Sq/SJmTerQH2GVkX+nQrqhRWxUIy6DlB +PRB0O8Y7yTg/rkNrPpa4O13nXfMf9h4GhB5K9BZJwyhEeDKhP4IC7qs0cCksLrj1aa0bSGm5 905aHX5cdPI4wG17Ta5ifajON641yQNdSwmoXnVFnQa7gX2triaoUZ5jq1JDO6SRr9YMM4QM5 ckWfJK/eyzzhXsXyfBYzi0rH/0fSGv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berman@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/24 16:02:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) I have a ZIP file that, when I try to visit it in archive-mode, Emacs throws a file mode specification error on, specifically args-out-of-range. The reason is that the function archive-l-e in arc-mode.el, which is supposed to return a buffer position in this case, returns a number which exceeds the buffer size. And the reason for this is that archive-l-e builds its return value by iteratively calling (+ (ash result 8) (aref str (- len i))), where `str' is a string extracted from the end of the ZIP file, which in this case is "\377\377\377\377", so that the return value increases from 255 (the decimal value of octal 377) to 4294967040 after four iterations, which far exceeds the file (and hence buffer) size. Perhaps "\377\377\377\377" is an invalid string at the end of a ZIP file (I checked other ZIP files I have, which I can visit in archive-mode with no problem, and they have different strings at the end, consisting of bytes with smaller decimal values, so that the return value of archive-l-e does not exceed the file size). Yet when I call `unzip -l' on the file in the shell, the contents are displayed, and I also had no problem unpacking the file with unzip (and AFAICT the content is undamaged). So at least unzip can deal with this file. In case it helps, here is the final byte sequence in the file (I've replace the control characters and raw bytes by ASCII representations): PK^E^F\377\377\377\377%^@%^@\377\377\377\377\377\377\377\377^@^@ In GNU Emacs 28.0.50 (build 25, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, cairo version 1.17.3) of 2020-09-24 built on strobe-jhalfs Repository revision: 89dd8cd215148da4c6dffc15dc6c35df5122247b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Linux From Scratch SVN-20200401 Configured using: 'configure 'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 20:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160097912910169 (code B ref 43597); Thu, 24 Sep 2020 20:26:02 +0000 Received: (at 43597) by debbugs.gnu.org; 24 Sep 2020 20:25:29 +0000 Received: from localhost ([127.0.0.1]:41895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLXo1-0002dw-5n for submit@debbugs.gnu.org; Thu, 24 Sep 2020 16:25:29 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:45066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLXny-0002dn-VV for 43597@debbugs.gnu.org; Thu, 24 Sep 2020 16:25:28 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4By645694sz1qs3Y; Thu, 24 Sep 2020 22:25:25 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4By6454c1wz1qqkh; Thu, 24 Sep 2020 22:25:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id rLmNV3UaY-pB; Thu, 24 Sep 2020 22:25:24 +0200 (CEST) X-Auth-Info: yHpBQOrZ0/wxH8B4hQ89qtj/iWzJZFC8ZKRmw90BuyA3EW87HJEI9bM6Nkdf8ICF Received: from igel.home (ppp-46-244-184-54.dynamic.mnet-online.de [46.244.184.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 24 Sep 2020 22:25:24 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id D50872C28F5; Thu, 24 Sep 2020 22:25:23 +0200 (CEST) From: Andreas Schwab References: <874knnvt79.fsf@gmx.net> X-Yow: I HAVE a towel. Date: Thu, 24 Sep 2020 22:25:23 +0200 In-Reply-To: <874knnvt79.fsf@gmx.net> (Stephen Berman's message of "Thu, 24 Sep 2020 22:02:50 +0200") Message-ID: <87y2ky7wi4.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Sep 24 2020, Stephen Berman wrote: > In case it helps, here is the final byte sequence in the file (I've > replace the control characters and raw bytes by ASCII representations): > > PK^E^F\377\377\377\377%^@%^@\377\377\377\377\377\377\377\377^@^@ That means the archive is in ZIP64 format. See . The real values are contained in the zip64 end of central directory record, which has "PK\6\6" as the signature. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 20:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160098003311537 (code B ref 43597); Thu, 24 Sep 2020 20:41:02 +0000 Received: (at 43597) by debbugs.gnu.org; 24 Sep 2020 20:40:33 +0000 Received: from localhost ([127.0.0.1]:41908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLY2b-000300-6G for submit@debbugs.gnu.org; Thu, 24 Sep 2020 16:40:33 -0400 Received: from mout.gmx.net ([212.227.17.21]:43269) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLY2W-0002zk-Cq for 43597@debbugs.gnu.org; Thu, 24 Sep 2020 16:40:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600980021; bh=qTJuNqtHimcFW1ClIGBHmSyGL8DDOhmrd9uq5za4mtY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Ai+DEED+NulkgDLp/hrimixDgM+bqYGo4L3bIM44gHKhr0Adw8zVYFKnucm20Opba ZpOsB0XwExMfIxFGviENFQQKv/92ElXUP+Y+62ym4tBHnEP4G6fIk/HOgxKMUrwPHI dR031xIKHZ0FuJXVt41+noN9cjkjxmAgJqtmSOTs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.220.84]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MYNJq-1k0Dos3Vw2-00VTHs; Thu, 24 Sep 2020 22:40:20 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> Date: Thu, 24 Sep 2020 22:40:15 +0200 In-Reply-To: <87y2ky7wi4.fsf@igel.home> (Andreas Schwab's message of "Thu, 24 Sep 2020 22:25:23 +0200") Message-ID: <87zh5evrgw.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Lci7oAMGotQsl7KtRrEnF9vhJQ/q3XLhmFpfnI3044z2x14Hrsq RFyXJ5cV+W9KkNIAr3hybQERnXUefyyrBzzAu0kSRid8HV/kK0O7Q0jVrflk3cgD53CpWrp ja0xPbCQIHZMRkfQwgoFk3Co7XPZGBhWORBlw2uQNKfDy26hhala1qUF/CoftCFWj3uUuyN 4vUkgRuLYx7PZrkhmjMYw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Cv5SA3M0VbY=:HuW2eyKTkjkDzjlHhwvsFc yGViJbgSQwpW2gXtwTzwRkn+DwHSLLWXqdeSbaEsGgHApD4sJRbstbeq5JL9Gg3BZM7usOTgD yATYbKOoEalTz6MjWWBsMLuVUrjLnrHym6pangGZ/ByB/hELjZeECXBKodLjdZNpunLnb9czz 1gSf87aETpwx2REMnf0gIzbtW3HSMHHvjAC1xZMMEYXUeVt0ana9QgFjd53gvXa8KFGoD6ZgW udyS9G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spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, 24 Sep 2020 22:25:23 +0200 Andreas Schwab wrote: > On Sep 24 2020, Stephen Berman wrote: > >> In case it helps, here is the final byte sequence in the file (I've >> replace the control characters and raw bytes by ASCII representations): >> >> PK^E^F\377\377\377\377%^@%^@\377\377\377\377\377\377\377\377^@^@ > > That means the archive is in ZIP64 format. See > . The real > values are contained in the zip64 end of central directory record, which > has "PK\6\6" as the signature. Thanks. But then it seems that arc-mode.el doesn't handle this format correctly: archive-zip-summarize has this code: (let ((p (archive-l-e (+ (point) 16) 4)) files) (when (= p -1) ;; If the offset of end-of-central-directory is -1, this is a ;; Zip64 extended ZIP file format, and we need to glean the info ;; from Zip64 records instead. But the first value returned by archive-l-e for this file is 255, not -1, and on each iteration the value increases, so the ZIP64 code in the body of the when-clause is never executed. Steve Berman From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160098474726848 (code B ref 43597); Thu, 24 Sep 2020 22:00:02 +0000 Received: (at 43597) by debbugs.gnu.org; 24 Sep 2020 21:59:07 +0000 Received: from localhost ([127.0.0.1]:41967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLZGd-0006yy-BN for submit@debbugs.gnu.org; Thu, 24 Sep 2020 17:59:07 -0400 Received: from mout.gmx.net ([212.227.15.15]:43239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLZGa-0006yS-SZ for 43597@debbugs.gnu.org; Thu, 24 Sep 2020 17:59:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600984737; bh=vswWra+Xvve1S6V6kZtL6oSUDB3o/R4sl3u+Vb+vVB8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ISBpORe1oz6tyfm/1xmIdvZzejqSryERfu5kTocbNyR65jrJGj2XQiREG5mGLw7CT BJSQ0jzjn2V3NfTbZxnme2zCameDGzDiY3WOHUY0u5Nilx/Q2/UM06rzxGkuunM4Ir KRS219Oq7w5BeJRVY36zkmFLPm22OtB4TGIiuv7A= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.220.84]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1My36T-1kejYE0jsN-00zVdo; Thu, 24 Sep 2020 23:58:57 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> Date: Thu, 24 Sep 2020 23:58:51 +0200 In-Reply-To: <87zh5evrgw.fsf@gmx.net> (Stephen Berman's message of "Thu, 24 Sep 2020 22:40:15 +0200") Message-ID: <87v9g2vntw.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:ur1PjBLWXOBdN99KX9Knzz5gCC8BZKF3BjTU0qFZ2DpYTH8/SCx wYdbgZ2zqzOo8pqutOjO6VguhWclHaZ49TLg9USXE73hAPU1lRhiJjedoCYVcmW3YvXrF44 lUKWKzQe0+bbCBkO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/rLX23+RPubj8Sm5OAXiQJB0j7RxDg 5xthKx8VObGirbxlVykRW5XvNgheqdwRCjql9QHXi5Fk6MgBjLagACCUeMgedxetgPQ13Jv4x SbxwQ8396wBq1VQVluHQ4qQOWfnPSsNeplfceUrihS9QcxVowhFggtfuBM7s4jZ/rNoozQkBz zwbD9/Lbt2uJvvmTU2kxkNCjQk8C27PFxFuWJZ1SQpIi35JXAO69nYP1kNgQsatzeSm6buYIg iei1pHMoaCj0g+tolhMM+/1ohjDEiywP62UVKtse6yFbGJ82kKUt8TQuRjzL17EJBL3XZUO9Y vstkJ6v6qjBMDE8hIV2nJMoq4DDlyewY4EdOJlQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, 24 Sep 2020 22:40:15 +0200 Stephen Berman wrote: > On Thu, 24 Sep 2020 22:25:23 +0200 Andreas Schwab wrote: > >> On Sep 24 2020, Stephen Berman wrote: >> >>> In case it helps, here is the final byte sequence in the file (I've >>> replace the control characters and raw bytes by ASCII representations): >>> >>> PK^E^F\377\377\377\377%^@%^@\377\377\377\377\377\377\377\377^@^@ >> >> That means the archive is in ZIP64 format. See >> . The real >> values are contained in the zip64 end of central directory record, which >> has "PK\6\6" as the signature. > > Thanks. But then it seems that arc-mode.el doesn't handle this format > correctly: archive-zip-summarize has this code: > > (let ((p (archive-l-e (+ (point) 16) 4)) > files) > (when (= p -1) > ;; If the offset of end-of-central-directory is -1, this is a > ;; Zip64 extended ZIP file format, and we need to glean the info > ;; from Zip64 records instead. > > But the first value returned by archive-l-e for this file is 255, not > -1, and on each iteration the value increases, so the ZIP64 code in the > body of the when-clause is never executed. I've confirmed that changing the when-clause condition to (= p 4294967295) (that's octal 37777777777, hex ffffffff) makes the body get executed and the contents of the problematic ZIP file are correctly displayed in archive-mode. Is that the correct fix? Steve Berman From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 22:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Schwab Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160098603328754 (code B ref 43597); Thu, 24 Sep 2020 22:21:01 +0000 Received: (at 43597) by debbugs.gnu.org; 24 Sep 2020 22:20:33 +0000 Received: from localhost ([127.0.0.1]:41973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLZbN-0007Ti-5N for submit@debbugs.gnu.org; Thu, 24 Sep 2020 18:20:33 -0400 Received: from mout.gmx.net ([212.227.15.18]:49521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLZbL-0007TV-Fj for 43597@debbugs.gnu.org; Thu, 24 Sep 2020 18:20:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600986024; bh=1LtoNjlm78GGbt4SHa9oDzwHHkQeec+vp9Mo9DNYtvg=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=clzDWJTr4MqkRrf9YeMjSXSJBy49xh1rlg/FRUcTwasaw2jsUP8qfBECIydhLA0UE Zc7ZRTXacefBK4MZ7IwPPjOFxjf2YVh2BLqMbCLhFWhFs7hmHkLQ3XPwQ9UtaKiKXs LniMS6vpRZG0WgZZhIFEfmptt0guPzZr/oW3uZ98= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.220.84]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MYeQr-1jzvsK3iip-00VePU; Fri, 25 Sep 2020 00:20:24 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <87v9g2vntw.fsf@gmx.net> Date: Fri, 25 Sep 2020 00:20:18 +0200 In-Reply-To: <87v9g2vntw.fsf@gmx.net> (Stephen Berman's message of "Thu, 24 Sep 2020 23:58:51 +0200") Message-ID: <87r1qqvmu5.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:UmFgVDOXFaznElRS6bA5dpVqITr6nXQUFbDgQnQAAuzefX4kDCY DqZA4hRZRIQrrRKJ2S8LWi74IcQiiqH7KifwyZamRaCCLTuSerWgMppv2rdCRKo/YIe0gaq CgiuJcuAakiKgDF2zm4nj+CG4ZallKrxTerC6XgE/I49lEUYRXN+3uEvDDP6L0mkVbhyOAT 7Fq1V+8qvYB2nxCcqRqdg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bpSY2Q6Te38=:zMgtpxDUzYy8l71h8ebpQ3 8RhHb4cBTUJE1+QckYYZ4pVHw+dij6PRyZMCri7WQ9GwXc679RKAel8NKEAnyEJIZHD5LS7c8 YADCQ2M1uPuoGlW7V6VFpPYghBSF2ZlMU5N7nrTk+nEdT353U1n53X31X2G1o2nJXbmDfcqfx amUk0Qb2NgnBcAfHjlcMWWBmsd8XVj8CDFNqJ12QbVcVBFrCckaXfE19FWaP6F6rxb5HTTPIe 3Jrb24YUIaLvFUMq36UwKF/zpXC5L74cdvFYl01GnFOvAEQnPfyTjAkXH4zRIFxSWeffN+hq4 IOzl1VGFIfrZO8A4aep9ibecaJIX4EjmzkfgGBNb4e5yGuGUm6tdh7GF6Hz9rI0qrZ93PbU9E vWCJ69EEY8crdYbX4CdixvQOBisXrGQFzqiqyH8MJZoJpIhd/7cvePoIH9+ykGVGI9UU3XHO2 Z0HB2qyvvqhU4JNu7jPJL75wvrCRyZdTqmGthvqQbPNKerT+Lde91UWuw9FYeCwanm+7e2icQ d6Ek9sWzWmRBG8/B3KDnIRve3FWPstaFSoPlNqJyZMTXT8ciaVrui5N+1crfZ2dwTrB/iW16L XASxF/+nAEJsWUtEFl+23jdK0bw34wo7vmqQW9LMHZ36XKBRO0IErLpBGY2Q4y1Ux8Ighd7yE sIbEFffhfvlojrGEvlySfJJNAYfQAG+tiPuCcQ9ix1NE2ggioQHN7U6Tad7P+O36Y3fdbJAAx T0na/5ZOKTvfpPm24+2OXh4JvG8JWgCyaULx/5CoveFlEmuCqeIM38hIWtY1AL1tyn6dqbctP 1L0t9CHTLFaR5bTh1u/EkxJo+K9rPhTvikuuEXVNS3AePoFlSj4nstqakUxBPOZ+f2UfgvpVI XrmgkH+hrFEULTv6+Y9tfOBy5NsMjECiTNDAv/8bpAbxgyEVgqzN+6EVdED9tBOFl5BW+qaJw 3GQVx/uZnX7r5VzxPey0OBO1TzToawkhn7IiKndYd+41QfgHDfctRL/WXBnQp5rcPm6SmYzje GQsvEjSe6gGjwrxmdrfrtS3cYfM8CR1dIRkslvfBkbOIOCwUE+E8nGc2nyJR0wcVti/rGZYgX 9wvInU3VWKnRojb5RdfQAabpSdf4emz1r+lnefaHBky5KYw1gsXaMmdW2IsrBFiz0Xw4YaW3l Wr2UvVFk77bFBIznHSRyay7t8fe3L9frq/H76DB1i9wqeAUXBzAmoAfI55JTtPto6j74yMoYj 7fiOVQyusKHAAiDoGowo7N/Zt6BkBYrFT+SEfJg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, 24 Sep 2020 23:58:51 +0200 Stephen Berman wrote: > On Thu, 24 Sep 2020 22:40:15 +0200 Stephen Berman wrote: > >> On Thu, 24 Sep 2020 22:25:23 +0200 Andreas Schwab wrote: >> >>> On Sep 24 2020, Stephen Berman wrote: >>> >>>> In case it helps, here is the final byte sequence in the file (I've >>>> replace the control characters and raw bytes by ASCII representations): >>>> >>>> PK^E^F\377\377\377\377%^@%^@\377\377\377\377\377\377\377\377^@^@ >>> >>> That means the archive is in ZIP64 format. See >>> . The real >>> values are contained in the zip64 end of central directory record, which >>> has "PK\6\6" as the signature. >> >> Thanks. But then it seems that arc-mode.el doesn't handle this format >> correctly: archive-zip-summarize has this code: >> >> (let ((p (archive-l-e (+ (point) 16) 4)) >> files) >> (when (= p -1) >> ;; If the offset of end-of-central-directory is -1, this is a >> ;; Zip64 extended ZIP file format, and we need to glean the info >> ;; from Zip64 records instead. >> >> But the first value returned by archive-l-e for this file is 255, not >> -1, and on each iteration the value increases, so the ZIP64 code in the >> body of the when-clause is never executed. > > I've confirmed that changing the when-clause condition to (= p > 4294967295) (that's octal 37777777777, hex ffffffff) makes the body get > executed and the contents of the problematic ZIP file are correctly > displayed in archive-mode. Is that the correct fix? No, it's not, at least not without additional changes. I looked at the display in archive-mode too quickly before; looking again, I see that each file in the archive is shown as having size 4294967295 and the total size shown is correspondingly wrong. Steve Berman From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 06:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman Cc: 43597@debbugs.gnu.org, schwab@linux-m68k.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.16010136626346 (code B ref 43597); Fri, 25 Sep 2020 06:02:01 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 06:01:02 +0000 Received: from localhost ([127.0.0.1]:42365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLgmz-0001eH-RP for submit@debbugs.gnu.org; Fri, 25 Sep 2020 02:01:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLgmy-0001dh-3m for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 02:01:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48246) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLgmr-0002LB-5L; Fri, 25 Sep 2020 02:00:53 -0400 Received: from [176.228.60.248] (port=3954 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLgmq-0007XG-JO; Fri, 25 Sep 2020 02:00:52 -0400 Date: Fri, 25 Sep 2020 09:01:02 +0300 Message-Id: <83a6xetmxt.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87zh5evrgw.fsf@gmx.net> (message from Stephen Berman on Thu, 24 Sep 2020 22:40:15 +0200) References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stephen Berman > Date: Thu, 24 Sep 2020 22:40:15 +0200 > Cc: 43597@debbugs.gnu.org > > (let ((p (archive-l-e (+ (point) 16) 4)) > files) > (when (= p -1) > ;; If the offset of end-of-central-directory is -1, this is a > ;; Zip64 extended ZIP file format, and we need to glean the info > ;; from Zip64 records instead. > > But the first value returned by archive-l-e for this file is 255, not > -1, and on each iteration the value increases, so the ZIP64 code in the > body of the when-clause is never executed. This code worked when support for ZIP64 was added. Could it be that the problem is in archive-l-e? Something related to bignums, perhaps? Why does it return 255 instead of -1 in this case? From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 43597@debbugs.gnu.org, schwab@linux-m68k.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160101804312934 (code B ref 43597); Fri, 25 Sep 2020 07:15:02 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 07:14:03 +0000 Received: from localhost ([127.0.0.1]:42431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLhvf-0003MX-3M for submit@debbugs.gnu.org; Fri, 25 Sep 2020 03:14:03 -0400 Received: from mout.gmx.net ([212.227.17.20]:56713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLhva-0003Lr-Eg for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 03:14:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601018029; bh=YqtcB4DvMDM/yJAYDtYAv1mXcXuJ1LW1XZBPLEhmKSA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Ob4C6OQ5ABhVJQc2w4c+OZKoy3flZbrcLl7H6FjVAVNlI83Lf8UHWTh0ZMxEMgEm8 UcA71AFZc9kUou6Px5LF3swgSQdCxadHC04nQqcpDvfdWKpKa/IpBLe2ysV022e0/v 0suleYfOILZct3AHw2qVi+IyE1HTBxhKtMK4h5BY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([94.220.126.19]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MAwXh-1kASZg2Nmz-00BMpn; Fri, 25 Sep 2020 09:13:49 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> Date: Fri, 25 Sep 2020 09:13:42 +0200 In-Reply-To: <83a6xetmxt.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Sep 2020 09:01:02 +0300") Message-ID: <87sgb6qqft.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:6S6as4cNF5EevvfpQm+0aTa3T3rqoeP9Nkx5Ono37xXMBjFyJ8q 5DgYxYm8lNHrlBU5jK9LMBx4fB/A7YcJya79z5Qfl3iF42gykoKg/6zesHTKUmGeFNht5MV Yq98XT1RAfo2n3lj0AxhNfCtl4xp7PfF2ZCzhM0HLSy0pQvmSTgGY+kf+0srYKi1qBqH1uo SD7IBKn07vum/5LgWOpVw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:UnaqVb+yEnQ=:CxZbdQ+3+ZT1gG+AqUjERZ vhtBX0gNmpFEd725hTYf0jesqKWCUQ5Rr5Uce2HTUyIQKE5ieiWIkKQwb/iBy3HrlAemKXtcW coW8BUegDFptqsV2tAf+99Xh6nrhG80hwL1yssrR6B2zEAZ6DuvGiX7gwuowVV9U3zFG7VGvC gzav8Fq+/t0MmUPSTv4EeLhnF3vktlb3vxPOKNyd+W6b8Isv++bP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-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, 25 Sep 2020 09:01:02 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Date: Thu, 24 Sep 2020 22:40:15 +0200 >> Cc: 43597@debbugs.gnu.org >> >> (let ((p (archive-l-e (+ (point) 16) 4)) >> files) >> (when (=3D p -1) >> ;; If the offset of end-of-central-directory is -1, this is a >> ;; Zip64 extended ZIP file format, and we need to glean the info >> ;; from Zip64 records instead. >> >> But the first value returned by archive-l-e for this file is 255, not >> -1, and on each iteration the value increases, so the ZIP64 code in the >> body of the when-clause is never executed. > > This code worked when support for ZIP64 was added. > > Could it be that the problem is in archive-l-e? Something related to > bignums, perhaps? According to NEWS bignum support was added in Emacs 27, so I just made a fresh build from the Emacs 26 branch and get the same failure. > Why does it return 255 instead of -1 in this case? Here's what happens (in Emacs 26 as well as 27 and master, though the code changed slightly due, I assume to the introduction of bignums): archive-l-e loops through the string "\377\377\377\377", each time adding the decimal value of the byte to the value after shifting left by 8 bits. Since octal 377 is decimal 255, the result of each iteration is the following: 255, 65535, 16777215, 4294967295. The last value is what is returned to archive-zip-summarize. Is it supposed to return -1 due to overflowing or something? In any case, the same thing happens in Emacs 26, 27 and master, so it seems whatever changed the return value happened earlier. Steve Berman From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 09:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160102665126537 (code B ref 43597); Fri, 25 Sep 2020 09:38:01 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 09:37:31 +0000 Received: from localhost ([127.0.0.1]:42668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkAV-0006tw-0i for submit@debbugs.gnu.org; Fri, 25 Sep 2020 05:37:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkAS-0006tk-TW for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 05:37:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52596) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLkAL-0002XZ-MD; Fri, 25 Sep 2020 05:37:23 -0400 Received: from [176.228.60.248] (port=1241 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLkAL-0001yK-27; Fri, 25 Sep 2020 05:37:21 -0400 Date: Fri, 25 Sep 2020 12:37:31 +0300 Message-Id: <833636tcx0.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87sgb6qqft.fsf@gmx.net> (message from Stephen Berman on Fri, 25 Sep 2020 09:13:42 +0200) References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stephen Berman > Cc: schwab@linux-m68k.org, 43597@debbugs.gnu.org > Date: Fri, 25 Sep 2020 09:13:42 +0200 > > On Fri, 25 Sep 2020 09:01:02 +0300 Eli Zaretskii wrote: > > >> From: Stephen Berman > >> Date: Thu, 24 Sep 2020 22:40:15 +0200 > >> Cc: 43597@debbugs.gnu.org > >> > >> (let ((p (archive-l-e (+ (point) 16) 4)) > >> files) > >> (when (= p -1) > >> ;; If the offset of end-of-central-directory is -1, this is a > >> ;; Zip64 extended ZIP file format, and we need to glean the info > >> ;; from Zip64 records instead. > >> > > This code worked when support for ZIP64 was added. > > > > Could it be that the problem is in archive-l-e? Something related to > > bignums, perhaps? > > According to NEWS bignum support was added in Emacs 27, so I just made a > fresh build from the Emacs 26 branch and get the same failure. Where can I find a zip file which exhibits this problem? From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 09:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: stephen.berman@gmx.net Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160102760428058 (code B ref 43597); Fri, 25 Sep 2020 09:54:01 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 09:53:24 +0000 Received: from localhost ([127.0.0.1]:42686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkPs-0007IU-DY for submit@debbugs.gnu.org; Fri, 25 Sep 2020 05:53:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLkPo-0007IG-PU for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 05:53:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53592) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLkPj-0004LD-6c; Fri, 25 Sep 2020 05:53:15 -0400 Received: from [176.228.60.248] (port=2361 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLkPi-0003BP-Gt; Fri, 25 Sep 2020 05:53:15 -0400 Date: Fri, 25 Sep 2020 12:53:25 +0300 Message-Id: <83zh5erxm2.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <833636tcx0.fsf@gnu.org> (message from Eli Zaretskii on Fri, 25 Sep 2020 12:37:31 +0300) References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 25 Sep 2020 12:37:31 +0300 > From: Eli Zaretskii > Cc: 43597@debbugs.gnu.org > > Where can I find a zip file which exhibits this problem? Never mind, I found such a file on my system, the same one I used when I added the zip64 support. The code indeed bit-rotted since then, I'm looking into this. From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 10:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160102996024667 (code B ref 43597); Fri, 25 Sep 2020 10:33:01 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 10:32:40 +0000 Received: from localhost ([127.0.0.1]:42780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLl1r-0006Pn-NM for submit@debbugs.gnu.org; Fri, 25 Sep 2020 06:32:39 -0400 Received: from mout.gmx.net ([212.227.17.22]:52837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLl1o-0006MS-UV for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 06:32:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601029949; bh=r5KzoRZ4nsa82httIk2/9I/KF6v2y2/N7R6Eatz2zhM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=O3fD9oenIy/l2kC93Z+U4RJJzRMQO75fHW3cT00QUyQuXEdKyO5670yQLQ07p1EJo pVwXkLu9PI/oahg1x/KXeoVYEz2YRDHr7fW0E3VMavhmMcwXcFG2VL7ntPm7yDd47k iavykDnBqkoPbPxsfBMDcXURqXl8gNcEOEKru3wA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([94.220.126.19]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MRmfi-1jtgJT2IPa-00TGAw; Fri, 25 Sep 2020 12:32:29 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> Date: Fri, 25 Sep 2020 12:32:23 +0200 In-Reply-To: <83zh5erxm2.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Sep 2020 12:53:25 +0300") Message-ID: <87lfgyno3s.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:R2XKCFWRt5YAohwgYBv7ncJm9holpouJ/XFILrN2Ne/jitkQnSJ 3mtgdgTk61sLVtjaWbIGJKolkfAmKbSLnS8/IhNUOAyv4X7MmAnJMKtZqtrO3XR4kNgaRPb +z273TZqIphECPgYYNgfWBBPG7DL5Ur+P1/hNYFzHdwLB8wy5Oaf2oURZsGfgMB77HGobMD 7YfBpsj88EgvNQg5eNwMQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:11r6I0wBujQ=:f7HbA8Lkk9z5k7m1DS/a6c nQVNU3Z3VZ0NDYiySoycItjaGe6amQAnNV82MAGqMRvyYmRV66KPSfI2yk/G5m72KM7eYE/TK fDMzsI5HP8hJK9CVn4sEvME3iMRyFKxGyOngSzDeH+S6wevncgbnU7G2+07CDmBP6uMHdDKXs JDy2dzGGQ/6njhP6gUJ56BF6ktdn6E7Lppfg6VmY+NiUzu1Q2EzVcMu6WGl5hYvfdiJdQIRdT daba9xSeCfkqkSR/ntqWzrjpMNYkspRF2Dsq5DKn0vClk8bhDuXGpKxMwYpNlG+WqwMPjUIw/ V00DONnoajsC/bgl25RAqjNFwnEl0oDIy/oglWRCjKrfnlGE+KjPanXK3PMlkWukzorgCse/F lfzuQgrs3SYNaxq6BjZd9a3RSLmjoAkPStQq8IyddNaXGcle16v/6H90rtIMRd2G+e+Q3JEHr 3UWheiEZlbR/mq6eRuocdSBDTiPhaj/QXHIpsdrm53pFvp3/rgBmcQ/6GDiWxKoEac8IH859G jrHFpvCVxQo7+WtUkg2jjf/cek8ws1Lm1VDht7W7CmiPAWNbgKm2/MFCBpPMxTBOuI97qJQQ/ C6Vaq6ws+leA0wfZFrNK78syCFCdd+yNID0gRIsS2yDWRX/Y5vpwNqPERhm1I26QgpC+JcVaj SsIRimg551HLlfqN2IGXZZO9Ocs56JnoBdwoxxVL8w9qBRIdzzCKtW+62pDQz6N5Vs1k7olJU RSIepNPSp+TkKfUOsWlxSIchrpPijkgz4RtYxhuUQ5pKlC0P/ZhlTZjI5w0+Pam1HmJKPfLRR Dm+PDrtMwlVPaNe/C6tJc2MVnbQWeaaEAeQ1krDdd+3ATrQw2ppiS8nM16b4XhyUr8/XeMBer CDg3B9Z68NrtsbYAdqkpns4z5llLinVN2JbHDXE6CC5N13F9eVjJm1ZU0WsMNDbgU4xcBhwxZ xboL1h9VnJLqB0WrprHhmzXDFTJwdcRJp1fOw15elXJM/M0Rm9csLiNbo5teSBSQKD5J/Uyfe wvNxXJGcJ6V4dy8Xm9N9LOF0zn3wxNIA1DX1kAJqRhk/U6v+cph77riy3aynE+NuE4zurYJ20 2zxFq8ZmywIeu0B9h2X+36ApS7OCeKPLOSESzgpRrAvrSUvDWwrrUG0yatudYTRpWu+S6FTsD XOzeap6HeyM67IW6RINBaopf6ZbFLfaBfy8VxLvODSOAtnhWBHtw9YNCe+kAJQo9MrQ4Z+dkR k6Wyj9L8U2XKjhYb0U4c1QTIyXKgiJoJJepm0hQ== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, 25 Sep 2020 12:53:25 +0300 Eli Zaretskii wrote: >> Date: Fri, 25 Sep 2020 12:37:31 +0300 >> From: Eli Zaretskii >> Cc: 43597@debbugs.gnu.org >> >> Where can I find a zip file which exhibits this problem? > > Never mind, I found such a file on my system, the same one I used when > I added the zip64 support. The code indeed bit-rotted since then, I'm > looking into this. Thanks. Steve Berman From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 11:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: stephen.berman@gmx.net Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160103163529398 (code B ref 43597); Fri, 25 Sep 2020 11:01:02 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 11:00:35 +0000 Received: from localhost ([127.0.0.1]:42814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLlSs-0007dm-MN for submit@debbugs.gnu.org; Fri, 25 Sep 2020 07:00:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLlSo-0007Vm-RU for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 07:00:33 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58127) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLlSj-0004OR-AW; Fri, 25 Sep 2020 07:00:25 -0400 Received: from [176.228.60.248] (port=2486 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLlSh-0001Zi-Cr; Fri, 25 Sep 2020 07:00:24 -0400 Date: Fri, 25 Sep 2020 14:00:33 +0300 Message-Id: <83y2kyrui6.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <83zh5erxm2.fsf@gnu.org> (message from Eli Zaretskii on Fri, 25 Sep 2020 12:53:25 +0300) References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 25 Sep 2020 12:53:25 +0300 > From: Eli Zaretskii > Cc: 43597@debbugs.gnu.org > > > Date: Fri, 25 Sep 2020 12:37:31 +0300 > > From: Eli Zaretskii > > Cc: 43597@debbugs.gnu.org > > > > Where can I find a zip file which exhibits this problem? > > Never mind, I found such a file on my system, the same one I used when > I added the zip64 support. The code indeed bit-rotted since then, I'm > looking into this. With the file I have, replacing -1 by #xffffffff does the job. So I guess I will need the file you used after all. It could be either the file's contents, or maybe there are issues related to whether Emacs is a 32-bit (my case) or a 64-bit (your case) program. Thanks. From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 12:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160103552426036 (code B ref 43597); Fri, 25 Sep 2020 12:06:02 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 12:05:24 +0000 Received: from localhost ([127.0.0.1]:42943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLmTc-0006lr-7p for submit@debbugs.gnu.org; Fri, 25 Sep 2020 08:05:24 -0400 Received: from mout.gmx.net ([212.227.15.15]:35817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLmTY-0006lZ-VT for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 08:05:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601035515; bh=ZU+rsoVA6UdvOyKjJ4y14qgILbp7oP2loTQO3epHK+c=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=e4bzq1CW7uyER0stjHhMS4OLuhR4lpb4/+Sq15JJ2AoMmvbCT5NCHo5JK/VWqR5wx pTjbor/LFQkQ2ZkgBUmGxmD/gv9QKKM9twgzTP+wLybYNYr9+sFO1lABRNe/rMeHwf bf72RBOO/zuLUFmmU8IC3yyNTz9AIcf/LisHEyOw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([94.220.126.19]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MRmjw-1jtgvY3laE-00TGhm; Fri, 25 Sep 2020 14:05:15 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> <83y2kyrui6.fsf@gnu.org> Date: Fri, 25 Sep 2020 14:05:08 +0200 In-Reply-To: <83y2kyrui6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Sep 2020 14:00:33 +0300") Message-ID: <87h7rmnjt7.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V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jgsWjbKPWX9MR5oxdkXVJZ+xl/ yfkz8Xf0ZmBV0PSYBQ/4a68ALzYGzOWbohFd6krwGQbqEjBuBlRB4lGD6oMaXKOdf58zafJKq DMvBjlfpfzTlKbigaVt5BqgzxEuHOJW3+Tgro6u2qZQ0ZocJMFCeh+zNVwjL68CZb0Oi2BJ8C 8HIL9PQmI+TEA1vyAbIC6R/Vdu4KUT79uBs3S2dyFNk64jiostKm/AC59xaWA2l4OUZ7C62H/ kot0uq9ITMix6Q+F4K9EepHa9VbYBSnBPZ260k6H5kCOIHmF3c7jRhRahwo/Athdcdvh9uPHx MwxIRwPYB3y5Lw6icKNEwf493tUqQhqjS5w4jsq0UDXp83X8YwypLCdSve2k89YbLwAv3tZvb eQkVWhHAmpqKJC+jY7CawBDQwj8hpe9mhXID098j2FjTDPHl/BLQl2wUQeKuFLz46/MpIXYjS hxqV4snzJs99fMhll/Qkod++xCDmMO3UO2dKgVA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 25 Sep 2020 14:00:33 +0300 Eli Zaretskii wrote: >> Date: Fri, 25 Sep 2020 12:53:25 +0300 >> From: Eli Zaretskii >> Cc: 43597@debbugs.gnu.org >> >> > Date: Fri, 25 Sep 2020 12:37:31 +0300 >> > From: Eli Zaretskii >> > Cc: 43597@debbugs.gnu.org >> > >> > Where can I find a zip file which exhibits this problem? >> >> Never mind, I found such a file on my system, the same one I used when >> I added the zip64 support. The code indeed bit-rotted since then, I'm >> looking into this. > > With the file I have, replacing -1 by #xffffffff does the job. So I > guess I will need the file you used after all. It could be either the > file's contents, or maybe there are issues related to whether Emacs is > a 32-bit (my case) or a 64-bit (your case) program. I can't readily make that specific file available to you (I would have to get permission to share it), but fortunately the server I downloaded it from automatically creates such ZIP files, so I just uploaded two small test files to the server and downloaded them as a ZIP file, and it shows exactly the same behavior (trying to visit it in archive-mode fails with -1 but not with #xffffffff, but with the latter the size of each of the files in the archive is given as #xffffffff), so it should serve for debugging. I've attached that ZIP file. Steve Berman --=-=-= Content-Type: application/zip Content-Disposition: attachment; filename=test.zip Content-Transfer-Encoding: base64 UEsDBC0AAAAAAEBdOVEAAAAA//////////8FACAAdGVzdC8BABwAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAFBLAwQtAAgAAADxXDlRAAAAAP//////////CgAgAHRlc3QvZmlsZTEBABwAAAAA AAAAAAAAAAAAAAAAAEMAAAAAAAAAAAAAAFRoaXMgaXMgZmlsZTEuClBLBwiVeOp0DwAAAAAAAAAP AAAAAAAAAFBLAwQtAAgAAAD5XDlRAAAAAP//////////CgAgAHRlc3QvZmlsZTIBABwAAAAAAAAA AAAAAAAAAAAAALIAAAAAAAAAAAAAAFRoaXMgaXMgZmlsZTIuClBLBwjMxqx2DwAAAAAAAAAPAAAA AAAAAFBLAQItAy0AAAAAAEBdOVEAAAAA//////////8FACAAAAD//wAAEADtQf////90ZXN0LwEA HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUEsBAi0DLQAIAAAA8Vw5UZV46nT///////// /woAIAAAAP//AAAAAKSB/////3Rlc3QvZmlsZTEBABwADwAAAAAAAAAPAAAAAAAAAEMAAAAAAAAA AAAAAFBLAQItAy0ACAAAAPlcOVHMxqx2//////////8KACAAAAD//wAAAACkgf////90ZXN0L2Zp bGUyAQAcAA8AAAAAAAAADwAAAAAAAACyAAAAAAAAAAAAAABQSwYGLAAAAAAAAAAtAy0AAAAAAAAA AAADAAAAAAAAAAMAAAAAAAAAAwEAAAAAAAAhAQAAAAAAAFBLBgcAAAAAJAIAAAAAAAABAAAAUEsF Bv////8DAAMA//////////8AAA== --=-=-=-- From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 12:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stephen Berman Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160103754029372 (code B ref 43597); Fri, 25 Sep 2020 12:39:01 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 12:39:00 +0000 Received: from localhost ([127.0.0.1]:42996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLn08-0007dg-FU for submit@debbugs.gnu.org; Fri, 25 Sep 2020 08:39:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLn06-0007dR-8F for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 08:38:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36010) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLmzu-0007vD-8Z; Fri, 25 Sep 2020 08:38:49 -0400 Received: from [176.228.60.248] (port=4534 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLmzt-0000La-2h; Fri, 25 Sep 2020 08:38:45 -0400 Date: Fri, 25 Sep 2020 15:38:56 +0300 Message-Id: <83r1qqrpy7.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87h7rmnjt7.fsf@gmx.net> (message from Stephen Berman on Fri, 25 Sep 2020 14:05:08 +0200) References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> <83y2kyrui6.fsf@gnu.org> <87h7rmnjt7.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stephen Berman > Cc: 43597@debbugs.gnu.org > Date: Fri, 25 Sep 2020 14:05:08 +0200 > > > With the file I have, replacing -1 by #xffffffff does the job. So I > > guess I will need the file you used after all. It could be either the > > file's contents, or maybe there are issues related to whether Emacs is > > a 32-bit (my case) or a 64-bit (your case) program. > > I can't readily make that specific file available to you (I would have > to get permission to share it), but fortunately the server I downloaded > it from automatically creates such ZIP files, so I just uploaded two > small test files to the server and downloaded them as a ZIP file, and it > shows exactly the same behavior (trying to visit it in archive-mode > fails with -1 but not with #xffffffff, but with the latter the size of > each of the files in the archive is given as #xffffffff), so it should > serve for debugging. I've attached that ZIP file. Thanks, with this file I do see the problem. From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: stephen.berman@gmx.net Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160103782629836 (code B ref 43597); Fri, 25 Sep 2020 12:44:02 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 12:43:46 +0000 Received: from localhost ([127.0.0.1]:43012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLn4j-0007lA-Ln for submit@debbugs.gnu.org; Fri, 25 Sep 2020 08:43:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLn4i-0007ky-1G for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 08:43:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36118) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLn4c-0000DQ-NC; Fri, 25 Sep 2020 08:43:38 -0400 Received: from [176.228.60.248] (port=4830 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLn4b-0000ww-6C; Fri, 25 Sep 2020 08:43:37 -0400 Date: Fri, 25 Sep 2020 15:43:48 +0300 Message-Id: <83o8lurpq3.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <83r1qqrpy7.fsf@gnu.org> (message from Eli Zaretskii on Fri, 25 Sep 2020 15:38:56 +0300) References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> <83y2kyrui6.fsf@gnu.org> <87h7rmnjt7.fsf@gmx.net> <83r1qqrpy7.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 25 Sep 2020 15:38:56 +0300 > From: Eli Zaretskii > Cc: 43597@debbugs.gnu.org > > Thanks, with this file I do see the problem. Oops, I spoke too soon, using the wrong version of Emacs to test this. The change -1 => #xffffffff fixes the problem with this file as well. So I guess the remaining issues rear their ugly heads in a 64-bit Emacs, and I need to debug there... From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 12:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160103819830478 (code B ref 43597); Fri, 25 Sep 2020 12:50:02 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 12:49:58 +0000 Received: from localhost ([127.0.0.1]:43022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLnAX-0007vH-O5 for submit@debbugs.gnu.org; Fri, 25 Sep 2020 08:49:57 -0400 Received: from mout.gmx.net ([212.227.17.20]:51293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLnAT-0007v0-PG for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 08:49:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601038175; bh=yBLlnzT2JvaJ7rVpHd49cVOhRDqu9eatw+1ErHVySKk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=IS5MoZofb1u9GqUPtOZe0jWoQ653E4sXdn5u/xidUA7m76XYZ62oiFzbHLSYZOLFG 4PczUO9MUEPDeblwAB6zjh0ZBRsYX5cC0/z8zNAKfIaYfQFS8IP3fk5QEgKgcVFYkz HBnaqVJvJgijrDce4pg/lnbeHD2qsCufjf0yhD84= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([94.220.126.19]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M8QWG-1kQD0h0Beq-004W5g; Fri, 25 Sep 2020 14:49:35 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> <83y2kyrui6.fsf@gnu.org> <87h7rmnjt7.fsf@gmx.net> <83r1qqrpy7.fsf@gnu.org> <83o8lurpq3.fsf@gnu.org> Date: Fri, 25 Sep 2020 14:49:28 +0200 In-Reply-To: <83o8lurpq3.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Sep 2020 15:43:48 +0300") Message-ID: <87d02anhrb.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:kEFSubQrTKTW/eFq5kuuQ5ICWTpF2w/KZQC9SO8MzF2C3TL54zy dOsEmt2+fkXEH2m3l8jjRNVWtC1A9vfQoHQvSwc0JRd7lE2rbhhQy2y+z9cGt55Akokzja1 CV9h86nT3Zz5FuNEkvEgFCKwLEWBnMqSQKU4c2/651EUIijKnJ+BBZQ2gTzeiBROL54ul+o N0Csr8/4loJA73OClL8Pg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Jss3dFdHzN0=:UDpuJbMRROBn/fR20yAX+x R4jQrDvVIqoEbtq7tflpPDvhCHnKeY/pwJ4eaoYyAqv9GyDjRFqerWSOMDiS6f1rVS5Qx/BCC dBU8XdLWdzNZG/uaKkeUE6gD8exK6rRt3wesYwgHanAqYgt7p8s39f0omLbnQfchIK3r4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T1Tb1N1DoUnwKTp0VxG5DXjXoUYyBT LjYajvX0BTzDVBrAfDWXfynoK8JRdRnfBiEWyqg== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Fri, 25 Sep 2020 15:43:48 +0300 Eli Zaretskii wrote: >> Date: Fri, 25 Sep 2020 15:38:56 +0300 >> From: Eli Zaretskii >> Cc: 43597@debbugs.gnu.org >> >> Thanks, with this file I do see the problem. > > Oops, I spoke too soon, using the wrong version of Emacs to test this. > > The change -1 =3D> #xffffffff fixes the problem with this file as well. > So I guess the remaining issues rear their ugly heads in a 64-bit > Emacs, and I need to debug there... I'd be happy to try debugging here, if you can give me specific instructions. Steve Berman From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: stephen.berman@gmx.net Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.16010408102228 (code B ref 43597); Fri, 25 Sep 2020 13:34:02 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 13:33:30 +0000 Received: from localhost ([127.0.0.1]:43049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLnqs-0000Zr-IP for submit@debbugs.gnu.org; Fri, 25 Sep 2020 09:33:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLnqo-0000Zb-H2 for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 09:33:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36862) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLnqf-0006yo-HF; Fri, 25 Sep 2020 09:33:20 -0400 Received: from [176.228.60.248] (port=3879 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLnqZ-0007yg-9v; Fri, 25 Sep 2020 09:33:11 -0400 Date: Fri, 25 Sep 2020 16:33:21 +0300 Message-Id: <83mu1ernfi.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <83o8lurpq3.fsf@gnu.org> (message from Eli Zaretskii on Fri, 25 Sep 2020 15:43:48 +0300) References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> <83y2kyrui6.fsf@gnu.org> <87h7rmnjt7.fsf@gmx.net> <83r1qqrpy7.fsf@gnu.org> <83o8lurpq3.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 25 Sep 2020 15:43:48 +0300 > From: Eli Zaretskii > Cc: 43597@debbugs.gnu.org > > > Date: Fri, 25 Sep 2020 15:38:56 +0300 > > From: Eli Zaretskii > > Cc: 43597@debbugs.gnu.org > > > > Thanks, with this file I do see the problem. > > Oops, I spoke too soon, using the wrong version of Emacs to test this. > > The change -1 => #xffffffff fixes the problem with this file as well. > So I guess the remaining issues rear their ugly heads in a 64-bit > Emacs, and I need to debug there... Wrong again, sigh... This has nothing to do with 64-bit builds. Anyway, here's the proposed patch, please test: diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el index d6e85bf..c09f78e 100644 --- a/lisp/arc-mode.el +++ b/lisp/arc-mode.el @@ -1799,10 +1799,10 @@ archive-zip-summarize files visual emacs-int-has-32bits) - (when (= p -1) - ;; If the offset of end-of-central-directory is -1, this is a - ;; Zip64 extended ZIP file format, and we need to glean the info - ;; from Zip64 records instead. + (when (or (= p #xffffffff) (= p -1)) + ;; If the offset of end-of-central-directory is 0xFFFFFFFF, this + ;; is a Zip64 extended ZIP file format, and we need to glean the + ;; info from Zip64 records instead. ;; ;; First, find the Zip64 end-of-central-directory locator. (search-backward "PK\006\007") @@ -1828,6 +1828,15 @@ archive-zip-summarize (efnname (let ((str (buffer-substring (+ p 46) (+ p 46 fnlen)))) (decode-coding-string str archive-file-name-coding-system))) + (ucsize (if (and (or (= ucsize #xffffffff) (= ucsize -1)) + (> exlen 0)) + ;; APPNOTE.TXT, para 4.5.3: the Extra Field + ;; begins with 2 bytes of signature + ;; (\000\001), followed by 2 bytes that give + ;; the size of the extra block, followed by + ;; an 8-byte uncompressed size. + (archive-l-e (+ p 46 fnlen 4) 8) + ucsize)) (isdir (and (= ucsize 0) (string= (file-name-nondirectory efnname) ""))) (mode (cond ((memq creator '(2 3)) ; Unix From unknown Sat Aug 16 21:58:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Sep 2020 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43597 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 43597@debbugs.gnu.org Received: via spool by 43597-submit@debbugs.gnu.org id=B43597.160104233414545 (code B ref 43597); Fri, 25 Sep 2020 13:59:01 +0000 Received: (at 43597) by debbugs.gnu.org; 25 Sep 2020 13:58:54 +0000 Received: from localhost ([127.0.0.1]:44989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLoFS-0003mX-Ep for submit@debbugs.gnu.org; Fri, 25 Sep 2020 09:58:54 -0400 Received: from mout.gmx.net ([212.227.17.22]:36339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLoFO-0003mH-8U for 43597@debbugs.gnu.org; Fri, 25 Sep 2020 09:58:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1601042323; bh=VgK5D9mxllgMoYvzINDjsInsDMohx7Nc7AkwZM5xNyk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Wgjym2p4nUKM+LFNrAfIYUaLDnzT4HQnoq1/iJZK1dlSt+fX++teXZFkl8pzzevRI YOGGwIB8vqcH1hu+2OU2Bt4BF1Qld0v3ppxiHoQ9IzhOwOCLLR+SZh/bV4E1nleZSV qSWWgBEimSKXM0VSqLwi14tXY8o3jDSjBC588zHE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([94.220.126.19]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MDQeU-1kCQ3p1DGQ-00AUUr; Fri, 25 Sep 2020 15:58:43 +0200 From: Stephen Berman References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> <83y2kyrui6.fsf@gnu.org> <87h7rmnjt7.fsf@gmx.net> <83r1qqrpy7.fsf@gnu.org> <83o8lurpq3.fsf@gnu.org> <83mu1ernfi.fsf@gnu.org> Date: Fri, 25 Sep 2020 15:58:36 +0200 In-Reply-To: <83mu1ernfi.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Sep 2020 16:33:21 +0300") Message-ID: <878scynek3.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:1AJ8bVOnMeZ5ZVwRyhtC1GcVTxoyU9EF9SifSriSDih0gZNdgfp BQhixyT+4KHyf/3pjuPr2dCjGxeAupZ6jzdxj2MoofDqWnvrEZyDrNHQjIiYkwof/oHGli+ hmxhrjDnGRj/qhMGbV9qXqRYmDflCUzh4jBV2xMcUsN1HjAKAnFDYriWNC7NrgXXSHxqDaf xNv7UJUCSpxSzDMIrAJBg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NJ9BAS8vBhA=:M/OWB4hhw6DPGCUpCIMVPV dt7sKZEQR7Fih85Ab1NYokdkIFwzokKwTkNL+rCuuu9S5XK5LnLvqg6HYZXzMt5BGEkW6FoEQ W4udoYyIiSEDTyDAfpwGvydNK0B32QVROsIeHgpzIygPSEUnJGNRRvlluYoOK98m0KVOZorVL flZZNgehg2y9lMAww+Oj7tTLNlNbcpXmIfdk1k9NgKeBG+ZP2eQh7m/B1tpi2hLnA9vNNDLW1 gCE6hDetOLbb2n3S2rxF+83ie3UxvHMf4thm4GvhklW3V3cK+muTU4SQpTAN8IBNM/HGvI6EJ VaeBgwachqjYXCnhbcBkSSwAVrnU95YEQluJj7vH9+hxc9UsK9+k5PC5Z2LHegEY3PtZQV9sp 71Wfv0nV4p4MfYm2GDvfVa7znB2TlMrpkze9XuU3AXez4ROKuN/2kfxskHIvsXSi83FmEs57u 0yHLD+dWr22fuE4wIPony5Akx3p4dDywxHuXPHrqCowsl4Ao4pMfj6nYmUX7YztjHhd3F7/vr WrFnZXkItObXe6CMF1lvV3zxR7NNGdgoqcYm6G5PG42tacLY7x9kTvovZhRroay+aM3EiZudY GblU0VMk8tyBoSVRDF/XzTcK9MhhpcJdzy9Pt8oT4fpjLA86oyw0Ai+STT7GvkY6oulxPRXE8 t/bMN0OPjf8/ye6zZgljAUcEe/DK2BmdHtE0XXIr89vRAewCEsWF/kcIQ6dbz9mzSvfrV6FJn hKsqJClhGx13yYIO2QIhoG+VM1QarOt0Zxfgq7nOP3kDTKKphiXKIZn4GS9/rkBGHIsI+5107 CLY8U966WixhAZAA6EJFE98BTX94ZjjA9FHTaw1uvbpWG1RmHbpd11myitT7Y+EJsSPjoI6CK 4AZ2c/ivQBP1dcbcGtPxRMB53zT7ZtRhH37HpdSKJdyxrT+vXBhNCpJD1OZvVyIlTbDZ0o4YT KWTONUDyxrExHLG0XfsLjNnry0VS3VtLS+/ZOv8i788BEN4fErxoO6wL//ASahFHjCP9lnO7m bAVXR49ketMqJgDXPsoCr/aec6/9m6uPO8BzMgHYfb6EEKi1hmQx0xugXzuabRbejlkqJAD14 91G3n3+uB7BtQfv1H3deOsUcFvpNTQ6WPxIjC6Pid+ZOLMjs4fh20G906KHOCLoTZd/h+FtlZ XUePcugt2AZIQrbr9D+2e2JcIgiH4GFtzEqkMwSFRZnw68XN7utIkvdRz46Lu2aVEi886i+Dg EaflsLwQl657/wxHghetlCP5c6D1JURlSmANXOw== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Fri, 25 Sep 2020 16:33:21 +0300 Eli Zaretskii wrote: >> Date: Fri, 25 Sep 2020 15:43:48 +0300 >> From: Eli Zaretskii >> Cc: 43597@debbugs.gnu.org >> >> > Date: Fri, 25 Sep 2020 15:38:56 +0300 >> > From: Eli Zaretskii >> > Cc: 43597@debbugs.gnu.org >> > >> > Thanks, with this file I do see the problem. >> >> Oops, I spoke too soon, using the wrong version of Emacs to test this. >> >> The change -1 =3D> #xffffffff fixes the problem with this file as well. >> So I guess the remaining issues rear their ugly heads in a 64-bit >> Emacs, and I need to debug there... > > Wrong again, sigh... This has nothing to do with 64-bit builds. > > Anyway, here's the proposed patch, please test: It works for me (at first I applied it to master and the patch partly failed to apply, then I looked at the line numbers and realized it was for Emacs 27). Thanks. Steve Berman From unknown Sat Aug 16 21:58:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Stephen Berman Subject: bug#43597: closed (Re: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file) Message-ID: References: <83imc2rllx.fsf@gnu.org> <874knnvt79.fsf@gmx.net> X-Gnu-PR-Message: they-closed 43597 X-Gnu-PR-Package: emacs Reply-To: 43597@debbugs.gnu.org Date: Fri, 25 Sep 2020 14:13:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1601043182-16146-1" This is a multi-part message in MIME format... ------------=_1601043182-16146-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #43597: 28.0.50; arc-mode.el fails to display a ZIP file which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 43597@debbugs.gnu.org. --=20 43597: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D43597 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1601043182-16146-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 43597-done) by debbugs.gnu.org; 25 Sep 2020 14:12:43 +0000 Received: from localhost ([127.0.0.1]:45023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLoSp-0004BV-02 for submit@debbugs.gnu.org; Fri, 25 Sep 2020 10:12:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLoSl-0004As-4Q for 43597-done@debbugs.gnu.org; Fri, 25 Sep 2020 10:12:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37656) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLoSf-0003nd-T2; Fri, 25 Sep 2020 10:12:33 -0400 Received: from [176.228.60.248] (port=2351 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLoSe-0005fp-Ct; Fri, 25 Sep 2020 10:12:33 -0400 Date: Fri, 25 Sep 2020 17:12:42 +0300 Message-Id: <83imc2rllx.fsf@gnu.org> From: Eli Zaretskii To: Stephen Berman In-Reply-To: <878scynek3.fsf@gmx.net> (message from Stephen Berman on Fri, 25 Sep 2020 15:58:36 +0200) Subject: Re: bug#43597: 28.0.50; arc-mode.el fails to display a ZIP file References: <874knnvt79.fsf@gmx.net> <87y2ky7wi4.fsf@igel.home> <87zh5evrgw.fsf@gmx.net> <83a6xetmxt.fsf@gnu.org> <87sgb6qqft.fsf@gmx.net> <833636tcx0.fsf@gnu.org> <83zh5erxm2.fsf@gnu.org> <83y2kyrui6.fsf@gnu.org> <87h7rmnjt7.fsf@gmx.net> <83r1qqrpy7.fsf@gnu.org> <83o8lurpq3.fsf@gnu.org> <83mu1ernfi.fsf@gnu.org> <878scynek3.fsf@gmx.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43597-done Cc: 43597-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stephen Berman > Cc: 43597@debbugs.gnu.org > Date: Fri, 25 Sep 2020 15:58:36 +0200 > > > Anyway, here's the proposed patch, please test: > > It works for me (at first I applied it to master and the patch partly > failed to apply, then I looked at the line numbers and realized it was > for Emacs 27). Thanks. Thanks, installed on the emacs-27 branch, and closing the bug. ------------=_1601043182-16146-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Sep 2020 20:03:06 +0000 Received: from localhost ([127.0.0.1]:41815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLXSM-00025G-Hv for submit@debbugs.gnu.org; Thu, 24 Sep 2020 16:03:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:55852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLXSK-000258-Ba for submit@debbugs.gnu.org; Thu, 24 Sep 2020 16:03:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLXSH-0002rM-A4 for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 16:03:04 -0400 Received: from mout.gmx.net ([212.227.17.21]:45461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLXSC-0002ee-Us for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 16:03:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600977775; bh=XF1eNzVN3MHDzd4ovGC16JBuobrbJjxK0vOqBEqO5e0=; h=X-UI-Sender-Class:From:To:Subject:Date; b=dXxO8r9GToK77hsweJymkUD4T9sk4xqh4HH+wRTb/lhbeugQBNHMOmWVwsIDk4h+G JwRQFw0kNKH0nCAI89jMvzeB8CnFIRzkEbL6OamiyY2cyhk4rkTr/BeXNu4qhwff7k bYj5xIIci/LU6lvIEvoWzMeoi77Mi3PKqhm6lhHw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from strobe-jhalfs ([178.6.220.84]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mi2O1-1kzFvS2ExV-00e7wr for ; Thu, 24 Sep 2020 22:02:55 +0200 From: Stephen Berman To: bug-gnu-emacs@gnu.org Subject: 28.0.50; arc-mode.el fails to display a ZIP file Date: Thu, 24 Sep 2020 22:02:50 +0200 Message-ID: <874knnvt79.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:iVYOL2WSWFVC4p6Rw5C3KQ1TQEJnej/7EeZfNZkvbCITqJ5z2Vt 1KvtihOEy4/Ax9lSaTfX88GymCmQxTLxT2PudMelh5YP8c/kS+PR3ZKQLkYfgGk/JdktIEV TjtYm5aSheO2msgrZjyEGbwG/MGAYWEMHm+XDDA0dVpqRi1JJVnspL/D6/1lATSEajypjnU tuVYNM/4k7IH9NiR1FIJA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:sYshL8VyeM0=:Aap38p43ZvnUxlUyqBnwYm 3lmKiWAMObLUqVvwQIP/Hj6BbPCIrR3Bp53pzdCk8Sq/SJmTerQH2GVkX+nQrqhRWxUIy6DlB +PRB0O8Y7yTg/rkNrPpa4O13nXfMf9h4GhB5K9BZJwyhEeDKhP4IC7qs0cCksLrj1aa0bSGm5 905aHX5cdPI4wG17Ta5ifajON641yQNdSwmoXnVFnQa7gX2triaoUZ5jq1JDO6SRr9YMM4QM5 ckWfJK/eyzzhXsXyfBYzi0rH/0fSGvCj4xaoFTrFYdjCdK+/0Tph121/WBvRhhgV2APN/0nzX w1ig3wXgAdDC0eSJwYaixfrOS2wZGcGYcCnJF75q7HJqamybq1jpGdbXMn7O0AUpu8M5H1Qiq ZZdM0sxYcIrdAsUaVxH29YszcCUr7ig+RQ/nHRJp8Y2balYfp5O9Y7h48cbSU1bHoLAHeWCbC 0IooRcSM5HIiv5c1yEPJeYogont8GITonyTeTlHcD2KvZGtgxSDLFpVR4v0GHq7rY3UBdp14H T/xDPROy7p98fbnbmVXAmaDh8Y8RYx42wSMZCCFyLjQWlRvxab0ohuze4CX+ZFFnrom+44PnG 9DFqzooDzm8FaWUZ6Y5f+BZZh6VL/W0JURv2S51dYd71e3yYRD15z9YvdnVa8UgDHNUhK68cD /j0OXFppAHT7uVXIdb0VviOySLaVgERY60INHKMb0ANAWr9t5w/1Xuf2S2pWqkp08Yb7bWTBb oKiTLK/0VjWAZiwKAPju3pG2YMIgz3fBeKl1rfXWIqTAq3cgJxI/z6xDBLgWqk+j1B2mf7tOx +fVB97iZw6SmeGMLjckA5sS6WL63lebCZyWFH7xYM7MaQKR8z8neWyWlNqgg2RAIeuTjumhPt LEmBJD88nnBNh3yF7TKf5SkBoU9QL1ssjYwHuVnK7kvuKytyPEqwaN4vNqACyB4CNH2JwAX3g OhFKjfu4+OXvozRGL+FIVpcJGtWyfEjts4rJ1cTYK3CVvvsQGG/bD+ukKR9A+3gyLFJNj17sz YaaYdzwQ6IPNq+/vL0TeXBtxnE+8Ohg5UjIyrd0rBsBmrPWPAs4Rapklhln+9Ng5bxKa8Q6kU O1qb9o7P6cxBGIBnJPLJgT/mmEUVLKgmaOAxkhJN+Xn2YRdYUyPDYMqOMhC99uSFj/ozyz5cj tRlwai4sV5WCyYZYLpZuPmFLAbEAt3Ef1F55EvxYFmzXA9u+DwStpVZxDBvu3snYi3d0eN2+0 b6onlg2k4v1qbv6ouRQZgVXP8ySFYCL828yLNQQ== Received-SPF: pass client-ip=212.227.17.21; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/24 16:02:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) I have a ZIP file that, when I try to visit it in archive-mode, Emacs throws a file mode specification error on, specifically args-out-of-range. The reason is that the function archive-l-e in arc-mode.el, which is supposed to return a buffer position in this case, returns a number which exceeds the buffer size. And the reason for this is that archive-l-e builds its return value by iteratively calling (+ (ash result 8) (aref str (- len i))), where `str' is a string extracted from the end of the ZIP file, which in this case is "\377\377\377\377", so that the return value increases from 255 (the decimal value of octal 377) to 4294967040 after four iterations, which far exceeds the file (and hence buffer) size. Perhaps "\377\377\377\377" is an invalid string at the end of a ZIP file (I checked other ZIP files I have, which I can visit in archive-mode with no problem, and they have different strings at the end, consisting of bytes with smaller decimal values, so that the return value of archive-l-e does not exceed the file size). Yet when I call `unzip -l' on the file in the shell, the contents are displayed, and I also had no problem unpacking the file with unzip (and AFAICT the content is undamaged). So at least unzip can deal with this file. In case it helps, here is the final byte sequence in the file (I've replace the control characters and raw bytes by ASCII representations): PK^E^F\377\377\377\377%^@%^@\377\377\377\377\377\377\377\377^@^@ In GNU Emacs 28.0.50 (build 25, x86_64-pc-linux-gnu, GTK+ Version 3.24.17, cairo version 1.17.3) of 2020-09-24 built on strobe-jhalfs Repository revision: 89dd8cd215148da4c6dffc15dc6c35df5122247b Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Linux From Scratch SVN-20200401 Configured using: 'configure 'CFLAGS=-Og -g3' PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix ------------=_1601043182-16146-1--