Skip to content

index symbol-kind filters should cap CSV length and entry count #2906

Description

@Widthdom

Summary

CDIDX_INDEX_INCLUDE_SYMBOL_KINDS, CDIDX_INDEX_EXCLUDE_SYMBOL_KINDS, and repeated symbol-kind filter flags accumulate comma-separated values without a pre-split length or entry-count cap.

Evidence

IndexCommandRunner.Parse.cs calls AddSymbolKindFilterValues, which loops over value.Split(,, StringSplitOptions.TrimEntries) and appends every raw value to the include/exclude lists before normal validation.

Impact

A large environment/config value or CLI value can cause avoidable allocation and parse work even though symbol kinds are a small known set.

Expected

Apply a documented maximum CSV length and entry count before splitting, and reject overlarge filters with a clear parse error.

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