From 1dc1efa50ce9926a6ed832bda2ebe3319485ac09 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 10 Sep 2011 23:14:36 +0000 Subject: Sat Sep 10 23:14:36 UTC 2011 --- extra/t1lib/PKGBUILD | 18 +++++++++++------- extra/t1lib/overflow.patch | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 extra/t1lib/overflow.patch (limited to 'extra/t1lib') diff --git a/extra/t1lib/PKGBUILD b/extra/t1lib/PKGBUILD index 96f0c7a6d..50d8a4c8e 100644 --- a/extra/t1lib/PKGBUILD +++ b/extra/t1lib/PKGBUILD @@ -1,22 +1,26 @@ -# $Id: PKGBUILD 18717 2008-11-08 21:45:38Z giovanni $ +# $Id: PKGBUILD 137602 2011-09-10 01:36:02Z allan $ # Maintainer: tobias # Contributor: Rainer Moll pkgname=t1lib pkgver=5.1.2 -pkgrel=2 +pkgrel=3 pkgdesc="Library for generating character- and string-glyphs from Adobe Type 1 fonts" -arch=(i686 x86_64) -license=("GPL") +arch=('i686' 'x86_64') +url="http://www.ibiblio.org/pub/Linux/libs/graphics/!INDEX.html" +license=('GPL') depends=('libxaw') options=(!libtool) -url="http://www.ibiblio.org/pub/Linux/libs/graphics/!INDEX.html" source=(http://www.ibiblio.org/pub/Linux/libs/graphics/${pkgname}-${pkgver}.tar.gz ) md5sums=('a5629b56b93134377718009df1435f3c') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr - make without_doc || return 1 - make DESTDIR="${pkgdir}" install || return 1 + make without_doc +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install } diff --git a/extra/t1lib/overflow.patch b/extra/t1lib/overflow.patch new file mode 100644 index 000000000..9f033c0de --- /dev/null +++ b/extra/t1lib/overflow.patch @@ -0,0 +1,15 @@ +--- t1env.c.orig 2007-09-16 19:56:38.319184208 +0200 ++++ t1env.c 2007-09-16 20:05:02.057070439 +0200 +@@ -611,6 +611,12 @@ + #endif + strcat( pathbuf, DIRECTORY_SEP); + /* And finally the filename: */ ++ /* If current pathbuf + StrippedName + 1 byte for NULL is bigger than pathbuf ++ let's try next pathbuf */ ++ if( strlen(pathbuf) + strlen(StrippedName) + 1 > sizeof(pathbuf) ) { ++ i++; ++ continue; ++ } + strcat( pathbuf, StrippedName); + + /* Check for existence of the path: */ -- cgit v1.2.3-54-g00ecf