Skip to content

Commit

Permalink
swift-api-resolver: Fix handling of indirect type entries
Browse files Browse the repository at this point in the history
Turns out entries in __swift5_types may be indirect.
  • Loading branch information
oleavr committed May 10, 2024
1 parent af363b8 commit ee86e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gum/gumswiftapiresolver.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ gum_module_metadata_collect_section (const GumSectionDetails * details,
const GumTypeContextDescriptor * type;
guint32 descriptor_flags;

type = gum_resolve_relative_direct_ptr (&types[i]);
type = gum_resolve_relative_indirectable_ptr (&types[i]);
descriptor_flags = type->context.flags;

switch (GUM_DESCRIPTOR_FLAGS_KIND (descriptor_flags))
Expand Down

0 comments on commit ee86e66

Please sign in to comment.