Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory, initialization and other coverity issues in Framework (especially Load* classes) #390

Merged

Conversation

FedeMPouzols
Copy link
Contributor

This fixes ~30 issues listed in ticket #11328.

I tried to get rid of most if not all remaining issues in the Load* classes, excluding security issues and a handful of unclear ones.

Tester: code review, check that all tests are ok, which cover quite decently most of the changes included here.

@FedeMPouzols FedeMPouzols added this to the Release 3.4 milestone Mar 13, 2015
@FedeMPouzols FedeMPouzols added Coverity Framework Issues and pull requests related to components in the Framework labels Mar 13, 2015
@FedeMPouzols FedeMPouzols added the Maintenance Unassigned issues to be addressed in the next maintenance period. label Mar 13, 2015
@eXeC64 eXeC64 self-assigned this Mar 13, 2015
@@ -115,16 +115,16 @@ class DLLExport LoadMask : public API::Algorithm {
std::vector<int> &rangeendvec);

/// Mask Workspace
DataObjects::MaskWorkspace_sptr mMaskWS;
DataObjects::MaskWorkspace_sptr m_MaskWS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect when you renamed this, you didn't mean to capitalise the M :)

Same goes for m_DefaultToUse.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good that you caught this. I'm fixing it...

@eXeC64
Copy link
Contributor

eXeC64 commented Mar 13, 2015

Other than that it looks good. Nice big clean up for Coverity 👍

eXeC64 added a commit that referenced this pull request Mar 16, 2015
…_issues_framework_load_classes

Fix memory, initialization and other coverity issues in Framework (especially Load* classes)
@eXeC64 eXeC64 merged commit da90985 into master Mar 16, 2015
@eXeC64 eXeC64 deleted the 11328_fix_various_coverity_issues_framework_load_classes branch March 16, 2015 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues and pull requests related to components in the Framework Maintenance Unassigned issues to be addressed in the next maintenance period.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants