diff options
Diffstat (limited to 'print/pdflib/files/patch-libs::tiff::tif_fax3.c')
-rw-r--r-- | print/pdflib/files/patch-libs::tiff::tif_fax3.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/print/pdflib/files/patch-libs::tiff::tif_fax3.c b/print/pdflib/files/patch-libs::tiff::tif_fax3.c new file mode 100644 index 000000000000..7e4b3723335b --- /dev/null +++ b/print/pdflib/files/patch-libs::tiff::tif_fax3.c @@ -0,0 +1,11 @@ +--- 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) |