Skip to content

fix(config): reject NUL bytes in Hopper loader arguments - #2474

Merged
morluto merged 1 commit into
morluto:mainfrom
rudycelekli:fix/hopper-loader-argv-nul
Oct 13, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
rudycelekli:fix/hopper-loader-argv-nul

Conversation

@rudycelekli

Copy link
Copy Markdown

HOPPER_LOADER_ARGS_JSON currently accepts a string containing a NUL byte even though Node rejects that argument before launching a child process. Validate this restriction at the configuration producer and return the existing typed configuration error with the setting name and a useful NUL explanation. Empty and whitespace arguments retain their existing behavior.

Validation: the new configuration regression fails on f254f5a. All 41 configuration tests and npm run check pass with Node 24.18.0/npm 11.16.0. An independent Node argv-validation oracle returns ERR_INVALID_ARG_VALUE before process launch. This configuration-only change was not tested against a real Hopper installation.

AI assistance: OpenAI Codex authored and reviewed the implementation, tests, analysis and description. Verification and review were automated; no human review is claimed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

@greptileai review

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5 Tier: plus

[Medium impact] This PR appears safe to merge; no actionable issues were found.

Summary

Rejects NUL characters in decoded HOPPER_LOADER_ARGS_JSON entries before configuration reaches Hopper.

  • Hopper loader arguments reject NUL bytes during configuration.

Reviews (1) · Last reviewed commit: "fix(config): reject NUL bytes in Hopper ..." · Reviewed by Greptile

@morluto
morluto merged commit a07ceae into morluto:main Oct 13, 2026
37 checks passed
@morluto morluto mentioned this pull request Oct 13, 2026
3 tasks done
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration provider: hopper Analysis provider / engine: hopper labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants