Disable the new support for ZSTD and WebP compression for the time being to avoid bringing in extra dependencies.
15 lines
661 B
Plaintext
15 lines
661 B
Plaintext
$OpenBSD: patch-libtiff_tif_codec_c,v 1.6 2018/12/05 20:35:25 naddy Exp $
|
|
Index: libtiff/tif_codec.c
|
|
--- libtiff/tif_codec.c.orig
|
|
+++ libtiff/tif_codec.c
|
|
@@ -114,7 +114,8 @@ _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 );
|