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

Improvement: Avoid potential crashes and coding style #977

Merged
merged 4 commits into from
Feb 3, 2024

Conversation

wutschel
Copy link
Collaborator

Description

  • Add boundary checks in EPG channel ID and (movie / episode / TV Show) cast processing.
  • Use ternary operator in few places
  • Improve naming of ivar (list of cast members)
  • Remove stringWithFormat where not needed

Summary for release notes

Improvement: Avoid potential crashes and coding style

XBMC Remote/ShowInfoViewController.m Outdated Show resolved Hide resolved
This is in line with using long for database IDs and avoids potential crashes when using channelid in further method calls.
Add array boundary check when showing cast. Chose better variable name for the NSArray which holds the cast. Do not need to use stringWithFormat for role and can drop check for length.
@wutschel
Copy link
Collaborator Author

wutschel commented Feb 3, 2024

Changed as per discussion, squashed and rebased to master.

@kambala-decapitator kambala-decapitator merged commit 5ca8d61 into xbmc:master Feb 3, 2024
@wutschel wutschel deleted the rework_code branch February 3, 2024 12:25
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