Skip to content

Bound project config and workspace manifest JSON sizes #2844

Description

@Widthdom

Found during cdidx code-search audit. Evidence: src/CodeIndex/Cli/CdidxConfigFile.cs reads .cdidxrc.json with File.ReadAllText before normal command dispatch, and src/CodeIndex/Cli/WorkspaceManifest.cs does the same for workspace manifests. Impact: a very large local config or manifest can make otherwise simple commands allocate and parse unbounded input before reaching normal indexing file-size safeguards. Suggested fix: add explicit byte caps for these small JSON control files, stream or reject oversized files with actionable errors, and document the limits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions