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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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