Skip to content
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

MP3: Reduce IDv3 scan buffer array copying and limit reading to up to 3 IDv3 blocks #120

Merged
merged 1 commit into from
May 22, 2024

Conversation

devoxin
Copy link
Member

@devoxin devoxin commented May 22, 2024

Reduces array copying whilst scanning for IDv3 blocks within an MP3 frame, instead reading directly to a temporary buffer and then copying the result once into a tag header buffer.

Also restricts reading to up to 3 IDv3 blocks before considering a file as possibly invalid. Ideally, MP3 files should only contain a single IDv3 block anyway.

@devoxin devoxin merged commit a82893b into main May 22, 2024
1 check passed
@devoxin devoxin deleted the limit-idv3-block-reading branch May 22, 2024 19:10
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