Commit fbb9db42 authored by abveritas's avatar abveritas

libcdaudio rebuild

parent 3d8f4e0b
Author: Moritz Muehlenhoff <jmm@inutil.org>
Description: CAN-2005-0706: Bufferoverflow in CDDB lookup parsing
diff -Naurp libcdaudio.orig/src/cddb.c libcdaudio/src/cddb.c
--- libcdaudio.orig/src/cddb.c 2009-08-02 10:30:05.000000000 +0000
+++ libcdaudio/src/cddb.c 2009-08-02 10:34:57.000000000 +0000
@@ -1052,7 +1052,7 @@ cddb_query(int cd_desc, int sock,
}
query->query_matches = 0;
- while(!cddb_read_line(sock, inbuffer, 256)) {
+ while(query->query_matches < MAX_INEXACT_MATCHES && !cddb_read_line(sock, inbuffer, 256)) {
slashed = 0;
if(strchr(inbuffer, '/') != NULL && parse_disc_artist) {
index = 0;
# $Id: PKGBUILD 69338 2010-02-20 10:51:45Z allan $
# Maintainer:
# Contributor Sarah Hay <sarahhay@mb.sympatico.ca>
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=libcdaudio
pkgver=0.99.12
pkgrel=4
pkgrel=5
pkgdesc="Library for controlling Audio CDs and interacting with CDDB"
arch=('i686' 'x86_64')
url="http://libcdaudio.sourceforge.net/"
license=('GPL')
depends=('glibc')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/libcdaudio/$pkgname-${pkgver}p2.tar.gz)
md5sums=('15de3830b751818a54a42899bd3ae72c')
source=(http://downloads.sourceforge.net/sourceforge/libcdaudio/${pkgname}-${pkgver}.tar.gz
01-cddb-bufferoverflow.patch
02-cddb-bufferoverflow.patch)
md5sums=('63b49cf14d53eed31e7a87cca17a3963'
'f78c881b92cd7d25472daa90af284e18'
'7474059580e187b82968c6d615e61298')
build() {
cd $srcdir/$pkgname-${pkgver}p2
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/01-cddb-bufferoverflow.patch"
patch -Np1 -i "${srcdir}/02-cddb-bufferoverflow.patch"
./configure --prefix=/usr
make || return 1
make
}
package() {
cd $srcdir/$pkgname-${pkgver}p2
make DESTDIR=$pkgdir install
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment