From 5dd5dbe6b75f9598abe4cc1d8df7ee40394f71f3 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Wed, 21 Jan 2026 23:53:35 +0000 Subject: [PATCH] fix: Add missing assert(proxy_sqlite3_bind_blob) in sqlite3db.cpp Add assert(proxy_sqlite3_bind_blob) to the assertion block in SQLite3DB::LoadPlugin to ensure the symbol is provided by plugins. Without this, if a plugin fails to provide the symbol, the code will crash at runtime with no safety check. proxy_sqlite3_bind_blob is actively used in Anomaly_Detector.cpp:765 to bind embeddings. Addresses coderabbitai review comment. --- lib/sqlite3db.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sqlite3db.cpp b/lib/sqlite3db.cpp index 538348945..aeb052e36 100644 --- a/lib/sqlite3db.cpp +++ b/lib/sqlite3db.cpp @@ -1205,6 +1205,7 @@ void SQLite3DB::LoadPlugin(const char *plugin_name) { assert(proxy_sqlite3_bind_int64); assert(proxy_sqlite3_bind_null); assert(proxy_sqlite3_bind_text); + assert(proxy_sqlite3_bind_blob); assert(proxy_sqlite3_column_name); assert(proxy_sqlite3_column_text); assert(proxy_sqlite3_column_bytes);