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

ID3FrameStringContentParser crash fix #100

Merged
merged 4 commits into from Apr 19, 2023
Merged

Conversation

Scytalion
Copy link
Contributor

Fixes ID3FrameStringContentParser crash with invalid range

Description

Added a guard before data is accessed.

Motivation and Context

Some of my mp3 files are running into this crash.

How Has This Been Tested?

Added a unit test.

Types of changes

  • Bug fix πŸ› (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project 🍻.
  • I have read the CONTRIBUTING document πŸ‘₯.
  • I have added tests to cover my changes πŸŽ‰.
  • All new and existing tests passed βœ….

@chicio
Copy link
Owner

chicio commented Apr 14, 2023

Hi @Scytalion and thank you so much for the contribution πŸ™. I will review the PR in the next days and I will merge it if I don't have any comments.
Also, I will add you to the contributors section πŸš€πŸš€

@chicio
Copy link
Owner

chicio commented Apr 14, 2023

Ps please @Scytalion support my work by starring ⭐️ this repo ⭐️ (if you still didn't do it)

@chicio
Copy link
Owner

chicio commented Apr 18, 2023

Seems good to me. I will merge and release a new version by the end of the week. Thank you so much again for the contribution πŸ™

@chicio
Copy link
Owner

chicio commented Apr 18, 2023

ps there are some linting problem. If you have time fix them (or i will fix before/after merge)

@Scytalion
Copy link
Contributor Author

Yes of course, no problem. I had no SwiftLint installed, until now :-). I moved the SwiftLint build phase into an extra script and added a fix for apple silicon SwiftLint brew installs.

@chicio chicio merged commit b775b16 into chicio:main Apr 19, 2023
7 checks passed
@chicio
Copy link
Owner

chicio commented Apr 19, 2023

Version 4.6.0 released on cocoapods and for SPM πŸš€

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.

None yet

2 participants