Repository navigation
fix(native): preserve app bundle executable filename whitespace - #767
rudycelekli wants to merge 1 commit into
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
|
Reviewed: preserving CFBundleExecutable whitespace (drop .trim(), add plutil -n) is correct — XML string whitespace is data and -n suppresses only the tool-added newline. isSafeExecutableName already allows spaces/tabs, containment via realpath+isPathWithinRoot unchanged. XML + darwin-native binary-plist cases cover leading/trailing/both. APPROVE. Non-blocking robustness: consider .stdout.replace(/\r?\n$/, '') instead of bare .stdout to be safe across plutil versions. |
Review — APPROVEFixes #765. Summary
Verification
Suggestion (non-blocking)
|
|
I checked the terminal-newline suggestion with an actual native binary plist and an existing benign Clang executable whose filename is Applying |
|
Superseded by #815, which integrated this change and has now merged (3af3811). Thanks @rudycelekli for the fix and the thorough verification — much appreciated! |
Summary
Preserve the actual CFBundleExecutable value in XML and binary app plists. XML string whitespace is part of the declared filename. Native plutil
-nremoves its added raw-output newline while preserving the binary plist value. Existing executable-name and bundle containment checks remain intact.Native reproduction and verification
Signed DCO head
ef466bb5cde8c6d6c95196592de65ec0937592fcon current 4.1.0 release main9622b4b4cf0b2eb92305afd52fd67e932d57c753. Fresh authored-feedback and all-open file inventories have no actionable feedback or changed-file overlap for this patch; unrelated hosted cancellation is tracked in its owning lane.App; native plutil independently preserves that value.Appcontrols pass for both plist forms.npm run check: all 5 tasks pass, 125 existing warnings and zero errors; none concern the changed files.check:fast,build:cached, SSH signature verification, DCO and diff checks pass. All evidence rerun on the final release base with reused compatible pinned dependencies.No schema, setup or distribution change. This verifies native macOS file resolution and inspection; no Hopper, Ghidra, IDA, Windows, GUI or target execution claim. Hosted checks remain separate.
AI-assisted implementation and independent source review. Fixes #765.