MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #30784 All Revisions ] Back to Issue ]
Summary 0030784: Visualization - check if selectable of owner in internal container in AIS_InteractiveContext before using
Revision 2020-09-05 09:19 by nds
Description In some methods of interactive context global status of interactive object is obtained from myObjects without a check if the object is registered inside.
Revision 2019-06-17 13:12 by nds
Description In some methods of interactive context global status of interactive object is obtained from myObjects without a check if the object is registered inside.

Example of crash, cased by it:
In AIS_ViewCube implementation (0028954) there is AIS_ViewCubeFlat not displayed in context, but there is an owner connected to it and listening selection.

The place, where the crash happens if we call it for this owner:
void AIS_InteractiveContext::AddOrRemoveSelected (const Handle(SelectMgr_EntityOwner)& theOwner, ...
{
...
  const Handle(AIS_InteractiveObject) anObj = Handle(AIS_InteractiveObject)::DownCast (theOwner->Selectable());
...
  Handle(AIS_GlobalStatus)& aStatus = myObjects.ChangeFind (anObj);
...
}


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker