diff options
author | Alex Dupre <ale@FreeBSD.org> | 2005-08-28 07:59:26 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2005-08-28 07:59:26 +0000 |
commit | b2f90dc533f458ac66a24efdb5c1bae88e2765cf (patch) | |
tree | 8263e7c243943c74c0617c876c1db911058601a8 /print/pdflib/files | |
parent | - Make portlint happier. (diff) |
Update to 6.0.2 release.
Notes
Notes:
svn path=/head/; revision=141035
Diffstat (limited to 'print/pdflib/files')
-rw-r--r-- | print/pdflib/files/patch-libs::tiff::tif_dirread.c | 51 | ||||
-rw-r--r-- | print/pdflib/files/patch-libs::tiff::tif_fax3.c | 11 |
2 files changed, 0 insertions, 62 deletions
diff --git a/print/pdflib/files/patch-libs::tiff::tif_dirread.c b/print/pdflib/files/patch-libs::tiff::tif_dirread.c deleted file mode 100644 index b59744f1beca..000000000000 --- a/print/pdflib/files/patch-libs::tiff::tif_dirread.c +++ /dev/null @@ -1,51 +0,0 @@ ---- libs/tiff/tif_dirread.c.orig Fri Nov 26 21:39:06 2004 -+++ libs/tiff/tif_dirread.c Mon Aug 1 01:06:34 2005 -@@ -69,7 +69,7 @@ - char *cp = NULL; - tsize_t bytes = nmemb * elem_size; - -- if (elem_size && bytes / elem_size == nmemb) -+ if (nmemb && elem_size && bytes / elem_size == nmemb) - cp = (char*)_TIFFmalloc(tif, bytes); - - if (cp == NULL) -@@ -1267,12 +1267,16 @@ - uint16 buf[10]; - uint16* v = buf; - -- if (samples > (int)NITEMS(buf)) -- v = (uint16*) CheckMalloc(tif, samples, sizeof (uint16), -+ if (dir->tdir_count > (int)NITEMS(buf)) -+ v = (uint16*) CheckMalloc(tif, dir->tdir_count, sizeof (uint16), - "to fetch per-sample values"); - if (v && TIFFFetchShortArray(tif, dir, v)) { - int i; -- for (i = 1; i < samples; i++) -+ int check_count = dir->tdir_count; -+ if( samples < check_count ) -+ check_count = samples; -+ -+ for (i = 1; i < check_count; i++) - if (v[i] != v[0]) { - TIFFError(tif->tif_name, - "Cannot handle different per-sample values for field \"%s\"", -@@ -1304,12 +1308,16 @@ - double buf[10]; - double* v = buf; - -- if (samples > (int)NITEMS(buf)) -- v = (double*) CheckMalloc(tif, samples, sizeof (double), -+ if (dir->tdir_count > (int)NITEMS(buf)) -+ v = (double*) CheckMalloc(tif, dir->tdir_count, sizeof (double), - "to fetch per-sample values"); - if (v && TIFFFetchAnyArray(tif, dir, v)) { - int i; -- for (i = 1; i < samples; i++) -+ int check_count = dir->tdir_count; -+ if( samples < check_count ) -+ check_count = samples; -+ -+ for (i = 1; i < check_count; i++) - if (v[i] != v[0]) { - TIFFError(tif->tif_name, - "Cannot handle different per-sample values for field \"%s\"", diff --git a/print/pdflib/files/patch-libs::tiff::tif_fax3.c b/print/pdflib/files/patch-libs::tiff::tif_fax3.c deleted file mode 100644 index 7e4b3723335b..000000000000 --- a/print/pdflib/files/patch-libs::tiff::tif_fax3.c +++ /dev/null @@ -1,11 +0,0 @@ ---- libs/tiff/tif_fax3.c.orig Sun Jan 23 12:05:49 2005 -+++ libs/tiff/tif_fax3.c Sun Jan 23 12:06:35 2005 -@@ -445,7 +445,7 @@ - char *cp = NULL; - tsize_t bytes = nmemb * elem_size; - -- if (elem_size && bytes / elem_size == nmemb) -+ if (nmemb && elem_size && bytes / elem_size == nmemb) - cp = (char*) _TIFFmalloc(tif, bytes); - - if (cp == NULL) |