Skip to content

Patch: fix missing block type encoding and respondsTo panic - #287

Open
Juoper wants to merge 2 commits into
progrium:mainfrom
Juoper:main
Open

Patch: fix missing block type encoding and respondsTo panic#287
Juoper wants to merge 2 commits into
progrium:mainfrom
Juoper:main

Conversation

@Juoper

@Juoper Juoper commented Feb 9, 2026

Copy link
Copy Markdown
  • type_encodings.go: add reflect.Func -> "@?" for ObjC block parameters
  • protocol.go: return true for optional methods without Has* function instead of panicking on zero reflect.Value

- type_encodings.go: add reflect.Func -> "@?" for ObjC block parameters
- protocol.go: return true for optional methods without Has* function
  instead of panicking on zero reflect.Value
the to_c_array function declares a local array result_Array struct but never initializes it. When the NSArray is empty (count == 0), the if (result_count > 0) block is skipped, so result_Array.data and result_Array.len contain random stack garbage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant