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

Function cv_array

src/mcp/test_impact_coverage.c:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static void *cv_array(cbm_coverage_map_t *map, int count, size_t size) {
61 if (count <= 0 || (size_t)count > SIZE_MAX / size) {
62 return NULL;
63 }
64 return cbm_arena_calloc(&map->arena, (size_t)count * size);
65}
66
67/* Records were counted before copying. Keep empty TSV fields and trim only a
68 * record-ending CR, as emitted by the Python builder on Windows. */

Callers 2

cv_idsFunction · 0.85
cbm_coverage_map_parseFunction · 0.85

Calls 1

cbm_arena_callocFunction · 0.85

Tested by

no test coverage detected