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

[core] Removed the possibility to use optlen==-1 for null terminated strings in srt_setsockopt #2849

Merged
merged 5 commits into from
Jan 25, 2024

Conversation

yomnes0
Copy link
Collaborator

@yomnes0 yomnes0 commented Jan 9, 2024

Added a check in srt_setsockopt so that it returns SRT_EINVPARAM when optlen is -1 (see #2845)
Added an unit test to verify this behaviour

@yomnes0 yomnes0 marked this pull request as ready for review January 11, 2024 17:42
@maxsharabayko maxsharabayko added Type: Maintenance Work required to maintain or clean up the code [core] Area: Changes in SRT library core labels Jan 12, 2024
test/test_socket_options.cpp Outdated Show resolved Hide resolved
test/test_socket_options.cpp Show resolved Hide resolved
test/test_socket_options.cpp Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (88c6214) 67.04% compared to head (36c41a2) 67.34%.
Report is 9 commits behind head on master.

Files Patch % Lines
srtcore/socketconfig.cpp 0.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2849      +/-   ##
==========================================
+ Coverage   67.04%   67.34%   +0.29%     
==========================================
  Files         102      103       +1     
  Lines       20368    20459      +91     
==========================================
+ Hits        13656    13778     +122     
+ Misses       6712     6681      -31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maxsharabayko maxsharabayko merged commit 3dba3f4 into Haivision:master Jan 25, 2024
10 checks passed
@yomnes0 yomnes0 deleted the optlen branch March 7, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[core] Area: Changes in SRT library core Type: Maintenance Work required to maintain or clean up the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants