kf5-solid-5.116.0-1.fc41

List of Defects

Error: CPPCHECK_WARNING: [#def1]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:43:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Solid_scan_string(_code,  _scanner)’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1826:17: note: in expansion of macro ‘yy_scan_string’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:17: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1799:24: note: in expansion of macro ‘yyalloc’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
#   41|   #ifdef yy_scan_bytes
#   42|   #define Solid_scan_bytes_ALREADY_DEFINED
#   43|-> #else
#   44|   #define yy_scan_bytes Solid_scan_bytes
#   45|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1826:17: note: in expansion of macro ‘yy_scan_string’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:17: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1848:24: note: in expansion of macro ‘yyalloc’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 1542|   	 *		yypush_buffer_state(new_buffer);
# 1543|        */
# 1544|-> 	yyensure_buffer_stack (yyscanner);
# 1545|   	if ( YY_CURRENT_BUFFER == new_buffer )
# 1546|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_create_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1595:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1581:21: note: in expansion of macro ‘yy_create_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1585:24: note: in expansion of macro ‘yyalloc’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_create_buffer’
# 1593|   	 * we need to put in 2 end-of-buffer characters.
# 1594|   	 */
# 1595|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1596|   	if ( ! b->yy_ch_buf )
# 1597|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1637:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:10: note: in expansion of macro ‘yyrestart’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1521:16: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1521:16: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1523:27: note: in expansion of macro ‘yy_create_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1581:21: note: in expansion of macro ‘yy_create_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1600:2: note: in expansion of macro ‘yy_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1629:17: note: in expansion of macro ‘yy_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1635:2: note: in expansion of macro ‘yy_flush_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1658:10: note: in expansion of macro ‘yy_flush_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1635:2: note: in expansion of macro ‘yy_flush_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1600:2: note: in expansion of macro ‘yy_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1523:27: note: in expansion of macro ‘yy_create_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1526:2: note: in expansion of macro ‘yy_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1526:2: note: in expansion of macro ‘yy_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1526:2: note: in expansion of macro ‘yy_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1629:17: note: in expansion of macro ‘yy_init_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1635:2: note: in expansion of macro ‘yy_flush_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1658:10: note: in expansion of macro ‘yy_flush_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1635:2: note: in expansion of macro ‘yy_flush_buffer’
# 1635|   
# 1636|   	yy_flush_buffer( b , yyscanner);
# 1637|-> 
# 1638|   	b->yy_input_file = file;
# 1639|   	b->yy_fill_buffer = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1770:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1826:17: note: in expansion of macro ‘yy_scan_string’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:17: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1770:66: note: in expansion of macro ‘yyrealloc’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1770:66: note: in expansion of macro ‘yyrealloc’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
# 1768|   		yy_size_t grow_size = 8 /* arbitrary grow size */;
# 1769|   
# 1770|-> 		num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
# 1771|   		yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
# 1772|   								(yyg->yy_buffer_stack,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1855:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:17: note: in expansion of macro ‘yy_scan_bytes’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1848:24: note: in expansion of macro ‘yyalloc’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
# 1853|   	for ( i = 0; i < _yybytes_len; ++i )
# 1854|   		buf[i] = yybytes[i];
# 1855|-> 
# 1856|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1857|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c: scope_hint: In function ‘Solidparse’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:397:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:99:40: note: in definition of macro ‘YY_CAST’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:383:25: note: in expansion of macro ‘YYMALLOC’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1008:20: note: in expansion of macro ‘YYSTACK_ALLOC’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:890:1: note: in expansion of macro ‘yyparse’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1057:16: note: in expansion of macro ‘yylex’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1078:17: note: in expansion of macro ‘YYTRANSLATE’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1057:16: note: in expansion of macro ‘yylex’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:99:40: note: in definition of macro ‘YY_CAST’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:383:25: note: in expansion of macro ‘YYMALLOC’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1008:20: note: in expansion of macro ‘YYSTACK_ALLOC’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:442:9: note: in expansion of macro ‘YYCOPY’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1011:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:99:40: note: in definition of macro ‘YY_CAST’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:383:25: note: in expansion of macro ‘YYMALLOC’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1008:20: note: in expansion of macro ‘YYSTACK_ALLOC’
#  395|   #  endif
#  396|   #  ifndef YYMALLOC
#  397|-> #   define YYMALLOC malloc
#  398|   #   if ! defined malloc && ! defined EXIT_SUCCESS
#  399|   void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:457:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:442:9: note: in expansion of macro ‘YYCOPY’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1011:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:890:1: note: in expansion of macro ‘yyparse’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:442:9: note: in expansion of macro ‘YYCOPY’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1011:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:442:9: note: in expansion of macro ‘YYCOPY’
kf5-solid-5.116.0-build/solid-5.116.0/redhat-linux-build/src/solid/predicate_parser.c:1011:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  455|   #  if defined __GNUC__ && 1 < __GNUC__
#  456|   #   define YYCOPY(Dst, Src, Count) \
#  457|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  458|   #  else
#  459|   #   define YYCOPY(Dst, Src, Count)              \

Error: COMPILER_WARNING (CWE-1023): [#def10]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_CAMERA’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def11]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_COMPUTER’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def12]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_HEADPHONES’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def13]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_HEADSET’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def14]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_LAST’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def15]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp: scope_hint: In member function ‘virtual Solid::Battery::BatteryType Solid::Backends::UPower::Battery::type() const’
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_MEDIA_PLAYER’ not handled in switch
#   36 |     switch (t) {
#      |            ^
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def16]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_MODEM’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def17]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_NETWORK’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def18]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_OTHER_AUDIO’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def19]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_PEN’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def20]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_PRINTER’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def21]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_REMOTE_CONTROL’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def22]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_SCANNER’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def23]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_SPEAKERS’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def24]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_TOUCHPAD’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def25]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_TOY’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def26]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_VIDEO’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def27]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerbattery.cpp:36:12: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_WEARABLE’ not handled in switch
#   34|       Solid::Battery::BatteryType result = Solid::Battery::UnknownBattery;
#   35|       const auto t = static_cast<UpDeviceKind>(m_device.data()->prop("Type").toUInt());
#   36|->     switch (t) {
#   37|       case UP_DEVICE_KIND_LINE_POWER: // TODO
#   38|           break;

