Skip to content

View Linking: Guard null pointer use #13878

@magnesj

Description

@magnesj

Check and verify pointers before use.

[0] performCrashLogging at ResInsight/ApplicationExeCode/RiaMainTools.cpp:147
[1] manageSegFailureSA(int, siginfo_t*, void*) at ResInsight/ApplicationExeCode/RiaMainTools.cpp:227
[6] RimViewLinker::addDependentView(Rim3dView*) at ResInsight/ApplicationLibCode/ProjectDataModel/RimViewLinker.cpp:623
[7] RicSetMasterViewFeature::onActionTriggered(bool) at ResInsight/ApplicationLibCode/Commands/ViewLink/RicSetMasterViewFeature.cpp:75
[17] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1823
[23] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1823
[35] RiuMainWindow::customMenuRequested(QPoint const&) at ResInsight/ApplicationLibCode/UserInterface/RiuMainWindow.cpp:2056
[43] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1823
[48] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1823
[59] main at ResInsight/ApplicationExeCode/RiaMain.cpp:226
[60] __libc_start_main at :0

Related call stack

[0] manageSegFailure(int) at ResInsight/ApplicationExeCode/RiaMainTools.cpp:86
[2] Rim3dView::scaleZ() const at ResInsight/ApplicationLibCode/ProjectDataModel/Rim3dView.cpp:1241
[3] RimViewLinker::updateDependentViews() at ResInsight/ApplicationLibCode/ProjectDataModel/RimViewLinker.cpp:325
[4] RicLinkVisibleViewsFeature::linkViews(std::vector<Rim3dView*, std::allocator<Rim3dView*> >&) at ResInsight/ApplicationLibCode/Commands/ViewLink/RicLinkVisibleViewsFeature.cpp:122
[5] RicLinkVisibleViewsFeature::onActionTriggered(bool) at ResInsight/ApplicationLibCode/Commands/ViewLink/RicLinkVisibleViewsFeature.cpp:68
[16] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1826
[22] RiaGuiApplication::notify(QObject*, QEvent*) at ResInsight/ApplicationLibCode/Application/RiaGuiApplication.cpp:1826
[33] main at ResInsight/ApplicationExeCode/RiaMain.cpp:209
[34] __libc_start_main at :0

Metadata

Metadata

Assignees

Labels

BugInReleaseBug in an official releasePendingReleaseIssues is fixed and will be available in next release

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions