Skip to content

Single-file target bypasses the extension/shebang filter #11

Description

@royalpinto007

Problem

A single-file target bypasses the extension/shebang filter (out.push(target) for any file), so binaries get readFileSync(f, "utf8") decoded lossily and produce garbage findings.

Where

src/scan.js (collectFiles single-file branch).

Acceptance

Add a failing test first asserting scanning a binary fixture yields zero files (or a clean "not scannable" outcome). 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