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). Gbp-Pq: Name 04-endian.patch
This commit is contained in:
parent
8498f55855
commit
d9a3138d13
|
@ -118,7 +118,7 @@ long cdda_read_timed(cdrom_drive *d, void *buffer, long beginsector, long sector
|
||||||
if(d->bigendianp==-1) /* not determined yet */
|
if(d->bigendianp==-1) /* not determined yet */
|
||||||
d->bigendianp=data_bigendianp(d);
|
d->bigendianp=data_bigendianp(d);
|
||||||
|
|
||||||
if(d->bigendianp!=bigendianp()){
|
if(buffer && d->bigendianp!=bigendianp()){
|
||||||
int i;
|
int i;
|
||||||
u_int16_t *p=(u_int16_t *)buffer;
|
u_int16_t *p=(u_int16_t *)buffer;
|
||||||
long els=sectors*CD_FRAMESIZE_RAW/2;
|
long els=sectors*CD_FRAMESIZE_RAW/2;
|
||||||
|
|
Loading…
Reference in New Issue