Official Git mirror of the SQLite source tree
This report summarizes scanner evidence for sqlite/sqlite, a C project with 10,871 GitHub stars. SynthScan examined 525,289 lines of code across 562 source files, recording 411 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 373 finding(s).
Are imports declared and package/API names verified? 14 finding(s).
Are wrappers, guards, and repeated structures necessary? 24 finding(s).
Which changes need focused human review? 411 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 411 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | magic.txt | 1 | # This file contains suggested magic(5) text for the unix file(1) | COMMENT |
| LOW | autosetup/jimsh0.c | 1 | /* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */ | COMMENT |
| LOW | autosetup/jimsh0.c | 21 | #define TCL_PLATFORM_OS "windows" | COMMENT |
| LOW | autosetup/jimsh0.c | 41 | #define S_IRWXO 0 | COMMENT |
| LOW | autosetup/jimsh0.c | 61 | #define HAVE_LINK | COMMENT |
| LOW | autosetup/jimsh0.c | 101 | #define jim_wide _int64 | COMMENT |
| LOW | autosetup/jimsh0.c | 161 | #include <ctype.h> | COMMENT |
| LOW | autosetup/jimsh0.c | 181 | COMMENT | |
| LOW | autosetup/jimsh0.c | 201 | COMMENT | |
| LOW | autosetup/jimsh0.c | 221 | # define JIM_WIDE_MODIFIER "lld" | COMMENT |
| LOW | autosetup/jimsh0.c | 241 | #define JIM_SIGNAL 5 | COMMENT |
| LOW | autosetup/jimsh0.c | 261 | #define JIM_SUBST_NOVAR 1 | COMMENT |
| LOW | autosetup/jimsh0.c | 1221 | #define Jim_TaintObj(o,t) (o)->taint |= (t) | COMMENT |
| LOW | autosetup/jimsh0.c | 1441 | #define Jim_Lseek _lseeki64 | COMMENT |
| LOW | autosetup/jimsh0.c | 1461 | #define Jim_Stat stat | COMMENT |
| LOW | autosetup/jimsh0.c | 1481 | #define Jim_Errno() errno | COMMENT |
| LOW | autosetup/jimsh0.c | 2281 | " }\n" | COMMENT |
| LOW | autosetup/jimsh0.c | 2301 | #include <pty.h> | COMMENT |
| LOW | autosetup/jimsh0.c | 2321 | #include <openssl/err.h> | COMMENT |
| LOW | autosetup/jimsh0.c | 2341 | enum wbuftype { | COMMENT |
| LOW | autosetup/jimsh0.c | 4601 | Jim_PackageProvideCheck(interp, "regexp"); | COMMENT |
| LOW | autosetup/jimsh0.c | 4621 | #define F_OK 0 | COMMENT |
| LOW | autosetup/jimsh0.c | 7441 | Jim_arrayInit(interp); | COMMENT |
| LOW | autosetup/jimsh0.c | 7461 | COMMENT | |
| LOW | autosetup/jimsh0.c | 7481 | #define TCL_LIBRARY "." | COMMENT |
| LOW | autosetup/jimsh0.c | 7501 | #define JIM_DEBUG_PANIC | COMMENT |
| LOW | autosetup/jimsh0.c | 8481 | COMMENT | |
| LOW | autosetup/jimsh0.c | 23101 | COMMENT | |
| LOW | autosetup/jimsh0.c | 23121 | #define BRANCH 6 | COMMENT |
| LOW | autosetup/jimsh0.c | 23141 | #define CLOSE 2001 | COMMENT |
| LOW | autosetup/jimsh0.c | 25001 | #include <stdio.h> | COMMENT |
| LOW | test/fuzzcheck.c | 81 | #include <stdio.h> | COMMENT |
| LOW | test/if.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/fkey08.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/modeA.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/kvtest.c | 121 | #include "sqlite3.h" | COMMENT |
| LOW | test/fkey09.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/fkey09.sql | 21 | # | COMMENT |
| LOW | test/sha1.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/output-redirect-test.txt | 1 | # This script is used to test certain output redirection commands | COMMENT |
| LOW | test/safemode.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/imposter1.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/import01.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/clierrors.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/speedtest1.c | 81 | #include "sqlite3.h" | COMMENT |
| LOW | test/dotcmd01.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/complete_sql.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/dump.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/threadtest3.c | 41 | #define opendb(w,x,y,z) (SEL(w), opendb_x(w,x,y,z)) | COMMENT |
| LOW | test/threadtest3.c | 81 | COMMENT | |
| LOW | test/wordcount.c | 61 | ** gcc -I. -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ | COMMENT |
| LOW | test/shell-prompt.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/fptest01.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/fptest01.sql | 21 | # boxes and so forth. But it possible to find a machine for which | COMMENT |
| LOW | test/regexp1.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/intck01.sql | 1 | #!sqlite3 | COMMENT |
| LOW | test/dbfuzz.c | 21 | ** the fuzzed database. | COMMENT |
| LOW | test/json/json-speed-check.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ext/misc/fileio.c | 81 | #include <assert.h> | COMMENT |
| LOW | ext/misc/windirent.h | 21 | */ | COMMENT |
| 310 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 462 | new org.sqlite.jni.capi.OutputPointer.Int64(); | CODE |
| CRITICAL | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 464 | new org.sqlite.jni.capi.OutputPointer.Int64(); | CODE |
| CRITICAL | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 480 | new org.sqlite.jni.capi.OutputPointer.Int32(); | CODE |
| CRITICAL | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 482 | new org.sqlite.jni.capi.OutputPointer.Int32(); | CODE |
| CRITICAL | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 695 | new org.sqlite.jni.capi.OutputPointer.sqlite3_stmt(); | CODE |
| CRITICAL | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 697 | new org.sqlite.jni.capi.OutputPointer.Int32(); | CODE |
| CRITICAL | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 809 | new org.sqlite.jni.capi.OutputPointer.Int32(); | CODE |
| CRITICAL⚡ | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 910 | = new org.sqlite.jni.capi.OutputPointer.String(); | CODE |
| CRITICAL⚡ | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 912 | = new org.sqlite.jni.capi.OutputPointer.String(); | CODE |
| CRITICAL⚡ | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 914 | = new org.sqlite.jni.capi.OutputPointer.Bool(); | CODE |
| CRITICAL⚡ | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 916 | = new org.sqlite.jni.capi.OutputPointer.Bool(); | CODE |
| CRITICAL⚡ | ext/jni/src/org/sqlite/jni/wrapper1/Sqlite.java | 918 | = new org.sqlite.jni.capi.OutputPointer.Bool(); | CODE |
| CRITICAL | ext/jni/src/org/sqlite/jni/capi/SQLTester.java | 459 | sb.append(org.sqlite.jni.capi.ResultCode.getEntryForInt(rc)).append(' '); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/fkey08.sql | 26 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey08.sql | 91 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey08.sql | 192 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey08.sql | 297 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey08.sql | 338 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey08.sql | 378 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 45 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 103 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 160 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 216 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 272 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 329 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 385 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 442 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 508 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 571 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 628 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/fkey09.sql | 685 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | ext/fts3/unicode/CaseFolding.txt | 30 | # ================================================================================ | COMMENT |
| MEDIUM | ext/fts3/unicode/CaseFolding.txt | 32 | # ================================================================================ | COMMENT |
| MEDIUM | ext/fts3/unicode/CaseFolding.txt | 54 | # ================================================================= | COMMENT |
| MEDIUM | ext/fts3/unicode/CaseFolding.txt | 63 | # ================================================================= | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | ext/jni/README.md | 71 | System.out.print("Error opening db: "+sqlite3_errmsg(db)); | CODE |
| MEDIUM | ext/jni/README.md | 73 | System.out.print("Error opening db: rc="+rc); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ext/misc/tryeval.c | 36 | ** The purpose of this function is to help evaluate recursive | CODE |
| LOW | ext/wasm/libcmpp.c | 4101 | The purpose of this function is a memory reuse optimization. Most | CODE |
| LOW | ext/wasm/api/sqlite3-vfs-opfs-sahpool.c-pp.js | 199 | the same filename and we need to check if any of them have | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ext/vec1/tool/vec1bench_vibe2db.py | 4 | CODE |