Skip to content

Commit

Permalink
type graph -> fix edge case of last-incrementally-changed type's memb…
Browse files Browse the repository at this point in the history
…ers being considered out-of-bounds of member info
  • Loading branch information
ryanfleury committed Jan 14, 2024
1 parent a6a6eed commit d40c9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/type_graph/type_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ tg_type_from_graph_raddbg_key(Arena *arena, TG_Graph *graph, RADDBG_Parsed *rdbg
RADDBG_UDT *udt = &rdbg->udts[udt_idx];
members_count = udt->member_count;
members = push_array(arena, TG_Member, members_count);
if(0 <= udt->member_first && udt->member_first+udt->member_count < rdbg->member_count)
if(members_count != 0 && 0 <= udt->member_first && udt->member_first+udt->member_count <= rdbg->member_count)
{
for(U32 member_idx = udt->member_first;
member_idx < udt->member_first+udt->member_count;
Expand Down

0 comments on commit d40c9ed

Please sign in to comment.