Mailinglist Archive: opensuse-bugs (4284 mails)

< Previous Next >
[Bug 1040046] New: compress binary produces garbled compressed data
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 21 May 2017 15:08:01 +0000
  • Message-id: <>

Bug ID: 1040046
Summary: compress binary produces garbled compressed data
Classification: openSUSE
Product: openSUSE Tumbleweed
Version: Current
Hardware: x86-64
OS: SUSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
Assignee: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
Reporter: pjoh@xxxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---

The compress binary provided in package ncompress- with Tumbleweed and a
number of recent stable distributions produces garbled compressed data that
cannot be decompressed.

I can compile a binary that gives (exactly) the same garbled data by compiling
it with the wrong byte order. Note the flag -DBYTEORDER=1234:

cc -o compress -DDIRENT=1 -DSYSDIR=1 -DUTIME_H=1 -DUSERMEM=800000
"-DCOMPILE_DATE=\"`date`\"" compress42.c

(produces garbled compressed data)

Reversing the byte order,

cc -o compress -DDIRENT=1 -DSYSDIR=1 -DUTIME_H=1 -DUSERMEM=800000
"-DCOMPILE_DATE=\"`date`\"" compress42.c

(produces correct compressed data)

or using the provided build shell script gives a correct binary, that produces
correct data.

You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >