Skip to content

count_recursive can hang in a "git bomb" repo, even with a limit #995

@jorendorff

Description

@jorendorff

count_recursive with a limit argument will hang if you run it in a "git bomb" repo that contains quadrillions of directories and not enough files to reach the limit.

This means the method can't really be used to enforce limits in code that runs on untrusted repos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions