Skip to content

[ObjC] Tens of thousands of lines of log spew related to undo when opening Objective-C binary #6901

Open
@bdash

Description

@bdash

Version and Platform (required):

  • Binary Ninja Version: 5.1.7529-dev (0853e7bf)
  • OS: macOS 15.5
  • CPU Architecture: arm64

Bug Description:
When opening /usr/libexec/syspolicyd (or any other binary containing Objective-C code), there's a massive volume of log spew of the form:

[Undo warn] Refusing to add undo action "Defined variable type in function -[StagedSample setType:]" for unfinalized view of type "Mach-O"
[Undo warn] Refusing to add undo action "Set function type for -[StagedSample setType:]" for unfinalized view of type "Mach-O"
[Undo warn] Refusing to add undo action "Defined variable self in function -[StagedSample initWithUrl:uuid:type:]" for unfinalized view of type "Mach-O"
[Undo warn] Refusing to add undo action "Defined variable sel in function -[StagedSample initWithUrl:uuid:type:]" for unfinalized view of type "Mach-O"
[Undo warn] Refusing to add undo action "Defined variable url in function -[StagedSample initWithUrl:uuid:type:]" for unfinalized view of type "Mach-O"
[Undo warn] Refusing to add undo action "Defined variable uuid in function -[StagedSample initWithUrl:uuid:type:]" for unfinalized view of type "Mach-O"
[Undo warn] Refusing to add undo action "Defined variable type in function -[StagedSample initWithUrl:uuid:type:]" for unfinalized view of type "Mach-O"
[Undo warn] Refusing to add undo action "Set function type for -[StagedSample initWithUrl:uuid:type:]" for unfinalized view of type "Mach-O"

For syspolicyd there's around 10,000 of these warnings generated. For tccd there 17,000.

Surely it'd be sufficient to log this once per view?

Steps To Reproduce:

  1. Load literally any Mach-O binary containing Objective-C code.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions