openbsd-ports/graphics/tiff/patches/patch-libtiff_tif_dirinfo_c
naddy be5efd77b8 Update to 4.0.3.
* A number of security issues have been resolved, including CVE-2012-3401.
* Accessor functions for TIFF field information have been added to
  support functionality which was available in libtiff 3.9.X.

ok jasper@
2012-09-24 19:51:03 +00:00

13 lines
494 B
Plaintext

$OpenBSD: patch-libtiff_tif_dirinfo_c,v 1.7 2012/09/24 19:51:04 naddy Exp $
--- libtiff/tif_dirinfo.c.orig Sun Aug 19 18:56:34 2012
+++ libtiff/tif_dirinfo.c Mon Sep 24 21:30:29 2012
@@ -711,7 +711,7 @@ _TIFFCreateAnonField(TIFF *tif, uint32 tag, TIFFDataTy
* note that this name is a special sign to TIFFClose() and
* _TIFFSetupFields() to free the field
*/
- sprintf(fld->field_name, "Tag %d", (int) tag);
+ snprintf(fld->field_name, 32, "Tag %d", (int) tag);
return fld;
}