From 20dd0302814b990ade543a12bc21592efd947ed2 Mon Sep 17 00:00:00 2001 From: Bruno Wolff III Date: Mon, 12 Mar 2012 08:10:10 -0500 Subject: [PATCH] Remove patch from the deprecated version of package --- ...s-oversized-tiff-check-CVE-2009-3296.patch | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 camlimages-oversized-tiff-check-CVE-2009-3296.patch diff --git a/camlimages-oversized-tiff-check-CVE-2009-3296.patch b/camlimages-oversized-tiff-check-CVE-2009-3296.patch deleted file mode 100644 index be59d24..0000000 --- a/camlimages-oversized-tiff-check-CVE-2009-3296.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- camlimages-3.0.1.old/src/tiffread.c 2007-01-18 10:29:57.000000000 +0000 -+++ camlimages-3.0.1/src/tiffread.c 2009-10-16 10:26:53.841258260 +0100 -@@ -21,6 +21,13 @@ - #include - #include - -+#include -+#define oversized(x, y) \ -+ ((x) < 0 || (y) < 0 || ((y) != 0 && (x) > INT_MAX / (y))) -+ -+#define failwith_oversized(lib) \ -+ failwith("#lib error: image contains oversized or bogus width and height"); -+ - /* These are defined in caml/config.h */ - #define int16 int16tiff - #define uint16 uint16tiff -@@ -64,6 +71,10 @@ - TIFFGetField(tif, TIFFTAG_YRESOLUTION, &yres); - TIFFGetField(tif, TIFFTAG_PHOTOMETRIC, &photometric); - -+ if (oversized (imagewidth, imagelength)) { -+ failwith_oversized("tiff"); -+ } -+ - if( imagesample == 3 && photometric == PHOTOMETRIC_RGB ){ - if( imagebits != 8 ){ - failwith("Sorry, tiff rgb file must be 24bit-color");