-
Notifications
You must be signed in to change notification settings - Fork 2.1k
gnrc_tcp: check if option has valid length set #12368
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
Conversation
@brummer-simon please also have a look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good by me. This fixes the failing test "test_option_parsing_term" in #12369 right?
Its really hard to get Input validation correctly. Thanks for finding such issues.
@RIOT-OS/maintainers can someone proxy-ACK? |
I was just taking a look at this. Any justification for the build failure? I tried the failing test several times on my Ubuntu laptop, and the timeout was within the threshold value. |
It's not a build error. It's |
@kb2ma This time Murdock passed. The test that failed is unrelated to |
Perfect, thanks @miri64. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simple fix. Proxy-ACK for @brummer-simon.
Contribution description
While adding some regression tests for the issues @nmeum found to the new test application added in #11930, I sadly found that #12298 reintroduced parts of #12086. If the test provided with that issue is used, the infinite loop pointed out there is triggered in current master, since the test provides an option with its length field set to zero.
Testing procedure
Redo the test in #12086. On current master they show the exact same behavior, but not with this fix.
tests/gnrc_tcp
should still pass on both master and a different board (please test, I only have access to master right now!).Issues/PRs references
Fixes a regression introduced in #12298