openbsd-ports/graphics/tiff/patches/patch-libtiff_tif_print_c
naddy fab96bfad1 SECURITY fixes for CVE-2006-2656 and CVE-2006-3459 through 3465.
Man page fixes.

Mostly via FreeBSD.  Approving noises from bernd@ and jasper@
2008-10-25 09:39:29 +00:00

16 lines
545 B
Plaintext

$OpenBSD: patch-libtiff_tif_print_c,v 1.1 2008/10/25 09:39:29 naddy Exp $
CVE-2006-3464,3465
--- libtiff/tif_print.c.orig Mon Mar 13 15:11:30 2006
+++ libtiff/tif_print.c Fri Oct 24 18:55:21 2008
@@ -491,7 +491,7 @@ TIFFPrintDirectory(TIFF* tif, FILE* fd, long flags)
} else
fprintf(fd, "(present)\n");
}
- if (TIFFFieldSet(tif, FIELD_SUBIFD)) {
+ if (TIFFFieldSet(tif, FIELD_SUBIFD) && (td->td_subifd)) {
fprintf(fd, " SubIFD Offsets:");
for (i = 0; i < td->td_nsubifd; i++)
fprintf(fd, " %5lu", (long) td->td_subifd[i]);