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.
pull/5310/head^2
Rene Cannao 4 months ago
parent 18cc246209
commit 5dd5dbe6b7

@ -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);

Loading…
Cancel
Save