Skip to content

App bundle executable filename whitespace is lost during plist decoding #765

Closed

Description

@rudycelekli

An ordinary macOS app bundle can declare a CFBundleExecutable with meaningful leading or trailing whitespace. Both XML and binary Info.plist forms preserve that value, as native plutil confirms.

Actual Clang-generated Mach-O programs named App exist under Contents/MacOS, but the public inspect-macho command currently reports app program file missing for both forms. Ordinary App controls succeed. BinaryTargetResolver trims the declared string in both decoding paths.

Preserve the XML string and use native plutil -n to suppress its producer newline while retaining the executable value. Existing name and containment checks should remain intact. This is file resolution; no target execution or deep provider claim.

Activity

  1. kaoru0822-kitauji commented on Oct 7, 2026

    @kaoru0822-kitauji
    Collaborator

    Fixed on main (#815), after 4.1.0. The XML path uses the decoded CFBundleExecutable string unchanged. The binary path uses plutil -extract CFBundleExecutable raw -n, so plutil's newline is suppressed and the value is never trimmed. The existing name-safety and containment checks are unchanged.

    Checked on current main: inspect-macho on an .app whose CFBundleExecutable is App resolves Contents/MacOS/ App (subject name App) for both xml1 and binary1 Info.plist forms. The App controls still resolve.

    This ships in the next release (release PR #771).

  2. added
    enhancement
    area: native
    on Oct 12, 2026
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

    area: nativeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions