tesseract-5.4.1-5.fc42
List of Findings
Error: COMPILER_WARNING: [#def1]
tesseract-5.4.1-build/tesseract-5.4.1/src/ccmain/applybox.cpp: scope_hint: In member function ‘FindSegmentation’
tesseract-5.4.1-build/tesseract-5.4.1/src/ccmain/applybox.cpp:548:66: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
Error: CPPCHECK_WARNING (CWE-476): [#def2]
tesseract-5.4.1-build/tesseract-5.4.1/src/ccstruct/imagedata.cpp:69: warning[nullPointer]: Possible null pointer dereference: imagedata
Error: CPPCHECK_WARNING (CWE-476): [#def3]
tesseract-5.4.1-build/tesseract-5.4.1/src/ccstruct/imagedata.cpp:605: warning[nullPointer]: Possible null pointer dereference: image_data
Error: CPPCHECK_WARNING (CWE-457): [#def4]
tesseract-5.4.1-build/tesseract-5.4.1/src/ccutil/genericvector.h:773: error[uninitvar]: Uninitialized variable: empty
Error: CPPCHECK_WARNING (CWE-398): [#def5]
tesseract-5.4.1-build/tesseract-5.4.1/src/ccutil/unicharset.cpp:218: error[containerOutOfBounds]: Out of bounds access in expression 'lengths[0]' because 'lengths' is empty.
Error: COMPILER_WARNING: [#def6]
tesseract-5.4.1-build/tesseract-5.4.1/src/ccutil/unicharset.cpp:19: included_from: Included from here.
tesseract-5.4.1-build/tesseract-5.4.1/src/ccutil/unicharset.h: scope_hint: In function ‘tesseract::CHAR_FRAGMENT::parse_from_string(char const*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/ccutil/unicharset.h:67:12: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 30 bytes from a string of length 30
Error: COMPILER_WARNING: [#def7]
tesseract-5.4.1-build/tesseract-5.4.1/src/textord/bbgrid.h: scope_hint: In member function ‘Init’
tesseract-5.4.1-build/tesseract-5.4.1/src/textord/bbgrid.h:492:11: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
Error: COMPILER_WARNING: [#def8]
tesseract-5.4.1-build/tesseract-5.4.1/src/textord/colpartitiongrid.cpp: scope_hint: In member function ‘MakeColPartSets’
tesseract-5.4.1-build/tesseract-5.4.1/src/textord/colpartitiongrid.cpp:804:56: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
Error: COMPILER_WARNING: [#def9]
tesseract-5.4.1-build/tesseract-5.4.1/src/textord/topitch.cpp:1218:74: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
/usr/include/c++/14/new: scope_hint: In function ‘tune_row_pitch’
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
Error: COMPILER_WARNING (CWE-195): [#def10]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/errorcounter.cpp: scope_hint: In static member function ‘static double tesseract::ErrorCounter::ComputeErrorRate(tesseract::ShapeClassifier*, int, tesseract::CountTypes, const tesseract::FontInfoTable&, const std::vector<tesseract::Image>&, tesseract::SampleIterator*, double*, double*, std::string*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/errorcounter.cpp:63:39: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<tesseract::Image>::size_type’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-195): [#def11]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/errorcounter.cpp: scope_hint: In static member function ‘static void tesseract::ErrorCounter::DebugNewErrors(tesseract::ShapeClassifier*, tesseract::ShapeClassifier*, tesseract::CountTypes, const tesseract::FontInfoTable&, const std::vector<tesseract::Image>&, tesseract::SampleIterator*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/errorcounter.cpp:127:39: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<tesseract::Image>::size_type’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-195): [#def12]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/errorcounter.cpp: scope_hint: In member function ‘double tesseract::ErrorCounter::ReportErrors(int, tesseract::CountTypes, const tesseract::FontInfoTable&, const tesseract::SampleIterator&, double*, std::string*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/errorcounter.cpp:416:23: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING: [#def13]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/mastertrainer.cpp: scope_hint: In member function ‘ClusterShapes.constprop’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/mastertrainer.cpp:972:60: warning[-Walloc-size-larger-than=]: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807
/usr/include/c++/14/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
Error: COMPILER_WARNING (CWE-195): [#def14]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/mastertrainer.cpp: scope_hint: In member function ‘void tesseract::MasterTrainer::ClusterShapes(int, int, float, tesseract::ShapeTable*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/mastertrainer.cpp:1037:46: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’
Error: COMPILER_WARNING (CWE-195): [#def15]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/trainingsampleset.cpp: scope_hint: In member function ‘void tesseract::TrainingSampleSet::SetupFontIdMap()’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/common/trainingsampleset.cpp:596:20: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘const int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-195): [#def16]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/unicharset/lstmtrainer.cpp: scope_hint: In member function ‘bool tesseract::LSTMTrainer::ComputeTextTargets(const tesseract::NetworkIO&, const std::vector<int>&, tesseract::NetworkIO*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/unicharset/lstmtrainer.cpp:1235:27: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} and ‘int’
Error: COMPILER_WARNING (CWE-195): [#def17]
tesseract-5.4.1-build/tesseract-5.4.1/src/ccutil/unicharset.h:22: included_from: Included from here.
tesseract-5.4.1-build/tesseract-5.4.1/src/training/unicharset/unicharset_training_utils.cpp:32: included_from: Included from here.
tesseract-5.4.1-build/tesseract-5.4.1/src/training/unicharset/unicharset_training_utils.cpp: scope_hint: In function ‘void tesseract::SetupBasicProperties(bool, bool, UNICHARSET*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/unicharset/unicharset_training_utils.cpp:139:56: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘tesseract::UNICHAR_ID’ {aka ‘int’} and ‘size_t’ {aka ‘long unsigned int’}
tesseract-5.4.1-build/tesseract-5.4.1/src/ccutil/errcode.h:55:4: note: in definition of macro ‘ASSERT_HOST’
Error: COMPILER_WARNING (CWE-195): [#def18]
tesseract-5.4.1-build/tesseract-5.4.1/src/training/unicharset/unicharset_training_utils.cpp: scope_hint: In function ‘void tesseract::SetScriptProperties(const std::string&, UNICHARSET*)’
tesseract-5.4.1-build/tesseract-5.4.1/src/training/unicharset/unicharset_training_utils.cpp:157:47: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-253.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | tesseract-5.4.1-5.fc42 |
store-results-to | /tmp/tmp86atpzti/tesseract-5.4.1-5.fc42.tar.xz |
time-created | 2024-11-13 03:27:55 |
time-finished | 2024-11-13 03:37:27 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp86atpzti/tesseract-5.4.1-5.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp86atpzti/tesseract-5.4.1-5.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |