Error: SHELLCHECK_WARNING (CWE-149): [#def1] /usr/bin/xfs_admin:36:34: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them. # 34| IO_OPTS=$IO_OPTS" -r -c label" # 35| ;; # 36|-> L) DB_OPTS=$DB_OPTS" -c 'label "$OPTARG"'" # 37| IO_OPTS=$IO_OPTS" -c 'label -s "$OPTARG"'" # 38| ;; Error: SHELLCHECK_WARNING (CWE-149): [#def2] /usr/bin/xfs_admin:37:35: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them. # 35| ;; # 36| L) DB_OPTS=$DB_OPTS" -c 'label "$OPTARG"'" # 37|-> IO_OPTS=$IO_OPTS" -c 'label -s "$OPTARG"'" # 38| ;; # 39| O) REPAIR_OPTS=$REPAIR_OPTS" -c $OPTARG" Error: SHELLCHECK_WARNING (CWE-149): [#def3] /usr/bin/xfs_admin:52:33: warning[SC2027]: The surrounding quotes actually unquote this. Remove or escape them. # 50| IO_OPTS=$IO_OPTS" -r -c fsuuid" # 51| ;; # 52|-> U) DB_OPTS=$DB_OPTS" -c 'uuid "$OPTARG"'" # 53| require_offline=1 # 54| ;; Error: SHELLCHECK_WARNING (CWE-88): [#def4] /usr/bin/xfs_admin:64:14: error[SC2068]: Double quote array expansions to avoid re-splitting elements. # 62| esac # 63| done # 64|-> set -- extra $@ # 65| shift $OPTIND # 66| case $# in Error: COMPILER_WARNING (CWE-704): [#def5] xfsprogs-7.1.1/db/btheight.c: scope_hint: In function ‘construct_records_per_block’ xfsprogs-7.1.1/db/btheight.c:158:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 158 | p = strchr(tag, ':'); # | ^ # 156| } # 157| # 158|-> p = strchr(tag, ':'); # 159| if (!p) { # 160| fprintf(stderr, _("%s: expected a btree geometry specification.\n"), tag); Error: COMPILER_WARNING (CWE-704): [#def6] xfsprogs-7.1.1/db/btheight.c:158:11: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type # 156| } # 157| # 158|-> p = strchr(tag, ':'); # 159| if (!p) { # 160| fprintf(stderr, _("%s: expected a btree geometry specification.\n"), tag); Error: COMPILER_WARNING: [#def7] xfsprogs-7.1.1/libxfs/xfs_alloc.c: scope_hint: In function '__xfs_free_extent' xfsprogs-7.1.1/libxfs/xfs_alloc.c:4013:41: warning[-Wunused-but-set-variable=]: variable 'busy_flags' set but not used # 4013 | unsigned int busy_flags = 0; # | ^~~~~~~~~~ # 4011| struct xfs_agf *agf; # 4012| int error; # 4013|-> unsigned int busy_flags = 0; # 4014| # 4015| ASSERT(len != 0); Error: GCC_ANALYZER_WARNING (CWE-476): [#def8] xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2758:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'map' xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2716:1: enter_function: entry to 'xfs_dabuf_map' xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2738:12: branch_false: following 'false' branch... xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2745:13: branch_false: ...to here xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2745:12: branch_true: following 'true' branch... xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2746:23: branch_true: ...to here xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2746:23: call_function: inlined call to 'kmalloc_array' from 'xfs_dabuf_map' xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2748:17: branch_true: ...to here xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2748:17: release_memory: '*mapp' is NULL xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2751:21: branch_true: following 'true' branch... xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2752:26: branch_true: ...to here xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2752:20: branch_false: following 'false' branch... xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2755:28: branch_false: ...to here xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2755:20: branch_false: following 'false' branch... xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2758:32: branch_false: ...to here xfsprogs-7.1.1/libxfs/xfs_da_btree.c:2758:17: danger: dereference of NULL 'map + (long unsigned int)i * 16' # 2756| goto invalid_mapping; # 2757| # 2758|-> map[i].bm_bn = XFS_FSB_TO_DADDR(mp, irecs[i].br_startblock); # 2759| map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); # 2760| off += irecs[i].br_blockcount; Error: COMPILER_WARNING: [#def9] xfsprogs-7.1.1/libxfs/xfs_log_rlimit.c: scope_hint: In function 'libxfs_log_get_max_trans_res' xfsprogs-7.1.1/libxfs/xfs_log_rlimit.c:162:33: warning[-Wunused-but-set-variable=]: variable 'i' set but not used # 162 | unsigned int i; # | ^ # 160| struct xfs_trans_res *resp; # 161| struct xfs_trans_res *end_resp; # 162|-> unsigned int i; # 163| int log_space = 0; # 164| int attr_space; Error: COMPILER_WARNING: [#def10] xfsprogs-7.1.1/repair/prefetch.c: scope_hint: In function ‘do_inode_prefetch’ xfsprogs-7.1.1/repair/prefetch.c:1027:33: warning[-Wunused-but-set-variable=]: variable ‘queues_started’ set but not used # 1027 | int queues_started = 0; # | ^~~~~~~~~~~~~~ # 1025| int i; # 1026| struct workqueue queue; # 1027|-> int queues_started = 0; # 1028| # 1029| /*
| analyzer-version-clippy | 1.100.0 |
| analyzer-version-cppcheck | 2.22.0 |
| analyzer-version-gcc | 16.2.1 |
| analyzer-version-gcc-analyzer | 17.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.100.0 |
| diffbase-analyzer-version-cppcheck | 2.22.0 |
| diffbase-analyzer-version-gcc | 16.2.1 |
| diffbase-analyzer-version-gcc-analyzer | 17.0.0 |
| 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-27.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.20260813.215201.gc98a3c4.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-gcc-latest-x86_64 |
| diffbase-project-name | xfsprogs-7.3.0-1.fc46 |
| diffbase-store-results-to | /tmp/tmpsrcxrn3l/xfsprogs-7.3.0-1.fc46.tar.xz |
| diffbase-time-created | 2026-11-16 20:58:21 |
| diffbase-time-finished | 2026-11-16 21:03:28 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--root-override=fedora-rawhide-gcc-latest-x86_64-6a8f7b28-4780-42db-a632-f7eee2ad4432' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpsrcxrn3l/xfsprogs-7.3.0-1.fc46.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpsrcxrn3l/xfsprogs-7.3.0-1.fc46.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20261112.190040.g4fde093-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-27.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.20260813.215201.gc98a3c4.main-1.el9.noarch |
| mock-config | fedora-rawhide-gcc-latest-x86_64 |
| project-name | xfsprogs-7.1.1-1.fc45 |
| store-results-to | /tmp/tmpujpxldme/xfsprogs-7.1.1-1.fc45.tar.xz |
| time-created | 2026-11-16 20:52:51 |
| time-finished | 2026-11-16 20:57:59 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '--root-override=fedora-rawhide-gcc-latest-x86_64-791e3bc4-02fd-4b33-8881-96cd16260987' '-t' 'cppcheck,gcc,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpujpxldme/xfsprogs-7.1.1-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpujpxldme/xfsprogs-7.1.1-1.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20261112.190040.g4fde093-1.el9 |