[Reproducible-commits] [strip-nondeterminism] 04/05: Fix PNG handling caused by double-read(2). (Closes: #832306)

Chris Lamb chris at chris-lamb.co.uk
Sun Jul 24 11:41:10 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository strip-nondeterminism.

commit f4c9e63fb2f11a6657cbff63c423fd4cf7c5fd29
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jul 24 12:39:26 2016 +0100

    Fix PNG handling caused by double-read(2). (Closes: #832306)
    
    We already read(2) the data, so falling-through
---
 lib/File/StripNondeterminism/handlers/png.pm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/File/StripNondeterminism/handlers/png.pm b/lib/File/StripNondeterminism/handlers/png.pm
index 793250e..87235cd 100644
--- a/lib/File/StripNondeterminism/handlers/png.pm
+++ b/lib/File/StripNondeterminism/handlers/png.pm
@@ -107,6 +107,11 @@ sub _normalize {
 				$modified = 1;
 				next;
 			}
+
+			# Not a chunk we care about but we already read the
+			# data so we cannot fall through
+			print $tempfile $header . $data;
+			next;
 		}
 
 		print $tempfile $header;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/strip-nondeterminism.git



More information about the Reproducible-commits mailing list