Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-25715

Coverity scan reported new defect related to jhtree

    XMLWordPrintable

Details

    • Question
    • Status: Resolved
    • Not specified
    • Resolution: Won't Fix
    • None
    • None
    • JHTree
    • None

    Description

      Coverity scan reported this issue related to JHTree (perhaps it is a false positive): 
       

      CID Type Impact Component Category File Function
      1503607 Explicit null dereferenced Medium Other System Null pointer dereferences HPCC-Platform/system/jhtree/jhtree.cpp loadNode

       

      CID 1503607: Null pointer dereferences (FORWARD_NULL)
      /home/vamosax/build/CE/platform/HPCC-Platform/system/jhtree/jhtree.cpp: 1094 in CDiskKeyIndex::loadNode(CJHTreeNode *, unsigned long long)()

      1088             m.appendf("In key %s, position 0x%" I64F "x", name.get(), pos);
      1089             EXCLOG(E, m.str());
      1090             throw E;
      1091         }
      1092         if (optNode)
      1093             return CKeyIndex::loadNode(optNode, nodeData, pos, true);
      >>>     CID 1503607:  Null pointer dereferences  (FORWARD_NULL)
      >>>     Passing null pointer "nodeData" to "loadNode", which dereferences it.
      1094         return CKeyIndex::loadNode(nodeData, pos, true);
      1095     }
      1096
      1097     CJHTreeNode *CKeyIndex::createNode(NodeType type)
      1098     {
      1099         switch(type)
      

       ________________________________________________________________________________________________________

      To view the defects in Coverity Scan visit, https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fu15810271.ct.sendgrid.net%2Fls%2Fclick%3Fupn%3DHRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypQjb0hTUkvcp9raSmREwFq6YYouACn74NAOJog3t-2B9hwML-2BjS1JaRteOgFFK87Rag-3D87wB_8MqIhCRnGbt-2F8erpzfaQPKt49wIYlz1MQCVtEp8qAdGV-2BY3ih3WFzYHpf-2FDapIiwmJASldy6qE3RMjTwHUbvcP-2FY59C-2BmRSGAUed7YQv3jELlTpDU8Oej98ivI6SAplALhnTH8QikPqCiOvCntNUQAHEYR9E7QWksrzytaX-2B2Ou01DRF28-2FSnprg9qTQNvFVihbpt9Z34Wjl6MxVmuaVGpzguJz1oDwSpcYuljfPB14-3D&data=04%7C01%7CAttila.Vamos%40lexisnexisrisk.com%7C2179db3f16a1482482d408d8f815f055%7C9274ee3f94254109a27f9fb15c10675d%7C0%7C0%7C637532120398354209%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=2kHjEhoNNUpWzjq1VFd2cZsFXCPp2pVlzurToZzgLZg%3D&reserved=0

      Attachments

        Activity

          People

            Unassigned Unassigned
            attilavamos Attila Vamos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: