Uploaded image for project: 'UGENE'
  1. UGENE
  2. UGENE-4825

Unsafe code in DocumentModel.cpp

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.19
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Tests Type:
      Untestable
    • Sprint:
      DEV-10/11/2015
    • Affect Type:
      Technical

      Description

      Сurrently crashes may occur in DocumentModel.cpp due to lack of checking of pointers for nulls. Refactor the code and add additional checks for nulls.

      For exampale in 300 line there is those code: "obj->setParentStateLockItem(this);", but obj can be null, if some errors occur on loading the document.

      Crash report:
      http://ugene.net/ugenecrashes?id=6822

        Attachments

          Activity

            People

            Assignee:
            artyom_s Artyom Savchenko
            Reporter:
            artyom_s Artyom Savchenko
            Assigned Tester:
            Vladimir Malinovskiy
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: