-
Notifications
You must be signed in to change notification settings - Fork 2.1k
sys/uri_parser: check for uri_end instead of 0 #13789
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
sys/uri_parser: check for uri_end instead of 0 #13789
Conversation
c5f0b42
to
9b2f7bc
Compare
added a test that fails on master and works with the patch |
9b2f7bc
to
1bfc1fb
Compare
@miri64 addressed your comments and amended immediately. Looks much nicer with |
retriggered murdock because of a test timeout |
murdock agrees now |
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.
ACK! In addition to the tests running on the CI, I ran tests-uri_parse
alone on a samr21-xpro
. They pass.
Contribution description
Since we also allow the use of non-\0-terminated strings, we have to remove this check here. Otherwise, it returns-1
for those strings, although parsing was successful.The check was overcautious anyway.
I changed the diff now to check for
uri_end
instead of completely removing it.Testing procedure
unittests should still run
Issues/PRs references
none