Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #908157

Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes)

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes)
Date 2018-07-18 07:10 +0200
Message-ID <wcMSR-1e5-1@gated-at.bofh.it> (permalink)
References <wcMSR-1e5-3@gated-at.bofh.it> <wcii6-89r-1@gated-at.bofh.it> <wcii6-89r-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: reassign -1 gzip
Control: retitle -1 zcat -t sometimes crashes with heap corruption
Control: tag -1 moreinfo

On Mon, 16 Jul 2018 20:17:13 +0000 (UTC) john terragon <terragonjohn@yahoo.com> wrote:
[...]
> the -t flag used with zcat does not have the same meaning it had with
the other programs, xzcat, bzip2 and lzop. With the latter it
> means "just do  a test" with the former it is equivalent to -vT
(neither -v nor -T means "test").

The manual page for zcat clearly states that -t does an integrity test.
 If it does not, that's a bug in zcat.

> Now, this causes a strange and
> unpredictable behavior of unmkinitramfs (and of lsinitramfs, which
uses unmkinitramfs) where for some, not all, initrd files it just
aborts its operations with this
>
> free(): invalid next size (normal)
> 
> Aborted
[...]

Crashing on weird input is a bug in the program that crashes.

Please report which version of gzip is installed.

Ben.

-- 
Ben Hutchings
Logic doesn't apply to the real world. - Marvin Minsky

Back to linux.debian.bugs.dist | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) john terragon <terragonjohn@yahoo.com> - 2018-07-16 22:30 +0200
  Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) Ben Hutchings <ben@decadent.org.uk> - 2018-07-18 07:10 +0200
    Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) john terragon <terragonjohn@yahoo.com> - 2018-07-18 15:50 +0200
      Bug#903931: [initramfs-tools-core] unmkinitramfs uses "-t" for zcat like it was a "test integrity" option (it's not and it causes crashes) Ben Hutchings <ben@decadent.org.uk> - 2018-07-18 18:00 +0200
  Bug#903931: zcat -t sometimes crashes with heap corruption Daniel Baumann <daniel.baumann@progress-linux.org> - 2018-07-18 20:10 +0200
  Bug#903931: Neither zcat nor xzcat should be used in scripts Antonio Diaz Diaz <antonio@gnu.org> - 2018-07-27 09:50 +0200

csiph-web