Created
February 15, 2017 18:56
-
-
Save karlnapf/5d82fbfbe05ecccfff65698e3fe2a58f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New Defects reported by Coverity Scan for shogun-toolbox/shogun | |
2 Nachrichten | |
scan-admin@coverity.com <scan-admin@coverity.com> 24. Juli 2016 um 16:12 | |
An: heiko.strathmann@gmail.com | |
Hi, | |
Please find the latest report on new defect(s) introduced to shogun-toolbox/shogun found with Coverity Scan. | |
31 new defect(s) introduced to shogun-toolbox/shogun found with Coverity Scan. 7 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan. | |
New defect(s) Reported-by: Coverity Scan Showing 20 of 31 defect(s) | |
** CID 150886: Null pointer dereferences (FORWARD_NULL) /home/buildslave/coverity_analysis/build/src/shogun/multiclass/tree/CARTree.cpp: 299 in shogun::CCARTree::pre_sort_features(shogun::CFeatures *, shogun::SGMatrix<double> &, shogun::SGMatrix<int> &)() | |
______________________________________________________________________________________________________ * CID 150886: Null pointer dereferences (FORWARD_NULL) /home/buildslave/coverity_analysis/build/src/shogun/multiclass/tree/CARTree.cpp: 299 in shogun::CCARTree::pre_sort_features(shogun::CFeatures , shogun::SGMatrix<double> &, shogun::SGMatrix<int> &)() 293 m_sorted_features=sorted_feats; 294 m_sorted_indices=sorted_indices; 295 } 296 297 void CCARTree::pre_sort_features(CFeatures data, SGMatrix<float64_t>& sorted_feats, SGMatrix<index_t>& sorted_indices) 298 { | |
CID 150886: Null pointer dereferences (FORWARD_NULL) Dynamic cast to pointer “dynamic_cast <shogun::CDenseFeatures<double> *>(data)” can return “NULL”. | |
299 SGMatrix<float64_t> mat=(dynamic_cast<CDenseFeatures<float64_t>*>(data))->get_feature_matrix(); 300 sorted_feats = SGMatrix<float64_t>(mat.num_cols, mat.num_rows); 301 sorted_indices = SGMatrix<index_t>(mat.num_cols, mat.num_rows); 302 for(int32_t i=0; i<sorted_indices.num_cols; i++) 303 for(int32_t j=0; j<sorted_indices.num_rows; j++) 304 sorted_indices(j,i)=j; | |
** CID 150885: Null pointer dereferences (FORWARD_NULL) /home/buildslave/coverity_analysis/build/src/shogun/regression/LeastAngleRegression.cpp: 103 in shogun::CLeastAngleRegression::train_machine(shogun::CFeatures *)() | |
______________________________________________________________________________________________________ * CID 150885: Null pointer dereferences (FORWARD_NULL) /home/buildslave/coverity_analysis/build/src/shogun/regression/LeastAngleRegression.cpp: 103 in shogun::CLeastAngleRegression::train_machine(shogun::CFeatures *)() 97 98 if (!data) 99 { 100 if(!features) 101 SG_ERROR("No features provided.\n") 102 | |
CID 150885: Null pointer dereferences (FORWARD_NULL) Passing null pointer “this->features” to “get_feature_class”, which dereferences it. (The dereference happens because this is a virtual function call.) | |
103 if(features->get_feature_class() != C_DENSE) 104 SG_ERROR("Feature-class (%d) must be of type C_DENSE (%d)\n", features->get_feature_class(), C_DENSE) 105 106 data = features; 107 } 108 else | |
** CID 150915: Uninitialized members (UNINIT_CTOR) /home/buildslave/coverity_analysis/build/src/shogun/io/streaming/StreamingVwCacheFile.cpp: 31 in shogun::CStreamingVwCacheFile::CStreamingVwCacheFile(const char *, char, shogun::EVwCacheType)() | |
______________________________________________________________________________________________________ * CID 150915: Uninitialized members (UNINIT_CTOR) /home/buildslave/coverity_analysis/build/src/shogun/io/streaming/StreamingVwCacheFile.cpp: 31 in shogun::CStreamingVwCacheFile::CStreamingVwCacheFile(const char , char, shogun::EVwCacheType)() 25 } 26 27 CStreamingVwCacheFile::CStreamingVwCacheFile(const char fname, char rw, EVwCacheType cache_type) 28 : CStreamingFile(fname, rw) 29 { 30 init(cache_type); | |
CID 150915: Uninitialized members (UNINIT_CTOR) Non-static class member “cache_reader” is not initialized in this constructor nor in any functions that it calls. | |
31 } 32 33 CStreamingVwCacheFile::~CStreamingVwCacheFile() 34 { 35 SG_UNREF(env); 36 SG_UNREF(cache_reader); | |
** CID 150914: (UNCAUGHT_EXCEPT) /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() | |
______________________________________________________________________________________________________ * CID 150914: (UNCAUGHT_EXCEPT) /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_stringfeatures.cpp: 24 in main() 18 { 19 printf("%c", vec.string[i]); 20 } 21 printf("\n"); 22 } 23 | |
CID 150914: (UNCAUGHT_EXCEPT) In function “main(int, char **)” an exception of type “shogun::ShogunException” is thrown and never caught. | |
24 int main(int argc, char *argv) 25 { 26 init_shogun_with_defaults(); 27 28 // Create a StreamingAsciiFile from our input file 29 CStreamingAsciiFile file = new CStreamingAsciiFile("../data/fm_train_dna.dat"); | |
** CID 150913: (UNCAUGHT_EXCEPT) /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() | |
______________________________________________________________________________________________________ * CID 150913: (UNCAUGHT_EXCEPT) /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); /home/buildslave/coverity_analysis/build/examples/undocumented/libshogun/streaming_vwfeatures.cpp: 25 in main() 19 #include <shogun/io/streaming/StreamingVwFile.h> 20 #include <shogun/features/streaming/StreamingVwFeatures.h> 21 #include <shogun/classifier/svm/OnlineSVMSGD.h> 22 23 using namespace shogun; 24 | |
CID 150913: (UNCAUGHT_EXCEPT) In function “main()” an exception of type “shogun::ShogunException” is thrown and never caught. | |
25 int main() 26 { 27 init_shogun_with_defaults(); 28 29 const char* train_file_name = “../data/train_sparsereal.light”; 30 CStreamingVwFile* train_file = new CStreamingVwFile(train_file_name); | |
** CID 150912: API usage errors (SWAPPED_ARGUMENTS) | |
______________________________________________________________________________________________________ * CID 150912: API usage errors (SWAPPED_ARGUMENTS) /home/buildslave/coverity_analysis/build/src/shogun/multiclass/tree/CARTree.cpp: 306 in shogun::CCARTree::pre_sort_features(shogun::CFeatures *, shogun::SGMatrix<double> &, shogun::SGMatrix<int> &)() 300 sorted_feats = SGMatrix<float64_t>(mat.num_cols, mat.num_rows); 301 sorted_indices = SGMatrix<index_t>(mat.num_cols, mat.num_rows); 302 for(int32_t i=0; i<sorted_indices.num_cols; i++) 303 for(int32_t j=0; j<sorted_indices.num_rows; j++) 304 sorted_indices(j,i)=j; 305 | |
CID 150912: API usage errors (SWAPPED_ARGUMENTS) The positions of arguments in the constructor for “Eigen::Map<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 0, Eigen::Stride<0, 0> >” do not match the ordering of the parameters: | |
“mat.num_cols” is passed to “nbRows” | |
“mat.num_rows” is passed to “nbCols” | |
306 Map<MatrixXd> map_sorted_feats(sorted_feats.matrix, mat.num_cols, mat.num_rows); 307 Map<MatrixXd> map_data(mat.matrix, mat.num_rows, mat.num_cols); 308 309 map_sorted_feats=map_data.transpose(); 310 311 #pragma omp parallel for | |
** CID 150911: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/lib/IndirectObject.h: 241 in shogun::CIndirectObject<int, int **>::operator >(const shogun::CIndirectObject<int, int **>&) const() | |
______________________________________________________________________________________________________ * CID 150911: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/lib/IndirectObject.h: 241 in shogun::CIndirectObject<int, int *>::operator >(const shogun::CIndirectObject<int, int *>&) const() 235 / overload > operator; test if current object is bigger than x 236 * 237 * @param x x 238 */ 239 bool operator>(const CIndirectObject<T,P> &x) const 240 { | |
CID 150911: Incorrect expression (NO_EFFECT) Part “x” of statement “x , (*shogun::CIndirectObject<int, int **>::array)” has no effect due to the comma. | |
241 return (*array)[index]>(*(x.array))[x.index]; 242 } 243 244 /** overload < operator; test if current object is smaller than x 245 * 246 * @param x x | |
** CID 150910: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/tapkee/parameters/parameters.hpp: 42 in () | |
______________________________________________________________________________________________________ * CID 150910: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/tapkee/parameters/parameters.hpp: 42 in () 36 std::stringstream ss; 37 }; 38 39 class ParametersSet; 40 class CheckedParameter; 41 | |
CID 150910: Low impact quality (MISSING_MOVE_ASSIGNMENT) Class “tapkee::Parameter” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
42 class Parameter 43 { 44 friend class CheckedParameter; 45 46 typedef std::string ParameterName; 47 | |
** CID 150909: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/evaluation/MulticlassAccuracy.cpp: 66 in shogun::CMulticlassAccuracy::get_confusion_matrix(shogun::CLabels *, shogun::CLabels *)() | |
______________________________________________________________________________________________________ * CID 150909: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/evaluation/MulticlassAccuracy.cpp: 66 in shogun::CMulticlassAccuracy::get_confusion_matrix(shogun::CLabels , shogun::CLabels )() 60 memset(confusion_matrix.matrix,0,sizeof(int32_t)*num_classes*num_classes); 61 for (int32_t i=0; i<length; i++) 62 { 63 int32_t predicted_label = ((CMulticlassLabels) predicted)->get_int_label(i); 64 int32_t ground_truth_label = ((CMulticlassLabels) ground_truth)->get_int_label(i); 65 | |
CID 150909: Incorrect expression (NO_EFFECT) Part “(shogun::CMulticlassLabels *)(shogun::CDenseLabels *)predicted” of statement “((shogun::CMulticlassLabels *)(shogun::CDenseLabels *)predicted) , -2” has no effect due to the comma. | |
66 if (predicted_label==((CMulticlassLabels*) predicted)->REJECTION_LABEL) 67 continue; 68 69 confusion_matrix[predicted_label*num_classes+ground_truth_label]++; 70 } 71 return confusion_matrix; | |
** CID 150908: (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/Trie.h: 157 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/Trie.h: 157 in () | |
______________________________________________________________________________________________________ * CID 150908: (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/Trie.h: 157 in () 151 * 152 * Finally note that this tree may use compact internal nodes (for strings that 153 * appear without modifications, thus not requiring further branches), which 154 * may save a lot of memory on higher degree tries. 155 * 156 */ | |
CID 150908: (MISSING_MOVE_ASSIGNMENT) Class “shogun::CTrie<shogun::DNATrie>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
157 IGNORE_IN_CLASSLIST template <class Trie> class CTrie : public CSGObject 158 { 159 public: 160 /** default constructor */ 161 CTrie(); 162 /home/buildslave/coverity_analysis/build/src/shogun/lib/Trie.h: 157 in () 151 * 152 * Finally note that this tree may use compact internal nodes (for strings that 153 * appear without modifications, thus not requiring further branches), which 154 * may save a lot of memory on higher degree tries. 155 * 156 */ | |
CID 150908: (MISSING_MOVE_ASSIGNMENT) Class “shogun::CTrie<shogun::POIMTrie>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
157 IGNORE_IN_CLASSLIST template <class Trie> class CTrie : public CSGObject 158 { 159 public: 160 /** default constructor */ 161 CTrie(); 162 | |
** CID 150907: Uninitialized variables (MISSING_RETURN) /home/buildslave/coverity_analysis/build/src/shogun/regression/LeastAngleRegression.cpp: 126 in shogun::CLeastAngleRegression::train_machine(shogun::CFeatures *)() | |
______________________________________________________________________________________________________ * CID 150907: Uninitialized variables (MISSING_RETURN) /home/buildslave/coverity_analysis/build/src/shogun/regression/LeastAngleRegression.cpp: 126 in shogun::CLeastAngleRegression::train_machine(shogun::CFeatures *)() 120 return CLeastAngleRegression::train_machine_templated((CDenseFeatures<float32_t> *) data); 121 else if(data->get_feature_type() == F_LONGREAL) 122 return CLeastAngleRegression::train_machine_templated((CDenseFeatures<floatmax_t> *) data); 123 else 124 SG_ERROR("Feature-type (%d) must be of type F_SHORTREAL (%d), F_DREAL (%d) or F_LONGREAL (%d).\n", 125 data->get_feature_type(), F_SHORTREAL, F_DREAL, F_LONGREAL) | |
CID 150907: Uninitialized variables (MISSING_RETURN) Arriving at the end of a function without returning a value. | |
126 } 127 128 template <typename ST> 129 bool CLeastAngleRegression::train_machine_templated(CDenseFeatures<ST> * data) 130 { 131 | |
** CID 150906: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/structure/BmrmStatistics.h: 25 in () | |
______________________________________________________________________________________________________ * CID 150906: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/structure/BmrmStatistics.h: 25 in () 19 #include <shogun/lib/SGVector.h> 20 21 namespace shogun 22 { 23 24 /** BMRM statistics like number of iterations etc */ | |
CID 150906: Low impact quality (MISSING_MOVE_ASSIGNMENT) Class “shogun::BmrmStatistics” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
25 struct BmrmStatistics 26 { 27 /** constructor */ 28 BmrmStatistics() 29 { 30 nIter = 0; | |
** CID 150905: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/evaluation/MulticlassAccuracy.cpp: 42 in shogun::CMulticlassAccuracy::evaluate(shogun::CLabels *, shogun::CLabels *)() | |
______________________________________________________________________________________________________ * CID 150905: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/evaluation/MulticlassAccuracy.cpp: 42 in shogun::CMulticlassAccuracy::evaluate(shogun::CLabels , shogun::CLabels *)() 36 { 37 int32_t total = length; 38 for (int32_t i=0; i<length; i++) 39 { 40 int32_t predicted_label = ((CMulticlassLabels) predicted)->get_int_label(i); 41 | |
CID 150905: Incorrect expression (NO_EFFECT) Part “(shogun::CMulticlassLabels *)(shogun::CDenseLabels *)predicted” of statement “((shogun::CMulticlassLabels *)(shogun::CDenseLabels *)predicted) , -2” has no effect due to the comma. | |
42 if (predicted_label==((CMulticlassLabels*) predicted)->REJECTION_LABEL) 43 total--; 44 else if (predicted_label==((CMulticlassLabels*) ground_truth)->get_int_label(i)) 45 correct++; 46 } 47 m_rejects_num = length-total; | |
** CID 150904: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/lib/IndirectObject.h: 250 in shogun::CIndirectObject<int, int **>::operator <(const shogun::CIndirectObject<int, int **>&) const() | |
______________________________________________________________________________________________________ * CID 150904: Incorrect expression (NO_EFFECT) /home/buildslave/coverity_analysis/build/src/shogun/lib/IndirectObject.h: 250 in shogun::CIndirectObject<int, int *>::operator <(const shogun::CIndirectObject<int, int *>&) const() 244 / overload < operator; test if current object is smaller than x 245 * 246 * @param x x 247 */ 248 bool operator<(const CIndirectObject<T,P> &x) const 249 { | |
CID 150904: Incorrect expression (NO_EFFECT) Part “x” of statement “x , (*shogun::CIndirectObject<int, int **>::array)” has no effect due to the comma. | |
250 return (*array)[index]<(*(x.array))[x.index]; 251 } 252 253 /** overload ! operator; test if current object is not equal to x 254 * 255 * @param x x | |
** CID 150903: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/tapkee/parameters/value_keeper.hpp: 22 in () | |
______________________________________________________________________________________________________ * CID 150903: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/tapkee/parameters/value_keeper.hpp: 22 in () 16 { 17 18 struct EmptyType 19 { 20 }; 21 | |
CID 150903: Low impact quality (MISSING_MOVE_ASSIGNMENT) Class “tapkee::tapkee_internal::ValueKeeper” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
22 class ValueKeeper 23 { 24 25 public: 26 template <typename T> 27 explicit ValueKeeper(const T& value) : | |
** CID 150902: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/tapkee/external/barnes_hut_sne/vptree.hpp: 45 in () | |
______________________________________________________________________________________________________ * CID 150902: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/tapkee/external/barnes_hut_sne/vptree.hpp: 45 in () 39 #ifndef VPTREE_H 40 #define VPTREE_H 41 42 namespace tsne 43 { 44 | |
CID 150902: Low impact quality (MISSING_MOVE_ASSIGNMENT) Class “tsne::DataPoint” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
45 class DataPoint 46 { 47 int _D; 48 int _ind; 49 double* _x; 50 | |
** CID 150901: (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () | |
______________________________________________________________________________________________________ * CID 150901: (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /** @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<double>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<signed char>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<bool>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<char>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<long double>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<float>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<unsigned char>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<int>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<unsigned int>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<long>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<unsigned long>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<short>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor / 27 SGMatrixList(); 28 /home/buildslave/coverity_analysis/build/src/shogun/lib/SGMatrixList.h: 23 in () 17 #include <shogun/lib/SGMatrix.h> 18 19 namespace shogun 20 { 21 22 /* @brief shogun matrix list */ | |
CID 150901: (MISSING_MOVE_ASSIGNMENT) Class “shogun::SGMatrixList<unsigned short>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
23 template<class T> class SGMatrixList : public SGReferencedData 24 { 25 public: 26 /** default constructor */ 27 SGMatrixList(); 28 | |
** CID 150900: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/DynInt.h: 38 in () | |
______________________________________________________________________________________________________ * CID 150900: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/lib/DynInt.h: 38 in () 32 * This data type is mostly used as a (efficient) storage container for 33 * bit-mapped strings. Therefore, currently only comparison, assignment and 34 * bit operations are implemented. 35 * 36 * TODO: implement add,mul,div 37 */ | |
CID 150900: Low impact quality (MISSING_MOVE_ASSIGNMENT) Class “shogun::CDynInt<unsigned long, 4>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
38 template <class T, int sz> class CDynInt 39 { 40 public: 41 /** default constructor 42 * 43 * creates a DynInt that is all zero. | |
** CID 150899: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/base/unique.h: 15 in () | |
______________________________________________________________________________________________________ * CID 150899: Low impact quality (MISSING_MOVE_ASSIGNMENT) /home/buildslave/coverity_analysis/build/src/shogun/base/unique.h: 15 in () 9 * 10 * class Self; 11 * Unique<Self> self; 12 * 13 */ 14 template <typename T> | |
CID 150899: Low impact quality (MISSING_MOVE_ASSIGNMENT) Class “shogun::Unique<shogun::CSGObject::Self>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
15 class Unique 16 { 17 public: 18 /** Creates an instance of something unique. 19 * 20 * Calls default constructor of type T. | |
** CID 150898: (MISSING_MOVE_ASSIGNMENT) /usr/include/eigen3/Eigen/src/Core/DenseStorage.h: 121 in () /usr/include/eigen3/Eigen/src/Core/DenseStorage.h: 121 in () /usr/include/eigen3/Eigen/src/Core/DenseStorage.h: 121 in () | |
______________________________________________________________________________________________________ * CID 150898: (MISSING_MOVE_ASSIGNMENT) /usr/include/eigen3/Eigen/src/Core/DenseStorage.h: 121 in () 115 * 116 * \sa Matrix 117 */ 118 template<typename T, int Size, int _Rows, int _Cols, int _Options> class DenseStorage; 119 120 // purely fixed-size matrix | |
CID 150898: (MISSING_MOVE_ASSIGNMENT) Class “Eigen::DenseStorage<double, -1, -1, 1, 0>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
121 template<typename T, int Size, int _Rows, int _Cols, int _Options> class DenseStorage 122 { 123 internal::plain_array<T,Size,_Options> m_data; 124 public: 125 inline DenseStorage() {} 126 inline DenseStorage(internal::constructor_without_unaligned_array_assert) /usr/include/eigen3/Eigen/src/Core/DenseStorage.h: 121 in () 115 * 116 * \sa Matrix 117 */ 118 template<typename T, int Size, int _Rows, int _Cols, int _Options> class DenseStorage; 119 120 // purely fixed-size matrix | |
CID 150898: (MISSING_MOVE_ASSIGNMENT) Class “Eigen::DenseStorage<int, -1, -1, 1, 0>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
121 template<typename T, int Size, int _Rows, int _Cols, int _Options> class DenseStorage 122 { 123 internal::plain_array<T,Size,_Options> m_data; 124 public: 125 inline DenseStorage() {} 126 inline DenseStorage(internal::constructor_without_unaligned_array_assert) /usr/include/eigen3/Eigen/src/Core/DenseStorage.h: 121 in () 115 * 116 * \sa Matrix 117 */ 118 template<typename T, int Size, int _Rows, int _Cols, int _Options> class DenseStorage; 119 120 // purely fixed-size matrix | |
CID 150898: (MISSING_MOVE_ASSIGNMENT) Class “Eigen::DenseStorage<double, -1, -1, -1, 0>” may benefit from adding a move assignment operator. See other events which show the copy assignment operator being applied to rvalue(s), where a move assignment may be faster. | |
121 template<typename T, int Size, int _Rows, int _Cols, int _Options> class DenseStorage 122 { 123 internal::plain_array<T,Size,_Options> m_data; 124 public: 125 inline DenseStorage() {} 126 inline DenseStorage(internal::constructor_without_unaligned_array_assert) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment