libcdparanoia: byteswap null check
From upstream r15356, fixes a segfault when attempting to read discs
This commit is contained in:
parent
bf2f967e9c
commit
2e0ede5b95
13
srcpkgs/cdparanoia/patches/byteswap-null-check.diff
Normal file
13
srcpkgs/cdparanoia/patches/byteswap-null-check.diff
Normal file
@ -0,0 +1,13 @@
|
||||
Index: interface/interface.c
|
||||
===================================================================
|
||||
--- a/interface/interface.c (revision 15338)
|
||||
+++ b/interface/interface.c (revision 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;
|
@ -1,7 +1,7 @@
|
||||
# Template file for 'cdparanoia'
|
||||
pkgname=cdparanoia
|
||||
version=10.2
|
||||
revision=14
|
||||
revision=15
|
||||
wrksrc="${pkgname}-III-${version}"
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="libtool automake"
|
||||
|
Loading…
x
Reference in New Issue
Block a user