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

New Defects reported by Coverity Scan for HPCC-Platform on 2nd of April.

    XMLWordPrintable

    Details

      Description

      20 new defect(s) introduced to HPCC-Platform found with Coverity Scan.

      ________________________________________________________________________________________________________
      
      *** CID 1467378:  Error handling issues  (CHECKED_RETURN)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/system/jlib/jutil.cpp: 2106 in genUUID(StringBuffer &, bool)()
      
      2100     static unsigned uuidbin[5] = \{0,0,0,0,0};
      
      2101     StringBuffer &genUUID(StringBuffer &out, bool nocase)
      
      2102     \{ // returns a 24 char UUID for nocase=false or 32 char for nocase=true
      
      2103         lock.enter();
      
      2104         // could be quicker using statics
      
      2105         if (uuidbin[0]==0) \{
      
      >>>     CID 1467378:  Error handling issues  (CHECKED_RETURN)
      
      >>>     Calling "getNetAddress" without checking return value (as is done elsewhere 7 out of 8 times).
      
      2106             queryHostIP().getNetAddress(sizeof(uuidbin[0]),uuidbin);
      
      2107             uuidbin[1] = (unsigned)GetCurrentProcessId();
      
      2108         }
      
      2109         time_t t;
      
      2110         time(&t);
      
      2111         uuidbin[2] = (unsigned)t;
      
       
      
      ________________________________________________________________________________________________________
      
      *** CID 1467377:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/io_worker.cpp: 80 in cass::PrepareAllCallback::~PrepareAllCallback()()
      
      74       PrepareAllCallback(const Address& address, const PrepareAllHandler::Ptr& handler)
      
      75         : RequestCallback(handler->wrapper())
      
      76         , address_(address)
      
      77         , handler_(handler)
      
      78         , is_finished_(false) \{ }
      
      79
      
      >>>     CID 1467377:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      >>>     An exception of type "std::length_error" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
      
      80       ~PrepareAllCallback() \{
      
      81         finish();
      
      82       }
      
      83
      
      84     private:
      
      85       void finish() \{
      
      ________________________________________________________________________________________________________
      
      *** CID 1467376:  Uninitialized members  (UNINIT_CTOR)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/hash_table.hpp: 90 in cass::CaseInsensitiveHashTable<cass::UserType::Field>::CaseInsensitiveHashTable(const cass::SmallVector<cass::UserType::Field, (unsigned long)16> &)()
      
      84       reset(capacity);
      
      85     }
      
      86
      
      87     template<class T>
      
      88     CaseInsensitiveHashTable<T>::CaseInsensitiveHashTable(const EntryVec& entries) \{
      
      89       set_entries(entries);
      
      >>>     CID 1467376:  Uninitialized members  (UNINIT_CTOR)
      
      >>>     Non-static class member "count_" is not initialized in this constructor nor in any functions that it calls.
      
      90     }
      
      91
      
      92     template<class T>
      
      93     size_t CaseInsensitiveHashTable<T>::get_indices(StringRef name, IndexVec* result) const \{
      
      94       result->clear();
      
      95       bool is_case_sensitive = false;
      
      ________________________________________________________________________________________________________
      
      *** CID 1467375:  Uninitialized members  (UNINIT_CTOR)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/config.hpp: 83 in cass::Config::Config()()
      
      77           , connection_heartbeat_interval_secs_(30)
      
      78           , timestamp_gen_(new ServerSideTimestampGenerator())
      
      79           , retry_policy_(new DefaultRetryPolicy())
      
      80           , use_schema_(true)
      
      81           , use_randomized_contact_points_(true)
      
      82           , prepare_on_all_hosts_(true)
      
      >>>     CID 1467375:  Uninitialized members  (UNINIT_CTOR)
      
      >>>     Non-static class member "use_hostname_resolution_" is not initialized in this constructor nor in any functions that it calls.
      
      83           , prepare_on_up_or_add_host_(true) \{ }
      
      84
      
      85       Config new_instance() const \{
      
      86         Config config = *this;
      
      87
      
      88         // The base LBP can be augmented by special wrappers (whitelist,
      
      ________________________________________________________________________________________________________
      
      *** CID 1467374:  Null pointer dereferences  (FORWARD_NULL)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/metadata.cpp: 2223 in cass::Metadata::InternalData::update_columns(int, const cass::VersionNumber &, cass::SimpleDataTypeCache &, cass::ResultResponse *)()
      
      2217         if (table_or_view_name != temp_table_or_view_name) \{
      
      2218           // Build keys for the previous table
      
      2219           if (table_or_view) \{
      
      2220             table_or_view->build_keys_and_sort(protocol_version, cassandra_version, cache);
      
      2221           }
      
      2222           table_or_view_name = temp_table_or_view_name;
      
      >>>     CID 1467374:  Null pointer dereferences  (FORWARD_NULL)
      
      >>>     Passing null pointer "keyspace" to "get_table", which dereferences it.
      
      2223           table_or_view = TableMetadataBase::Ptr(keyspace->get_table(table_or_view_name));
      
      2224           if (!table_or_view)  \{
      
      2225             table_or_view = TableMetadataBase::Ptr(keyspace->get_view(table_or_view_name));
      
      2226             if (!table_or_view) continue;
      
      2227           }
      
      2228           table_or_view->clear_columns();
      
      ________________________________________________________________________________________________________
      
      *** CID 1467373:  Resource leaks  (RESOURCE_LEAK)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/resolver.hpp: 179 in cass::NameResolver<cass::MultiResolver<cass::Session *> *>::resolve(uv_loop_s *, const cass::Address &, cass::MultiResolver<cass::Session *> *const &, void (*)(cass::NameResolver<cass::MultiResolver<cass::Session *> *>*), unsigned long, int)()
      
      173
      
      174         if (rc != 0) \{
      
      175           resolver->status_ = FAILED_BAD_PARAM;
      
      176           resolver->cb_(resolver);
      
      177           delete resolver;
      
      178         }
      
      >>>     CID 1467373:  Resource leaks  (RESOURCE_LEAK)
      
      >>>     Variable "resolver" going out of scope leaks the storage it points to.
      
      179       }
      
      180
      
      181     private:
      
      182       static void on_resolve(uv_getnameinfo_t* req, int status,
      
      183                              const char* hostname, const char* service) \{
      
      184         NameResolver* resolver = static_cast<NameResolver*>(req->data);
      
      ________________________________________________________________________________________________________
      
      *** CID 1467372:    (FORWARD_NULL)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/metadata.cpp: 2116 in cass::Metadata::InternalData::update_functions(int, const cass::VersionNumber &, cass::SimpleDataTypeCache &, cass::ResultResponse *)()
      
      2110
      
      2111         if (keyspace_name != temp_keyspace_name) \{
      
      2112           keyspace_name = temp_keyspace_name;
      
      2113           keyspace = get_or_create_keyspace(keyspace_name);
      
      2114         }
      
      2115
      
      >>>     CID 1467372:    (FORWARD_NULL)
      
      >>>     Passing null pointer "keyspace" to "FunctionMetadata", which dereferences it.
      
      2116         keyspace->add_function(FunctionMetadata::Ptr(new FunctionMetadata(protocol_version, cassandra_version, cache,
      
      2117                                                                           function_name, signature,
      
      2118                                                                           keyspace,
      
      2119                                                                           buffer, row)));
      
      2120
      
      2121       }
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/metadata.cpp: 2116 in cass::Metadata::InternalData::update_functions(int, const cass::VersionNumber &, cass::SimpleDataTypeCache &, cass::ResultResponse *)()
      
      2110
      
      2111         if (keyspace_name != temp_keyspace_name) \{
      
      2112           keyspace_name = temp_keyspace_name;
      
      2113           keyspace = get_or_create_keyspace(keyspace_name);
      
      2114         }
      
      2115
      
      >>>     CID 1467372:    (FORWARD_NULL)
      
      >>>     Passing null pointer "keyspace" to "add_function", which dereferences it.
      
      2116         keyspace->add_function(FunctionMetadata::Ptr(new FunctionMetadata(protocol_version, cassandra_version, cache,
      
      2117                                                                           function_name, signature,
      
      2118                                                                           keyspace,
      
      2119                                                                           buffer, row)));
      
      2120
      
      2121       }
      
      ________________________________________________________________________________________________________
      
      *** CID 1467371:  Error handling issues  (CHECKED_RETURN)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/system/jlib/jutil.cpp: 2853 in getTempFilePath(StringBuffer &, const char *, IPropertyTree *)()
      
      2847     }
      
      2848
      
      2849     jlib_decl StringBuffer &getTempFilePath(StringBuffer & target, const char * component, IPropertyTree * pTree)
      
      2850     \{
      
      2851         StringBuffer dir;
      
      2852         if (pTree)
      
      >>>     CID 1467371:  Error handling issues  (CHECKED_RETURN)
      
      >>>     Calling "getConfigurationDirectory" without checking return value (as is done elsewhere 4 out of 5 times).
      
      2853             getConfigurationDirectory(pTree->queryPropTree("Directories"),"temp",component,pTree->queryProp("@name"),dir);
      
      2854         if (!dir.length())
      
      2855         \{
      
      2856     #ifdef _WIN32
      
      2857             char path[_MAX_PATH+1];
      
      2858             if(GetTempPath(sizeof(path),path))
      
      ________________________________________________________________________________________________________
      
      *** CID 1467370:  Error handling issues  (CHECKED_RETURN)
      
      /plugins/kafka/src/examples/rdkafka_example.cpp: 337 in main()
      
      331       }
      
      332
      
      333
      
      334       /*
      
      335        * Set configuration properties
      
      336        */
      
      >>>     CID 1467370:  Error handling issues  (CHECKED_RETURN)
      
      >>>     Calling "set" without checking return value (as is done elsewhere 5 out of 6 times).
      
      337       conf->set("metadata.broker.list", brokers, errstr);
      
      338
      
      339       if (!debug.empty()) \{
      
      340         if (conf->set("debug", debug, errstr) != RdKafka::Conf::CONF_OK) \{
      
      341           std::cerr << errstr << std::endl;
      
      342           exit(1);
      
      ________________________________________________________________________________________________________
      
      *** CID 1467369:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/system/mp/mplog.ipp: 139 in LinkToParentLogMsgHandler::~LinkToParentLogMsgHandler()()
      
      133     // Class on manager's list of handlers which sends log messages to a parent, also holds thread which receives filter changes
      
      134
      
      135     class LinkToParentLogMsgHandler : implements ILogMsgHandler, public CInterface
      
      136     \{
      
      137     public:
      
      138         LinkToParentLogMsgHandler(MPLogId _cid, MPLogId _pid, INode * _parentNode, bool _connected) : parentNode(_parentNode), cid(_cid), pid(_pid), receiverThread(new LogMsgFilterReceiverThread(_pid, _parentNode)), connected(_connected) \{ receiverThread->setHandler(this); }
      
      >>>     CID 1467369:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      >>>     An exception of type "IOutOfMemException *" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
      
      139         ~LinkToParentLogMsgHandler() \{ if(connected) disconnect(); receiverThread->stop(); }
      
      140         IMPLEMENT_IINTERFACE;
      
      141         void                      handleMessage(LogMsg const & msg) const;
      
      142         bool                      needsPrep() const \{ return false; }
      
      143         void                      prep() \{}
      
      144         void                      addToPTree(IPropertyTree * tree) const;
      
       ________________________________________________________________________________________________________
      
      *** CID 1467368:  Uninitialized members  (UNINIT_CTOR)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/metadata.cpp: 1628 in cass::FunctionMetadata::FunctionMetadata(int, const cass::VersionNumber &, cass::SimpleDataTypeCache &, const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&, const cass::Value *, cass::KeyspaceMetadata *, const cass::SharedRefPtr<cass::RefBuffer> &, const cass::Row *)()
      
      1622
      
      1623       value1 = add_field(buffer, row, "called_on_null_input");
      
      1624       if (value1 != NULL &&
      
      1625           value1->value_type() == CASS_VALUE_TYPE_BOOLEAN) \{
      
      1626         called_on_null_input_ = value1->as_bool();
      
      1627       }
      
      >>>     CID 1467368:  Uninitialized members  (UNINIT_CTOR)
      
      >>>     Non-static class member "called_on_null_input_" is not initialized in this constructor nor in any functions that it calls.
      
      1628     }
      
      1629
      
      1630     const DataType* FunctionMetadata::get_arg_type(StringRef name) const \{
      
      1631       Argument::Vec::const_iterator i = std::find(args_.begin(), args_.end(), name);
      
      1632       if (i == args_.end()) return NULL;
      
      1633       return i->type.get();
      
       ________________________________________________________________________________________________________
      
      *** CID 1467367:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/system/mp/mplog.cpp: 85 in CLogMsgLinkToChild::~CLogMsgLinkToChild()()
      
      79         : childNode(_childNode), cid(_cid), pid(_pid), connected(_connected)
      
      80     \{
      
      81         receiverThread.setown(new LogMsgLogReceiverThread(cid, childNode, isListener));
      
      82         receiverThread->start();
      
      83     }
      
      84
      
      >>>     CID 1467367:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      >>>     An exception of type "IOutOfMemException *" is thrown but the throw list "throw()" doesn't allow it to be thrown. This will cause a call to unexpected() which usually calls terminate().
      
      85     CLogMsgLinkToChild::~CLogMsgLinkToChild()
      
      86     \{
      
      87         if(connected) disconnect();
      
      88         receiverThread->stop();
      
      89     }
      
      90
      
       ________________________________________________________________________________________________________
      
      *** CID 1467366:  Resource leaks  (RESOURCE_LEAK)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/resolver.hpp: 179 in cass::NameResolver<cass::Session::ResolveNameData>::resolve(uv_loop_s *, const cass::Address &, const cass::Session::ResolveNameData &, void (*)(cass::NameResolver<cass::Session::ResolveNameData>*), unsigned long, int)()
      
      173
      
      174         if (rc != 0) \{
      
      175           resolver->status_ = FAILED_BAD_PARAM;
      
      176           resolver->cb_(resolver);
      
      177           delete resolver;
      
      178         }
      
      >>>     CID 1467366:  Resource leaks  (RESOURCE_LEAK)
      
      >>>     Variable "resolver" going out of scope leaks the storage it points to.
      
      179       }
      
      180
      
      181     private:
      
      182       static void on_resolve(uv_getnameinfo_t* req, int status,
      
      183                              const char* hostname, const char* service) \{
      
      184         NameResolver* resolver = static_cast<NameResolver*>(req->data);
      
       ________________________________________________________________________________________________________
      
      *** CID 1467365:  Uninitialized members  (UNINIT_CTOR)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/resolver.hpp: 220 in cass::NameResolver<cass::MultiResolver<cass::Session *> *>::NameResolver(const cass::Address &, cass::MultiResolver<cass::Session *> *const &, void (*)(cass::NameResolver<cass::MultiResolver<cass::Session *> *>*))()
      
      214       NameResolver(const Address& address, const T& data, Callback cb)
      
      215           : address_(address)
      
      216           , status_(RESOLVING)
      
      217           , data_(data)
      
      218           , cb_(cb) \{
      
      219         req_.data = this;
      
      >>>     CID 1467365:  Uninitialized members  (UNINIT_CTOR)
      
      >>>     Non-static class member field "req_.retcode" is not initialized in this constructor nor in any functions that it calls.
      
      220       }
      
      221
      
      222       ~NameResolver() \{}
      
      223
      
      224       uv_getnameinfo_t req_;
      
      225       Timer timer_;
      
       _______________________________________________________________________________________________________
      
      *** CID 1467364:  Uninitialized members  (UNINIT_CTOR)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/resolver.hpp: 220 in cass::NameResolver<cass::Session::ResolveNameData>::NameResolver(const cass::Address &, const cass::Session::ResolveNameData &, void (*)(cass::NameResolver<cass::Session::ResolveNameData>*))()
      
      214       NameResolver(const Address& address, const T& data, Callback cb)
      
      215           : address_(address)
      
      216           , status_(RESOLVING)
      
      217           , data_(data)
      
      218           , cb_(cb) \{
      
      219         req_.data = this;
      
      >>>     CID 1467364:  Uninitialized members  (UNINIT_CTOR)
      
      >>>     Non-static class member field "req_.retcode" is not initialized in this constructor nor in any functions that it calls.
      
      220       }
      
      221
      
      222       ~NameResolver() \{}
      
      223
      
      224       uv_getnameinfo_t req_;
      
      225       Timer timer_;
      
       ________________________________________________________________________________________________________
      
      *** CID 1467363:    (FORWARD_NULL)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/metadata.cpp: 2069 in cass::Metadata::InternalData::update_user_types(int, const cass::VersionNumber &, cass::SimpleDataTypeCache &, cass::ResultResponse *)()
      
      2063
      
      2064           std::string field_name(name->to_string());
      
      2065
      
      2066           DataType::ConstPtr data_type;
      
      2067
      
      2068           if (cassandra_version >= VersionNumber(3, 0, 0)) \{
      
      >>>     CID 1467363:    (FORWARD_NULL)
      
      >>>     Passing null pointer "keyspace" to "parse", which dereferences it.
      
      2069             data_type = DataTypeCqlNameParser::parse(type->to_string(), cache, keyspace);
      
      2070           } else \{
      
      2071             data_type = DataTypeClassNameParser::parse_one(type->to_string(), cache);
      
      2072           }
      
      2073
      
      2074           if (!data_type) \{
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/metadata.cpp: 2085 in cass::Metadata::InternalData::update_user_types(int, const cass::VersionNumber &, cass::SimpleDataTypeCache &, cass::ResultResponse *)()
      
      2079             break;
      
      2080           }
      
      2081
      
      2082           fields.push_back(UserType::Field(field_name, data_type));
      
      2083         }
      
      2084
      
      >>>     CID 1467363:    (FORWARD_NULL)
      
      >>>     Passing null pointer "keyspace" to "get_or_create_user_type", which dereferences it.
      
      2085         keyspace->get_or_create_user_type(type_name, false)->set_fields(fields);
      
      2086       }
      
      2087     }
      
      2088
      
      2089     void Metadata::InternalData::update_functions(int protocol_version, const VersionNumber& cassandra_version, SimpleDataTypeCache& cache,
      
      2090                                                   ResultResponse* result) \{
      
       ________________________________________________________________________________________________________
      
      *** CID 1467362:  Uninitialized members  (UNINIT_CTOR)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/request_handler.cpp: 207 in cass::RequestExecution::RequestExecution(const cass::SharedRefPtr<cass::RequestHandler> &, const cass::SharedRefPtr<cass::Host> &)()
      
      201       : RequestCallback(request_handler->wrapper())
      
      202       , request_handler_(request_handler)
      
      203       , current_host_(current_host)
      
      204       , num_retries_(0)
      
      205       , start_time_ns_(0) \{
      
      206       request_handler_->add_execution(this);
      
      >>>     CID 1467362:  Uninitialized members  (UNINIT_CTOR)
      
      >>>     Non-static class member "connection_" is not initialized in this constructor nor in any functions that it calls.
      
      207     }
      
      208
      
      209     void RequestExecution::on_retry_current_host() \{
      
      210       retry_current_host();
      
      211     }
      
      212
      
       ________________________________________________________________________________________________________
      
      *** CID 1467361:  Null pointer dereferences  (FORWARD_NULL)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/metadata.cpp: 2150 in cass::Metadata::InternalData::update_aggregates(int, const cass::VersionNumber &, cass::SimpleDataTypeCache &, cass::ResultResponse *)()
      
      2144
      
      2145         if (keyspace_name != temp_keyspace_name) \{
      
      2146           keyspace_name = temp_keyspace_name;
      
      2147           keyspace = get_or_create_keyspace(keyspace_name);
      
      2148         }
      
      2149
      
      >>>     CID 1467361:  Null pointer dereferences  (FORWARD_NULL)
      
      >>>     Passing null pointer "keyspace" to "AggregateMetadata", which dereferences it.
      
      2150         keyspace->add_aggregate(AggregateMetadata::Ptr(new AggregateMetadata(protocol_version, cassandra_version, cache,
      
      2151                                                                              aggregate_name, signature,
      
      2152                                                                              keyspace,
      
      2153                                                                              buffer, row)));
      
      2154       }
      
      2155     }
      
       ________________________________________________________________________________________________________
      
      *** CID 1467360:    (TAINTED_SCALAR)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/result_response.cpp: 275 in cass::ResultResponse::decode_metadata(int, char *, cass::SharedRefPtr<cass::ResultMetadata> *, bool)()
      
      269         }
      
      270
      
      271         metadata->reset(new ResultMetadata(column_count));
      
      272
      
      273         SimpleDataTypeCache cache;
      
      274
      
      >>>     CID 1467360:    (TAINTED_SCALAR)
      
      >>>     Using tainted variable "column_count" as a loop boundary.
      
      275         for (int i = 0; i < column_count; ++i) \{
      
      276           ColumnDefinition def;
      
      277
      
      278           def.index = i;
      
      279
      
      280           if (!global_table_spec) \{
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/result_response.cpp: 249 in cass::ResultResponse::decode_metadata(int, char *, cass::SharedRefPtr<cass::ResultMetadata> *, bool)()
      
      243         }
      
      244       }
      
      245
      
      246       if (has_pk_indices) \{
      
      247         int32_t pk_count = 0;
      
      248         buffer = decode_int32(buffer, pk_count);
      
      >>>     CID 1467360:    (TAINTED_SCALAR)
      
      >>>     Using tainted variable "pk_count" as a loop boundary.
      
      249         for (int i = 0; i < pk_count; ++i) \{
      
      250           uint16_t pk_index = 0;
      
      251           buffer = decode_uint16(buffer, pk_index);
      
      252           pk_indices_.push_back(pk_index);
      
      253         }
      
      254       }
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/plugins/cassandra/cpp-driver/src/result_response.cpp: 288 in cass::ResultResponse::decode_metadata(int, char *, cass::SharedRefPtr<cass::ResultMetadata> *, bool)()
      
      282             buffer = decode_string(buffer, &def.table);
      
      283           }
      
      284
      
      285           buffer = decode_string(buffer, &def.name);
      
      286
      
      287           DataTypeDecoder type_decoder(buffer, cache);
      
      >>>     CID 1467360:    (TAINTED_SCALAR)
      
      >>>     Passing tainted variable "type_decoder.buffer_" to a tainted sink.
      
      288           def.data_type = DataType::ConstPtr(type_decoder.decode());
      
      289           buffer = type_decoder.buffer();
      
      290
      
      291           (*metadata)->add(def);
      
      292         }
      
      293       }
      
       ________________________________________________________________________________________________________
      
      *** CID 1366110:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      /mnt/disk1/home/vamosax/build/CE/platform/HPCC-Platform/tools/genht/genht.cpp: 285 in main()
      
      279
      
      280
      
      281
      
      282
      
      283
      
      284
      
      >>>     CID 1366110:  Error handling issues  (UNCAUGHT_EXCEPT)
      
      >>>     In function "main(int, char **)" an exception of type "IOutOfMemException *" is thrown and never caught.
      
      285     int main(int argc, char* argv[])
      
      286     \{
      
      287         InitModuleObjects();
      
      288         EnableSEHtoExceptionMapping();
      
      289         if (argc<2)
      
      290             printf("Usage: genht <mst-file>\n");
      
       ________________________________________________________________________________________________________
      

       

      To view the defects in Coverity Scan visit, https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRaNjvQL1JwbRRXECNADpFWbJmd1u5Ft08MVOUAWsoMXj3-2FOk3grCOW6BgQyMmqdP24-3D_V7u2yOhiGAr-2Biu54nFTzz1cdmowKR-2FlEFg5vqux4F9vruKgTEk-2BNrf6lMCeTNHOYQTKCH27lQUbsm6N71CzwsIHxt-2F2Di30zchvM-2FQKQ4yHMcwLPSQ3tj1wmSFDAnsVKGVFHnFa4hcg-2Ffdte9qtle5TyzGUrnwaLc-2BmIuF-2F1WSJrsWpKHk1Zueqiv3yBRyEsJbWnNQY2oe1IyZgxOQ1lIyE2X6bMYkYKbUWswuQZ0Gg-3D

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              attilavamos Attila Vamos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: