From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-sound/cdparanoia/files: cdparanoia-3.10.2-ppc64.patch |
Date: | Fri, 28 Nov 2008 18:27:48 |
Message-Id: | E1L684A-0002md-QZ@stork.gentoo.org |
1 | ssuominen 08/11/28 18:27:46 |
2 | |
3 | Added: cdparanoia-3.10.2-ppc64.patch |
4 | Log: |
5 | Fix a really stupid oversight that should have been tested: forcing a drive/host endian mismatch within the interface lib. Doesn't check for null buff before trying a byteswap. Should fix Gentoo bug 240960, thanks to Marty Rosenberg for his incomplete bug report. |
6 | (Portage version: 2.1.6_rc2/cvs/Linux 2.6.27.7 i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-sound/cdparanoia/files/cdparanoia-3.10.2-ppc64.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cdparanoia/files/cdparanoia-3.10.2-ppc64.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/cdparanoia/files/cdparanoia-3.10.2-ppc64.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: cdparanoia-3.10.2-ppc64.patch |
15 | =================================================================== |
16 | diff -ur cdparanoia-III-10.2.orig/interface/interface.c cdparanoia-III-10.2/interface/interface.c |
17 | --- cdparanoia-III-10.2.orig/interface/interface.c 2008-09-11 13:43:52.000000000 +0300 |
18 | +++ cdparanoia-III-10.2/interface/interface.c 2008-11-28 04:43:53.000000000 +0200 |
19 | @@ -118,7 +118,7 @@ |
20 | if(d->bigendianp==-1) /* not determined yet */ |
21 | d->bigendianp=data_bigendianp(d); |
22 | |
23 | - if(d->bigendianp!=bigendianp()){ |
24 | + if(buffer && d->bigendianp!=bigendianp()){ |
25 | int i; |
26 | u_int16_t *p=(u_int16_t *)buffer; |
27 | long els=sectors*CD_FRAMESIZE_RAW/2; |