Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editorial: Avoid hitting assertion in GetUTCEpochNanoseconds
GetUTCEpochNanoseconds has an assertion that MakeDate, MakeTime, and MakeDay all result in a finite value. However, several places call GetUTCEpochNanoseconds with a year value that may be excessively large, notably from parsing an ISO string such as +999999-01-01, which would cause that assertion to be hit. Add checks in the appropriate places to make sure that the year value is not excessively large. Closes: #2729
- Loading branch information