Task #131105 - added.err
back to task #131105download
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/affentry.cxx: scope_hint: In member function 'PfxEntry::~PfxEntry()'
hunspell-1.7.3/src/hunspell/affentry.cxx:869:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/affentry.gcda' profile count data file not found
# 869 | }
# | ^
# 867| rappnd = appnd;
# 868| reverseword(rappnd);
# 869|-> }
# 870|
# 871| #if 0
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/affixmgr.cxx: scope_hint: In function 'std::__advance<w_char*, long>(w_char*&, long, std::random_access_iterator_tag)void'
hunspell-1.7.3/src/hunspell/affixmgr.cxx:4824:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/affixmgr.gcda' profile count data file not found
# 4824 | }
# | ^
# 4822| }
# 4823| return slst;
# 4824|-> }
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/csutil.cxx: scope_hint: In function 'std::__advance<w_char*, long>(w_char*&, long, std::random_access_iterator_tag)void'
hunspell-1.7.3/src/hunspell/csutil.cxx:2659:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/csutil.gcda' profile count data file not found
# 2659 | }
# | ^
# 2657| }
# 2658| return true;
# 2659|-> }
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/filemgr.cxx: scope_hint: In member function 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)'
hunspell-1.7.3/src/hunspell/filemgr.cxx:121:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/filemgr.gcda' profile count data file not found
# 121 | }
# | ^
# 119| int FileMgr::getlinenum() {
# 120| return linenum;
# 121|-> }
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/hashmgr.cxx: scope_hint: In function 'std::__copy_move_backward_a2<true, unsigned short*, unsigned short*>(unsigned short*, unsigned short*, unsigned short*)unsigned short*'
hunspell-1.7.3/src/hunspell/hashmgr.cxx:1414:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/hashmgr.gcda' profile count data file not found
# 1414 | }
# | ^
# 1412| const std::vector<replentry>& HashMgr::get_reptable() const {
# 1413| return reptable;
# 1414|-> }
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/hunspell.cxx: scope_hint: In function 'std::__advance<w_char*, long>(w_char*&, long, std::random_access_iterator_tag)void'
hunspell-1.7.3/src/hunspell/hunspell.cxx:2384:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/hunspell.gcda' profile count data file not found
# 2384 | }
# | ^
# 2382| void Hunspell_free_list(Hunhandle* pHunspell, char*** list, int n) {
# 2383| reinterpret_cast<HunspellImpl*>(pHunspell)->free_list(list, n);
# 2384|-> }
Error: CPPCHECK_WARNING (CWE-457):
hunspell-1.7.3/src/hunspell/hunzip.cxx:264: warning[uninitvar]: Uninitialized variable: linebuf
# 262|
# 263| // copy into line with left-offset from previous line preserved
# 264|-> if (left + strlen(linebuf) >= sizeof(line))
# 265| return false;
# 266| strcpy(line + left, linebuf);
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/hunzip.cxx: scope_hint: In member function 'std::__new_allocator<bit>::allocate(unsigned long, void const*)'
hunspell-1.7.3/src/hunspell/hunzip.cxx:269:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/hunzip.gcda' profile count data file not found
# 269 | }
# | ^
# 267| dest.assign(line);
# 268| return true;
# 269|-> }
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/phonet.cxx: scope_hint: In function 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_move(char*, char const*, unsigned long)'
hunspell-1.7.3/src/hunspell/phonet.cxx:260:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/phonet.gcda' profile count data file not found
# 260 | } /** end of function "phonet" **/
# | ^
# 258|
# 259| return target;
# 260|-> } /** end of function "phonet" **/
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/replist.cxx: scope_hint: In member function 'std::__new_allocator<replentry*>::allocate(unsigned long, void const*)'
hunspell-1.7.3/src/hunspell/replist.cxx:205:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/replist.gcda' profile count data file not found
# 205 | }
# | ^
# 203|
# 204| return true;
# 205|-> }
Error: COMPILER_WARNING:
hunspell-1.7.3/src/hunspell/suggestmgr.cxx: scope_hint: In function 'std::__advance<w_char*, long>(w_char*&, long, std::random_access_iterator_tag)void'
hunspell-1.7.3/src/hunspell/suggestmgr.cxx:2323:1: warning[-Wmissing-profile]: '/builddir/build/BUILD/hunspell-1.7.3/src/hunspell/.libs/suggestmgr.gcda' profile count data file not found
# 2323 | }
# | ^
# 2321| int SuggestMgr::lcslen(const std::string& s, const std::string& s2) {
# 2322| return lcslen(s.c_str(), s2.c_str());
# 2323|-> }
Error: COMPILER_WARNING (CWE-252):
hunspell-1.7.3/src/tools/hunspell.cxx: scope_hint: In function ‘void interactive_interface(Hunspell**, char*, int)’
hunspell-1.7.3/src/tools/hunspell.cxx:1635:19: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
# 1635 | (void)system((std::string("rmdir \"") + odftmpdir + "\"").c_str());
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1633| fprintf(stderr, gettext("Can't open %s.\n"), filename);
# 1634| endwin();
# 1635|-> (void)system((std::string("rmdir \"") + odftmpdir + "\"").c_str());
# 1636| exit(1);
# 1637| }
Error: COMPILER_WARNING (CWE-252):
hunspell-1.7.3/src/tools/hunspell.cxx:1647:19: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
# 1647 | (void)system((std::string("rmdir \"") + odftmpdir + "\"").c_str());
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1645| perror(gettext("Can't open inputfile"));
# 1646| endwin();
# 1647|-> (void)system((std::string("rmdir \"") + odftmpdir + "\"").c_str());
# 1648| exit(1);
# 1649| }
Error: COMPILER_WARNING (CWE-252):
hunspell-1.7.3/src/tools/hunspell.cxx:1658:19: warning[-Wunused-result]: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’
# 1658 | (void)system((std::string("rmdir \"") + odftmpdir + "\"").c_str());
# | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1656| perror(gettext("Can't open inputfile"));
# 1657| endwin();
# 1658|-> (void)system((std::string("rmdir \"") + odftmpdir + "\"").c_str());
# 1659| exit(1);
# 1660| }
Error: CPPCHECK_WARNING (CWE-476):
hunspell-1.7.3/src/tools/munch.cxx:608: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
# 606|
# 607| hp->word = word;
# 608|-> hp->affstr = nullptr;
# 609| hp->keep = 0;
# 610| hp->next = nullptr;
Error: CPPCHECK_WARNING (CWE-476):
hunspell-1.7.3/src/tools/munch.cxx:610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hp
# 608| hp->affstr = nullptr;
# 609| hp->keep = 0;
# 610|-> hp->next = nullptr;
# 611|
# 612| i = hash(word);
Error: COMPILER_WARNING:
hunspell-1.7.3/src/tools/persdiccrash.cxx: scope_hint: In member function ‘std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose()’
hunspell-1.7.3/src/tools/persdiccrash.cxx:22:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/hunspell-1.7.3/src/tools/persdiccrash.gcda’ profile count data file not found
# 22 | }
# | ^
# 20|
# 21| return 0;
# 22|-> }