Error: COMPILER_WARNING: [#def1] [important] solid-6.22.0/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-gH3PRR/HAVE_SYS_MNTTAB_H.c:3:10: error[fatal error]: sys/mnttab.h: No such file or directory Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1576:54: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1563:21: enter_function: entry to ‘Solid_create_buffer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1567:31: call_function: inlined call to ‘Solidalloc’ from ‘Solid_create_buffer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1568:12: branch_false: following ‘false’ branch... solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1571:9: branch_false: ...to here solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1576:54: danger: ‘malloc(64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 1574| * we need to put in 2 end-of-buffer characters. # 1575| */ # 1576|-> b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); # 1577| if ( ! b->yy_ch_buf ) # 1578| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1619:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1498:10: enter_function: entry to ‘Solidrestart’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1503:9: call_function: calling ‘Solidensure_buffer_stack’ from ‘Solidrestart’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1503:9: return_function: returning to ‘Solidrestart’ from ‘Solidensure_buffer_stack’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1505:13: call_function: calling ‘Solid_create_buffer’ from ‘Solidrestart’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1505:13: return_function: returning to ‘Solidrestart’ from ‘Solid_create_buffer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1508:9: branch_false: following ‘false’ branch... solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1508:9: branch_false: ...to here solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1508:9: call_function: calling ‘Solid_init_buffer’ from ‘Solidrestart’ # 1617| yy_flush_buffer( b , yyscanner); # 1618| # 1619|-> b->yy_input_file = file; # 1620| b->yy_fill_buffer = 1; # 1621| Error: GCC_ANALYZER_WARNING (CWE-401): [#def4] solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1752:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2264:6: enter_function: entry to ‘PredicateParse_initLexer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: call_function: calling ‘Solid_scan_string’ from ‘PredicateParse_initLexer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: return_function: returning to ‘PredicateParse_initLexer’ from ‘Solid_scan_string’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: call_function: calling ‘Solid_switch_to_buffer’ from ‘PredicateParse_initLexer’ # 1750| # 1751| num_to_alloc = yyg->yy_buffer_stack_max + grow_size; # 1752|-> yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc # 1753| (yyg->yy_buffer_stack, # 1754| num_to_alloc * sizeof(struct yy_buffer_state*) Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1811:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2264:6: enter_function: entry to ‘PredicateParse_initLexer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: call_function: calling ‘Solid_scan_string’ from ‘PredicateParse_initLexer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: return_function: returning to ‘PredicateParse_initLexer’ from ‘Solid_scan_string’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: call_function: calling ‘Solid_switch_to_buffer’ from ‘PredicateParse_initLexer’ # 1809| { # 1810| # 1811|-> return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); # 1812| } # 1813| Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1811:16: warning[-Wanalyzer-malloc-leak]: leak of ‘Solid_scan_string(_code, _scanner)’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2264:6: enter_function: entry to ‘PredicateParse_initLexer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: call_function: calling ‘Solid_scan_string’ from ‘PredicateParse_initLexer’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: return_function: returning to ‘PredicateParse_initLexer’ from ‘Solid_scan_string’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:2266:5: call_function: calling ‘Solid_switch_to_buffer’ from ‘PredicateParse_initLexer’ # 1809| { # 1810| # 1811|-> return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); # 1812| } # 1813| Error: GCC_ANALYZER_WARNING (CWE-401): [#def7] solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1837:33: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1821:17: enter_function: entry to ‘Solid_scan_bytes’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1830:24: call_function: inlined call to ‘Solidalloc’ from ‘Solid_scan_bytes’ solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1831:12: branch_false: following ‘false’ branch... solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1831:12: branch_false: ...to here solid-6.22.0/redhat-linux-build/src/solid/predicate_lexer.c:1839:13: call_function: calling ‘Solid_scan_buffer’ from ‘Solid_scan_bytes’ # 1835| buf[i] = yybytes[i]; # 1836| # 1837|-> buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; # 1838| # 1839| b = yy_scan_buffer( buf, n , yyscanner); Error: COMPILER_WARNING: [#def8] solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c: scope_hint: In function ‘Solidparse’ solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:72:25: warning[-Wunused-but-set-variable=]: variable ‘Solidnerrs’ set but not used # 72 | #define yynerrs Solidnerrs # | ^~~~~~~~~~ solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:894:9: note: in expansion of macro ‘yynerrs’ # 894 | int yynerrs = 0; # | ^~~~~~~ # 70| #define yyerror Soliderror # 71| #define yydebug Soliddebug # 72|-> #define yynerrs Solidnerrs # 73| # 74| /* First part of user prologue. */ Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:1002:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’ solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:1408:6: enter_function: entry to ‘PredicateParse_mainParse’ solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:1413:5: call_function: calling ‘Solidparse’ from ‘PredicateParse_mainParse’ # 1000| if (! yyptr) # 1001| YYNOMEM; # 1002|-> YYSTACK_RELOCATE (yyss_alloc, yyss); # 1003| YYSTACK_RELOCATE (yyvs_alloc, yyvs); # 1004| # undef YYSTACK_RELOCATE Error: GCC_ANALYZER_WARNING (CWE-457): [#def10] solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:1002:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’ solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:1408:6: enter_function: entry to ‘PredicateParse_mainParse’ solid-6.22.0/redhat-linux-build/src/solid/predicate_parser.c:1413:5: call_function: calling ‘Solidparse’ from ‘PredicateParse_mainParse’ # 1000| if (! yyptr) # 1001| YYNOMEM; # 1002|-> YYSTACK_RELOCATE (yyss_alloc, yyss); # 1003| YYSTACK_RELOCATE (yyvs_alloc, yyvs); # 1004| # undef YYSTACK_RELOCATE Error: COMPILER_WARNING: [#def11] solid-6.22.0/src/solid/devices/backends/udisks2/udisksopticaldisc.cpp: scope_hint: In function ‘Solid::OpticalDisc::ContentType advancedDiscDetect(const QByteArray&)’ solid-6.22.0/src/solid/devices/backends/udisks2/udisksopticaldisc.cpp:41:9: warning[-Wunused-but-set-variable=]: variable ‘curr_record’ set but not used # 41 | int curr_record = 1; # | ^~~~~~~~~~~ # 39| int pos = 0; # 40| /* the path table record we're on */ # 41|-> int curr_record = 1; # 42| /* import debug category */ # 43| using Solid::Backends::UDisks2::UDISKS2;
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-123.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | kf6-solid-6.22.0-1.fc44 |
| store-results-to | /tmp/tmp433jxj1h/kf6-solid-6.22.0-1.fc44.tar.xz |
| time-created | 2026-01-08 18:18:52 |
| time-finished | 2026-01-08 18:24:48 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp433jxj1h/kf6-solid-6.22.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp433jxj1h/kf6-solid-6.22.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |