Skip to content

Conversation

phw
Copy link
Member

@phw phw commented Dec 2, 2024

Summary

  • This is a…
    • Bug fix
    • Feature addition
    • Refactoring
    • Minor / simple change (like a typo)
    • Other
  • Describe this change in 1-2 sentences:

Problem

Picard can crash when loading a release that contains a huge number as the date tag. This is caused by an OverflowError when parsing the date for metadata comparison.

Solution

Handle OverflowError from dateutil.parser.parse in picard.util.extract_year_from_date.

@phw phw requested a review from zas December 2, 2024 16:24
@phw phw added the Bug fix label Dec 2, 2024
Copy link
Collaborator

@zas zas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zas zas merged commit 442dd6a into metabrainz:master Dec 3, 2024
44 checks passed
@phw phw deleted the PICARD-3008-fix-date-parsing-overflow branch December 3, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants