Comment out bogus code.

Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38189
main
Kevin Backhouse 4 years ago
parent 4f126806e8
commit 4d55cb6692
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

@ -1961,7 +1961,10 @@ XMPUtils::SetTimeZone ( XMP_DateTime * xmpTime )
ansi_localtime ( &now, &tmLocal ); ansi_localtime ( &now, &tmLocal );
} else { } else {
tmLocal.tm_year = xmpTime->year - 1900; tmLocal.tm_year = xmpTime->year - 1900;
#if 0
// Removed to fix https://github.com/Exiv2/exiv2/issues/1901
while ( tmLocal.tm_year < 70 ) tmLocal.tm_year += 4; // ! Some versions of mktime barf on years before 1970. while ( tmLocal.tm_year < 70 ) tmLocal.tm_year += 4; // ! Some versions of mktime barf on years before 1970.
#endif
tmLocal.tm_mon = xmpTime->month - 1; tmLocal.tm_mon = xmpTime->month - 1;
tmLocal.tm_mday = xmpTime->day; tmLocal.tm_mday = xmpTime->day;
} }

Loading…
Cancel
Save