[xiph-commits] r15356 - trunk/cdparanoia/interface

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Tue Sep 30 05:50:09 PDT 2008


Author: xiphmont
Date: 2008-09-30 05:50:08 -0700 (Tue, 30 Sep 2008)
New Revision: 15356

Modified:
   trunk/cdparanoia/interface/interface.c
Log:
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.



Modified: trunk/cdparanoia/interface/interface.c
===================================================================
--- trunk/cdparanoia/interface/interface.c	2008-09-30 07:04:09 UTC (rev 15355)
+++ trunk/cdparanoia/interface/interface.c	2008-09-30 12:50:08 UTC (rev 15356)
@@ -118,7 +118,7 @@
 	if(d->bigendianp==-1) /* not determined yet */
 	  d->bigendianp=data_bigendianp(d);
 	
-	if(d->bigendianp!=bigendianp()){
+	if(buffer && d->bigendianp!=bigendianp()){
 	  int i;
 	  u_int16_t *p=(u_int16_t *)buffer;
 	  long els=sectors*CD_FRAMESIZE_RAW/2;



More information about the commits mailing list