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

[API] Deprecated srt_rejectreason_msg[]. #2312

Merged

Conversation

maxsharabayko
Copy link
Collaborator

The array srt_rejectreason_msg is present in the SRT API (added in v1.3.4 in PR #720).
It is quite unsafe because someone may access it out of bounds by mistake.
The API function srt_rejectreason_str() should be used instead.

The array srt_rejectreason_msg is marked as deprecated. and to be removed in a further major release (v1.6.0?).

Fixes #2285

@maxsharabayko maxsharabayko added Type: Maintenance Work required to maintain or clean up the code [API] Area: Changes in SRT library API labels Apr 25, 2022
@maxsharabayko maxsharabayko added this to the v1.4.5 milestone Apr 25, 2022
@maxsharabayko maxsharabayko merged commit 1c6e1ce into Haivision:master Apr 29, 2022
@maxsharabayko maxsharabayko deleted the hotfix/deprecate-rejectreason-msg branch April 29, 2022 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[API] Area: Changes in SRT library API Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API] Deprecate srt_rejectreason_msg array
1 participant