5cab5c465d
changes. Also include upstream fix for CVE-2012-1173.
13 lines
683 B
Plaintext
13 lines
683 B
Plaintext
$OpenBSD: patch-libtiff_tif_codec_c,v 1.2 2012/04/14 15:09:55 naddy Exp $
|
|
--- libtiff/tif_codec.c.orig Tue Dec 14 15:18:28 2010
|
|
+++ libtiff/tif_codec.c Wed Apr 11 18:22:55 2012
|
|
@@ -108,7 +108,7 @@ _notConfigured(TIFF* tif)
|
|
const TIFFCodec* c = TIFFFindCODEC(tif->tif_dir.td_compression);
|
|
char compression_code[20];
|
|
|
|
- sprintf( compression_code, "%d", tif->tif_dir.td_compression );
|
|
+ snprintf( compression_code, sizeof(compression_code), "%d", tif->tif_dir.td_compression );
|
|
TIFFErrorExt(tif->tif_clientdata, tif->tif_name,
|
|
"%s compression support is not configured",
|
|
c ? c->name : compression_code );
|