Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:43:23: warning[-Wanalyzer-malloc-leak]: leak of ‘Solid_scan_string(_code,  _scanner)’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1826:17: note: in expansion of macro ‘yy_scan_string’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:17: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1799:24: note: in expansion of macro ‘yyalloc’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.7.0-build/solid-6.7.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): [#def2]
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1826:17: note: in expansion of macro ‘yy_scan_string’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:17: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1848:24: note: in expansion of macro ‘yyalloc’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.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): [#def3]
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solid_create_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1595:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1581:21: note: in expansion of macro ‘yy_create_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1585:24: note: in expansion of macro ‘yyalloc’
kf6-solid-6.7.0-build/solid-6.7.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-401): [#def4]
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1770:38: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1826:17: note: in expansion of macro ‘yy_scan_string’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:17: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1789:17: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1770:66: note: in expansion of macro ‘yyrealloc’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c: scope_hint: In function ‘Solidensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1544:14: note: in expansion of macro ‘YY_CURRENT_BUFFER’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1813:2: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1857:6: note: in expansion of macro ‘yy_scan_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1829:9: note: in expansion of macro ‘yy_scan_bytes’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1534:10: note: in expansion of macro ‘yy_switch_to_buffer’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1543:2: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1739:13: note: in expansion of macro ‘yyensure_buffer_stack’
kf6-solid-6.7.0-build/solid-6.7.0/redhat-linux-build/src/solid/predicate_lexer.c:1770:66: note: in expansion of macro ‘yyrealloc’
kf6-solid-6.7.0-build/solid-6.7.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: COMPILER_WARNING (CWE-563): [#def5]
kf6-solid-6.7.0-build/solid-6.7.0/src/solid/devices/predicate_parser.y: scope_hint: In function ‘Soliderror’
kf6-solid-6.7.0-build/solid-6.7.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-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.8.0-1.fc42
diffbase-store-results-to/tmp/tmpcw7abegu/kf6-solid-6.8.0-1.fc42.tar.xz
diffbase-time-created2024-11-13 01:07:58
diffbase-time-finished2024-11-13 01:10:56
diffbase-toolcsmock
diffbase-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'
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.7.0-1.fc41
store-results-to/tmp/tmpzrecchgo/kf6-solid-6.7.0-1.fc41.tar.xz
time-created2024-11-13 01:04:13
time-finished2024-11-13 01:07:38
titleFixed findings
toolcsmock
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'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9