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