1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/uri_parser
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
..
Kconfig sys/uri_parser: Add Kconfig support 2021-02-22 14:54:53 +01:00
Makefile uri_parser: add minimal and non-destructive URI parser 2020-03-31 23:54:40 +02:00
uri_parser.c uri_parser: constify result 2021-08-04 14:01:28 +02:00