various resource leaks, use-after-free

Issue #25 resolved
Nico Schlömer created an issue

This report serves mostly as a tracker for the high-impact defects as found by Coverity [1], e.g., resource leaks, use-after-free, out-of-bounds access etc. Some of them might be insignificant.

[1] https://scan.coverity.com/projects/moab

Comments (16)

  1. Vijay M

    Yes Nico. We will start tackling the high priority ones first. We already went through multiple rounds of defect corrections with cppcheck and valgrind. If you have the time, feel free to submit PRs for any of the defects found by Coverity.

  2. Danqing Wu

    Created branch danwu/coverity_fixes to start fixing the high-priority defects reported by Coverity. Could you please redirect Coverity to that branch so that we can monitor the updates (before it is merged to master)?

  3. Danqing Wu

    It seems that Coverity is still using MOAB master branch. CID 141389, 141391, 141395, 141396 should have been fixed in branch danwu/coverity_fixes.

  4. Nico Schlömer reporter

    @danwu Is this something you're still working on or can I switch back tests to master?

  5. Danqing Wu

    Most high-priority defects have been fixed, but there are still 4 left which are hard to fix (I tried to fix some of them but still marked by Coverity as defects). It is better for us to review these 4 defects to take further steps. No need to switch back to master at this time, as this branch can be easlily rebased with master if required.

  6. Vijay M

    I merged the fixes to master yesterday. And so the branch may come up as closed? You can run Coverity and other tools directly on master now. There are no other pending fixes.

  7. Vijay M

    Sounds good. The new defects are from PRs that were merged recently. I'll ask the contributors to fix the issues.

  8. Log in to comment