- cdparanoia-10.2-endian.patch: Backport a crash fix for host/drive

endianness mismatch. (#466659)
This commit is contained in:
Adam Jackson 2009-02-10 19:28:27 +00:00
parent 1ef85ec2db
commit eeb995d5ae
2 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,12 @@
diff -up cdparanoia-III-10.2/interface/interface.c.jx cdparanoia-III-10.2/interface/interface.c
--- cdparanoia-III-10.2/interface/interface.c.jx 2009-02-10 14:25:02.000000000 -0500
+++ cdparanoia-III-10.2/interface/interface.c 2009-02-10 14:25:49.000000000 -0500
@@ -115,7 +115,7 @@ long cdda_read_timed(cdrom_drive *d, voi
if(sectors>0){
/* byteswap? */
- if(d->bigendianp==-1) /* not determined yet */
+ if(buffer && d->bigendianp==-1) /* not determined yet */
d->bigendianp=data_bigendianp(d);
if(d->bigendianp!=bigendianp()){

View File

@ -1,8 +1,6 @@
%define ver 10
Name: cdparanoia
Version: 10.2
Release: 2%{?dist}
Release: 3%{?dist}
# the app is GPLv2, everything else is LGPLv2
License: GPLv2 and LGPLv2
Group: Applications/Multimedia
@ -11,6 +9,8 @@ Source: http://downloads.xiph.org/releases/%{name}/%{name}-III-%{version}.src.tg
# https://trac.xiph.org/changeset/15338
# https://bugzilla.redhat.com/show_bug.cgi?id=463009
Patch0: cdparanoia-10.2-#463009.patch
# #466659
Patch1: cdparanoia-10.2-endian.patch
Url: http://www.xiph.org/paranoia/index.html
BuildRoot: %{_tmppath}/cdparanoia-%{version}-root
Requires: cdparanoia-libs = %{version}-%{release}
@ -49,6 +49,7 @@ applications which read CD Digital Audio disks.
%prep
%setup -q -n %{name}-III-%{version}
%patch0 -p3 -b .#463009
%patch1 -p1 -b .endian
%build
rm -rf $RPM_BUILD_ROOT
@ -107,6 +108,10 @@ fi
%{_libdir}/*.a
%changelog
* Tue Feb 10 2009 Adam Jackson <ajax@redhat.com> 10.2-3
- cdparanoia-10.2-endian.patch: Backport a crash fix for host/drive
endianness mismatch. (#466659)
* Tue Sep 30 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 10.2-2
- fix cdda_interface.h C++ incompatibility (patch from upstream) (#463009)