From 11e8cfeaadcc47062a5d7aa7b06d3cd1bcb676bc Mon Sep 17 00:00:00 2001 From: Peter Vrabec Date: Tue, 19 Sep 2006 12:34:22 +0000 Subject: [PATCH] fix endian problem (#207001) --- ncompress-4.2.4-endians.patch | 11 +++++++++++ ncompress.spec | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ncompress-4.2.4-endians.patch diff --git a/ncompress-4.2.4-endians.patch b/ncompress-4.2.4-endians.patch new file mode 100644 index 0000000..fdc9662 --- /dev/null +++ b/ncompress-4.2.4-endians.patch @@ -0,0 +1,11 @@ +--- ncompress-4.2.4/compress42.c.endians 2006-09-19 13:53:58.000000000 +0200 ++++ ncompress-4.2.4/compress42.c 2006-09-19 13:57:54.000000000 +0200 +@@ -432,7 +432,7 @@ + + union bytes + { +- long word; ++ int word; + struct + { + #if BYTEORDER == 4321 diff --git a/ncompress.spec b/ncompress.spec index eb6a197..d98a61d 100644 --- a/ncompress.spec +++ b/ncompress.spec @@ -1,7 +1,7 @@ Summary: Fast compression and decompression utilities. Name: ncompress Version: 4.2.4 -Release: 45 +Release: 46 License: distributable Group: Applications/File Source: ftp://metalab.unc.edu/pub/Linux/utils/compress/ncompress-4.2.4.tar.Z @@ -11,6 +11,8 @@ Patch2: ncompress-4.2.4-filenamelen.patch Patch3: ncompress-2GB.patch Patch4: ncompress-4.2.4-zerobyteforce.patch Patch5: ncompress-4.2.4-bssUnderflow.patch +Patch6: ncompress-4.2.4-endians.patch + BuildRequires: gcc glibc-devel fileutils BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -32,6 +34,7 @@ which are compatible with the original UNIX compress utility. %patch3 -p1 -b .2GB %patch4 -p1 -b .zerobyteforce %patch5 -p1 -b .bssUnderflow +%patch6 -p1 -b .endians %build @@ -70,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT %doc LZW.INFO README %changelog +* Tue Sep 19 2006 Peter Vrabec 4.2.4-46 +- fix endian problem (#207001) + * Thu Aug 10 2006 Peter Vrabec 4.2.4-45 - fix bss buffer underflow CVE-2006-1168 (#201919)