fix endian problem (#207001)

This commit is contained in:
Peter Vrabec 2006-09-19 12:34:22 +00:00
parent 4865c26e0b
commit 11e8cfeaad
2 changed files with 18 additions and 1 deletions

View File

@ -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

View File

@ -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 <pvrabec@redhat.com> 4.2.4-46
- fix endian problem (#207001)
* Thu Aug 10 2006 Peter Vrabec <pvrabec@redhat.com> 4.2.4-45
- fix bss buffer underflow CVE-2006-1168 (#201919)