kiwi-10.1.13-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/lib/dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh:170:31: warning[SC2048]: Use "${array[@]}" (with quotes) to prevent whitespace problems.
#  168|                   # use this device if present
#  169|                   local device
#  170|->                 for device in ${device_array[*]}; do
#  171|                       if [[ ${device} =~ ${kiwi_oemunattended_id} ]];then
#  172|                           echo "${device}"

Error: SHELLCHECK_WARNING (CWE-277): [#def2]
/usr/lib/dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh:345:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  343|       local image_source
#  344|       local image_md5
#  345|->     mkdir -m 0755 -p "${iso_mount_point}"
#  346|       if ! mount -n "${iso_device}" "${iso_mount_point}"; then
#  347|           report_and_quit "Failed to mount install ISO device"

Error: SHELLCHECK_WARNING (CWE-277): [#def3]
/usr/lib/dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh:349:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  347|           report_and_quit "Failed to mount install ISO device"
#  348|       fi
#  349|->     mkdir -m 0755 -p "${image_mount_point}"
#  350|       if ! mount -n "${iso_mount_point}"/*.squashfs ${image_mount_point};then
#  351|           report_and_quit "Failed to mount install image squashfs filesystem"

Error: SHELLCHECK_WARNING (CWE-277): [#def4]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:121:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  119|       ln -s "${isodev}" "${overlay_base}/isodev"
#  120|       local iso_mount_point="${overlay_base}/live"
#  121|->     mkdir -m 0755 -p "${iso_mount_point}"
#  122|       if ! mount -o ro -n -t "${isofs_type}" "${isodev}" "${iso_mount_point}"; then
#  123|           die "Failed to mount live ISO device"

Error: SHELLCHECK_WARNING (CWE-277): [#def5]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:135:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  133|       local container_mount_point="${overlay_base}/squashfs_container"
#  134|       squashfs_container="${iso_mount_point}/${live_dir}/${squash_image}"
#  135|->     mkdir -m 0755 -p "${container_mount_point}"
#  136|       if ! mount -n "${squashfs_container}" "${container_mount_point}";then
#  137|           die "Failed to mount live ISO squashfs container"

Error: SHELLCHECK_WARNING (CWE-277): [#def6]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:148:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  146|       local rootfs_image="${container_mount_point}/LiveOS/rootfs.img"
#  147|       local root_mount_point="${overlay_base}/rootfsbase"
#  148|->     mkdir -m 0755 -p "${root_mount_point}"
#  149|   
#  150|       if ! [ -e "${rootfs_image}" ] && [ -d "${container_mount_point}/proc" ]; then

Error: SHELLCHECK_WARNING (CWE-277): [#def7]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:166:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  164|       local overlay_base
#  165|       overlay_base=$(getOverlayBaseDirectory)
#  166|->     mkdir -m 0755 -p "${overlay_base}/overlayfs/rw"
#  167|       mkdir -m 0755 -p "${overlay_base}/overlayfs/work"
#  168|   }

Error: SHELLCHECK_WARNING (CWE-277): [#def8]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:167:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  165|       overlay_base=$(getOverlayBaseDirectory)
#  166|       mkdir -m 0755 -p "${overlay_base}/overlayfs/rw"
#  167|->     mkdir -m 0755 -p "${overlay_base}/overlayfs/work"
#  168|   }
#  169|   

Error: SHELLCHECK_WARNING (CWE-277): [#def9]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:177:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  175|       overlay_base=$(getOverlayBaseDirectory)
#  176|       local overlay_mount_point="${overlay_base}/overlayfs"
#  177|->     mkdir -m 0755 -p "${overlay_mount_point}"
#  178|       if [ "${isodiskmode}" = "disk_boot" ];then
#  179|           if ! preparePersistentOverlayDiskBoot "${overlay_mount_point}"; then

Error: SHELLCHECK_WARNING (CWE-277): [#def10]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:187:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  185|           fi
#  186|       fi
#  187|->     mkdir -m 0755 -p "${overlay_mount_point}/rw"
#  188|       mkdir -m 0755 -p "${overlay_mount_point}/work"
#  189|   }

Error: SHELLCHECK_WARNING (CWE-277): [#def11]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:188:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  186|       fi
#  187|       mkdir -m 0755 -p "${overlay_mount_point}/rw"
#  188|->     mkdir -m 0755 -p "${overlay_mount_point}/work"
#  189|   }
#  190|   

Error: SHELLCHECK_WARNING (CWE-277): [#def12]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:200:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  198|       local isoscan_loop_mount=/run/initramfs/isoscan
#  199|       local cow_file_name="${isoscan_loop_mount}/${cow_file_path}"
#  200|->     mkdir -m 0755 -p "${overlay_mount_point}"
#  201|       if ! mount -o "remount,rw" "${isoscan_loop_mount}"; then
#  202|           return 1

Error: SHELLCHECK_WARNING (CWE-277): [#def13]
/usr/lib/dracut/modules.d/90kiwi-live/kiwi-live-lib.sh:225:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#  223|       local overlay_mount_point=$1
#  224|       local partitions_before_cow_part
#  225|->     mkdir -m 0755 -p "${overlay_mount_point}"
#  226|       if ! mount -L cow "${overlay_mount_point}"; then
#  227|           partitions_before_cow_part=$(_partition_count)

Error: SHELLCHECK_WARNING (CWE-277): [#def14]
/usr/lib/dracut/modules.d/90kiwi-overlay/kiwi-overlay-root.sh:49:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   47|       overlay_base=$(getOverlayBaseDirectory)
#   48|       local root_mount_point="${overlay_base}/rootfsbase"
#   49|->     mkdir -m 0755 -p "${root_mount_point}"
#   50|       if ! mount -n "${read_only_partition}" "${root_mount_point}"; then
#   51|           die "Failed to mount overlay(ro) root filesystem"

Error: SHELLCHECK_WARNING (CWE-277): [#def15]
/usr/lib/dracut/modules.d/90kiwi-overlay/kiwi-overlay-root.sh:59:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   57|       local overlay_base
#   58|       overlay_base=$(getOverlayBaseDirectory)
#   59|->     mkdir -m 0755 -p "${overlay_base}/overlayfs/rw"
#   60|       mkdir -m 0755 -p "${overlay_base}/overlayfs/work"
#   61|   }

Error: SHELLCHECK_WARNING (CWE-277): [#def16]
/usr/lib/dracut/modules.d/90kiwi-overlay/kiwi-overlay-root.sh:60:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   58|       overlay_base=$(getOverlayBaseDirectory)
#   59|       mkdir -m 0755 -p "${overlay_base}/overlayfs/rw"
#   60|->     mkdir -m 0755 -p "${overlay_base}/overlayfs/work"
#   61|   }
#   62|   

Error: SHELLCHECK_WARNING (CWE-277): [#def17]
/usr/lib/dracut/modules.d/90kiwi-overlay/kiwi-overlay-root.sh:67:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   65|       overlay_base=$(getOverlayBaseDirectory)
#   66|       local overlay_mount_point="${overlay_base}/overlayfs"
#   67|->     mkdir -m 0755 -p "${overlay_mount_point}"
#   68|       if ! mount "${write_partition}" "${overlay_mount_point}"; then
#   69|           die "Failed to mount overlay(rw) filesystem"

Error: SHELLCHECK_WARNING (CWE-277): [#def18]
/usr/lib/dracut/modules.d/90kiwi-overlay/kiwi-overlay-root.sh:71:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   69|           die "Failed to mount overlay(rw) filesystem"
#   70|       fi
#   71|->     mkdir -m 0755 -p "${overlay_mount_point}/rw"
#   72|       mkdir -m 0755 -p "${overlay_mount_point}/work"
#   73|   }

Error: SHELLCHECK_WARNING (CWE-277): [#def19]
/usr/lib/dracut/modules.d/90kiwi-overlay/kiwi-overlay-root.sh:72:11: warning[SC2174]: When used with -p, -m only applies to the deepest directory.
#   70|       fi
#   71|       mkdir -m 0755 -p "${overlay_mount_point}/rw"
#   72|->     mkdir -m 0755 -p "${overlay_mount_point}/work"
#   73|   }
#   74|   

Error: SHELLCHECK_WARNING (CWE-569): [#def20]
/usr/lib/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh:54:16: warning[SC2048]: Use "${array[@]}" (with quotes) to prevent whitespace problems.
#   52|       # operate on index based cmd_list
#   53|       index=0
#   54|->     for cmd in ${cmd_list[*]};do
#   55|           case ${cmd} in
#   56|           "d")

Error: SHELLCHECK_WARNING (CWE-569): [#def21]
/usr/lib/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh:106:16: warning[SC2048]: Use "${array[@]}" (with quotes) to prevent whitespace problems.
#  104|       # operate on index based cmd_list
#  105|       index=0
#  106|->     for cmd in ${cmd_list[*]};do
#  107|           case ${cmd} in
#  108|           "d")

Error: SHELLCHECK_WARNING (CWE-569): [#def22]
/usr/lib/dracut/modules.d/99kiwi-lib/kiwi-partitions-lib.sh:274:26: warning[SC2048]: Use "${array[@]}" (with quotes) to prevent whitespace problems.
#  272|       );do
#  273|           current_part_uuid=$(get_partition_uuid "${part}")
#  274|->         for part_uuid in ${part_uuids[*]};do
#  275|               if [ "${current_part_uuid}" = "${part_uuid}" ];then
#  276|                   # this partition uuid was already handled. The device

Error: SHELLCHECK_WARNING (CWE-569): [#def23]
/usr/lib/python3.13/site-packages/kiwi/config/functions.sh:295:18: warning[SC2048]: Use "${array[@]}" (with quotes) to prevent whitespace problems.
#  293|               continue
#  294|           fi
#  295|->         for n in ${needlibs[*]};do
#  296|               if [ "$i" = "$n" ];then
#  297|                   found=1; break

Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c: scope_hint: In function ‘main’
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:448:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:34: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  446|               break;
#  447|           case OUTPUT_FSTYPE:
#  448|->             printf("%s\n", header.fstype);
#  449|               break;
#  450|           case OUTPUT_ACCESS:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:451:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  449|               break;
#  450|           case OUTPUT_ACCESS:
#  451|->             printf("%s\n", header.access);
#  452|               break;
#  453|           case OUTPUT_IDENTIFIER:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def26]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:454:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  452|               break;
#  453|           case OUTPUT_IDENTIFIER:
#  454|->             printf("%s\n", header.identifier);
#  455|               break;
#  456|           case OUTPUT_HASH_TYPE:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:460:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  458|               break;
#  459|           case OUTPUT_DATA_BLOCK_SIZE:
#  460|->             printf("%s\n", metadata.data_blksize);
#  461|               break;
#  462|           case OUTPUT_HASH_BLOCK_SIZE:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def28]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:463:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  461|               break;
#  462|           case OUTPUT_HASH_BLOCK_SIZE:
#  463|->             printf("%s\n", metadata.hash_blksize);
#  464|               break;
#  465|           case OUTPUT_DATA_BLOCKS:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def29]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:466:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  464|               break;
#  465|           case OUTPUT_DATA_BLOCKS:
#  466|->             printf("%s\n", metadata.data_blocks);
#  467|               break;
#  468|           case OUTPUT_HASH_START_BLOCK:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def30]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:469:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  467|               break;
#  468|           case OUTPUT_HASH_START_BLOCK:
#  469|->             printf("%s\n", metadata.hash_start_block);
#  470|               break;
#  471|           case OUTPUT_ALGORITHM:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:472:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  470|               break;
#  471|           case OUTPUT_ALGORITHM:
#  472|->             printf("%s\n", metadata.algorithm);
#  473|               break;
#  474|           case OUTPUT_ROOT_HASH:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:475:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  473|               break;
#  474|           case OUTPUT_ROOT_HASH:
#  475|->             printf("%s\n", metadata.root_hash);
#  476|               break;
#  477|           case OUTPUT_SALT:

Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
kiwi-10.1.13-build/kiwi-10.1.13/dracut/modules.d/80kiwi-verity/kiwi-parse-verity.c:478:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_puts’ must be non-null
#  476|               break;
#  477|           case OUTPUT_SALT:
#  478|->             printf("%s\n", metadata.salt);
#  479|               break;
#  480|           default:

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
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-166.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namekiwi-10.1.13-1.fc42
store-results-to/tmp/tmp1azmnxze/kiwi-10.1.13-1.fc42.tar.xz
time-created2024-11-13 01:17:42
time-finished2024-11-13 01:19:18
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp1azmnxze/kiwi-10.1.13-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp1azmnxze/kiwi-10.1.13-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9