Task #152240 - fixed.err
back to task #152240download
Error: SHELLCHECK_WARNING (CWE-149):
/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):
/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):
/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):
/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):
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):
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:
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):
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:
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:
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| /*