Details
-
Question
-
Status: Resolved
-
Not specified
-
Resolution: Won't Fix
-
None
-
None
-
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)
________________________________________________________________________________________________________