Skip to content

src/drivers/ios/index.ts contains a raw NUL byte, so grep and ripgrep treat it as binary #141

Description

@V3RON

Line 594 of src/drivers/ios/index.ts writes the download-lock key as args.join("<NUL>") with a literal NUL byte in the string literal instead of the \0 escape.

Because of that one byte, search tools classify the whole file as binary:

$ rg -n "advisor" src/drivers/ios/index.ts
binary file matches (found "\0" byte around offset 27650)

$ grep -n "advisories" src/drivers/ios/index.ts
(no output)

The whole 2011-line iOS driver is invisible to a normal grep/rg search. Writing "\0" as an escape fixes it with no behaviour change.

Found while triaging #79.

Written by an agent.

Activity

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

Metadata

Metadata

Assignees

Labels

bug:readyAn agent may fix it.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions