Implement input validation for string length and index capacity in similarity_search_addon.cc and similarity_search.c; enhance memory management in search_index function.

This commit is contained in:
seb
2025-04-18 08:57:35 +02:00
parent de950fa11c
commit da5e7476a0
3 changed files with 74 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ extern "C" {
typedef struct {
char **strings;
int num_strings;
int capacity;
} SearchIndex;
// Structure to hold a search result