Error: COMPILER_WARNING (CWE-1023): [#def28]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_CAMERA’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def29]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_MODEM’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def30]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_NETWORK’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def31]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_OTHER_AUDIO’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def32]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp: scope_hint: In member function ‘virtual bool Solid::Backends::UPower::UPowerDevice::queryDeviceInterface(const Solid::DeviceInterface::Type&) const’
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_PEN’ not handled in switch
#   77 |         switch (uptype) {
#      |                ^
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def33]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_PRINTER’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def34]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_REMOTE_CONTROL’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def35]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_SCANNER’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def36]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_TOY’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def37]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_VIDEO’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-1023): [#def38]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/backends/upower/upowerdevice.cpp:77:16: warning[-Wswitch]: enumeration value ‘UP_DEVICE_KIND_WEARABLE’ not handled in switch
#   75|           return true;
#   76|       case Solid::DeviceInterface::Battery:
#   77|->         switch (uptype) {
#   78|           case UP_DEVICE_KIND_BATTERY:
#   79|           case UP_DEVICE_KIND_UPS:

Error: COMPILER_WARNING (CWE-563): [#def39]
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/predicate_parser.y: scope_hint: In function ‘Soliderror’
kf5-solid-5.116.0-build/solid-5.116.0/src/solid/devices/predicate_parser.y:93:28: warning[-Wunused-parameter]: unused parameter ‘scanner’
#   93 | void Soliderror ( yyscan_t scanner, const char *s )  /* Called by Solidparse on error */
#      |                   ~~~~~~~~~^~~~~~~
#   91|   %%
#   92|   
#   93|-> void Soliderror ( yyscan_t scanner, const char *s )  /* Called by Solidparse on error */
#   94|   {
#   95|       PredicateParse_errorDetected(s);

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-88.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namekf5-solid-5.116.0-1.fc41
store-results-to/tmp/tmpeav8pjns/kf5-solid-5.116.0-1.fc41.tar.xz
time-created2024-07-03 13:54:06
time-finished2024-07-03 13:56:36
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpeav8pjns/kf5-solid-5.116.0-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpeav8pjns/kf5-solid-5.116.0-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9