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-1040046-21960@http.bugzilla.opensuse.org/>
http://bugzilla.opensuse.org/show_bug.cgi?id=1040046


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-4.2.4.4 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
-DREGISTERS=20 -DIBUFSIZ=1024 -DOBUFSIZ=1024 -DBYTEORDER=1234
"-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
-DREGISTERS=20 -DIBUFSIZ=1024 -DOBUFSIZ=1024 -DBYTEORDER=4321
"-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 >