Skip to content

Commit

Permalink
Fix loading of user-defined point-based boxes, segments and rays
Browse files Browse the repository at this point in the history
  • Loading branch information
awulkiew committed Aug 17, 2024
1 parent 0b9e846 commit 2083961
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions solution/GraphicalDebugging/ExpressionLoader_UserDefined.cs
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,12 @@ public UserValueMember(Debugger debugger,

string name = expr.GetString(parentName);
type = debugger.GetValueType(name);
if (Debugger.IsInvalidType(type)
|| !debugger.GetTypeSizeof(type, out sizeOf)
|| !debugger.GetAddressOffset(parentName, name, out offset)
// offset + size > sizeOf
|| Debugger.IsInvalidOffset(parentSizeOf, offset))
return;

IsValid = true;
IsValid = !Debugger.IsInvalidType(type)
&& debugger.GetTypeSizeof(type, out sizeOf)
&& debugger.GetAddressOffset(parentName, name, out offset)
// offset + size > sizeOf
&& !Debugger.IsInvalidOffset(parentSizeOf, offset);
}

public UserValue Load(MemoryReader mreader, Debugger debugger,
Expand Down Expand Up @@ -393,7 +391,7 @@ public UserPointMember(Loaders loaders, Debugger debugger,

// offset + size > sizeOf
IsValid = debugger.GetAddressOffset(parentName, name, out offset)
&& Debugger.IsInvalidOffset(parentSizeOf, offset);
&& !Debugger.IsInvalidOffset(parentSizeOf, offset);
}

public Geometry.Traits GetTraits(MemoryReader mreader, Debugger debugger, string parentName)
Expand Down
1 change: 1 addition & 0 deletions solution/GraphicalDebugging/release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ additions:
- add handling of C++ types decorated with module name
bugfixes:
- fixed cancelling of loading taking too much time
- fixed loading of user-defined point-based boxes, segments and rays

version 0.54

Expand Down

0 comments on commit 2083961

Please sign in to comment.