mirror of
https://git.freebsd.org/ports.git
synced 2025-06-10 23:30:29 -04:00
- Fix pdf generation on 64bit architectures [1] PR: ports/76385 [1] Submitted by: UEMURA Tetsuya <t_uemura@macome.co.jp> [1]
11 lines
351 B
C
11 lines
351 B
C
--- libs/tiff/tif_dirread.c.orig Sun Jan 23 12:04:30 2005
|
|
+++ libs/tiff/tif_dirread.c Sun Jan 23 12:05:30 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)
|