ReviewOS

zig-utils/zig-injection

[INJECT-05] Expose the idiomatic Zig SQLi API

#6
Open chris opened this 8 days ago ·
8 days ago

Objective

Expose one-shot detection, reusable parser state, token iteration, fingerprints, custom tables, explicit errors, and caller-provided buffers without hidden allocation.

Deliverables

  • Implement the complete scoped behavior without Git submodules.
  • Keep public APIs explicit about ownership, resource limits, and errors.
  • Add focused unit, integration, compatibility, fuzz, and benchmark coverage as applicable.
  • Update documentation and machine-readable compatibility status.

Acceptance criteria

  • The scoped implementation and tests are merged on main.
  • Zig formatting, focused tests, and the repository CI suite pass.
  • No unexplained compatibility skips, silent fallbacks, leaks, or unbounded hostile-input paths remain.
  • Benchmarks or security evidence is attached when this affects a hot or untrusted path.

Relationships

Blocked by

Blocks

Baselines

  • Zig 0.17-dev resolved and locked through Pantry.
  • ModSecurity 3.0.16, Coraza 3.7.0, CRS 4.28.0, and libinjection 4.0.0 where applicable.
8 days ago

Initial native API slice: 239232e exposes reusable caller-owned state, allocation-free detection, explicit confidence/reason/truncation, fingerprints, and leading-quote context handling. CI passed: https://github.com/zig-utils/zig-injection/actions/runs/29892895301. The issue remains open until full compatibility semantics are proven.

Sign in to comment on this issue.