Skip to content

Bound and time-limit workspace pattern regex extractors #2864

Description

@Widthdom

Problem

src/CodeIndex/Indexer/Extensibility/ExtractorPluginRegistry.cs loads workspace pattern configs from .cdidx/patterns, and ConfiguredSymbolExtractor applies the configured regexes to source lines without an explicit timeout or pattern-count budget.

Impact

An untrusted or accidentally expensive regex can make indexing hang or consume excessive CPU across many files.

Expected

Bound pattern config size and count, compile regexes with a timeout or non-backtracking mode where possible, and surface rejected patterns clearly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsecurity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions