| 243 | } |
| 244 | |
| 245 | static int text_valid_path(const char *path) { |
| 246 | size_t len = 0U; |
| 247 | return path && path[0] != '\0' && |
| 248 | text_bounded_strlen(path, TEXT_MAX_PATH_BYTES, &len) == TEXT_OK && |
| 249 | text_validate_bytes(path, len, 0) == TEXT_OK && !strchr(path, '\n') && |
| 250 | !strchr(path, '\r'); |
| 251 | } |
| 252 | |
| 253 | static int text_valid_marker(const char *marker, size_t *len_out) { |
| 254 | size_t len = 0U; |
no test coverage detected