Task #52039 - debugedit-5.1-5.fc42/scan-results.err
back to task #52039download
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:297:23: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
# 295| # RPM_ARCH to create an unique (dir) name. Warn if they aren't set.
# 296| for n in RPM_BUILD_ROOT RPM_BUILD_DIR RPM_PACKAGE_NAME; do
# 297|-> if eval test -z \"\${$n-}\"; then
# 298| echo >&2 "$n is not set"
# 299| exit 1
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:297:27: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
# 295| # RPM_ARCH to create an unique (dir) name. Warn if they aren't set.
# 296| for n in RPM_BUILD_ROOT RPM_BUILD_DIR RPM_PACKAGE_NAME; do
# 297|-> if eval test -z \"\${$n-}\"; then
# 298| echo >&2 "$n is not set"
# 299| exit 1
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:331:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 329| ELFBINSFILE="$BUILDDIR/elfbins.list"
# 330|
# 331|-> > "$SOURCEFILE"
# 332| > "$LISTFILE"
# 333| > "$LINKSFILE"
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:332:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 330|
# 331| > "$SOURCEFILE"
# 332|-> > "$LISTFILE"
# 333| > "$LINKSFILE"
# 334| > "$ELFBINSFILE"
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:333:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 331| > "$SOURCEFILE"
# 332| > "$LISTFILE"
# 333|-> > "$LINKSFILE"
# 334| > "$ELFBINSFILE"
# 335|
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:334:1: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 332| > "$LISTFILE"
# 333| > "$LINKSFILE"
# 334|-> > "$ELFBINSFILE"
# 335|
# 336| debugdir="${RPM_BUILD_ROOT}/usr/lib/debug"
Error: SHELLCHECK_WARNING (CWE-571):
/usr/bin/find-debuginfo:360:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 358| local binary="$2"
# 359|
# 360|-> local dynsyms=`mktemp`
# 361| local funcsyms=`mktemp`
# 362| local keep_symbols=`mktemp`
Error: SHELLCHECK_WARNING (CWE-571):
/usr/bin/find-debuginfo:361:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 359|
# 360| local dynsyms=`mktemp`
# 361|-> local funcsyms=`mktemp`
# 362| local keep_symbols=`mktemp`
# 363| local mini_debuginfo=`mktemp`
Error: SHELLCHECK_WARNING (CWE-571):
/usr/bin/find-debuginfo:362:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 360| local dynsyms=`mktemp`
# 361| local funcsyms=`mktemp`
# 362|-> local keep_symbols=`mktemp`
# 363| local mini_debuginfo=`mktemp`
# 364|
Error: SHELLCHECK_WARNING (CWE-571):
/usr/bin/find-debuginfo:363:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 361| local funcsyms=`mktemp`
# 362| local keep_symbols=`mktemp`
# 363|-> local mini_debuginfo=`mktemp`
# 364|
# 365| # In the minisymtab we don't need the .debug_ sections (already removed
Error: SHELLCHECK_WARNING (CWE-571):
/usr/bin/find-debuginfo:371:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
# 369| # too aggressive. Field $2 is the section name, $3 is the section type
# 370| # and $8 are the section flags.
# 371|-> local remove_sections=`${READELF} -W -S "$debuginfo" \
# 372| | awk '{ if (index($2,".debug_") != 1 \
# 373| && ($3 == "PROGBITS" || $3 == "NOTE" || $3 == "NOBITS") \
Error: SHELLCHECK_WARNING (CWE-398):
/usr/bin/find-debuginfo:458:12: warning[SC2229]: This does not read 'var'. Remove $/${} for that, or use ${var?} to quiet.
# 456| continue
# 457| else
# 458|-> read "$var" < <(echo 1)
# 459| fi
# 460| fi
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:597:3: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 595| local res=0
# 596|
# 597|-> >"$SOURCEFILE"
# 598| >"$ELFBINSFILE"
# 599| # can't use read -n <n>, because it reads bytes one by one, allowing for
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:598:3: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 596|
# 597| >"$SOURCEFILE"
# 598|-> >"$ELFBINSFILE"
# 599| # can't use read -n <n>, because it reads bytes one by one, allowing for
# 600| # races
Error: SHELLCHECK_WARNING (CWE-156):
/usr/bin/find-debuginfo:606:13: warning[SC2046]: Quote this to prevent word splitting.
# 604| break
# 605| fi
# 606|-> do_file $(sed -n "$(( 0x$filenum )) p" "$temp/primary")
# 607| res=$?
# 608| if [ $res != 0 ]; then
Error: SHELLCHECK_WARNING (CWE-252):
/usr/bin/find-debuginfo:657:27: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 655| if $run_dwz \
# 656| && [ -d "${RPM_BUILD_ROOT}/usr/lib/debug" ]; then
# 657|-> readarray dwz_files < <(cd "${RPM_BUILD_ROOT}/usr/lib/debug"; find -type f -name \*.debug | LC_ALL=C sort)
# 658| if [ ${#dwz_files[@]} -gt 0 ]; then
# 659| $quiet || echo "DWARF-compressing ${#dwz_files[@]} files" 2>&1
Error: SHELLCHECK_WARNING:
/usr/bin/find-debuginfo:670:11: error[SC2157]: Argument to -n is always true due to literal strings.
# 668| dwz_multifile_name="${dwz_multifile_name}${dwz_multifile_suffix}"
# 669| dwz_opts="-h -q -r"
# 670|-> [ -n "-j" ] && dwz_opts="${dwz_opts} -j ${n_jobs}"
# 671| [ ${#dwz_files[@]} -gt 1 ] && [ "$dwz_single_file_mode" = "false" ] \
# 672| && dwz_opts="${dwz_opts} -m .dwz/${dwz_multifile_name}"
Error: SHELLCHECK_WARNING (CWE-88):
/usr/bin/find-debuginfo:679:63: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
# 677| && dwz_opts="${dwz_opts} -L ${dwz_max_die_limit}"
# 678| if type dwz >/dev/null 2>&1; then
# 679|-> ( cd "${RPM_BUILD_ROOT}/usr/lib/debug" && dwz $dwz_opts ${dwz_files[@]} )
# 680| else
# 681| echo >&2 "*** ERROR: DWARF compression requested, but no dwz installed"
Error: SHELLCHECK_WARNING (CWE-252):
/usr/bin/find-debuginfo:691:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 689| # dwz invalidates .gnu_debuglink CRC32 in the main files.
# 690| cat "$ELFBINSFILE" |
# 691|-> (cd "$RPM_BUILD_ROOT"; \
# 692| tr '\n' '\0' | xargs -0 sepdebugcrcfix usr/lib/debug)
# 693| fi
Error: SHELLCHECK_WARNING (CWE-252):
/usr/bin/find-debuginfo:727:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 725| # directory (which is why we match against ^ or /).
# 726| LC_ALL=C sort -z -u "$SOURCEFILE" | grep -E -v -z '(^|/)<[a-z _-]+>$' |
# 727|-> (cd "${debug_base_name}"; cpio -pd0mL --quiet "${RPM_BUILD_ROOT}${debug_dest_name}")
# 728| # stupid cpio creates new directories in mode 0700,
# 729| # and non-standard modes may be inherented from original directories, fixup
Error: SHELLCHECK_WARNING (CWE-252):
/usr/bin/find-debuginfo:737:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 735| ((nout > 0)) ||
# 736| test ! -d "${RPM_BUILD_ROOT}/usr/lib" ||
# 737|-> (cd "${RPM_BUILD_ROOT}/usr/lib"; find debug -type d) |
# 738| sed 's,^,%dir /usr/lib/,' >> "$LISTFILE"
# 739|
Error: SHELLCHECK_WARNING (CWE-252):
/usr/bin/find-debuginfo:740:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 738| sed 's,^,%dir /usr/lib/,' >> "$LISTFILE"
# 739|
# 740|-> (cd "${RPM_BUILD_ROOT}/usr"
# 741| test ! -d lib/debug || find lib/debug ! -type d
# 742| test ! -d src/debug -o -n "$srcout" || find src/debug -mindepth 1 -maxdepth 1
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:748:3: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 746| if [ -n "$srcout" ]; then
# 747| srcout="$BUILDDIR/$srcout"
# 748|-> > "$srcout"
# 749| if [ -d "${RPM_BUILD_ROOT}/usr/src/debug" ]; then
# 750| (cd "${RPM_BUILD_ROOT}/usr"
Error: SHELLCHECK_WARNING (CWE-252):
/usr/bin/find-debuginfo:750:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
# 748| > "$srcout"
# 749| if [ -d "${RPM_BUILD_ROOT}/usr/src/debug" ]; then
# 750|-> (cd "${RPM_BUILD_ROOT}/usr"
# 751| find src/debug -mindepth 1 -maxdepth 1
# 752| ) | sed 's,^,/usr/,' >> "$srcout"
Error: SHELLCHECK_WARNING (CWE-569):
/usr/bin/find-debuginfo:803:3: warning[SC2188]: This redirection doesn't have a command. Move to its command (or use 'true' as no-op).
# 801| i=0
# 802| while ((i < nout)); do
# 803|-> > ${outs[$i]}
# 804| filtered_list ${outs[$i]} ${lists[$i]}
# 805| pattern_list ${outs[$i]} "${ptns[$i]}"
Error: CPPCHECK_WARNING (CWE-457):
debugedit-5.1/tools/debugedit.c:2270: error[uninitvar]: Uninitialized variables: &key.cu, &key.new_idx, &key.size_diff, &key.replace_dirs, &key.replace_files, &key.unit_length, &key.version, &key.header_length, &key.min_instr_len, &key.max_op_per_instr, &key.default_is_stmt, &key.line_base, &key.line_range, &key.opcode_base
# 2268| struct line_table key;
# 2269| key.old_idx = idx;
# 2270|-> struct line_table *table = bsearch (&key, lines->table,
# 2271| lines->used,
# 2272| sizeof (struct line_table),
Error: CPPCHECK_WARNING (CWE-476):
debugedit-5.1/tools/debugedit.c:2472: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: comp_dir
# 2470| {
# 2471| comp_dir = malloc (enddir - name + 1);
# 2472|-> memcpy (comp_dir, name, enddir - name);
# 2473| comp_dir [enddir - name] = '\0';
# 2474| }
Error: CPPCHECK_WARNING (CWE-476):
debugedit-5.1/tools/debugedit.c:2473: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: comp_dir
# 2471| comp_dir = malloc (enddir - name + 1);
# 2472| memcpy (comp_dir, name, enddir - name);
# 2473|-> comp_dir [enddir - name] = '\0';
# 2474| }
# 2475| else
Error: GCC_ANALYZER_WARNING (CWE-401):
debugedit-5.1/tools/debugedit.c:3384:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen_dso(fd, file)’
debugedit-5.1/tools/debugedit.c:3595:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3653:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3659:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3659:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3665:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3697:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3702:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3702:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3708:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3715:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3720:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3720:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3720:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3721:6: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3724:15: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3784:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3784:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3818:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3819:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3820:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3838:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3384:7: danger: ‘fdopen_dso(fd, file)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
# 3382| size_t phnum;
# 3383|
# 3384|-> if (dest_dir == NULL && (!do_build_id || no_recompute_build_id))
# 3385| elf = elf_begin (fd, ELF_C_READ, NULL);
# 3386| else
Error: GCC_ANALYZER_WARNING (CWE-457):
debugedit-5.1/tools/debugedit.c:3456:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*dso.filename’
debugedit-5.1/tools/debugedit.c:3595:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3653:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3659:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3659:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3665:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3697:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3702:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3702:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3708:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3715:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3720:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3720:9: call_function: calling ‘fdopen_dso’ from ‘main’
# 3454| if (dso)
# 3455| {
# 3456|-> free ((char *) dso->filename);
# 3457| destroy_strings (&dso->debug_str);
# 3458| destroy_strings (&dso->debug_line_str);
Error: GCC_ANALYZER_WARNING (CWE-457):
debugedit-5.1/tools/debugedit.c:3728:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.shdr[i].sh_type’
debugedit-5.1/tools/debugedit.c:3595:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3653:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3659:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3659:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3665:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3697:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3702:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3702:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3708:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3715:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3720:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3720:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3720:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3721:6: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3724:15: branch_true: following ‘true’ branch...
debugedit-5.1/tools/debugedit.c:3728:15: branch_true: ...to here
debugedit-5.1/tools/debugedit.c:3728:15: danger: use of uninitialized value ‘*<unknown>.shdr[i].sh_type’ here
# 3726| const char *name;
# 3727|
# 3728|-> switch (dso->shdr[i].sh_type)
# 3729| {
# 3730| case SHT_MIPS_DWARF:
Error: GCC_ANALYZER_WARNING (CWE-401):
debugedit-5.1/tools/debugedit.c:3941:6: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
debugedit-5.1/tools/debugedit.c:3595:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3653:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3659:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3659:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3665:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3697:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3702:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3702:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3708:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3715:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3720:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3720:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3720:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3721:6: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3724:15: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3784:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3784:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3818:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3819:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3820:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3838:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3941:6: danger: ‘<unknown>’ leaks here; was allocated at [(28)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/27)
# 3939| }
# 3940|
# 3941|-> if (elf_update (dso->elf, ELF_C_NULL) < 0)
# 3942| {
# 3943| error (1, 0, "Failed to update file: %s", elf_errmsg (elf_errno ()));
Error: GCC_ANALYZER_WARNING (CWE-401):
debugedit-5.1/tools/debugedit.c:3963:6: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
debugedit-5.1/tools/debugedit.c:3595:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3653:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3659:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3659:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3665:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3697:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3702:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3702:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3708:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3715:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3720:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3720:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3720:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3721:6: branch_false: following ‘false’ branch...
<unknown>: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3724:15: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3784:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3784:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3818:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3819:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3820:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3817:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3838:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3941:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3946:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3952:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3953:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3952:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3954:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3952:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3955:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3952:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3956:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3952:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3952:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3952:8: branch_false: following ‘false’ branch (when ‘build_id’ is NULL)...
debugedit-5.1/tools/debugedit.c:3958:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3952:7: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3963:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3963:6: danger: ‘<unknown>’ leaks here; was allocated at [(28)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/27)
# 3961| error (1, 0, "Failed to write file: %s", elf_errmsg (elf_errno()));
# 3962| }
# 3963|-> if (elf_end (dso->elf) < 0)
# 3964| {
# 3965| error (1, 0, "elf_end failed: %s", elf_errmsg (elf_errno()));
Error: CPPCHECK_WARNING (CWE-823):
debugedit-5.1/tools/hashtab.c:186: error[arrayIndexOutOfBounds]: Array 'prime_tab[30]' accessed at index 30, which is out of bounds.
# 184|
# 185| /* If we've run out of primes, abort. */
# 186|-> if (n > prime_tab[low].prime)
# 187| {
# 188| fprintf (stderr, "Cannot find prime bigger than %lu\n", n);