Skip to content

MP4: Demote atom size mismatch error for free #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

Serial-ATA
Copy link
Owner

If a free atom claims to be larger than the remainder of the stream, parsing will simply stop. This will now only be a SizeMismatch error in Strict mode. Invalid padding is a common issue in all tag formats due to buggy software, so it's better to work around it by default rather than discard the entire stream as invalid.

@Serial-ATA Serial-ATA added this to the 0.22.4 milestone Apr 25, 2025
If a `free` atom claims to be larger than the remainder of the stream, parsing will simply stop. This will now only be a `SizeMismatch` error in `Strict` mode. Invalid padding is a common issue in all tag formats due to buggy software, so it's better to work around it by default rather than discard the entire stream as invalid.
@Serial-ATA Serial-ATA force-pushed the demote-free-size-mismatch branch from fa3ca66 to 8119f56 Compare April 25, 2025 03:31
@Serial-ATA Serial-ATA merged commit fa878b6 into main Apr 25, 2025
4 checks passed
@Serial-ATA Serial-ATA deleted the demote-free-size-mismatch branch April 25, 2025 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant