[Git][reproducible-builds/strip-nondeterminism][master] Fix an off-by-one error when parsing PNG modification times. (Closes:...
Chris Lamb
gitlab at salsa.debian.org
Tue May 26 10:31:20 UTC 2020
Chris Lamb pushed to branch master at Reproducible Builds / strip-nondeterminism
Commits:
4c3d64b6 by Bernhard M. Wiedemann at 2020-05-26T11:30:47+01:00
Fix an off-by-one error when parsing PNG modification times. (Closes: reproducible-builds/strip-nondeterminism#16)
Introduced in commIt 849f8516.
Signed-off-by: Chris Lamb <lamby at debian.org>
- - - - -
1 changed file:
- lib/File/StripNondeterminism/handlers/png.pm
Changes:
=====================================
lib/File/StripNondeterminism/handlers/png.pm
=====================================
@@ -58,7 +58,7 @@ sub time_chunk($) {
sub parse_time_chunk($) {
my ($data) = @_;
my ($year, $mon, $mday, $hour, $min, $sec) = unpack('nCCCCC', $data);
- return timegm($sec, $min, $hour, $mday, $mon, $year);
+ return timegm($sec, $min, $hour, $mday, $mon - 1, $year);
}
sub text_chunk($$) {
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/commit/4c3d64b6db5cf647dc5aa275e4c105c98e1effd7
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/-/commit/4c3d64b6db5cf647dc5aa275e4c105c98e1effd7
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200526/eea4765f/attachment.htm>
More information about the rb-commits
mailing list