Skip to content

Protect pony-lint against oversize configuration files#5138

Merged
SeanTAllen merged 1 commit intomainfrom
config-file-size-bound
Apr 5, 2026
Merged

Protect pony-lint against oversize configuration files#5138
SeanTAllen merged 1 commit intomainfrom
config-file-size-bound

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

Rejects .pony-lint.json files larger than 64 KB before reading them into memory. With hierarchical config, each directory can have its own config file — this prevents unexpected memory consumption from oversized files. Files over the limit produce a lint/config-error diagnostic.

Also filed #5137 for the same pattern in IgnoreMatcher._load_file.

Closes #5133

@SeanTAllen SeanTAllen added the changelog - added Automatically add "Added" CHANGELOG entry on merge label Apr 5, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Apr 5, 2026
@SeanTAllen SeanTAllen force-pushed the config-file-size-bound branch from 762f817 to 10618d3 Compare April 5, 2026 20:46
@SeanTAllen SeanTAllen merged commit 92a485f into main Apr 5, 2026
12 checks passed
@SeanTAllen SeanTAllen deleted the config-file-size-bound branch April 5, 2026 21:13
github-actions bot pushed a commit that referenced this pull request Apr 5, 2026
github-actions bot pushed a commit that referenced this pull request Apr 5, 2026
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - added Automatically add "Added" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Protect pony-lint against oversize configuration files

2 participants