Skip to content

Possible issue with symlink cycles in sdist creation #870

Description

@dnicolodi

Symlink cycles hang sdist(). The while member.issym(): resolution loop never terminates if the archive contains a symlink cycle (a -> b, b -> a). Malformed input, but a bounded loop or visited-set would turn a hang into a warning like the other symlink cases.

Originally reported in #861.

Hitting this in real projects is extremely unlikely. I am not even sure whether git archive allows to create such symlink cycles. Anyhow, just to be on the safe side we should add protection for this, but given the impact it is very low priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions