Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:41:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Solid_scan_string(_code,  _scanner)’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1799:17: note: in expansion of macro ‘yy_scan_string’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1812:17: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1830:13: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1762:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1762:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1772:31: note: in expansion of macro ‘yyalloc’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1786:9: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1507:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1712:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1517:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1786:9: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1830:13: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1507:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1712:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1517:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
#   39|   #define Solid_scan_bytes_ALREADY_DEFINED
#   40|   #else
#   41|-> #define yy_scan_bytes Solid_scan_bytes
#   42|   #endif
#   43|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1517:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1799:17: note: in expansion of macro ‘yy_scan_string’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1812:17: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1821:24: note: in expansion of macro ‘yyalloc’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1830:13: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1762:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1762:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1786:9: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1507:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1712:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1517:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1786:9: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1830:13: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1507:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1712:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1517:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
# 1515|        */
# 1516|   	yyensure_buffer_stack (yyscanner);
# 1517|-> 	if ( YY_CURRENT_BUFFER == new_buffer )
# 1518|   		return;
# 1519|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_create_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1568:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1554:21: note: in expansion of macro ‘yy_create_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1558:31: note: in expansion of macro ‘yyalloc’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_create_buffer’
# 1566|   	 */
# 1567|   	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
# 1568|-> 	if ( ! b->yy_ch_buf )
# 1569|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
# 1570|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1743:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1799:17: note: in expansion of macro ‘yy_scan_string’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1812:17: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1830:13: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1762:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1762:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1786:9: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1507:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1712:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1743:66: note: in expansion of macro ‘yyrealloc’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1517:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1786:9: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1830:13: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1802:16: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1507:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1516:9: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1712:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c:1743:66: note: in expansion of macro ‘yyrealloc’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
# 1741|   
# 1742|   		num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
# 1743|-> 		yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
# 1744|   								(yyg->yy_buffer_stack,
# 1745|   								num_to_alloc * sizeof(struct yy_buffer_state*)

Error: COMPILER_WARNING (CWE-563): [#def5]
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_parser.c: scope_hint: In function ‘Soliderror’
kf6-solid-6.8.0-build/solid-6.8.0/redhat-linux-build/src/solid/predicate_parser.c:1397:28: warning[-Wunused-parameter]: unused parameter ‘scanner’
# 1397 | void Soliderror ( yyscan_t scanner, const char *s )  /* Called by Solidparse on error */
#      |                   ~~~~~~~~~^~~~~~~
# 1395|   
# 1396|   
# 1397|-> void Soliderror ( yyscan_t scanner, const char *s )  /* Called by Solidparse on error */
# 1398|   {
# 1399|       PredicateParse_errorDetected(s);

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-185.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namekf6-solid-6.7.0-1.fc41
diffbase-store-results-to/tmp/tmpzrecchgo/kf6-solid-6.7.0-1.fc41.tar.xz
diffbase-time-created2024-11-13 01:04:13
diffbase-time-finished2024-11-13 01:07:38
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpzrecchgo/kf6-solid-6.7.0-1.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpzrecchgo/kf6-solid-6.7.0-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-185.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekf6-solid-6.8.0-1.fc42
store-results-to/tmp/tmpcw7abegu/kf6-solid-6.8.0-1.fc42.tar.xz
time-created2024-11-13 01:07:58
time-finished2024-11-13 01:10:56
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpcw7abegu/kf6-solid-6.8.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpcw7abegu/kf6-solid-6.8.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9