Skip to content

Enforce SVN fingerprint byte cap during reads #1123

Description

@lzl51230

Related to #1113.

SVN fingerprinting checks the file size before opening, but then reads until EOF. A file that grows concurrently can exceed the configured fingerprint byte cap and consume unbounded watcher-cycle time and I/O.

Track cumulative bytes while reading, stop at the existing cap, and validate size from the opened handle where possible. Add coverage for a file that grows after the initial metadata check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor/integrationEditor compatibility and CLI integrationenhancementNew feature or requestpriority/normalStandard review queue; useful PR with ordinary maintainer urgency.stability/performanceServer crashes, OOM, hangs, high CPU/memorytaskUmbrella task grouping multiple related issuesux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions