libcdparanoia: byteswap null check

From upstream r15356, fixes a segfault when attempting to read discs
This commit is contained in:
Ryan Farley 2021-07-21 19:18:05 -05:00 committed by Daniel Kolesa
parent bf2f967e9c
commit 2e0ede5b95
2 changed files with 14 additions and 1 deletions

View 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;

View File

@ -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"