Skip to content

collectFiles follows symlinks with no cycle detection #10

Description

@royalpinto007

Problem

collectFiles follows symlinks with no visited-set: a symlink to an ancestor recurses forever, a symlink to /etc pulls outside files into the scan.

Where

src/scan.js (statSync follows symlinks, walk recurses with no cycle detection).

Acceptance

Add a failing test first with a cyclic-symlink fixture asserting collectFiles terminates and stays within the target. Then fix.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions