Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(c_lsp): remove the whole-function ASan suppression; assert the resolution it hid
Martin Vogel679871aedbd3
diff --git a/internal/cbm/lsp/c_lsp.c b/internal/cbm/lsp/c_lsp.cindex a680d56d2..5437e3e99 100644--- a/internal/cbm/lsp/c_lsp.c+++ b/internal/cbm/lsp/c_lsp.c@@ -5402,7 +5402,7 @@ static void c_process_class(CLSPContext *ctx, TSNode class_node) {// Process file: top-level walk// ============================================================================-__attribute__((no_sanitize("address"))) void c_lsp_process_file(CLSPContext *ctx, TSNode root) {+void c_lsp_process_file(CLSPContext *ctx, TSNode root) {if (ts_node_is_null(root))return;diff --git a/tests/test_c_lsp.c b/tests/test_c_lsp.cindex f05cb5962..d821ad30b 100644--- a/tests/test_c_lsp.c+++ b/tests/test_c_lsp.c@@ -7795,11 +7795,13 @@ TEST(clsp_fix2_struct_field_access_pair_second) {"}\n""");ASSERT_NOT_NULL(r);- /* KNOWN ISSUE: template field type resolution fails under ASan due to- * a stack-pointer-to-registry leak bug in c_lsp.c. The Go test passes- * because CGo doesn't run ASan/UBSan. See c_lsp_process_file's- * no_sanitize("address") attribute. Tracked as a pre-existing C LSP bug. */- (void)find_resolved(r, "test", "bar");+ /* Formerly a KNOWN ISSUE: template field type resolution failed under+ * ASan due to a stack-pointer-to-registry lifetime bug, hidden by a+ * whole-function no_sanitize("address") on c_lsp_process_file and a+ * discarded assertion here. The suppression is removed and the branch's+ * C LSP registry rework resolved the lifetime; this now asserts the+ * resolution it always meant to. */+ ASSERT_GTE(find_resolved(r, "test", "bar"), 0);cbm_free_result(r);PASS();}