| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | uri-parse: fix out-of-bounds read with malformed %-encoded content | Daniel Eklöf | 2026-05-22 | -1/+30 |
| | | | | | | | | | | | | | | | | | | | If the input URI ends with a trailing '%' (or a trailing '%N'), we read outside the provided buffer. On NULL terminated input, this happened to work out since we'd correctly detect an invalid %-sequence as soon as we read the NULL terminator. On input that is not NULL terminated, we're out of luck. This patch fixes this by also checking we have enough input left to even _try_ to read the %-digits. Also add unit tests for this particular case. Closes #2353 | |||
| * | uri-parse: add a bunch of unit tests | Daniel Eklöf | 2026-05-22 | -0/+147 |
| | | ||||
| * | uri: check 'scheme' is non-null before de-referencing it | Daniel Eklöf | 2026-05-11 | -1/+1 |
| | | ||||
| * | uri: skip query/fragment parsing when dealing with file:// URIs | Daniel Eklöf | 2024-10-23 | -0/+15 |
| | | | | | | | | Also, ignore invalid query/fragments (i.e. if the fragment comes before the query). Closes #1840 | |||
| * | util: add streq() function and use in place of strcmp(...) == 0 | Craig Barnes | 2024-02-05 | -3/+3 |
| | | ||||
| * | Tag a couple variables with UNUSED, to fix warnings with clang-15 | Daniel Eklöf | 2023-02-12 | -1/+1 |
| | | | | | Closes #1278 | |||
| * | uri: move hex2nibble() to util.h | Daniel Eklöf | 2022-01-13 | -23/+2 |
| | | ||||
| * | uri: hostname_is_localhost(): don’t crash if hostname == NULL | Daniel Eklöf | 2021-06-19 | -3/+4 |
| | | ||||
| * | uri: switch to conservative maximum hostname length | Jan Beich | 2021-01-21 | -1/+1 |
| | | | | | | | | | Current maximum is provided by sysconf(_SC_HOST_NAME_MAX) instead. uri.c:269:20: error: use of undeclared identifier 'HOST_NAME_MAX' char this_host[HOST_NAME_MAX]; ^ | |||
| * | Print stack trace on assert() failure or when calling fatal_error() | Craig Barnes | 2021-01-16 | -1/+1 |
| | | | | | | | Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use. | |||
| * | uri: rename nibbletohex() function to hex2nibble() | Craig Barnes | 2021-01-04 | -3/+3 |
| | | | | | It converts a hex digit to a nibble, not the other way around. | |||
| * | uri: use nibble2hex() instead of isxdigit(3) to check valid hex digits | Craig Barnes | 2021-01-04 | -4/+6 |
| | | ||||
| * | codespell: fix misspelled words | Daniel Eklöf | 2020-10-28 | -1/+1 |
| | | ||||
| * | uri: add uri_parse() - new function extracts components from an URI | Daniel Eklöf | 2020-10-28 | -0/+274 |
