libunwind-1.8.1-2.fc43
List of Findings
Error: SHELLCHECK_WARNING (CWE-829): [#def1]
/usr/libexec/libunwind/check-namespace.sh:69:8: warning[SC2092]: Remove backticks to avoid executing output (or use eval if intentional).
Error: SHELLCHECK_WARNING: [#def2]
/usr/libexec/libunwind/check-namespace.sh:109:9: warning[SC2195]: This pattern will never match the case statement's word. Double check them.
Error: SHELLCHECK_WARNING (CWE-398): [#def3]
/usr/libexec/libunwind/check-namespace.sh:236:14: warning[SC2050]: This expression is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING (CWE-398): [#def4]
/usr/libexec/libunwind/check-namespace.sh:361:14: warning[SC2050]: This expression is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING (CWE-398): [#def5]
/usr/libexec/libunwind/check-namespace.sh:423:14: warning[SC2050]: This expression is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING: [#def6]
/usr/libexec/libunwind/run-coredump-unwind:24:130: warning[SC3020]: In POSIX sh, &> is undefined.
Error: SHELLCHECK_WARNING (CWE-563): [#def7]
/usr/libexec/libunwind/run-coredump-unwind:36:1: warning[SC2034]: TESTDIR appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-569): [#def8]
/usr/libexec/libunwind/run-coredump-unwind:38:16: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
Error: SHELLCHECK_WARNING (CWE-252): [#def9]
/usr/libexec/libunwind/run-coredump-unwind:47:5: warning[SC2164]: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
Error: SHELLCHECK_WARNING: [#def10]
/usr/libexec/libunwind/run-coredump-unwind:48:12: warning[SC3045]: In POSIX sh, ulimit -c is undefined.
Error: SHELLCHECK_WARNING (CWE-569): [#def11]
/usr/libexec/libunwind/run-coredump-unwind:51:10: warning[SC2125]: Brace expansions and globs are literal in assignments. Quote it or use an array.
Error: SHELLCHECK_WARNING (CWE-156): [#def12]
/usr/libexec/libunwind/run-coredump-unwind:58:44: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-569): [#def13]
/usr/libexec/libunwind/run-ptrace-mapper:24:47: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: COMPILER_WARNING: [#def14]
libunwind-1.8.1/include/dwarf_i.h:10: included_from: Included from here.
libunwind-1.8.1/src/dwarf/Gfind_proc_info-lsb.c:33: included_from: Included from here.
libunwind-1.8.1/src/dwarf/Lfind_proc_info-lsb.c:4: included_from: Included from here.
libunwind-1.8.1/include/libunwind_i.h:146:10: warning: 'unreachable' redefined
libunwind-1.8.1/src/dwarf/Gfind_proc_info-lsb.c:29: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/15/include/stddef.h:468:9: note: this is the location of the previous definition
Error: COMPILER_WARNING: [#def15]
libunwind-1.8.1/src/../include/libunwind_i.h:146:10: warning[warning]: 'unreachable' redefined
Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
libunwind-1.8.1/src/coredump/_UCD_create.c:59:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'ui' where non-null expected
libunwind-1.8.1/src/coredump/_UCD_create.c:59:25: acquire_memory: this call could return NULL
libunwind-1.8.1/src/coredump/_UCD_create.c:59:25: danger: argument 1 ('malloc(288)') from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
libunwind-1.8.1/src/coredump/_UCD_create.c:138:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur'
libunwind-1.8.1/src/coredump/_UCD_create.c:67:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:69:27: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:74:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:80:7: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:80:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:86:7: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:86:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:109:7: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:119:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:124:37: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:125:40: acquire_memory: this call could return NULL
libunwind-1.8.1/src/coredump/_UCD_create.c:126:6: branch_true: following 'true' branch...
branch_true: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:130:14: branch_true: following 'true' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:133:15: branch_true: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:133:14: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:138:27: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:138:11: danger: 'cur' could be NULL: unchecked value from [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
libunwind-1.8.1/src/coredump/_UCD_create.c:162:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur'
libunwind-1.8.1/src/coredump/_UCD_create.c:67:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:69:27: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:74:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:80:7: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:80:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:86:7: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:86:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:109:7: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:111:15: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:119:6: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:124:37: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:125:40: acquire_memory: this call could return NULL
libunwind-1.8.1/src/coredump/_UCD_create.c:126:6: branch_false: following 'false' branch...
branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:154:14: branch_true: following 'true' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:157:15: branch_true: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:157:14: branch_false: following 'false' branch...
libunwind-1.8.1/src/coredump/_UCD_create.c:162:27: branch_false: ...to here
libunwind-1.8.1/src/coredump/_UCD_create.c:162:11: danger: 'cur' could be NULL: unchecked value from [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
Error: COMPILER_WARNING: [#def19]
libunwind-1.8.1/src/coredump/_UPT_get_dyn_info_list_addr.c: scope_hint: In function 'get_list_addr'
libunwind-1.8.1/src/coredump/_UPT_get_dyn_info_list_addr.c:87:3: warning[-Wcpp]: #warning Implement get_list_addr(), please.
Error: COMPILER_WARNING: [#def20]
libunwind-1.8.1/src/coredump/_UPT_get_dyn_info_list_addr.c:87:3: warning[-Wcpp]: #warning Implement get_list_addr(), please.
Error: GCC_ANALYZER_WARNING (CWE-835): [#def21]
libunwind-1.8.1/src/mi/Gaddress_validator.c:118:15: warning[-Wanalyzer-infinite-loop]: infinite loop
libunwind-1.8.1/src/mi/Gaddress_validator.c:118:15: danger: infinite loop here
libunwind-1.8.1/src/mi/Gaddress_validator.c:120:11: branch_true: if it ever follows 'true' branch, it will always do so...
branch_true: ...to here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
libunwind-1.8.1/src/mi/Gdyn-remote.c:249:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'di'
libunwind-1.8.1/src/mi/Gdyn-remote.c:204:1: enter_function: entry to '_Ux86_64_Idyn_remote_find_proc_info'
libunwind-1.8.1/src/mi/Gdyn-remote.c:229:10: branch_false: following 'false' branch...
libunwind-1.8.1/src/mi/Gdyn-remote.c:230:14: call_function: inlined call to 'fetchw' from '_Ux86_64_Idyn_remote_find_proc_info'
libunwind-1.8.1/src/mi/Gdyn-remote.c:229:11: branch_false: following 'false' branch...
libunwind-1.8.1/src/mi/Gdyn-remote.c:233:12: branch_false: ...to here
libunwind-1.8.1/src/mi/Gdyn-remote.c:244:14: branch_true: following 'true' branch...
libunwind-1.8.1/src/mi/Gdyn-remote.c:246:18: branch_true: following 'true' branch (when 'di' is NULL)...
libunwind-1.8.1/src/mi/Gdyn-remote.c:247:22: branch_true: ...to here
libunwind-1.8.1/src/mi/Gdyn-remote.c:247:22: acquire_memory: this call could return NULL
libunwind-1.8.1/src/mi/Gdyn-remote.c:249:15: danger: 'di' could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: COMPILER_WARNING: [#def23]
libunwind-1.8.1/src/ptrace/_UPT_get_dyn_info_list_addr.c: scope_hint: In function 'get_list_addr'
libunwind-1.8.1/src/ptrace/_UPT_get_dyn_info_list_addr.c:85:3: warning[-Wcpp]: #warning Implement get_list_addr(), please.
Error: COMPILER_WARNING: [#def24]
libunwind-1.8.1/src/ptrace/_UPT_get_dyn_info_list_addr.c:85:3: warning[-Wcpp]: #warning Implement get_list_addr(), please.
Error: CPPCHECK_WARNING (CWE-476): [#def25]
libunwind-1.8.1/tests/Gtest-bt.c:268: error[nullPointer]: Null pointer dereference: bad_ptr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
libunwind-1.8.1/tests/Gtest-bt.c:268:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libunwind-1.8.1/tests/Gtest-bt.c:233:1: enter_function: entry to ‘main’
libunwind-1.8.1/tests/Gtest-bt.c:245:3: call_function: calling ‘bar’ from ‘main’
libunwind-1.8.1/tests/Gtest-bt.c:245:3: return_function: returning to ‘main’ from ‘bar’
libunwind-1.8.1/tests/Gtest-bt.c:250:6: branch_false: following ‘false’ branch...
libunwind-1.8.1/tests/Gtest-bt.c:253:7: branch_false: ...to here
libunwind-1.8.1/tests/Gtest-bt.c:261:6: branch_false: following ‘false’ branch...
libunwind-1.8.1/tests/Gtest-bt.c:264:7: branch_false: ...to here
libunwind-1.8.1/tests/Gtest-bt.c:264:6: branch_true: following ‘true’ branch...
libunwind-1.8.1/tests/Gtest-bt.c:268:5: branch_true: ...to here
libunwind-1.8.1/tests/Gtest-bt.c:268:5: danger: dereference of NULL ‘0’
Error: GCC_ANALYZER_WARNING (CWE-479): [#def27]
libunwind-1.8.1/tests/Gtest-concurrent.c:64:9: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘printf’ from within signal handler
libunwind-1.8.1/tests/Gtest-concurrent.c:73:1: enter_function: entry to ‘worker’
libunwind-1.8.1/tests/Gtest-concurrent.c:51:1: enter_function: entry to ‘handler’
libunwind-1.8.1/tests/Gtest-concurrent.c:64:9: danger: call to ‘printf’ from within signal handler
Error: GCC_ANALYZER_WARNING (CWE-479): [#def28]
libunwind-1.8.1/tests/Gtest-concurrent.c:69:5: warning[-Wanalyzer-unsafe-call-within-signal-handler]: call to ‘fprintf’ from within signal handler
libunwind-1.8.1/tests/Gtest-concurrent.c:73:1: enter_function: entry to ‘worker’
libunwind-1.8.1/tests/Gtest-concurrent.c:51:1: enter_function: entry to ‘handler’
libunwind-1.8.1/tests/Gtest-concurrent.c:68:6: branch_true: following ‘true’ branch...
libunwind-1.8.1/tests/Gtest-concurrent.c:69:5: branch_true: ...to here
libunwind-1.8.1/tests/Gtest-concurrent.c:69:5: danger: call to ‘fprintf’ from within signal handler
Error: CPPCHECK_WARNING (CWE-457): [#def29]
libunwind-1.8.1/tests/Gtest-resume-sig.c:135: error[uninitvar]: Uninitialized variable: &foo
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
libunwind-1.8.1/tests/crasher.c:24:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/self/maps", "r")’
libunwind-1.8.1/tests/crasher.c:21:18: acquire_resource: opened here
libunwind-1.8.1/tests/crasher.c:24:9: danger: ‘fopen("/proc/self/maps", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
libunwind-1.8.1/tests/crasher.c:24:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "w")’
libunwind-1.8.1/tests/crasher.c:22:17: acquire_resource: opened here
libunwind-1.8.1/tests/crasher.c:24:9: danger: ‘fopen(fname, "w")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libunwind-1.8.1/tests/crasher.c:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/self/maps", "r")’
libunwind-1.8.1/tests/crasher.c:21:18: acquire_memory: allocated here
libunwind-1.8.1/tests/crasher.c:24:9: danger: ‘fopen("/proc/self/maps", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libunwind-1.8.1/tests/crasher.c:24:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "w")’
libunwind-1.8.1/tests/crasher.c:22:17: acquire_memory: allocated here
libunwind-1.8.1/tests/crasher.c:24:9: danger: ‘fopen(fname, "w")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-674): [#def34]
libunwind-1.8.1/tests/mapper.c:51:5: warning[-Wanalyzer-infinite-recursion]: infinite recursion
libunwind-1.8.1/tests/mapper.c:46:32: enter_function: entry to ‘push_some_stacks’
libunwind-1.8.1/tests/mapper.c:48:6: branch_true: following ‘true’ branch (when ‘n > 0’)...
libunwind-1.8.1/tests/mapper.c:50:5: branch_true: ...to here
libunwind-1.8.1/tests/mapper.c:50:5: call_function: calling ‘push_some_stacks’ from ‘push_some_stacks’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libunwind-1.8.1/tests/test-ptrace-misc.c:100:6: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libunwind-1.8.1/tests/test-ptrace-misc.c:110:1: enter_function: entry to ‘main’
libunwind-1.8.1/tests/test-ptrace-misc.c:119:3: call_function: calling ‘bar’ from ‘main’
Error: CPPCHECK_WARNING (CWE-401): [#def36]
libunwind-1.8.1/tests/test-ptrace-misc.c:106: error[memleak]: Memory leak: r
Error: GCC_ANALYZER_WARNING (CWE-457): [#def37]
libunwind-1.8.1/tests/test-ptrace.c:112:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sp’
libunwind-1.8.1/tests/test-ptrace.c:180:1: enter_function: entry to ‘main’
libunwind-1.8.1/tests/test-ptrace.c:232:6: branch_false: following ‘false’ branch...
libunwind-1.8.1/tests/test-ptrace.c:266:3: branch_false: ...to here
libunwind-1.8.1/tests/test-ptrace.c:270:10: branch_true: following ‘true’ branch...
libunwind-1.8.1/tests/test-ptrace.c:272:13: branch_true: ...to here
libunwind-1.8.1/tests/test-ptrace.c:371:11: call_function: calling ‘do_backtrace’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
libunwind-1.8.1/tests/test-ptrace.c:237:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
libunwind-1.8.1/tests/test-ptrace.c:232:6: branch_true: following ‘true’ branch...
libunwind-1.8.1/tests/test-ptrace.c:236:11: branch_true: ...to here
libunwind-1.8.1/tests/test-ptrace.c:236:10: branch_true: following ‘true’ branch...
libunwind-1.8.1/tests/test-ptrace.c:237:9: branch_true: ...to here
libunwind-1.8.1/tests/test-ptrace.c:237:9: acquire_resource: opened here
libunwind-1.8.1/tests/test-ptrace.c:237:9: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING: [#def39]
libunwind-1.8.1/tests/test-ptrace.c:237:9: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open("/dev/null", 1)’
libunwind-1.8.1/tests/test-ptrace.c:232:6: branch_true: following ‘true’ branch...
libunwind-1.8.1/tests/test-ptrace.c:236:11: branch_true: ...to here
libunwind-1.8.1/tests/test-ptrace.c:236:10: branch_true: following ‘true’ branch...
libunwind-1.8.1/tests/test-ptrace.c:237:9: branch_true: ...to here
libunwind-1.8.1/tests/test-ptrace.c:237:9: acquire_resource: opened here
libunwind-1.8.1/tests/test-ptrace.c:237:9: danger: ‘open("/dev/null", 1)’ could be invalid: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
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-250.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 | libunwind-1.8.1-2.fc43 |
store-results-to | /tmp/tmpdx5insfu/libunwind-1.8.1-2.fc43.tar.xz |
time-created | 2025-04-25 14:10:51 |
time-finished | 2025-04-25 14:12:39 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpdx5insfu/libunwind-1.8.1-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdx5insfu/libunwind-1.8.1-2.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |