libnbd-1.21.6-1.fc42
List of Findings
Error: SHELLCHECK_WARNING: [#def1]
/usr/bin/nbdsh:25:6: warning[SC2194]: This word is constant. Did you forget the $ on a variable?
Error: SHELLCHECK_WARNING: [#def2]
/usr/bin/nbdsh:37:10: warning[SC3038]: In POSIX sh, exec flags are undefined.
Error: CPPCHECK_WARNING (CWE-476): [#def3]
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/const-string-vector.h:40: error[ctunullpointer]: Null pointer dereference: key
Error: CPPCHECK_WARNING (CWE-457): [#def4]
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.c:70: error[uninitvar]: Uninitialized variable: newbytes
Error: CPPCHECK_WARNING (CWE-457): [#def5]
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.c:70: error[uninitvar]: Uninitialized variable: reqbytes
Error: CPPCHECK_WARNING (CWE-457): [#def6]
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.c:74: error[uninitvar]: Uninitialized variable: reqcap
Error: CPPCHECK_WARNING (CWE-457): [#def7]
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.c:78: warning[uninitvar]: Uninitialized variable: newcap
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:171:12: warning[-Wanalyzer-malloc-leak]: leak of 'q.value'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c:64:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c: scope_hint: In function 'parse_uri_queries'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c: scope_hint: In function 'parse_uri_queries'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:137:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c:64:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c:64:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c: scope_hint: In function 'parse_uri_queries'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c:64:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libnbd-1.21.6-build/libnbd-1.21.6/copy/file-ops.c: scope_hint: In function ‘file_create’
libnbd-1.21.6-build/libnbd-1.21.6/copy/file-ops.c:344:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rwf’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:45: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/copy/nbdcopy.h:29: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/copy/file-ops.c:49: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c: scope_hint: In function ‘finished_read’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:471:31: warning[-Wanalyzer-malloc-leak]: leak of ‘create_subcommand(vp, last_offset, i - last_offset, 1)’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:38: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/common/include/minmax.h:59:25: note: in definition of macro ‘MIN_1’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:529:14: note: in expansion of macro ‘MIN’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:529:19: note: in expansion of macro ‘ROUND_UP’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c: scope_hint: In function ‘finished_read’
libnbd-1.21.6-build/libnbd-1.21.6/common/include/minmax.h:59:25: note: in definition of macro ‘MIN_1’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:529:14: note: in expansion of macro ‘MIN’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:529:19: note: in expansion of macro ‘ROUND_UP’
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:41: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/copy/multi-thread-copying.c:532:20: note: in expansion of macro ‘slice_ptr’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:45: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/copy/nbdcopy.h:29: included_from: Included from here.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libnbd-1.21.6-build/libnbd-1.21.6/copy/null-ops.c: scope_hint: In function ‘null_create’
libnbd-1.21.6-build/libnbd-1.21.6/copy/null-ops.c:50:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rw’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libnbd-1.21.6-build/libnbd-1.21.6/copy/pipe-ops.c: scope_hint: In function ‘pipe_create’
libnbd-1.21.6-build/libnbd-1.21.6/copy/pipe-ops.c:49:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rwp’
Error: CPPCHECK_WARNING (CWE-457): [#def13]
libnbd-1.21.6-build/libnbd-1.21.6/dump/dump.c:367: error[uninitvar]: Uninitialized variable: last
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libnbd-1.21.6-build/libnbd-1.21.6/examples/glib-main-loop.c: scope_hint: In function ‘main’
libnbd-1.21.6-build/libnbd-1.21.6/examples/glib-main-loop.c:291:6: warning[-Wanalyzer-malloc-leak]: leak of ‘nbd_create()’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libnbd-1.21.6-build/libnbd-1.21.6/examples/list-exports.c: scope_hint: In function ‘list_one’
libnbd-1.21.6-build/libnbd-1.21.6/examples/list-exports.c:62:6: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
libnbd-1.21.6-build/libnbd-1.21.6/examples/threaded-reads-and-writes.c: scope_hint: In function ‘start_thread’
libnbd-1.21.6-build/libnbd-1.21.6/examples/threaded-reads-and-writes.c:300:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘&cookies[<unknown>]’
libnbd-1.21.6-build/libnbd-1.21.6/examples/threaded-reads-and-writes.c:29: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/examples/threaded-reads-and-writes.c:256:34: note: in expansion of macro ‘NBD_NULL_COMPLETION’
Error: CPPCHECK_WARNING (CWE-768): [#def17]
libnbd-1.21.6-build/libnbd-1.21.6/fuzzing/libnbd-fuzz-wrapper.c:225: error[unknownEvaluationOrder]: Expression 'nbd,prbuf,sizeof(prbuf),8192,(struct nbd_chunk_callback){.callback=chunk_callback,},(struct nbd_completion_callback){.callback=NULL}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def18]
libnbd-1.21.6-build/libnbd-1.21.6/fuzzing/libnbd-fuzz-wrapper.c:233: error[unknownEvaluationOrder]: Expression 'nbd,length,0,(struct nbd_extent_callback){.callback=extent_callback,},(struct nbd_completion_callback){.callback=NULL}' depends on order of evaluation of side effects
Error: CPPCHECK_WARNING (CWE-768): [#def19]
libnbd-1.21.6-build/libnbd-1.21.6/fuzzing/libnbd-fuzz-wrapper.c:239: error[unknownEvaluationOrder]: Expression 'nbd,length,0,(struct nbd_extent64_callback){.callback=extent64_callback,},(struct nbd_completion_callback){.callback=NULL}' depends on order of evaluation of side effects
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
libnbd-1.21.6-build/libnbd-1.21.6/fuzzing/libnbd-fuzz-wrapper.c: scope_hint: In function ‘nbdkit’
libnbd-1.21.6-build/libnbd-1.21.6/fuzzing/libnbd-fuzz-wrapper.c:446:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wfd[1]’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c: scope_hint: In function ‘collect_export’
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c:48:6: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(desc)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c:48:22: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c:49:7: warning[-Wanalyzer-malloc-leak]: leak of ‘elem.desc’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c: scope_hint: In function ‘collect_export’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:137:3: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c:38:1: note: in expansion of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c: scope_hint: In function ‘collect_export’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c:49:7: warning[-Wanalyzer-malloc-leak]: leak of ‘elem.name’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c: scope_hint: In function ‘collect_export’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:137:3: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:45: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c:38:1: note: in expansion of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro ‘DEFINE_VECTOR_TYPE’
libnbd-1.21.6-build/libnbd-1.21.6/info/list.c: scope_hint: In function ‘collect_export’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libnbd-1.21.6-build/libnbd-1.21.6/lib/crypto.c: scope_hint: In function 'nbd_unlocked_get_tls_username'
libnbd-1.21.6-build/libnbd-1.21.6/lib/crypto.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of 'nbd_unlocked_get_tls_username(h)'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libnbd-1.21.6-build/libnbd-1.21.6/lib/errors.c: scope_hint: In function 'nbd_internal_get_error_context'
libnbd-1.21.6-build/libnbd-1.21.6/lib/errors.c:94:35: warning[-Wanalyzer-malloc-leak]: leak of 'allocate_last_error_on_demand()'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
generator/states-newstyle-opt-meta-context.c: scope_hint: In function 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:52:38: warning[-Wanalyzer-malloc-leak]: leak of 'strndup(&*h.sbuf.or.payload.context.str, (long unsigned int)__builtin_bswap32(*h.sbuf.or.option_reply.replylen) + 18446744073709551612)'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:51:42: note: in definition of macro 'unlikely'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:473:5: note: in expansion of macro 'if_debug'
generator/states-newstyle-opt-meta-context.c:248:7: note: in expansion of macro 'debug'
/usr/include/sys/types.h:176: included_from: Included from here.
/usr/include/stdlib.h:514: included_from: Included from here.
generator/states-connect-socket-activation.c:24: included_from: Included from here.
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:51:42: note: in definition of macro 'unlikely'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:473:5: note: in expansion of macro 'if_debug'
generator/states-newstyle-opt-meta-context.c:248:7: note: in expansion of macro 'debug'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:473:5: note: in expansion of macro 'if_debug'
generator/states-newstyle-opt-meta-context.c:248:7: note: in expansion of macro 'debug'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:432:37: note: in expansion of macro 'CALLBACK_IS_NULL'
generator/states-newstyle-opt-meta-context.c:250:11: note: in expansion of macro 'CALLBACK_IS_NOT_NULL'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h: scope_hint: In function 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:137:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:75:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:75:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
generator/states-newstyle-opt-meta-context.c: scope_hint: In function 'enter_STATE_NEWSTYLE_OPT_META_CONTEXT_CHECK_REPLY'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:51:42: note: in definition of macro 'unlikely'
libnbd-1.21.6-build/libnbd-1.21.6/lib/internal.h:473:5: note: in expansion of macro 'if_debug'
generator/states-newstyle-opt-meta-context.c:248:7: note: in expansion of macro 'debug'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c: scope_hint: In function 'parse_uri_queries'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c:80:10: warning[-Wanalyzer-malloc-leak]: leak of 'q.value'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c: scope_hint: In function 'parse_uri_queries'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:137:3: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c:64:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c:64:1: note: in expansion of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/common/utils/vector.h:153:12: note: in definition of macro 'DEFINE_VECTOR_TYPE'
libnbd-1.21.6-build/libnbd-1.21.6/lib/uri.c: scope_hint: In function 'parse_uri_queries'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libnbd-1.21.6-build/libnbd-1.21.6/lib/utils.c: scope_hint: In function 'get_path'
libnbd-1.21.6-build/libnbd-1.21.6/lib/utils.c:530:12: warning[-Wanalyzer-malloc-leak]: leak of 'get_path()'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
libnbd-1.21.6-build/libnbd-1.21.6/lib/utils.c:551:6: warning[-Wanalyzer-malloc-leak]: leak of 'get_path()'
libnbd-1.21.6-build/libnbd-1.21.6/lib/utils.c:29: included_from: Included from here.
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
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-35.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | libnbd-1.21.6-1.fc42 |
store-results-to | /tmp/tmp4ffwuqik/libnbd-1.21.6-1.fc42.tar.xz |
time-created | 2024-11-13 01:32:53 |
time-finished | 2024-11-13 01:35:17 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp4ffwuqik/libnbd-1.21.6-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp4ffwuqik/libnbd-1.21.6-1.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |