MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / text_valid_path

Function text_valid_path

src/cli/config_text_edit.c:246–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246static 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
254static int text_valid_marker(const char *marker, size_t *len_out) {
255 size_t len = 0U;

Calls 2

text_bounded_strlenFunction · 0.85
text_validate_bytesFunction · 0.85

Tested by

no test coverage detected