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] Fixed HS tbbpd flags check #1417

Merged
merged 2 commits into from
Aug 4, 2020

Conversation

maxsharabayko
Copy link
Collaborator

The comparison was always false because of len >= 8 due to the check above: if (len < SRT_CMD_HSREQ_MINSZ).
So it should actually be (3 + 1) times uint32.

@maxsharabayko maxsharabayko added Type: Bug Indicates an unexpected problem or unintended behavior [core] Area: Changes in SRT library core labels Jul 27, 2020
@maxsharabayko maxsharabayko modified the milestones: v1.5.0, v1.5.0 - Sprint 20 Jul 27, 2020
@maxsharabayko maxsharabayko marked this pull request as ready for review July 30, 2020 09:17
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Jul 30, 2020

This pull request fixes 1 alert when merging 9a2da03 into d2f0e8a - view on LGTM.com

fixed alerts:

  • 1 for Comparison result is always the same

srtcore/core.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@ethouris ethouris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider the one above.

@maxsharabayko maxsharabayko self-assigned this Jul 31, 2020
@maxsharabayko
Copy link
Collaborator Author

@ethouris Updated the PR using SRT_HS_E_SIZE and static_assert.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Aug 4, 2020

This pull request fixes 1 alert when merging 23c72d7 into 152cff9 - view on LGTM.com

fixed alerts:

  • 1 for Comparison result is always the same

@maxsharabayko maxsharabayko merged commit 088962b into Haivision:master Aug 4, 2020
@maxsharabayko maxsharabayko deleted the hotfix/hs-len-check branch August 4, 2020 16:35
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 20, v1.4.2 Oct 14, 2020
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: Bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants