volume_key-0.3.12-29.fc44
List of Findings
Error: SHELLCHECK_WARNING (CWE-156): [#def1]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:21:3: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-670): [#def2]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:56:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def3]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:72:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def4]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:94:11: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def5]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:112:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def6]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:119:11: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def7]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:136:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def8]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:159:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def9]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:181:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def10]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:202:11: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def11]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:220:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def12]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:234:11: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def13]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-receive:277:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-156): [#def14]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:21:3: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-140): [#def15]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:52:16: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def16]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:52:25: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def17]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:52:35: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def18]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:52:45: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def19]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:53:15: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def20]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:53:25: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def21]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:53:35: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-140): [#def22]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:53:45: warning[SC2206]: Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a.
Error: SHELLCHECK_WARNING (CWE-156): [#def23]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:80:49: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-88): [#def24]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:135:14: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-88): [#def25]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:140:14: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-670): [#def26]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:171:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-88): [#def27]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:200:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-88): [#def28]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:204:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: SHELLCHECK_WARNING (CWE-670): [#def29]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:219:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def30]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:239:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def31]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:259:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def32]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:279:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def33]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:299:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def34]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:320:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def35]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:341:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def36]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:392:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def37]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:430:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def38]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:473:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def39]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:511:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def40]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:555:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def41]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:597:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def42]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:641:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def43]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:684:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def44]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:714:11: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def45]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:730:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-140): [#def46]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:765:11: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
Error: SHELLCHECK_WARNING (CWE-670): [#def47]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:786:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def48]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:838:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-670): [#def49]
/usr/share/doc/volume_key/contrib/email/tests/test-escrow-transit:907:13: warning[SC2128]: Expanding an array without an index only gives the first element.
Error: SHELLCHECK_WARNING (CWE-758): [#def50]
/usr/share/doc/volume_key/contrib/email/tests/utest.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: SHELLCHECK_WARNING (CWE-398): [#def51]
/usr/share/doc/volume_key/contrib/email/tests/utest.sh:155:12: warning[SC2045]: Iterating over ls output is fragile. Use globs.
Error: SHELLCHECK_WARNING (CWE-88): [#def52]
/usr/share/doc/volume_key/contrib/email/tests/utest.sh:379:12: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
Error: COMPILER_WARNING (CWE-477): [#def53]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'encrypt_asymmetric'
volume_key-0.3.12/lib/crypto.c:192:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
volume_key-0.3.12/lib/crypto.c:27: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def54]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'decrypt_asymmetric'
volume_key-0.3.12/lib/crypto.c:237:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def55]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'wrap_asymmetric'
volume_key-0.3.12/lib/crypto.c:343:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def56]
volume_key-0.3.12/lib/crypto.c:347:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def57]
volume_key-0.3.12/lib/crypto.c:349:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def58]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'unwrap_asymmetric'
volume_key-0.3.12/lib/crypto.c:432:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def59]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'wrap_symmetric'
volume_key-0.3.12/lib/crypto.c:506:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def60]
volume_key-0.3.12/lib/crypto.c:510:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def61]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'unwrap_symmetric'
volume_key-0.3.12/lib/crypto.c:565:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def62]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'encrypt_with_passphrase'
volume_key-0.3.12/lib/crypto.c:721:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def63]
volume_key-0.3.12/lib/crypto.c: scope_hint: In function 'decrypt_with_passphrase'
volume_key-0.3.12/lib/crypto.c:777:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def64]
volume_key-0.3.12/lib/kmip.c: scope_hint: In function 'kmip_key_value_set_bytes'
volume_key-0.3.12/lib/kmip.c:101:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
volume_key-0.3.12/lib/kmip.c:25: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def65]
volume_key-0.3.12/lib/kmip.c: scope_hint: In function 'kmip_key_value_set_symmetric_key'
volume_key-0.3.12/lib/kmip.c:113:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def66]
volume_key-0.3.12/lib/kmip.c: scope_hint: In function 'get_bytes'
volume_key-0.3.12/lib/kmip.c:923:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: CPPCHECK_WARNING (CWE-190): [#def67]
volume_key-0.3.12/lib/kmip.c:1225: error[integerOverflow]: Signed integer overflow for expression 'KMIP_WRAPPING_LIBVK_ENCRYPT_KEY_ONLY+1'.
Error: CLANG_WARNING: [#def68]
volume_key-0.3.12/lib/kmip.c:1487:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'res'
Error: CLANG_WARNING: [#def69]
volume_key-0.3.12/lib/kmip.c:1607:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'kmip.data'
Error: COMPILER_WARNING (CWE-477): [#def70]
volume_key-0.3.12/lib/kmip.c: scope_hint: In function 'kmip_libvk_packet_wrap_secret_symmetric'
volume_key-0.3.12/lib/kmip.c:1887:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: CLANG_WARNING: [#def71]
volume_key-0.3.12/lib/kmip.c:2101:2: warning[deadcode.DeadStores]: Value stored to 'data' is never read
Error: COMPILER_WARNING: [#def72]
volume_key-0.3.12/lib/libvolume_key.c:49:47: warning[-Wunterminated-string-initialization]: initializer-string for array of 'unsigned char' truncates NUL terminator but destination lacks 'nonstring' attribute (12 chars into 11 available)
Error: COMPILER_WARNING (CWE-477): [#def73]
volume_key-0.3.12/lib/volume.c: scope_hint: In function 'volume_create_data_encryption_key_packet'
volume_key-0.3.12/lib/volume.c:86:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
volume_key-0.3.12/lib/volume.c:25: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def74]
volume_key-0.3.12/lib/volume.c: scope_hint: In function 'volume_create_passphrase_packet'
volume_key-0.3.12/lib/volume.c:132:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: CLANG_WARNING: [#def75]
volume_key-0.3.12/lib/volume.c:284:7: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: COMPILER_WARNING (CWE-477): [#def76]
volume_key-0.3.12/lib/volume_luks.c: scope_hint: In function 'luks_replace_key'
volume_key-0.3.12/lib/volume_luks.c:157:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
volume_key-0.3.12/lib/volume_luks.c:24: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING: [#def77]
volume_key-0.3.12/lib/volume_luks.c: scope_hint: In function 'luks_volume_dump_properties'
volume_key-0.3.12/lib/volume_luks.c:245:35: warning[-Wunterminated-string-initialization]: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available)
Error: CLANG_WARNING: [#def78]
volume_key-0.3.12/lib/volume_luks.c:452:4: warning[unix.Malloc]: Potential leak of memory pointed to by 'key'
Error: COMPILER_WARNING (CWE-477): [#def79]
volume_key-0.3.12/lib/volume_luks.c: scope_hint: In function 'luks_parse_escrow_packet'
volume_key-0.3.12/lib/volume_luks.c:794:11: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: CPPCHECK_WARNING (CWE-457): [#def80]
volume_key-0.3.12/python/python3/volume_key_wrap.c:705: warning[uninitvar]: Uninitialized variable: buff
Error: CPPCHECK_WARNING (CWE-476): [#def81]
volume_key-0.3.12/python/python3/volume_key_wrap.c:788: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: newstr
Error: GCC_ANALYZER_WARNING (CWE-126): [#def82]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1166:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
volume_key-0.3.12/python/python3/volume_key_wrap.c:5952:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6034:1: note: in expansion of macro 'SWIG_init'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6151:3: note: in expansion of macro 'SWIG_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1422:3: note: in expansion of macro 'Py_INCREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5963:9: note: in expansion of macro 'Py_DECREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5952:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1166:57: note: read of 8 bytes from after the end of 'swig_const_table'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5952:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1166:57: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5952:15: note: in expansion of macro 'SWIG_InternalNewPointerObj'
Error: GCC_ANALYZER_WARNING (CWE-126): [#def83]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6034:1: note: in expansion of macro 'SWIG_init'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6151:3: note: in expansion of macro 'SWIG_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1422:3: note: in expansion of macro 'Py_INCREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5963:9: note: in expansion of macro 'Py_DECREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:57: note: read of 8 bytes from after the end of 'swig_const_table'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:57: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
Error: CPPCHECK_WARNING (CWE-476): [#def84]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1461: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SwigPyClientData_New'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1461:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'data'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5366:51: note: in expansion of macro 'SWIG_NewClientData'
Error: CPPCHECK_WARNING (CWE-476): [#def86]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1462: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def87]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1484: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def88]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1489: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def89]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1501: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def90]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1502: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: COMPILER_WARNING (CWE-843): [#def91]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1819:23: warning[-Wcast-function-type]: cast between incompatible function types from 'PyObject * (*)(PyObject *)' {aka 'struct _object * (*)(struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'}
Error: COMPILER_WARNING (CWE-843): [#def92]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1820:23: warning[-Wcast-function-type]: cast between incompatible function types from 'PyObject * (*)(PyObject *)' {aka 'struct _object * (*)(struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'}
Error: COMPILER_WARNING (CWE-843): [#def93]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1823:23: warning[-Wcast-function-type]: cast between incompatible function types from 'PyObject * (*)(PyObject *)' {aka 'struct _object * (*)(struct _object *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'}
Error: COMPILER_WARNING (CWE-843): [#def94]
volume_key-0.3.12/python/python3/volume_key_wrap.c:1824:23: warning[-Wcast-function-type]: cast between incompatible function types from 'PyObject * (*)(SwigPyObject *)' {aka 'struct _object * (*)(SwigPyObject *)'} to 'PyObject * (*)(PyObject *, PyObject *)' {aka 'struct _object * (*)(struct _object *, struct _object *)'}
Error: COMPILER_WARNING (CWE-909): [#def95]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SwigPyObject_TypeOnce'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1982:5: warning[-Wmissing-field-initializers]: missing initializer for field 'tp_vectorcall' of 'PyTypeObject' {aka 'const struct _typeobject'}
/usr/include/python3.14/object.h:771: included_from: Included from here.
/usr/include/python3.14/Python.h:81: included_from: Included from here.
volume_key-0.3.12/python/python3/volume_key_wrap.c:149: included_from: Included from here.
/usr/include/python3.14/cpython/object.h:231:20: note: 'tp_vectorcall' declared here
Error: COMPILER_WARNING (CWE-909): [#def96]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SwigPyPacked_TypeOnce'
volume_key-0.3.12/python/python3/volume_key_wrap.c:2169:5: warning[-Wmissing-field-initializers]: missing initializer for field 'tp_vectorcall' of 'PyTypeObject' {aka 'const struct _typeobject'}
/usr/include/python3.14/cpython/object.h:231:20: note: 'tp_vectorcall' declared here
Error: COMPILER_WARNING (CWE-694): [#def97]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_NewShadowInstance'
volume_key-0.3.12/python/python3/volume_key_wrap.c:2483:65: warning[-Wshadow]: declaration of 'swig_this' shadows a global declaration
volume_key-0.3.12/python/python3/volume_key_wrap.c:2224:18: note: shadowed declaration is here
Error: COMPILER_WARNING (CWE-694): [#def98]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_SetSwigThis'
volume_key-0.3.12/python/python3/volume_key_wrap.c:2558:51: warning[-Wshadow]: declaration of 'swig_this' shadows a global declaration
volume_key-0.3.12/python/python3/volume_key_wrap.c:2224:18: note: shadowed declaration is here
Error: COMPILER_WARNING (CWE-704): [#def99]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'PyString_AsStringAndSize'
volume_key-0.3.12/python/python3/volume_key_wrap.c:2998:11: warning[-Wdiscarded-qualifiers]: assignment discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-909): [#def100]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'swig_varlink_type'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5893:7: warning[-Wmissing-field-initializers]: missing initializer for field 'tp_vectorcall' of 'PyTypeObject' {aka 'const struct _typeobject'}
/usr/include/python3.14/cpython/object.h:231:20: note: 'tp_vectorcall' declared here
Error: GCC_ANALYZER_WARNING (CWE-126): [#def101]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5949:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
volume_key-0.3.12/python/python3/volume_key_wrap.c:6034:1: note: in expansion of macro 'SWIG_init'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6151:3: note: in expansion of macro 'SWIG_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
/usr/include/python3.14/Python.h:82: included_from: Included from here.
volume_key-0.3.12/python/python3/volume_key_wrap.c:149: included_from: Included from here.
volume_key-0.3.12/python/python3/volume_key_wrap.c:1422:3: note: in expansion of macro 'Py_INCREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5963:9: note: in expansion of macro 'Py_DECREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5949:29: note: read of 4 bytes from after the end of 'swig_const_table'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5949:29: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
Error: GCC_ANALYZER_WARNING (CWE-126): [#def102]
volume_key-0.3.12/python/python3/volume_key_wrap.c:5952:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
volume_key-0.3.12/python/python3/volume_key_wrap.c:1166:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6034:1: note: in expansion of macro 'SWIG_init'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6151:3: note: in expansion of macro 'SWIG_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1422:3: note: in expansion of macro 'Py_INCREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5963:9: note: in expansion of macro 'Py_DECREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1166:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5952:78: note: read of 8 bytes from after the end of 'swig_const_table'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1166:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5952:78: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1166:94: note: in definition of macro 'SWIG_InternalNewPointerObj'
Error: GCC_ANALYZER_WARNING (CWE-126): [#def103]
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:87: note: in definition of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6034:1: note: in expansion of macro 'SWIG_init'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6151:3: note: in expansion of macro 'SWIG_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1422:3: note: in expansion of macro 'Py_INCREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5963:9: note: in expansion of macro 'Py_DECREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:87: note: in definition of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:66: note: read of 8 bytes from after the end of 'swig_const_table'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:87: note: in definition of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:66: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:87: note: in definition of macro 'SWIG_NewPackedObj'
Error: GCC_ANALYZER_WARNING (CWE-126): [#def104]
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:91: note: in definition of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6034:1: note: in expansion of macro 'SWIG_init'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5545:17: note: in expansion of macro 'SWIG_GetModule'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6151:3: note: in expansion of macro 'SWIG_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1422:3: note: in expansion of macro 'Py_INCREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:15: note: in expansion of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5963:9: note: in expansion of macro 'Py_DECREF'
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'SWIG_Python_InstallConstants'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:91: note: in definition of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:89: note: read of 8 bytes from after the end of 'swig_const_table'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:91: note: in definition of macro 'SWIG_NewPackedObj'
volume_key-0.3.12/python/python3/volume_key_wrap.c:5955:89: note: valid subscripts for 'swig_const_table' are '[0]' to '[0]'
volume_key-0.3.12/python/python3/volume_key_wrap.c:1174:91: note: in definition of macro 'SWIG_NewPackedObj'
Error: COMPILER_WARNING: [#def105]
volume_key-0.3.12/python/python3/volume_key_wrap.c: scope_hint: In function 'PyInit__volume_key'
volume_key-0.3.12/python/python3/volume_key_wrap.c:6005:15: warning[-Wstringop-truncation]: '__strncpy_chk' output truncated before terminating nul copying 10 bytes from a string of the same length
Error: COMPILER_WARNING (CWE-477): [#def106]
volume_key-0.3.12/src/volume_key.c: scope_hint: In function ‘read_batch_string’
volume_key-0.3.12/src/volume_key.c:390:3: warning[-Wdeprecated-declarations]: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
volume_key-0.3.12/src/volume_key.c:30: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: CLANG_WARNING: [#def107]
volume_key-0.3.12/src/volume_key.c:438:7: warning[unix.Stream]: File position of the stream might be 'indeterminate' after a failed operation. Can cause undefined behavior
Error: COMPILER_WARNING (CWE-477): [#def108]
volume_key-0.3.12/src/volume_key.c: scope_hint: In function ‘generic_ui_cb’
volume_key-0.3.12/src/volume_key.c:529:7: warning[-Wdeprecated-declarations]: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
Error: COMPILER_WARNING: [#def109]
volume_key-0.3.12/src/volume_key.c: scope_hint: In function ‘generate_random_passphrase’
volume_key-0.3.12/src/volume_key.c:778:35: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (65 chars into 64 available)
Scan Properties
| analyzer-version-clang | 21.1.6 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| analyzer-version-gcc-analyzer | 15.2.1 |
| analyzer-version-shellcheck | 0.11.0 |
| enabled-plugins | clang, cppcheck, gcc, shellcheck |
| exit-code | 0 |
| host | ip-172-16-1-228.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | volume_key-0.3.12-29.fc44 |
| store-results-to | /tmp/tmpu7yujglx/volume_key-0.3.12-29.fc44.tar.xz |
| time-created | 2025-11-23 10:14:24 |
| time-finished | 2025-11-23 10:16:23 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'clang,gcc,shellcheck,cppcheck' '-o' '/tmp/tmpu7yujglx/volume_key-0.3.12-29.fc44.tar.xz' '--gcc-analyze' '/tmp/tmpu7yujglx/volume_key-0.3.12-29.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |