debugedit-5.1-6.fc43
List of Findings
Error: SHELLCHECK_WARNING (CWE-569): [#def1]
/usr/bin/find-debuginfo:297:23: warning[SC1083]: This { is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def2]
/usr/bin/find-debuginfo:297:27: warning[SC1083]: This } is literal. Check expression (missing ;/\n?) or quote it.
Error: SHELLCHECK_WARNING (CWE-569): [#def3]
/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).
Error: SHELLCHECK_WARNING (CWE-569): [#def4]
/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).
Error: SHELLCHECK_WARNING (CWE-569): [#def5]
/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).
Error: SHELLCHECK_WARNING (CWE-569): [#def6]
/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).
Error: SHELLCHECK_WARNING (CWE-571): [#def7]
/usr/bin/find-debuginfo:360:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def8]
/usr/bin/find-debuginfo:361:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def9]
/usr/bin/find-debuginfo:362:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def10]
/usr/bin/find-debuginfo:363:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-571): [#def11]
/usr/bin/find-debuginfo:371:9: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-398): [#def12]
/usr/bin/find-debuginfo:458:12: warning[SC2229]: This does not read 'var'. Remove $/${} for that, or use ${var?} to quiet.
Error: SHELLCHECK_WARNING (CWE-569): [#def13]
/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).
Error: SHELLCHECK_WARNING (CWE-569): [#def14]
/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).
Error: SHELLCHECK_WARNING (CWE-156): [#def15]
/usr/bin/find-debuginfo:606:13: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-252): [#def16]
/usr/bin/find-debuginfo:657:27: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING: [#def17]
/usr/bin/find-debuginfo:670:11: error[SC2157]: Argument to -n is always true due to literal strings.
Error: SHELLCHECK_WARNING (CWE-88): [#def18]
/usr/bin/find-debuginfo:679:63: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-252): [#def19]
/usr/bin/find-debuginfo:691:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def20]
/usr/bin/find-debuginfo:727:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def21]
/usr/bin/find-debuginfo:737:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-252): [#def22]
/usr/bin/find-debuginfo:740:4: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-569): [#def23]
/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).
Error: SHELLCHECK_WARNING (CWE-252): [#def24]
/usr/bin/find-debuginfo:750:6: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING (CWE-569): [#def25]
/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).
Error: CPPCHECK_WARNING (CWE-457): [#def26]
debugedit-5.1/tools/debugedit.c:2325: 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
Error: CPPCHECK_WARNING (CWE-476): [#def27]
debugedit-5.1/tools/debugedit.c:2527: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: comp_dir
Error: CPPCHECK_WARNING (CWE-476): [#def28]
debugedit-5.1/tools/debugedit.c:2528: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: comp_dir
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
debugedit-5.1/tools/debugedit.c:3461:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fdopen_dso(fd, file)’
debugedit-5.1/tools/debugedit.c:3672:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3730:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3736:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3736:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3742:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3774:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3779:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3779:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3785:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3792:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3797:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3797:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3797:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3798:6: branch_false: following ‘false’ branch...
branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3801:15: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3861:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3861:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3895:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3896:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3897:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3915:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3461:7: danger: ‘fdopen_dso(fd, file)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def30]
debugedit-5.1/tools/debugedit.c:3533:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*dso.filename’
debugedit-5.1/tools/debugedit.c:3672:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3730:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3736:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3736:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3742:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3774:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3779:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3779:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3785:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3792:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3797:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3797:9: call_function: calling ‘fdopen_dso’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def31]
debugedit-5.1/tools/debugedit.c:3805:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>.shdr[i].sh_type’
debugedit-5.1/tools/debugedit.c:3672:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3730:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3736:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3736:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3742:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3774:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3779:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3779:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3785:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3792:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3797:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3797:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3797:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3798:6: branch_false: following ‘false’ branch...
branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3801:15: branch_true: following ‘true’ branch...
debugedit-5.1/tools/debugedit.c:3805:15: branch_true: ...to here
debugedit-5.1/tools/debugedit.c:3805:15: danger: use of uninitialized value ‘*<unknown>.shdr[i].sh_type’ here
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
debugedit-5.1/tools/debugedit.c:4018:6: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
debugedit-5.1/tools/debugedit.c:3672:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3730:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3736:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3736:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3742:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3774:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3779:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3779:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3785:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3792:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3797:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3797:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3797:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3798:6: branch_false: following ‘false’ branch...
branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3801:15: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3861:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3861:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3895:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3896:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3897:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3915:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4018:6: danger: ‘<unknown>’ leaks here; was allocated at [(28)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/27)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
debugedit-5.1/tools/debugedit.c:4040:6: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
debugedit-5.1/tools/debugedit.c:3672:1: enter_function: entry to ‘main’
debugedit-5.1/tools/debugedit.c:3730:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3736:17: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3736:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3742:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3774:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3779:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3779:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3785:20: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3792:6: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
debugedit-5.1/tools/debugedit.c:3797:9: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3797:9: call_function: calling ‘fdopen_dso’ from ‘main’
debugedit-5.1/tools/debugedit.c:3797:9: return_function: returning to ‘main’ from ‘fdopen_dso’
debugedit-5.1/tools/debugedit.c:3798:6: branch_false: following ‘false’ branch...
branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3801:15: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3861:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3861:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3895:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3896:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:23: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3897:23: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:3894:22: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:3915:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4018:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:4023:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4029:6: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:4030:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4029:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:4031:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4029:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:4032:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4029:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:4033:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4029:8: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:4029:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4029:8: branch_false: following ‘false’ branch (when ‘build_id’ is NULL)...
debugedit-5.1/tools/debugedit.c:4035:8: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4029:7: branch_false: following ‘false’ branch...
debugedit-5.1/tools/debugedit.c:4040:7: branch_false: ...to here
debugedit-5.1/tools/debugedit.c:4040:6: danger: ‘<unknown>’ leaks here; was allocated at [(28)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/27)
Error: CPPCHECK_WARNING (CWE-823): [#def34]
debugedit-5.1/tools/hashtab.c:186: error[arrayIndexOutOfBounds]: Array 'prime_tab[30]' accessed at index 30, which is out of bounds.
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-188.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | debugedit-5.1-6.fc43 |
store-results-to | /tmp/tmpbiom7atz/debugedit-5.1-6.fc43.tar.xz |
time-created | 2025-04-25 12:24:19 |
time-finished | 2025-04-25 12:25:37 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpbiom7atz/debugedit-5.1-6.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpbiom7atz/debugedit-5.1-6.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |