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

Function cbm_atlas_calloc_array

src/ui/atlas.h:21–25  ·  view source on GitHub ↗

cbm_calloc takes bytes; retain calloc's array-overflow rejection. */

Source from the content-addressed store, hash-verified

19
20/* cbm_calloc takes bytes; retain calloc's array-overflow rejection. */
21static inline void *cbm_atlas_calloc_array(size_t count, size_t element_size) {
22 if (element_size && count > SIZE_MAX / element_size)
23 return NULL;
24 return cbm_calloc(CBM_MEM_CLASS_OTHER, count * element_size);
25}
26
27/* ── Modules tree (GET /api/tree) ─────────────────────────────────
28 * Aggregated children of one folder: sub-folders with file/symbol counts,

Callers 15

fl_walkFunction · 0.85
fl_rebuild_lockedFunction · 0.85
cbm_atlas_trace_jsonFunction · 0.85
cbm_atlas_impact_jsonFunction · 0.85
rg_file_internFunction · 0.85
rg_assign_regionsFunction · 0.85
rg_aggregate_edgesFunction · 0.85
rg_layoutFunction · 0.85
rg_rebuild_lockedFunction · 0.85
mx_churn_scanFunction · 0.85
ia_structuralFunction · 0.85

Calls 1

cbm_callocFunction · 0.85

Tested by

no test coverage detected