Skip to content

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

Merged
devoxin merged 1 commit intomainfrom
limit-idv3-block-reading
May 22, 2024
Merged

MP3: Reduce IDv3 scan buffer array copying and limit reading to up to 3 IDv3 blocks#120
devoxin merged 1 commit intomainfrom
limit-idv3-block-reading

Conversation

@devoxin
Copy link
Copy Markdown
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
@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