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

Function text_valid_path

src/cli/config_text_edit.c:245–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Calls 2

text_bounded_strlenFunction · 0.85
text_validate_bytesFunction · 0.85

Tested by

no test coverage detected