Task #606 - kf5-kservice-5.116.0-1.fc41/scan-results.err
back to task #606download
Error: CPPCHECK_WARNING: kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:43:23: warning[-Wanalyzer-malloc-leak]: leak of ‘kiotrader_scan_string(_code, _scanner)’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2001:17: note: in expansion of macro ‘yy_scan_string’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2014:17: note: in expansion of macro ‘yy_scan_bytes’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2032:6: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1964:17: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1964:17: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1974:24: note: in expansion of macro ‘yyalloc’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1988:2: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1709:10: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1914:13: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1719:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1988:2: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2032:6: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1709:10: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1914:13: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1719:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ # 41| #ifdef yy_scan_bytes # 42| #define kiotrader_scan_bytes_ALREADY_DEFINED # 43|-> #else # 44| #define yy_scan_bytes kiotrader_scan_bytes # 45| #endif Error: COMPILER_WARNING (CWE-1164): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1615:16: warning[-Wunused-function]: ‘input’ defined but not used # 1615 | #else # | ^ # 1613| #ifdef __cplusplus # 1614| static int yyinput (yyscan_t yyscanner) # 1615|-> #else # 1616| static int input (yyscan_t yyscanner) # 1617| #endif Error: GCC_ANALYZER_WARNING (CWE-401): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1719:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2001:17: note: in expansion of macro ‘yy_scan_string’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2014:17: note: in expansion of macro ‘yy_scan_bytes’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2023:24: note: in expansion of macro ‘yyalloc’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2032:6: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1964:17: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1964:17: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1988:2: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1709:10: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1914:13: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1719:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1988:2: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2032:6: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1709:10: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1914:13: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1719:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’ # 1717| * yypush_buffer_state(new_buffer); # 1718| */ # 1719|-> yyensure_buffer_stack (yyscanner); # 1720| if ( YY_CURRENT_BUFFER == new_buffer ) # 1721| return; Error: GCC_ANALYZER_WARNING (CWE-401): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_create_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1770:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1756:21: note: in expansion of macro ‘yy_create_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1760:24: note: in expansion of macro ‘yyalloc’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_create_buffer’ # 1768| * we need to put in 2 end-of-buffer characters. # 1769| */ # 1770|-> b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); # 1771| if ( ! b->yy_ch_buf ) # 1772| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); Error: GCC_ANALYZER_WARNING (CWE-476): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1812:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1691:10: note: in expansion of macro ‘yyrestart’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1696:16: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1914:13: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1696:16: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1698:27: note: in expansion of macro ‘yy_create_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1756:21: note: in expansion of macro ‘yy_create_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1775:2: note: in expansion of macro ‘yy_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1804:17: note: in expansion of macro ‘yy_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1810:2: note: in expansion of macro ‘yy_flush_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1833:10: note: in expansion of macro ‘yy_flush_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1810:2: note: in expansion of macro ‘yy_flush_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1775:2: note: in expansion of macro ‘yy_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1698:27: note: in expansion of macro ‘yy_create_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1701:2: note: in expansion of macro ‘yy_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1701:2: note: in expansion of macro ‘yy_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1701:2: note: in expansion of macro ‘yy_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1804:17: note: in expansion of macro ‘yy_init_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1810:2: note: in expansion of macro ‘yy_flush_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1833:10: note: in expansion of macro ‘yy_flush_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1810:2: note: in expansion of macro ‘yy_flush_buffer’ # 1810| # 1811| yy_flush_buffer( b , yyscanner); # 1812|-> # 1813| b->yy_input_file = file; # 1814| b->yy_fill_buffer = 1; Error: GCC_ANALYZER_WARNING (CWE-401): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotraderensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1945:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2001:17: note: in expansion of macro ‘yy_scan_string’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2014:17: note: in expansion of macro ‘yy_scan_bytes’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2032:6: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1964:17: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1964:17: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1988:2: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1709:10: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1914:13: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1945:66: note: in expansion of macro ‘yyrealloc’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotraderensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1719:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1988:2: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2032:6: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2004:9: note: in expansion of macro ‘yy_scan_bytes’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ services/lex.l:162:3: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1709:10: note: in expansion of macro ‘yy_switch_to_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1718:2: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1914:13: note: in expansion of macro ‘yyensure_buffer_stack’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1945:66: note: in expansion of macro ‘yyrealloc’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotraderensure_buffer_stack’ # 1943| yy_size_t grow_size = 8 /* arbitrary grow size */; # 1944| # 1945|-> num_to_alloc = yyg->yy_buffer_stack_max + grow_size; # 1946| yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc # 1947| (yyg->yy_buffer_stack, Error: GCC_ANALYZER_WARNING (CWE-401): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2030:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2014:17: note: in expansion of macro ‘yy_scan_bytes’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2023:24: note: in expansion of macro ‘yyalloc’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c: scope_hint: In function ‘kiotrader_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:2032:6: note: in expansion of macro ‘yy_scan_buffer’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/lex.c:1964:17: note: in expansion of macro ‘yy_scan_buffer’ # 2028| for ( i = 0; i < _yybytes_len; ++i ) # 2029| buf[i] = yybytes[i]; # 2030|-> # 2031| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; # 2032| Error: GCC_ANALYZER_WARNING (CWE-401): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c: scope_hint: In function ‘kiotraderparse’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:418:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:99:40: note: in definition of macro ‘YY_CAST’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:404:25: note: in expansion of macro ‘YYMALLOC’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1098:20: note: in expansion of macro ‘YYSTACK_ALLOC’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:980:1: note: in expansion of macro ‘yyparse’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1147:16: note: in expansion of macro ‘yylex’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1168:17: note: in expansion of macro ‘YYTRANSLATE’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1147:16: note: in expansion of macro ‘yylex’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:99:40: note: in definition of macro ‘YY_CAST’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:404:25: note: in expansion of macro ‘YYMALLOC’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1098:20: note: in expansion of macro ‘YYSTACK_ALLOC’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:463:9: note: in expansion of macro ‘YYCOPY’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1101:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:99:40: note: in definition of macro ‘YY_CAST’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:404:25: note: in expansion of macro ‘YYMALLOC’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1098:20: note: in expansion of macro ‘YYSTACK_ALLOC’ # 416| # endif # 417| # ifndef YYMALLOC # 418|-> # define YYMALLOC malloc # 419| # if ! defined malloc && ! defined EXIT_SUCCESS # 420| void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ Error: GCC_ANALYZER_WARNING (CWE-457): kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:478:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:463:9: note: in expansion of macro ‘YYCOPY’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1101:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:980:1: note: in expansion of macro ‘yyparse’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:463:9: note: in expansion of macro ‘YYCOPY’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1101:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:463:9: note: in expansion of macro ‘YYCOPY’ kf5-kservice-5.116.0-build/kservice-5.116.0/redhat-linux-build/src/yacc.c:1101:9: note: in expansion of macro ‘YYSTACK_RELOCATE’ # 476| # if defined __GNUC__ && 1 < __GNUC__ # 477| # define YYCOPY(Dst, Src, Count) \ # 478|-> __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src))) # 479| # else # 480| # define YYCOPY(Dst, Src, Count) \ Error: COMPILER_WARNING (CWE-477): kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp: scope_hint: In static member function ‘static void KToolInvocation::invokeMailer(const QString&, const QString&, const QString&, const QString&, const QString&, const QString&, const QStringList&, const QByteArray&)’ kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp:233:26: warning[-Wdeprecated-declarations]: ‘void KMessage::message(MessageType, const QString&, const QString&)’ is deprecated: Since 5.97. Use Qt logging or custom message handling. # 233 | KMessage::message(KMessage::Error, // # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ # 234 | i18n("Could not launch the mail client:\n\n%1", error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 235 | i18n("Could not launch Mail Client")); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KF5/KCoreAddons/KMessage:1: included_from: Included from here. kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp:23: included_from: Included from here. /usr/include/KF5/KCoreAddons/kmessage.h:82:6: note: declared here # 82 | void message(KMessage::MessageType messageType, const QString &text, const QString &caption = QString()); # | ^~~~~~~ # 231| // with sending more ASN data # 232| if (kdeinitExec(cmd, cmdTokens, &error, nullptr, startup_id)) { # 233|-> KMessage::message(KMessage::Error, // # 234| i18n("Could not launch the mail client:\n\n%1", error), # 235| i18n("Could not launch Mail Client")); Error: COMPILER_WARNING (CWE-477): kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp: scope_hint: In static member function ‘static void KToolInvocation::invokeBrowser(const QString&, const QByteArray&)’ kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp:282:42: warning[-Wdeprecated-declarations]: ‘void KMessage::message(MessageType, const QString&, const QString&)’ is deprecated: Since 5.97. Use Qt logging or custom message handling. # 282 | KMessage::message(KMessage::Error, # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ # 283 | // TODO: i18n("Could not launch %1:\n\n%2", exe, error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 284 | i18n("Could not launch the browser:\n\n%1", error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 285 | i18n("Could not launch Browser")); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KF5/KCoreAddons/kmessage.h:82:6: note: declared here # 82 | void message(KMessage::MessageType messageType, const QString &text, const QString &caption = QString()); # | ^~~~~~~ # 280| // qDebug() << "Starting service" << service->entryPath(); # 281| if (startServiceByDesktopPath(service->entryPath(), args, &error, nullptr, nullptr, startup_id)) { # 282|-> KMessage::message(KMessage::Error, # 283| // TODO: i18n("Could not launch %1:\n\n%2", exe, error), # 284| i18n("Could not launch the browser:\n\n%1", error), Error: COMPILER_WARNING (CWE-477): kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp:307:38: warning[-Wdeprecated-declarations]: ‘void KMessage::message(MessageType, const QString&, const QString&)’ is deprecated: Since 5.97. Use Qt logging or custom message handling. # 307 | KMessage::message(KMessage::Error, # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ # 308 | // TODO: i18n("Could not launch %1:\n\n%2", htmlApp->exec(), error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 309 | i18n("Could not launch the browser:\n\n%1", error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 310 | i18n("Could not launch Browser")); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KF5/KCoreAddons/kmessage.h:82:6: note: declared here # 82 | void message(KMessage::MessageType messageType, const QString &text, const QString &caption = QString()); # | ^~~~~~~ # 305| int err = startServiceByDesktopPath(entryPath, url, &error, nullptr, &pid, startup_id); # 306| if (err != 0) { # 307|-> KMessage::message(KMessage::Error, # 308| // TODO: i18n("Could not launch %1:\n\n%2", htmlApp->exec(), error), # 309| i18n("Could not launch the browser:\n\n%1", error), Error: COMPILER_WARNING (CWE-477): kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp:326:26: warning[-Wdeprecated-declarations]: ‘void KMessage::message(MessageType, const QString&, const QString&)’ is deprecated: Since 5.97. Use Qt logging or custom message handling. # 326 | KMessage::message(KMessage::Error, # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ # 327 | // TODO: i18n("Could not launch %1:\n\n%2", exe, error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 328 | i18n("Could not launch the browser:\n\n%1", error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 329 | i18n("Could not launch Browser")); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KF5/KCoreAddons/kmessage.h:82:6: note: declared here # 82 | void message(KMessage::MessageType messageType, const QString &text, const QString &caption = QString()); # | ^~~~~~~ # 324| // qDebug() << "Using" << exe << "to open" << url; # 325| if (kdeinitExec(exe, args, &error, nullptr, startup_id)) { # 326|-> KMessage::message(KMessage::Error, # 327| // TODO: i18n("Could not launch %1:\n\n%2", exe, error), # 328| i18n("Could not launch the browser:\n\n%1", error), Error: COMPILER_WARNING (CWE-477): kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp: scope_hint: In static member function ‘static void KToolInvocation::invokeTerminal(const QString&, const QStringList&, const QString&, const QByteArray&)’ kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp:342:26: warning[-Wdeprecated-declarations]: ‘void KMessage::message(MessageType, const QString&, const QString&)’ is deprecated: Since 5.97. Use Qt logging or custom message handling. # 342 | KMessage::message(KMessage::Error, i18n("Unable to determine the default terminal")); # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KF5/KCoreAddons/kmessage.h:82:6: note: declared here # 82 | void message(KMessage::MessageType messageType, const QString &text, const QString &caption = QString()); # | ^~~~~~~ # 340| const KService::Ptr terminal = terminalApplication(command, workdir); # 341| if (!terminal) { # 342|-> KMessage::message(KMessage::Error, i18n("Unable to determine the default terminal")); # 343| return; # 344| } Error: COMPILER_WARNING (CWE-477): kf5-kservice-5.116.0-build/kservice-5.116.0/src/kdeinit/ktoolinvocation_x11.cpp:353:26: warning[-Wdeprecated-declarations]: ‘void KMessage::message(MessageType, const QString&, const QString&)’ is deprecated: Since 5.97. Use Qt logging or custom message handling. # 353 | KMessage::message(KMessage::Error, # | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ # 354 | i18n("Could not launch the terminal client:\n\n%1", error), # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 355 | i18n("Could not launch Terminal Client")); # | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/KF5/KCoreAddons/kmessage.h:82:6: note: declared here # 82 | void message(KMessage::MessageType messageType, const QString &text, const QString &caption = QString()); # | ^~~~~~~ # 351| if (self()->startServiceInternal("kdeinit_exec_with_workdir", # 352| cmd, cmdTokens, &error, nullptr, nullptr, startup_id, false, workdir, envs)) { # 353|-> KMessage::message(KMessage::Error, # 354| i18n("Could not launch the terminal client:\n\n%1", error), # 355| i18n("Could not launch Terminal Client")); Error: COMPILER_WARNING (CWE-252): kf5-kservice-5.116.0-build/kservice-5.116.0/src/sycoca/kbuildsycoca.cpp: scope_hint: In member function ‘bool KBuildSycoca::recreate(bool)’ kf5-kservice-5.116.0-build/kservice-5.116.0/src/sycoca/kbuildsycoca.cpp:440:23: warning[-Wunused-result]: ignoring return value of ‘int fchown(int, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’ # 440 | fchown(database.handle(), uid, gid); # | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # 438| const int gid = qEnvironmentVariableIntValue("SUDO_GID"); # 439| if (uid && gid) { # 440|-> fchown(database.handle(), uid, gid); # 441| } # 442| } Error: COMPILER_WARNING (CWE-843): kf5-kservice-5.116.0-build/kservice-5.116.0/src/sycoca/kmemfile.cpp: scope_hint: In member function ‘virtual bool KMemFile::open(QIODevice::OpenMode)’ kf5-kservice-5.116.0-build/kservice-5.116.0/src/sycoca/kmemfile.cpp:168:15: warning[-Wclass-memaccess]: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct KMemFile::Private::sharedInfoData’; use assignment or value-initialization instead # 168 | memset(infoPtr, 0, sizeof(Private::sharedInfoData)); # | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kf5-kservice-5.116.0-build/kservice-5.116.0/src/sycoca/kmemfile.cpp:21:12: note: ‘struct KMemFile::Private::sharedInfoData’ declared here # 21 | struct sharedInfoData { # | ^~~~~~~~~~~~~~ # 166| // no -> create it # 167| infoPtr = static_cast<Private::sharedInfoData *>(d->shmInfo.data()); # 168|-> memset(infoPtr, 0, sizeof(Private::sharedInfoData)); # 169| infoPtr->shmCounter = 1; # 170| if (!d->loadContentsFromFile()) { Error: CLANG_WARNING: kf5-kservice-5.116.0-build/kservice-5.116.0/src/sycoca/ksycocafactory.cpp:57:9: warning[deadcode.DeadStores]: Value stored to 'saveOffset' is never read # 55| // Init index tables # 56| d->m_sycocaDict = new KSycocaDict(str, d->m_sycocaDictOffset); # 57|-> saveOffset = str->device()->seek(saveOffset); # 58| } else { # 59| // We are in kbuildsycoca -- build new database!