mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 11:49:28 +00:00
9 lines
296 B
C
9 lines
296 B
C
#include <stdio.h>
|
|
#include <sqlite3.h>
|
|
|
|
void search(sqlite3 *db, char *term) {
|
|
char query[512];
|
|
snprintf(query, sizeof(query), "SELECT * FROM items WHERE title LIKE '%%%s%%'", term);
|
|
sqlite3_exec(db, query, 0, 0, 0); /* CWE-89 split-sink: query built on prior line (regex blind spot) */
|
|
}
|