[libpng16] Conditionally compile png_decompress_chunk().
diff --git a/ANNOUNCE b/ANNOUNCE
index b1ed620..9321ffc 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -95,6 +95,7 @@
Version 1.6.24rc02 [August 1, 2016]
Conditionally compile SSE2 headers in contrib/intel/intel_sse.patch
+ Conditionally compile png_decompress_chunk().
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
diff --git a/CHANGES b/CHANGES
index 1d5d351..1bc771b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5666,6 +5666,7 @@
Version 1.6.24rc02 [August 1, 2016]
Conditionally compile SSE2 headers in contrib/intel/intel_sse.patch
+ Conditionally compile png_decompress_chunk().
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
diff --git a/pngrutil.c b/pngrutil.c
index b77528d..47ab619 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -590,6 +590,7 @@
}
}
+#if defined(PNG_READ_zTXt_SUPPORTED) || defined (PNG_READ_iTXt_SUPPORTED)
/*
* Decompress trailing data in a chunk. The assumption is that read_buffer
* points at an allocated area holding the contents of a chunk with a
@@ -754,6 +755,7 @@
return Z_MEM_ERROR;
}
}
+#endif /* READ_zTXt || READ_iTXt */
#endif /* READ_COMPRESSED_TEXT */
#ifdef PNG_READ_iCCP_SUPPORTED