Author: Monty <paranoia@xiph.org>
Description:
Changeset 15356: Fix a really stupid oversight that should have been tested:
forcing a drive/host endian mismatch within the interface lib.
Does not check for null buff before trying a byteswap
(Closes: #499716, #506337, #507795, #509762).
--- a/interface/interface.c
+++ b/interface/interface.c
@@ -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;