Skip to content

fix: security hardening and bug fixes (1.0.9) - #36

Merged
marcobambini merged 2 commits into
mainfrom
release/1.0.9
Nov 2, 2026
Merged

marcobambini merged 2 commits into
mainfrom
release/1.0.9

Conversation

@marcobambini

Copy link
Copy Markdown
Member

Security hardening and bug fixes; bumps SQLITE_AI_VERSION to 1.0.9 and adds CHANGELOG.md.

  • Logger no longer holds a dangling pointer after a connection closes
  • llm_chat() cursor returns an SQL error if context/sampler/model/chat are freed mid-stream
  • Audio resampling bounded; type_k/type_v and whisper offset_ms/duration_ms validated
  • sqlite3_malloc64 at truncating allocation sites
  • llm_model_cls_label() callable with zero or one argument

Verified: 56/56 C tests with .load smoke test (Homebrew sqlite3 3.54.1), README/API.md examples including vision, LoRA and infill, and PoCs for each finding.

🤖 Generated with Claude Code

marcobambini and others added 2 commits November 2, 2026 06:27
- route llama logging through a registry of live connections (no dangling pointer)
- make the llm_chat cursor robust to context/sampler/model/chat being freed mid-stream
- bound audio resampling, validate type_k/type_v and whisper offset/duration
- use sqlite3_malloc64 where sizes could truncate to int
- llm_model_cls_label() accepts zero or one argument
- various chat, vision, embedding and utils fixes (see CHANGELOG.md)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Forcing n_ubatch = n_batch for every embedding context made a causal model with a
huge context_size allocate compute buffers for the whole context on backends without
flash attention, which failed llm_embed_nctx_exceeds_train on the Linux CPU runners.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@marcobambini
marcobambini merged commit e2e6e5d into main Nov 2, 2026
21 checks passed
@marcobambini
marcobambini deleted the release/1.0.9 branch November 2, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant