Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39555
Remove bogus code.
This commit is contained in:
parent
d874f3d278
commit
4bc4757404
@ -174,8 +174,8 @@ XMP_VarString * sExtendedDigest = 0;
|
||||
static bool
|
||||
IsLeapYear ( long year )
|
||||
{
|
||||
|
||||
if ( year < 0 ) year = -year + 1; // Fold the negative years, assuming there is a year 0.
|
||||
// This code uses the Gregorian calendar algorithm:
|
||||
// https://en.wikipedia.org/wiki/Leap_year#Algorithm
|
||||
|
||||
if ( (year % 4) != 0 ) return false; // Not a multiple of 4.
|
||||
if ( (year % 100) != 0 ) return true; // A multiple of 4 but not a multiple of 100.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user