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

Function validate_search_args

src/mcp/mcp.c:5070–5078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5068}
5069
5070static bool validate_search_args(const char *root_path, const char *file_pattern) {
5071 if (!validate_search_path_arg(root_path)) {
5072 return false;
5073 }
5074 if (file_pattern && !validate_search_path_arg(file_pattern)) {
5075 return false;
5076 }
5077 return true;
5078}
5079
5080/* Write pattern to a temp file for grep -f. Returns true on success. */
5081static bool write_pattern_file(char *tmpfile, int tmpfile_sz, const char *pattern) {

Callers 1

handle_search_codeFunction · 0.85

Calls 1

validate_search_path_argFunction · 0.85

Tested by

no test coverage detected