[libpng16] Imported from libpng-1.6.32beta09.tar
diff --git a/ANNOUNCE b/ANNOUNCE
index 21d69b3..982fd4c 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -67,7 +67,8 @@
 Version 1.6.32beta09 [August 3, 2017]
   Require cmake-2.8.8 in CMakeLists.txt. Revised symlink creation,
     no longer using deprecated cmake LOCATION feature (Clifford Yapp).
-
+  Fixed five-byte error in the calculation of IDAT maximum possible size.
+  
 Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 (subscription required; visit
 https://lists.sourceforge.net/lists/listinfo/png-mng-implement
diff --git a/CHANGES b/CHANGES
index eb77e54..f5f8e8e 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5950,6 +5950,7 @@
 Version 1.6.32beta09 [August 3, 2017]
   Require cmake-2.8.8 in CMakeLists.txt. Revised symlink creation,
     no longer using deprecated cmake LOCATION feature (Clifford Yapp).
+  Fixed five-byte error in the calculation of IDAT maximum possible size.
   
 Send comments/corrections/commendations to png-mng-implement at lists.sf.net
 (subscription required; visit
diff --git a/png.c b/png.c
index 419bafa..2ecde92 100644
--- a/png.c
+++ b/png.c
@@ -1,7 +1,7 @@
 
 /* png.c - location for general purpose libpng functions
  *
- * Last changed in libpng 1.6.31 [July 27, 2017]
+ * Last changed in libpng 1.6.32 [(PENDING RELEASE)]
  * Copyright (c) 1998-2002,2004,2006-2017 Glenn Randers-Pehrson
  * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
  * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
diff --git a/tests/huge_idat.png b/tests/huge_idat.png
new file mode 100644
index 0000000..efee66c
--- /dev/null
+++ b/tests/huge_idat.png
Binary files differ
diff --git a/tests/pngtest b/tests/pngtest
index d33f936..5f9be22 100755
--- a/tests/pngtest
+++ b/tests/pngtest
@@ -1,4 +1,5 @@
 #!/bin/sh
 ./pngtest --relaxed ${srcdir}/tests/badcrc.png
 ./pngtest --relaxed ${srcdir}/tests/badadler.png
+./pngtest --relaxed ${srcdir}/tests/huge_idat.png
 exec ./pngtest --strict ${srcdir}/pngtest.png