Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-0.8.git;a=commitdiff;h=a62bfa1c8271b12160d5ba9a810d6ffe237ff2cf
commit a62bfa1c8271b12160d5ba9a810d6ffe237ff2cf Author: voroskoi <[EMAIL PROTECTED]> Date: Wed Apr 23 23:29:07 2008 +0200 cups-1.3.6-2kalgan2-x86_64 secfix relbump, closes #3012 diff --git a/source/apps/cups/FrugalBuild b/source/apps/cups/FrugalBuild index dc01d45..bc95608 100644 --- a/source/apps/cups/FrugalBuild +++ b/source/apps/cups/FrugalBuild @@ -4,7 +4,7 @@ pkgname=cups pkgver=1.3.6 -pkgrel=2kalgan1 +pkgrel=2kalgan2 pkgdesc="The CUPS Printing System" url="http://www.cups.org/" depends=('libtiff' 'libpng' 'libjpeg') @@ -14,7 +14,7 @@ archs=('i686' 'x86_64') backup=(etc/cups/{printers.conf,classes.conf,client.conf,cupsd.conf,mime.types,mime.convs}) up2date="lynx -dump $url |grep Stable |sed -e 's/.*v\(.*\)/\1/'" source=(ftp://ftp.easysw.com/pub/cups/$pkgver/cups-$pkgver-source.tar.bz2 \ - rc.cups rc.cups-{hu,de}.po str2729.patch str2765.patch) + rc.cups rc.cups-{hu,de}.po str2729.patch str2765.patch str2790.patch) subpkgs=('libcups') subdescs=('Main library of the CUPS printing system.') @@ -57,6 +57,7 @@ sha1sums=('4f7ed1c2b16db46f945ab113beab8aeaecbca0b9' \ 'f19bb889e3535e1284d0b93606da48aa61089c8a' \ '03197abb98eff18d3ede3000a61c7783b8c1ad92' \ '57d8197a4f2af1ffcc993f3e8ad6b0a127ff4bde' \ - '9ea34130e2edd5d6523ad13253970ae0d936374d') + '9ea34130e2edd5d6523ad13253970ae0d936374d' \ + '70abfee53bcc55f356e1ae308f77ec4382bb3aa7') # optimization OK diff --git a/source/apps/cups/str2790.patch b/source/apps/cups/str2790.patch new file mode 100644 index 0000000..107b0fa --- /dev/null +++ b/source/apps/cups/str2790.patch @@ -0,0 +1,72 @@ +Index: image-png.c +=================================================================== +--- filter/image-png.c (revision 7434) ++++ filter/image-png.c (working copy) +@@ -3,7 +3,7 @@ + * + * PNG image routines for the Common UNIX Printing System (CUPS). + * +- * Copyright 2007 by Apple Inc. ++ * Copyright 2007-2008 by Apple Inc. + * Copyright 1993-2007 by Easy Software Products. + * + * These coded instructions, statements, and computer programs are the +@@ -170,16 +170,56 @@ + * Interlaced images must be loaded all at once... + */ + ++ size_t bufsize; /* Size of buffer */ ++ ++ + if (color_type == PNG_COLOR_TYPE_GRAY || + color_type == PNG_COLOR_TYPE_GRAY_ALPHA) +- in = malloc(img->xsize * img->ysize); ++ { ++ bufsize = img->xsize * img->ysize; ++ ++ if ((bufsize / img->ysize) != img->xsize) ++ { ++ fprintf(stderr, "DEBUG: PNG image dimensions (%ux%u) too large!\n", ++ (unsigned)width, (unsigned)height); ++ fclose(fp); ++ return (1); ++ } ++ } + else +- in = malloc(img->xsize * img->ysize * 3); ++ { ++ bufsize = img->xsize * img->ysize * 3; ++ ++ if ((bufsize / (img->ysize * 3)) != img->xsize) ++ { ++ fprintf(stderr, "DEBUG: PNG image dimensions (%ux%u) too large!\n", ++ (unsigned)width, (unsigned)height); ++ fclose(fp); ++ return (1); ++ } ++ } ++ ++ in = malloc(bufsize); + } + + bpp = cupsImageGetDepth(img); + out = malloc(img->xsize * bpp); + ++ if (!in || !out) ++ { ++ fputs("DEBUG: Unable to allocate memory for PNG image!\n", stderr); ++ ++ if (in) ++ free(in); ++ ++ if (out) ++ free(out); ++ ++ fclose(fp); ++ ++ return (1); ++ } ++ + /* + * Read the image, interlacing as needed... + */ _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
