🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Johannes Schauer Marin Rodrigues Sat, 31 Oct 2026 00:40
Bug#1152654: zip format fails when reading from stdin
#2769
Author: Johannes Schauer Marin Rodrigues
Date: Sat, 31 Oct 2026 00:40
65 lines
3450 bytes
Package: libarchive13t64
Version: 3.8.10-2
Severity: normal
Tags: upstream
Control: forwarded -1 https://github.com/libarchive/libarchive/issues/3780

Hi,

this is a bug upstream knows about. I'm filing it here so that I can reference
it in the workaround I will upload for genext2fs until this bug is fixed in
libarchive. Reproducer:

--%<-------------------------------------------------------
#include <archive.h>
#include <archive_entry.h>

int main() {
  struct archive_entry *entry;
  struct archive *a;
  int r;
  a = archive_read_new();
  if (a == NULL) {
    fprintf(stderr, "archive_read_new() failed\n");
    return 1;
  }
  if (archive_read_support_format_tar(a) != ARCHIVE_OK) {
    fprintf(stderr, "archive_read_support_format_tar() failed\n");
    return 1;
  }
  if (archive_read_support_format_zip(a) != ARCHIVE_OK) {
    fprintf(stderr, "archive_read_support_format_zip() failed\n");
    return 1;
  }

  r = archive_read_open_FILE(a, stdin);
  if (r) {
    fprintf(stderr, "archive_read_open_FILE() failed\n");
    return 1;
  }
  r = archive_read_next_header(a, &entry);
  if (r == ARCHIVE_EOF) {
    fprintf(stderr, "ARCHIVE_EOF -- success!\n");
    return 0;
  }
  if (r != ARCHIVE_OK) {
    fprintf(stderr, "archive_read_next_header() failed: %s\n",
            archive_error_string(a));
    return 1;
  }
  return 0;
}
-->%-------------------------------------------------------

$ dd if=/dev/zero bs=10240 count=1 status=none | ./a.out
archive_read_next_header() failed: Truncated tar archive detected while reading next header

The above will work if archive_read_support_format_zip is commented out, so
in genext2fs I will just limit the input formats to tar to work around this
issue.

More details in the referenced upstream issue.

Thanks!

cheers, josch
Bug#1152654: zip format fails when reading from stdin
#3649
Author: Johannes Schauer Marin Rodrigues
Date: Sat, 07 Nov 2026 10:20
53 lines
3969 bytes
--===============2527516603010761426==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Control: reopen -1
Control: found -1 3.8.11-1

Hi,

Quoting Johannes Schauer Marin Rodrigues (2026-10-31 01:37:49)
> Package: libarchive13t64
> Version: 3.8.10-2
> Severity: normal
> Tags: upstream
> Control: forwarded -1 https://github.com/libarchive/libarchive/issues/3780

this bug accidentally got closed with the upload of 3.8.11-1. Unfortunately,
the fix to upstream issue #3780 is in commit
77e62f6a47619a946ccd5e9c3db026f157d44643

I can confirm that cherry-picking that commit on top of 3.8.11-1 indeed does
fix the problem. Would you like me create a MR on salsa to fix this or do y=
ou
think you have time to take care of it?

Thanks!

cheers, josch
--===============2527516603010761426==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmru+PEACgkQ8sulx4+9
g+FSNw//WferUAatq6cY/ZXlgFBDHmjLmR8lsh/Gdw3fjro5sIhdUihQNz6H45wc
DRf1t5+f3uqUOz13X09lkVDCcFlmbGdT+ThjzjUf9VySbXIDx3IrJ3zujazaZgIP
OU63qDK2GzoTBh9gsE+p7UkB7I/e4dEPgWMq13TYF/aHwuc7VuxGDZdrTM8ZKeGo
qiopSPirg//rjkUK6M3XKYpHhmVqMWRFmmG+PWmq7c2VVWXblXfzEUsJ2mAlf5Rb
hpK8ECVZAkFrjx62hEg39/jXmkT9zLhm3P+uysC5sl9ZcEUmbYwEaUzWl+5j4PCx
X3kvBUk8ImN2Cf3/bzUmCAyrL9hQRLXvox4pmwG5ulzwgou8mq0WzWtLWVQF6LRd
PrXv5rJsMe6R7q+v2SqBZt4kM9baIC45DybZ2GSjgLgcB9z2r/DlEYyDxgRUTEiF
Jp+YHetrlNrbqPUkqSo3dgBIA3jHmamR61zyJP81CmaAlRRhr6xnKSacYsKdZEMG
h5bGOaMJ6oZnbjlqEsFP04XXkRcHFTngB81XjRAV4XWrY3x2ZiyX3SKbeLUvmFFw
mvBJPLDzwXbsepOrtYXAEiv5kZzfJxdEFKZUnyAEZeG5wg8fdHfbP4I8g0MWmzJd
biN6Hv1MHtpxQ0ALbP9NbqYS3Zl+MumxWTwX7JgbtbJhFwrTKHk=
=Jc4s
-----END PGP SIGNATURE-----

--===============2527516603010761426==--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads