MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files
2024-03-26 14:54:22 +01:00
6cfafbde6c
sys/uri_parser: move dependency resolution in its own Makefile.dep
2023-06-15 10:24:57 +02:00
Teufelchen1
cc6327bf1b
sys/uri_parser: fixing potential out of bounds read when consuming ports
2022-12-05 15:41:33 +01:00
Teufelchen1
df8fe4476d
sys/uri_parser: Adding the port as uint16
2022-09-08 11:32:49 +02:00
1f08e2e2c8
sys/uri_parser: enforce maximum port length
2022-05-11 21:15:55 +02:00
Benjamin Valentin
b068d9245d
uri_parser: constify result
...
`uri_parser_process()` takes a `const char *` as input parameter but
the result is a struct of `char *` to the original string.
This may lead a user to modifying the strings in `uri_parser_result_t`
which will cause a crash if the original string resides in read-only
memory (and violates the no-modifications promise of the const parameter
in `uri_parser_process()`).
To fix this, make the resulting strings `const` as well, so nobody dares
to touch them in a writing way.
2021-08-04 14:01:28 +02:00
Martine Lenders
af03ba4aa8
uri_parser: provide function to split query
2021-08-04 12:47:28 +02:00
MrKevinWeiss
7512e1002a
sys/uri_parser: Add Kconfig support
2021-02-22 14:54:53 +01:00
Cenk Gündoğan
e399ef5d76
uri_parser: terminate, if nothing to consume after scheme
2021-02-05 13:32:49 +01:00
Cenk Gündoğan
6f13325a52
uri_parser: do not parse path if end-of-uri
2021-02-05 13:24:36 +01:00
Cenk Gündoğan
1040cf9862
uri_parser: allow empty host part even if userinfo and port exist
2021-02-05 13:24:36 +01:00
Cenk Gündoğan
f9b8fadd85
uri_parser: check boundaries if host is empty, but userinfo exists
2021-02-05 13:24:36 +01:00
Sören Tempel
333572e091
uri_parser: check if uri is long enough to even contain a ://
...
Before attempting to access these characters. This fixes an
out-of-bounds read on the provided URI buffer.
2021-02-04 20:08:26 +01:00
Cenk Gündoğan
9eb6a38a5a
uri_parser: parse interface in IPv6 addresses
2020-11-11 22:47:30 +01:00
Bas Stottelaar
1b35d06a51
sys/*: realign ENABLE_DEBUG
2020-10-23 11:27:48 +02:00
Bas Stottelaar
80d9da90df
sys/*: add missing include of assert.h
2020-10-22 11:13:09 +02:00
Cenk Gündoğan
abd399b934
Merge pull request #13804 from chrysn-pull-requests/uri-test-isabsolute
...
uri_parser: Fix and test non-relative recognition
2020-04-05 13:42:11 +02:00
chrysn
050af95666
uri_parser: Fix relative recognition
...
Relative refernces with colons in their names can not be told by their
first character alone.
2020-04-03 15:22:13 +02:00
Cenk Gündoğan
e3d9097974
sys/uri_parser: check for uri_end instead of 0
2020-04-02 10:04:12 +02:00
Cenk Gündoğan
abc1cb17ca
sys/uri_parser: initialize has_authority in _consume_scheme()
2020-04-01 12:32:40 +02:00
Cenk Gündoğan
b9012fb5d9
uri_parser: add minimal and non-destructive URI parser
2020-03-31 23:54:40 +02:00