Skip to content

Bound query input sizes - #3334

Merged
Widthdom merged 5 commits into
mainfrom
fix-issue3231-3100-3081
Jun 6, 2026
Merged

Bound query input sizes#3334
Widthdom merged 5 commits into
mainfrom
fix-issue3231-3100-3081

Conversation

@Widthdom

@Widthdom Widthdom commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add per-decoded-argument length validation for cdidx batch.
  • Enforce the shared query length limit for cdidx find and find --count.
  • Bound literal-safe search queries in DbReader before FTS5 sanitization and return CLI/MCP usage errors for oversized generated input.

Validation

  • dotnet build
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~RunBatch_Argument|FullyQualifiedName~RunFind_QueryTooLongReturnsUsageError_Issue3100|FullyQualifiedName~Issue3081"
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • cdidx status --check --json
  • Codex adversarial review of origin/main..HEAD: No blocking/actionable issues found.

Fixes #3231
Fixes #3100
Fixes #3081

@Widthdom
Widthdom merged commit fa43655 into main Jun 6, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue3231-3100-3081 branch June 6, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant