Error: GCC_ANALYZER_WARNING (CWE-457): [#def1] file-5.47/src/softmagic.c:258:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'bb.flen' file-5.47/src/softmagic.c:1619:1: enter_function: entry to 'mget' file-5.47/src/softmagic.c:1635:12: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1641:13: branch_false: ...to here file-5.47/src/softmagic.c:1641:12: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1648:13: branch_false: ...to here file-5.47/src/softmagic.c:1965:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1967:17: branch_false: ...to here file-5.47/src/softmagic.c:1968:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1972:21: branch_false: ...to here file-5.47/src/softmagic.c:1972:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1976:21: branch_false: ...to here file-5.47/src/softmagic.c:1976:21: call_function: calling 'save_cont' from 'mget' file-5.47/src/softmagic.c:1976:21: return_function: returning to 'mget' from 'save_cont' file-5.47/src/softmagic.c:1976:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1981:17: branch_false: ...to here file-5.47/src/softmagic.c:1988:22: call_function: calling 'match' from 'mget' # 256| # 257| /* if main entry matches, print it... */ # 258|-> switch (mget(ms, m, b, CAST(const unsigned char *, bb.fbuf), # 259| bb.flen, offset, cont_level, # 260| mode, text, flip, indir_count, name_count, Error: GCC_ANALYZER_WARNING (CWE-457): [#def2] file-5.47/src/softmagic.c:1587:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*bb.elen' file-5.47/src/softmagic.c:1619:1: enter_function: entry to 'mget' file-5.47/src/softmagic.c:1635:12: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1641:13: branch_false: ...to here file-5.47/src/softmagic.c:1641:12: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1648:13: branch_false: ...to here file-5.47/src/softmagic.c:1965:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1967:17: branch_false: ...to here file-5.47/src/softmagic.c:1968:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1972:21: branch_false: ...to here file-5.47/src/softmagic.c:1972:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1976:21: branch_false: ...to here file-5.47/src/softmagic.c:1976:21: call_function: calling 'save_cont' from 'mget' file-5.47/src/softmagic.c:1976:21: return_function: returning to 'mget' from 'save_cont' file-5.47/src/softmagic.c:1976:20: branch_false: following 'false' branch... file-5.47/src/softmagic.c:1981:17: branch_false: ...to here file-5.47/src/softmagic.c:1988:22: call_function: calling 'match' from 'mget' # 1585| } # 1586| if ((ms->flags & MAGIC_DEBUG) != 0) { # 1587|-> fprintf(stderr, "bb=[%p,%" SIZE_T_FORMAT "u,%" # 1588| SIZE_T_FORMAT "u], %d [b=%p,%" # 1589| SIZE_T_FORMAT "u,%" SIZE_T_FORMAT "u], [o=%#x, c=%d]\n",
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-38.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | file-5.46-9.fc44 |
| diffbase-store-results-to | /tmp/tmpm0uvjv9t/file-5.46-9.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 14:10:23 |
| diffbase-time-finished | 2026-08-03 14:12:51 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpm0uvjv9t/file-5.46-9.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpm0uvjv9t/file-5.46-9.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-38.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | file-5.47-3.fc45 |
| store-results-to | /tmp/tmpc2fnysqw/file-5.47-3.fc45.tar.xz |
| time-created | 2026-08-03 14:13:06 |
| time-finished | 2026-08-03 14:14:46 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpc2fnysqw/file-5.47-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpc2fnysqw/file-5.47-3.fc45.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |