Task #1347 - gpgme-1.23.2-3.fc40/scan-results.err
back to task #1347download
Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:3918:10: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized # 3918 | *obj = value; # | ~~~~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_error_t_p_assign’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:48217:17: note: ‘arg2’ was declared here #48217 | gpgme_error_t arg2 ; # | ^~~~ # 3916| # 3917| static void gpgme_error_t_p_assign(gpgme_error_t *obj, gpgme_error_t value) { # 3918|-> *obj = value; # 3919| } # 3920| Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_seek’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4116:14: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized # 4116 | result = gpgme_data_seek(arg1,arg2,arg3); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4077:9: note: ‘arg2’ was declared here # 4077 | off_t arg2 ; # | ^~~~ # 4114| { # 4115| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4116|-> result = gpgme_data_seek(arg1,arg2,arg3); # 4117| SWIG_PYTHON_THREAD_END_ALLOW; # 4118| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4676:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4676 | result = (char *)gpgme_strerror(arg1); # | ^~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4657:17: note: ‘arg1’ was declared here # 4657 | gpgme_error_t arg1 ; # | ^~~~ # 4674| { # 4675| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4676|-> result = (char *)gpgme_strerror(arg1); # 4677| SWIG_PYTHON_THREAD_END_ALLOW; # 4678| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror_r’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4731:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4731 | result = (int)gpgme_strerror_r(arg1,arg2,arg3); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4688:15: note: ‘arg1’ was declared here # 4688 | gpg_error_t arg1 ; # | ^~~~ # 4729| { # 4730| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4731|-> result = (int)gpgme_strerror_r(arg1,arg2,arg3); # 4732| SWIG_PYTHON_THREAD_END_ALLOW; # 4733| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strsource’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4772:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4772 | result = (char *)gpgme_strsource(arg1); # | ^~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4753:17: note: ‘arg1’ was declared here # 4753 | gpgme_error_t arg1 ; # | ^~~~ # 4770| { # 4771| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4772|-> result = (char *)gpgme_strsource(arg1); # 4773| SWIG_PYTHON_THREAD_END_ALLOW; # 4774| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_code_to_errno’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4833:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4833 | result = (int)gpgme_err_code_to_errno(arg1); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4814:20: note: ‘arg1’ was declared here # 4814 | gpgme_err_code_t arg1 ; # | ^~~~ # 4831| { # 4832| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4833|-> result = (int)gpgme_err_code_to_errno(arg1); # 4834| SWIG_PYTHON_THREAD_END_ALLOW; # 4835| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_make_from_errno’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4918:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4918 | result = gpgme_err_make_from_errno(arg1,arg2); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4892:22: note: ‘arg1’ was declared here # 4892 | gpgme_err_source_t arg1 ; # | ^~~~ # 4916| { # 4917| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4918|-> result = gpgme_err_make_from_errno(arg1,arg2); # 4919| SWIG_PYTHON_THREAD_END_ALLOW; # 4920| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_key_sig_status_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:8660:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized # 8660 | if (arg1) (arg1)->status = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:8636:17: note: ‘arg2’ was declared here # 8636 | gpgme_error_t arg2 ; # | ^~~~ # 8658| { # 8659| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 8660|-> if (arg1) (arg1)->status = arg2; # 8661| SWIG_PYTHON_THREAD_END_ALLOW; # 8662| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_invalid_key_reason_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:12495:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #12495 | if (arg1) (arg1)->reason = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:12471:17: note: ‘arg2’ was declared here #12471 | gpgme_error_t arg2 ; # | ^~~~ #12493| { #12494| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #12495|-> if (arg1) (arg1)->reason = arg2; #12496| SWIG_PYTHON_THREAD_END_ALLOW; #12497| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_io_event_done_data_err_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14171:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #14171 | if (arg1) (arg1)->err = arg2; # | ~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14147:17: note: ‘arg2’ was declared here #14147 | gpgme_error_t arg2 ; # | ^~~~ #14169| { #14170| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #14171|-> if (arg1) (arg1)->err = arg2; #14172| SWIG_PYTHON_THREAD_END_ALLOW; #14173| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_io_event_done_data_op_err_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14238:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #14238 | if (arg1) (arg1)->op_err = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14214:17: note: ‘arg2’ was declared here #14214 | gpgme_error_t arg2 ; # | ^~~~ #14236| { #14237| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #14238|-> if (arg1) (arg1)->op_err = arg2; #14239| SWIG_PYTHON_THREAD_END_ALLOW; #14240| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_new_from_filepart’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:16227:14: warning[-Wmaybe-uninitialized]: ‘arg4’ may be used uninitialized #16227 | result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:16163:9: note: ‘arg4’ was declared here #16163 | off_t arg4 ; # | ^~~~ #16225| { #16226| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #16227|-> result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5); #16228| SWIG_PYTHON_THREAD_END_ALLOW; #16229| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_recipient_status_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:21153:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #21153 | if (arg1) (arg1)->status = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:21129:17: note: ‘arg2’ was declared here #21129 | gpgme_error_t arg2 ; # | ^~~~ #21151| { #21152| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #21153|-> if (arg1) (arg1)->status = arg2; #21154| SWIG_PYTHON_THREAD_END_ALLOW; #21155| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_status_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:26782:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #26782 | if (arg1) (arg1)->status = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:26758:17: note: ‘arg2’ was declared here #26758 | gpgme_error_t arg2 ; # | ^~~~ #26780| { #26781| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #26782|-> if (arg1) (arg1)->status = arg2; #26783| SWIG_PYTHON_THREAD_END_ALLOW; #26784| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_validity_reason_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:27419:39: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #27419 | if (arg1) (arg1)->validity_reason = arg2; # | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:27395:17: note: ‘arg2’ was declared here #27395 | gpgme_error_t arg2 ; # | ^~~~ #27417| { #27418| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #27419|-> if (arg1) (arg1)->validity_reason = arg2; #27420| SWIG_PYTHON_THREAD_END_ALLOW; #27421| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_import_status_result_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:31025:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #31025 | if (arg1) (arg1)->result = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:31001:17: note: ‘arg2’ was declared here #31001 | gpgme_error_t arg2 ; # | ^~~~ #31023| { #31024| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #31025|-> if (arg1) (arg1)->result = arg2; #31026| SWIG_PYTHON_THREAD_END_ALLOW; #31027| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys_start’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:32996:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #32996 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:32924:10: note: ‘size2’ was declared here #32924 | size_t size2 ; # | ^~~~~ #32994| size_t i; #32995| free(vector2); #32996|-> for (i = 0; i < size2; i++) #32997| Py_XDECREF(pyVector2[i]); #32998| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33082:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #33082 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33010:10: note: ‘size2’ was declared here #33010 | size_t size2 ; # | ^~~~~ #33080| size_t i; #33081| free(vector2); #33082|-> for (i = 0; i < size2; i++) #33083| Py_XDECREF(pyVector2[i]); #33084| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext_start’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33875:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #33875 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33670:10: note: ‘size2’ was declared here #33670 | size_t size2 ; # | ^~~~~ #33873| size_t i; #33874| free(vector2); #33875|-> for (i = 0; i < size2; i++) #33876| Py_XDECREF(pyVector2[i]); #33877| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:34191:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #34191 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33986:10: note: ‘size2’ was declared here #33986 | size_t size2 ; # | ^~~~~ #34189| size_t i; #34190| free(vector2); #34191|-> for (i = 0; i < size2; i++) #34192| Py_XDECREF(pyVector2[i]); #34193| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_keylist_ext_start’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:39399:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #39399 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:39313:10: note: ‘size2’ was declared here #39313 | size_t size2 ; # | ^~~~~ #39397| size_t i; #39398| free(vector2); #39399|-> for (i = 0; i < size2; i++) #39400| Py_XDECREF(pyVector2[i]); #39401| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn_start’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:40968:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized #40968 | for (i = 0; i < size3; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:40843:10: note: ‘size3’ was declared here #40843 | size_t size3 ; # | ^~~~~ #40966| size_t i; #40967| free(vector3); #40968|-> for (i = 0; i < size3; i++) #40969| Py_XDECREF(pyVector3[i]); #40970| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:41113:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized #41113 | for (i = 0; i < size3; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:40988:10: note: ‘size3’ was declared here #40988 | size_t size3 ; # | ^~~~~ #41111| size_t i; #41112| free(vector3); #41113|-> for (i = 0; i < size3; i++) #41114| Py_XDECREF(pyVector3[i]); #41115| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_op_assuan_result_err_set’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:47504:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #47504 | if (arg1) (arg1)->err = arg2; # | ~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:47480:17: note: ‘arg2’ was declared here #47480 | gpgme_error_t arg2 ; # | ^~~~ #47502| { #47503| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #47504|-> if (arg1) (arg1)->err = arg2; #47505| SWIG_PYTHON_THREAD_END_ALLOW; #47506| } Error: COMPILER_WARNING (CWE-477): gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/helpers.c: scope_hint: In function ‘_gpg_stash_callback_exception’ gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/helpers.c:119:3: warning[-Wdeprecated-declarations]: ‘PyWeakref_GetObject’ is deprecated # 119 | self = PyWeakref_GetObject(weak_self); # | ^~~~ /usr/include/python3.13/Python.h:109: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/build-qt6/lang/python/python3.13-gpg/helpers.c:30: included_from: Included from here. /usr/include/python3.13/weakrefobject.h:30:44: note: declared here # 30 | Py_DEPRECATED(3.13) PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref); # | ^~~~~~~~~~~~~~~~~~~ # 117| } # 118| # 119|-> self = PyWeakref_GetObject(weak_self); # 120| /* self only has a borrowed reference. */ # 121| if (self == Py_None) { Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:3918:10: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized # 3918 | *obj = value; # | ~~~~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_error_t_p_assign’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:48217:17: note: ‘arg2’ was declared here #48217 | gpgme_error_t arg2 ; # | ^~~~ # 3916| # 3917| static void gpgme_error_t_p_assign(gpgme_error_t *obj, gpgme_error_t value) { # 3918|-> *obj = value; # 3919| } # 3920| Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_seek’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4116:14: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized # 4116 | result = gpgme_data_seek(arg1,arg2,arg3); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4077:9: note: ‘arg2’ was declared here # 4077 | off_t arg2 ; # | ^~~~ # 4114| { # 4115| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4116|-> result = gpgme_data_seek(arg1,arg2,arg3); # 4117| SWIG_PYTHON_THREAD_END_ALLOW; # 4118| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4676:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4676 | result = (char *)gpgme_strerror(arg1); # | ^~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4657:17: note: ‘arg1’ was declared here # 4657 | gpgme_error_t arg1 ; # | ^~~~ # 4674| { # 4675| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4676|-> result = (char *)gpgme_strerror(arg1); # 4677| SWIG_PYTHON_THREAD_END_ALLOW; # 4678| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror_r’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4731:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4731 | result = (int)gpgme_strerror_r(arg1,arg2,arg3); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4688:15: note: ‘arg1’ was declared here # 4688 | gpg_error_t arg1 ; # | ^~~~ # 4729| { # 4730| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4731|-> result = (int)gpgme_strerror_r(arg1,arg2,arg3); # 4732| SWIG_PYTHON_THREAD_END_ALLOW; # 4733| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strsource’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4772:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4772 | result = (char *)gpgme_strsource(arg1); # | ^~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4753:17: note: ‘arg1’ was declared here # 4753 | gpgme_error_t arg1 ; # | ^~~~ # 4770| { # 4771| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4772|-> result = (char *)gpgme_strsource(arg1); # 4773| SWIG_PYTHON_THREAD_END_ALLOW; # 4774| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_code_to_errno’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4833:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4833 | result = (int)gpgme_err_code_to_errno(arg1); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4814:20: note: ‘arg1’ was declared here # 4814 | gpgme_err_code_t arg1 ; # | ^~~~ # 4831| { # 4832| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4833|-> result = (int)gpgme_err_code_to_errno(arg1); # 4834| SWIG_PYTHON_THREAD_END_ALLOW; # 4835| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_make_from_errno’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4918:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized # 4918 | result = gpgme_err_make_from_errno(arg1,arg2); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:4892:22: note: ‘arg1’ was declared here # 4892 | gpgme_err_source_t arg1 ; # | ^~~~ # 4916| { # 4917| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 4918|-> result = gpgme_err_make_from_errno(arg1,arg2); # 4919| SWIG_PYTHON_THREAD_END_ALLOW; # 4920| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_key_sig_status_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:8660:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized # 8660 | if (arg1) (arg1)->status = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:8636:17: note: ‘arg2’ was declared here # 8636 | gpgme_error_t arg2 ; # | ^~~~ # 8658| { # 8659| SWIG_PYTHON_THREAD_BEGIN_ALLOW; # 8660|-> if (arg1) (arg1)->status = arg2; # 8661| SWIG_PYTHON_THREAD_END_ALLOW; # 8662| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_invalid_key_reason_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:12495:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #12495 | if (arg1) (arg1)->reason = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:12471:17: note: ‘arg2’ was declared here #12471 | gpgme_error_t arg2 ; # | ^~~~ #12493| { #12494| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #12495|-> if (arg1) (arg1)->reason = arg2; #12496| SWIG_PYTHON_THREAD_END_ALLOW; #12497| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_io_event_done_data_err_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:14171:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #14171 | if (arg1) (arg1)->err = arg2; # | ~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:14147:17: note: ‘arg2’ was declared here #14147 | gpgme_error_t arg2 ; # | ^~~~ #14169| { #14170| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #14171|-> if (arg1) (arg1)->err = arg2; #14172| SWIG_PYTHON_THREAD_END_ALLOW; #14173| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_io_event_done_data_op_err_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:14238:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #14238 | if (arg1) (arg1)->op_err = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:14214:17: note: ‘arg2’ was declared here #14214 | gpgme_error_t arg2 ; # | ^~~~ #14236| { #14237| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #14238|-> if (arg1) (arg1)->op_err = arg2; #14239| SWIG_PYTHON_THREAD_END_ALLOW; #14240| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_new_from_filepart’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:16227:14: warning[-Wmaybe-uninitialized]: ‘arg4’ may be used uninitialized #16227 | result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5); # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:16163:9: note: ‘arg4’ was declared here #16163 | off_t arg4 ; # | ^~~~ #16225| { #16226| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #16227|-> result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5); #16228| SWIG_PYTHON_THREAD_END_ALLOW; #16229| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_recipient_status_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:21153:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #21153 | if (arg1) (arg1)->status = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:21129:17: note: ‘arg2’ was declared here #21129 | gpgme_error_t arg2 ; # | ^~~~ #21151| { #21152| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #21153|-> if (arg1) (arg1)->status = arg2; #21154| SWIG_PYTHON_THREAD_END_ALLOW; #21155| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_status_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:26782:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #26782 | if (arg1) (arg1)->status = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:26758:17: note: ‘arg2’ was declared here #26758 | gpgme_error_t arg2 ; # | ^~~~ #26780| { #26781| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #26782|-> if (arg1) (arg1)->status = arg2; #26783| SWIG_PYTHON_THREAD_END_ALLOW; #26784| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_validity_reason_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:27419:39: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #27419 | if (arg1) (arg1)->validity_reason = arg2; # | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:27395:17: note: ‘arg2’ was declared here #27395 | gpgme_error_t arg2 ; # | ^~~~ #27417| { #27418| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #27419|-> if (arg1) (arg1)->validity_reason = arg2; #27420| SWIG_PYTHON_THREAD_END_ALLOW; #27421| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_import_status_result_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:31025:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #31025 | if (arg1) (arg1)->result = arg2; # | ~~~~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:31001:17: note: ‘arg2’ was declared here #31001 | gpgme_error_t arg2 ; # | ^~~~ #31023| { #31024| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #31025|-> if (arg1) (arg1)->result = arg2; #31026| SWIG_PYTHON_THREAD_END_ALLOW; #31027| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys_start’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:32996:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #32996 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:32924:10: note: ‘size2’ was declared here #32924 | size_t size2 ; # | ^~~~~ #32994| size_t i; #32995| free(vector2); #32996|-> for (i = 0; i < size2; i++) #32997| Py_XDECREF(pyVector2[i]); #32998| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:33082:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #33082 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:33010:10: note: ‘size2’ was declared here #33010 | size_t size2 ; # | ^~~~~ #33080| size_t i; #33081| free(vector2); #33082|-> for (i = 0; i < size2; i++) #33083| Py_XDECREF(pyVector2[i]); #33084| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext_start’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:33875:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #33875 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:33670:10: note: ‘size2’ was declared here #33670 | size_t size2 ; # | ^~~~~ #33873| size_t i; #33874| free(vector2); #33875|-> for (i = 0; i < size2; i++) #33876| Py_XDECREF(pyVector2[i]); #33877| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:34191:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #34191 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:33986:10: note: ‘size2’ was declared here #33986 | size_t size2 ; # | ^~~~~ #34189| size_t i; #34190| free(vector2); #34191|-> for (i = 0; i < size2; i++) #34192| Py_XDECREF(pyVector2[i]); #34193| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_keylist_ext_start’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:39399:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized #39399 | for (i = 0; i < size2; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:39313:10: note: ‘size2’ was declared here #39313 | size_t size2 ; # | ^~~~~ #39397| size_t i; #39398| free(vector2); #39399|-> for (i = 0; i < size2; i++) #39400| Py_XDECREF(pyVector2[i]); #39401| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn_start’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:40968:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized #40968 | for (i = 0; i < size3; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:40843:10: note: ‘size3’ was declared here #40843 | size_t size3 ; # | ^~~~~ #40966| size_t i; #40967| free(vector3); #40968|-> for (i = 0; i < size3; i++) #40969| Py_XDECREF(pyVector3[i]); #40970| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:41113:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized #41113 | for (i = 0; i < size3; i++) # | ~~^~~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:40988:10: note: ‘size3’ was declared here #40988 | size_t size3 ; # | ^~~~~ #41111| size_t i; #41112| free(vector3); #41113|-> for (i = 0; i < size3; i++) #41114| Py_XDECREF(pyVector3[i]); #41115| } Error: COMPILER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_op_assuan_result_err_set’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:47504:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized #47504 | if (arg1) (arg1)->err = arg2; # | ~~~~~~~~~~~~^~~~~~ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/gpgme_wrap.c:47480:17: note: ‘arg2’ was declared here #47480 | gpgme_error_t arg2 ; # | ^~~~ #47502| { #47503| SWIG_PYTHON_THREAD_BEGIN_ALLOW; #47504|-> if (arg1) (arg1)->err = arg2; #47505| SWIG_PYTHON_THREAD_END_ALLOW; #47506| } Error: COMPILER_WARNING (CWE-477): gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/helpers.c: scope_hint: In function ‘_gpg_stash_callback_exception’ gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/helpers.c:119:3: warning[-Wdeprecated-declarations]: ‘PyWeakref_GetObject’ is deprecated # 119 | self = PyWeakref_GetObject(weak_self); # | ^~~~ /usr/include/python3.13/Python.h:109: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/build/lang/python/python3.13-gpg/helpers.c:30: included_from: Included from here. /usr/include/python3.13/weakrefobject.h:30:44: note: declared here # 30 | Py_DEPRECATED(3.13) PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref); # | ^~~~~~~~~~~~~~~~~~~ # 117| } # 118| # 119|-> self = PyWeakref_GetObject(weak_self); # 120| /* self only has a borrowed reference. */ # 121| if (self == Py_None) { Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/doc/mkdefsinc.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/doc/mkdefsinc.c:199:15: warning[unix.Malloc]: Potential leak of memory pointed to by 'opt_date' # 197| { # 198| opt_date = xstrdup (*argv); # 199|-> argc--; argv++; # 200| } # 201| } Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/doc/mkdefsinc.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/doc/mkdefsinc.c:199:27: warning[-Wanalyzer-malloc-leak]: leak of ‘opt_date’ # 197| { # 198| opt_date = xstrdup (*argv); # 199|-> argc--; argv++; # 200| } # 201| } Error: CPPCHECK_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/doc/mkdefsinc.c:289: warning[uninitvar]: Uninitialized variable: monthoff # 287| # 288| printf ("@set UPDATED %s\n", opt_date); # 289|-> printf ("@set UPDATED-MONTH %s\n", opt_date + monthoff); # 290| printf ("@set EDITION %s\n", PACKAGE_VERSION); # 291| printf ("@set VERSION %s\n", PACKAGE_VERSION); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/doc/mkdefsinc.c:290:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'opt_date' # 288| printf ("@set UPDATED %s\n", opt_date); # 289| printf ("@set UPDATED-MONTH %s\n", opt_date + monthoff); # 290|-> printf ("@set EDITION %s\n", PACKAGE_VERSION); # 291| printf ("@set VERSION %s\n", PACKAGE_VERSION); # 292| Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/src/context.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/src/gpgsignkeyeditinteractor.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/src/importresult.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/src/key.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/src/verificationresult.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/tests/run-getkey.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/tests/run-keylist.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/tests/run-verify.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/cpp/tests/run-wkdlookup.cpp: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/lang/qt/src/cryptoconfig.cpp:61:42: warning[core.CallAndMessage]: Called C++ object pointer is null # 59| const QStringList groupNames = comp ? comp->groupList() : QStringList(); # 60| for (const auto &groupName : groupNames) { # 61|-> const CryptoConfigGroup *group = comp->group(groupName); # 62| CryptoConfigEntry *entry = group ? group->entry(entryName) : nullptr; # 63| if (entry) { Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/argparse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/assuan-support.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/cJSON.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/conversion.c:562:30: warning[core.UndefinedBinaryOperatorResult]: The right operand of '==' is a garbage value # 560| # 561| tim = _gpgme_parse_timestamp (timestamp, &tail); # 562|-> if (tim == -1 || timestamp == tail || (*tail && *tail != ' ')) # 563| tim = 0; /* No time given or invalid engine. */ # 564| Error: GCC_ANALYZER_WARNING (CWE-465): gpgme-1.23.2-build/gpgme-1.23.2/src/data-identify.c: scope_hint: In function 'basic_detection' gpgme-1.23.2-build/gpgme-1.23.2/src/data-identify.c:453:20: warning[-Wanalyzer-deref-before-check]: check of 'data' for NULL after already dereferencing it # 451| # 452| /* Now check whether there are armor lines. */ # 453|-> for (s = data; s && *s; s = (*s=='\n')?(s+1):((s=strchr (s,'\n'))?(s+1):s)) # 454| { # 455| if (!strncmp (s, "-----BEGIN ", 11)) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/data-mem.c:104:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 102| } # 103| # 104|-> memcpy (dh->data.mem.buffer + dh->data.mem.offset, buffer, size); # 105| dh->data.mem.offset += size; # 106| if (dh->data.mem.length < dh->data.mem.offset) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/data-mem.c:275:14: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'str') # 273| { # 274| if (blankout && len) # 275|-> *str = 0; # 276| /* Prevent mem_release from releasing the buffer memory. We # 277| * must not fail from this point. */ Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/data.c: scope_hint: In function '_gpgme_data_inbound_handler' gpgme-1.23.2-build/gpgme-1.23.2/src/data.c:624:14: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)*dh.io_buffer_size)' # 622| { # 623| dh->inbound_buffer = malloc (dh->io_buffer_size); # 624|-> if (!dh->inbound_buffer) # 625| return TRACE_ERR (gpg_error_from_syserror ()); # 626| } Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/data.c: scope_hint: In function '_gpgme_data_outbound_handler' gpgme-1.23.2-build/gpgme-1.23.2/src/data.c:684:14: warning[-Wanalyzer-malloc-leak]: leak of 'malloc((long unsigned int)*dh.io_buffer_size)' # 682| { # 683| dh->outbound_buffer = malloc (dh->io_buffer_size); # 684|-> if (!dh->outbound_buffer) # 685| return TRACE_ERR (gpg_error_from_syserror ()); # 686| dh->outbound_pending = 0; Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/decrypt-verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/src/decrypt-verify.c:48: warning[uninitvar]: Uninitialized variable: err2 # 46| || (code == GPGME_STATUS_EOF && gpg_err_code (err) == GPG_ERR_NO_DATA)) # 47| err2 = _gpgme_verify_status_handler (priv, code, args); # 48|-> return err ? err : err2; # 49| } # 50| Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/encrypt-sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/encrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-g13.c:457:6: warning[deadcode.DeadStores]: Value stored to 'rest' is never read # 455| rest = strchr (line + 2, ' '); # 456| if (!rest) # 457|-> rest = line + linelen; /* set to an empty string */ # 458| else # 459| *(rest++) = 0; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpg.c:3121:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 3119| } # 3120| # 3121|-> if (!strcmp (field[0], "info")) # 3122| rectype = RT_INFO; # 3123| else if (!strcmp (field[0], "pub")) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpg.c:3195:26: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value # 3193| most 4/3 th the number of bytes. But because we also need # 3194| to escape the backslashes we allocate twice as much. */ # 3195|-> char *uid = malloc (2 * strlen (field[1]) + 1); # 3196| char *src; # 3197| char *dst; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpg.c:3239:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'dst' # 3237| } # 3238| } # 3239|-> return 0; # 3240| # 3241| case RT_NONE: Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpg.c:3282:7: warning[deadcode.DeadStores]: Value stored to 'err' is never read # 3280| if (!err && (mode & GPGME_KEYLIST_MODE_WITH_SECRET)) # 3281| { # 3282|-> err = add_arg (gpg, "--with-secret"); # 3283| err = add_arg (gpg, "--with-keygrip"); # 3284| } Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpg.c:3715:13: warning[deadcode.DeadStores]: Value stored to 'err' is never read # 3713| err = add_arg (gpg, "--directory"); # 3714| if (!err) # 3715|-> err = add_arg (gpg, file_name); # 3716| } # 3717| /* gpgtar uses --decrypt also for signed-only archives */ Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpgconf.c:1041:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read # 1039| # 1040| if (!err) # 1041|-> err = gpg_error(GPG_ERR_NOT_FOUND); # 1042| return 0; # 1043| } Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpgsm.c: scope_hint: In function 'gpgsm_export.part.0' gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpgsm.c:1628:12: warning[-Wanalyzer-malloc-leak]: leak of 'cmd' # 1626| : map_data_enc (gpgsm->output_cb.data)); # 1627| if (err) # 1628|-> return err; # 1629| gpgsm_clear_fd (gpgsm, INPUT_FD); # 1630| gpgsm_clear_fd (gpgsm, MESSAGE_FD); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpgsm.c:1628:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'cmd' # 1626| : map_data_enc (gpgsm->output_cb.data)); # 1627| if (err) # 1628|-> return err; # 1629| gpgsm_clear_fd (gpgsm, INPUT_FD); # 1630| gpgsm_clear_fd (gpgsm, MESSAGE_FD); Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpgsm.c: scope_hint: In function 'gpgsm_export_ext.part.0' gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpgsm.c:1735:12: warning[-Wanalyzer-malloc-leak]: leak of 'line' # 1733| : map_data_enc (gpgsm->output_cb.data)); # 1734| if (err) # 1735|-> return err; # 1736| gpgsm_clear_fd (gpgsm, INPUT_FD); # 1737| gpgsm_clear_fd (gpgsm, MESSAGE_FD); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/engine-gpgsm.c:1735:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'line' # 1733| : map_data_enc (gpgsm->output_cb.data)); # 1734| if (err) # 1735|-> return err; # 1736| gpgsm_clear_fd (gpgsm, INPUT_FD); # 1737| gpgsm_clear_fd (gpgsm, MESSAGE_FD); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/export.c:207:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 205| err = _gpgme_op_data_lookup (ctx, OPDATA_EXPORT, &hook, # 206| sizeof (*opd), release_op_data); # 207|-> opd = hook; # 208| if (err) # 209| return err; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/export.c:282:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 280| err = _gpgme_op_data_lookup (ctx, OPDATA_EXPORT, &hook, # 281| sizeof (*opd), release_op_data); # 282|-> opd = hook; # 283| if (err) # 284| return err; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/genkey.c:346:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 344| err = _gpgme_op_data_lookup (ctx, OPDATA_GENKEY, &hook, # 345| sizeof (*opd), release_op_data); # 346|-> opd = hook; # 347| if (err) # 348| return err; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/genkey.c:434:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 432| err = _gpgme_op_data_lookup (ctx, OPDATA_GENKEY, &hook, # 433| sizeof (*opd), release_op_data); # 434|-> opd = hook; # 435| if (err) # 436| return err; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/genkey.c:642:12: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' # 640| } # 641| else # 642|-> return err = gpg_error (GPG_ERR_UNKNOWN_NAME); # 643| # 644| if (synchronous && !err) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:323:9: warning[deadcode.DeadStores]: Although the value stored to 'j_tmp' is used in the enclosing expression, the value is never actually read from 'j_tmp' # 321| response = json? json : xjson_CreateObject (); # 322| # 323|-> if (!(j_tmp = cJSON_GetObjectItem (response, "type"))) # 324| xjson_AddStringToObject (response, "type", "error"); # 325| else /* Replace existing "type". */ Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:743:12: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' # 741| } # 742| # 743|-> while (!(err = gpgme_op_keylist_next (ctx, &key))) # 744| { # 745| if (!key || !key->fpr) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:1573:9: warning[deadcode.DeadStores]: Value stored to 'data' is never read # 1571| xfree (data); # 1572| if (opt_interactive) # 1573|-> data = cJSON_Print (err_obj); # 1574| data = cJSON_PrintUnformatted (err_obj); # 1575| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:1709:16: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' # 1707| goto leave; # 1708| } # 1709|-> while (!(err = gpgme_op_keylist_next (keylist_ctx, &key))) # 1710| { # 1711| if ((err = gpgme_signers_add (ctx, key))) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:2028:12: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' # 2026| goto leave; # 2027| } # 2028|-> while (!(err = gpgme_op_keylist_next (keylist_ctx, &key))) # 2029| { # 2030| if ((err = gpgme_signers_add (ctx, key))) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:2500:12: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' # 2498| } # 2499| # 2500|-> while (!(err = gpgme_op_keylist_next (ctx, &key))) # 2501| { # 2502| cJSON_AddItemToArray (keyarray, key_to_json (key)); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:2853:3: warning[deadcode.DeadStores]: Value stored to 'comp' is never read # 2851| } # 2852| # 2853|-> comp = conf; # 2854| for (comp = conf; comp; comp = comp->next) # 2855| { Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:2952:3: warning[deadcode.DeadStores]: Value stored to 'comp' is never read # 2950| # 2951| j_comps = xjson_CreateArray (); # 2952|-> comp = conf; # 2953| for (comp = conf; comp; comp = comp->next) # 2954| { Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:3070:15: warning[deadcode.DeadStores]: Value stored to 's' during its initialization is never read # 3068| data_type_to_string (gpgme_data_type_t dt) # 3069| { # 3070|-> const char *s = "[?]"; # 3071| # 3072| switch (dt) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:3384:9: warning[deadcode.DeadStores]: Value stored to 'res' is never read # 3382| err_obj = error_object (NULL, "Printing JSON data failed"); # 3383| if (opt_interactive) # 3384|-> res = cJSON_Print (err_obj); # 3385| res = cJSON_PrintUnformatted (err_obj); # 3386| cJSON_Delete (err_obj); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:3494:7: warning[deadcode.DeadStores]: Value stored to 'n' is never read # 3492| *p++ = *s++; # 3493| *p = 0; # 3494|-> n = p - line; # 3495| } # 3496| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:3569:24: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'j_msg') # 3567| { # 3568| j_msg = cJSON_GetObjectItem (json, "msg"); # 3569|-> if (j_msg || cjson_is_string (j_msg)) # 3570| { # 3571| msg = j_msg->valuestring; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-json.c:3773:11: warning[deadcode.DeadStores]: Value stored to 'err' is never read # 3771| if (!request) # 3772| { # 3773|-> err = gpg_error_from_syserror (); # 3774| log_error ("error reading request: Not enough memory for %zu MiB)\n", # 3775| (size_t)nrequest / (1024*1024)); Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-688): gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c: scope_hint: In function ‘put_membuf.part.0’ gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:140:3: warning[-Wanalyzer-null-argument]: use of NULL ‘mb.buf’ where non-null expected gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c: scope_hint: In function ‘put_membuf.part.0’ gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:29: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c: scope_hint: In function ‘put_membuf.part.0’ <built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null # 138| mb->buf = p; # 139| } # 140|-> memcpy (mb->buf + mb->len, buf, len); # 141| mb->len += len; # 142| } Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:331:3: warning[core.VLASize]: Declared variable-length array (VLA) has negative size # 329| result_xml_indent (struct result_xml_state *state) # 330| { # 331|-> char spaces[state->indent + 1]; # 332| int i; # 333| for (i = 0; i < state->indent; i++) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:331:3: warning[core.VLASize]: Declared variable-length array (VLA) has zero size # 329| result_xml_indent (struct result_xml_state *state) # 330| { # 331|-> char spaces[state->indent + 1]; # 332| int i; # 333| for (i = 0; i < state->indent; i++) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:1466:3: warning[core.CallAndMessage]: 4th function call argument is an uninitialized value # 1464| modes[idx++] = NULL; # 1465| # 1466|-> gt_write_status (gt, STATUS_KEYLIST_MODE, modes[0], modes[1], modes[2], # 1467| modes[3], modes[4], modes[5], modes[6], NULL); # 1468| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:1466:3: warning[core.CallAndMessage]: 5th function call argument is an uninitialized value # 1464| modes[idx++] = NULL; # 1465| # 1466|-> gt_write_status (gt, STATUS_KEYLIST_MODE, modes[0], modes[1], modes[2], # 1467| modes[3], modes[4], modes[5], modes[6], NULL); # 1468| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:1466:3: warning[core.CallAndMessage]: 6th function call argument is an uninitialized value # 1464| modes[idx++] = NULL; # 1465| # 1466|-> gt_write_status (gt, STATUS_KEYLIST_MODE, modes[0], modes[1], modes[2], # 1467| modes[3], modes[4], modes[5], modes[6], NULL); # 1468| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:1466:3: warning[core.CallAndMessage]: 7th function call argument is an uninitialized value # 1464| modes[idx++] = NULL; # 1465| # 1466|-> gt_write_status (gt, STATUS_KEYLIST_MODE, modes[0], modes[1], modes[2], # 1467| modes[3], modes[4], modes[5], modes[6], NULL); # 1468| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:1466:3: warning[core.CallAndMessage]: 8th function call argument is an uninitialized value # 1464| modes[idx++] = NULL; # 1465| # 1466|-> gt_write_status (gt, STATUS_KEYLIST_MODE, modes[0], modes[1], modes[2], # 1467| modes[3], modes[4], modes[5], modes[6], NULL); # 1468| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:1466:3: warning[core.CallAndMessage]: 9th function call argument is an uninitialized value # 1464| modes[idx++] = NULL; # 1465| # 1466|-> gt_write_status (gt, STATUS_KEYLIST_MODE, modes[0], modes[1], modes[2], # 1467| modes[3], modes[4], modes[5], modes[6], NULL); # 1468| Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:1687:15: warning[deadcode.DeadStores]: Value stored to 's' during its initialization is never read # 1685| gt_identify (gpgme_tool_t gt, gpgme_data_t data) # 1686| { # 1687|-> const char *s = "?"; # 1688| # 1689| switch (gpgme_data_identify (data, 0)) Error: CPPCHECK_WARNING (CWE-562): gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:3300: error[autoVariables]: Address of local auto-variable assigned to a function parameter. # 3298| server.gt = gt; # 3299| gt->write_status = server_write_status; # 3300|-> gt->write_status_hook = &server; # 3301| gt->write_data = server_write_data; # 3302| gt->write_data_hook = &server; Error: CPPCHECK_WARNING (CWE-562): gpgme-1.23.2-build/gpgme-1.23.2/src/gpgme-tool.c:3302: error[autoVariables]: Address of local auto-variable assigned to a function parameter. # 3300| gt->write_status_hook = &server; # 3301| gt->write_data = server_write_data; # 3302|-> gt->write_data_hook = &server; # 3303| # 3304| /* We use a pipe based server so that we can work from scripts. Error: GCC_ANALYZER_WARNING (CWE-457): gpgme-1.23.2-build/gpgme-1.23.2/src/key.c: scope_hint: In function 'gpgme_key_from_uid' gpgme-1.23.2-build/gpgme-1.23.2/src/key.c:420:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'key' # 418| # 419| /* Note: protocol doesn't matter if only email is provided. */ # 420|-> err = _gpgme_key_append_name (key, name, 0); # 421| if (err) # 422| gpgme_key_unref (key); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/keylist.c:1197:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 1195| err = _gpgme_op_data_lookup (ctx, OPDATA_KEYLIST, &hook, # 1196| sizeof (*opd), release_op_data); # 1197|-> opd = hook; # 1198| if (err) # 1199| return TRACE_ERR (err); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/keylist.c:1241:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 1239| err = _gpgme_op_data_lookup (ctx, OPDATA_KEYLIST, &hook, # 1240| sizeof (*opd), release_op_data); # 1241|-> opd = hook; # 1242| if (err) # 1243| return TRACE_ERR (err); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/keylist.c:1282:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 1280| err = _gpgme_op_data_lookup (ctx, OPDATA_KEYLIST, &hook, # 1281| sizeof (*opd), release_op_data); # 1282|-> opd = hook; # 1283| if (err) # 1284| return TRACE_ERR (err); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/keysign.c:168:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 166| err = _gpgme_op_data_lookup (ctx, OPDATA_KEYSIGN, &hook, # 167| sizeof (*opd), release_op_data); # 168|-> opd = hook; # 169| if (err) # 170| return err; Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/mbox-util.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/op-support.c:129:7: warning[deadcode.DeadStores]: Value stored to 'err' is never read # 127| if (!reuse_engine) # 128| { # 129|-> err = 0; # 130| #ifdef LC_CTYPE # 131| err = _gpgme_engine_set_locale (ctx->engine, LC_CTYPE, ctx->lc_ctype); Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/parsetlv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/passwd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c:452:4: warning[deadcode.DeadStores]: Value stored to 'source' is never read # 450| if (scres >= 0) # 451| { # 452|-> source = "_SC_OPEN_MAX"; # 453| return scres; # 454| } Error: GCC_ANALYZER_WARNING (CWE-775): gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c: scope_hint: In function '_gpgme_io_spawn' gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c:648:38: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 2)' # 646| } # 647| /* Make sure that the process has connected stdin. */ # 648|-> if (! seen_stdin && fd != 0) # 649| { # 650| if (dup2 (fd, 0) == -1) Error: GCC_ANALYZER_WARNING (CWE-775): gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c:650:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(open("/dev/null", 2), 0)' # 648| if (! seen_stdin && fd != 0) # 649| { # 650|-> if (dup2 (fd, 0) == -1) # 651| _exit (8); # 652| } Error: GCC_ANALYZER_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c:650:23: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor '0' # 648| if (! seen_stdin && fd != 0) # 649| { # 650|-> if (dup2 (fd, 0) == -1) # 651| _exit (8); # 652| } Error: GCC_ANALYZER_WARNING (CWE-775): gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c:655:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(open("/dev/null", 2), 1)' # 653| if (! seen_stdout && fd != 1) # 654| { # 655|-> if (dup2 (fd, 1) == -1) # 656| _exit (8); # 657| } Error: GCC_ANALYZER_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c:655:23: warning[-Wanalyzer-fd-use-without-check]: 'dup2' on possibly invalid file descriptor '1' # 653| if (! seen_stdout && fd != 1) # 654| { # 655|-> if (dup2 (fd, 1) == -1) # 656| _exit (8); # 657| } Error: GCC_ANALYZER_WARNING (CWE-775): gpgme-1.23.2-build/gpgme-1.23.2/src/posix-io.c:660:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(open("/dev/null", 2), 2)' # 658| if (! seen_stderr && fd != 2) # 659| { # 660|-> if (dup2 (fd, 2) == -1) # 661| _exit (8); # 662| } Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/queryswdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/revsig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/revsig.c:160:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 158| err = _gpgme_op_data_lookup (ctx, OPDATA_REVSIG, &hook, sizeof (*opd), # 159| NULL); # 160|-> opd = hook; # 161| if (err) # 162| return err; Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/setexpire.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/setexpire.c:151:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 149| err = _gpgme_op_data_lookup (ctx, OPDATA_SETEXPIRE, &hook, sizeof (*opd), # 150| NULL); # 151|-> opd = hook; # 152| if (err) # 153| return err; Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/sign.c:205:12: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>' # 203| sig = malloc (sizeof (*sig)); # 204| if (!sig) # 205|-> return gpg_error_from_syserror (); # 206| # 207| sig->next = NULL; Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/sign.c: scope_hint: In function 'parse_sig_created' gpgme-1.23.2-build/gpgme-1.23.2/src/sign.c:205:12: warning[-Wanalyzer-malloc-leak]: leak of 'sig' # 203| sig = malloc (sizeof (*sig)); # 204| if (!sig) # 205|-> return gpg_error_from_syserror (); # 206| # 207| sig->next = NULL; Error: GCC_ANALYZER_WARNING (CWE-787): gpgme-1.23.2-build/gpgme-1.23.2/src/signers.c: scope_hint: In function 'gpgme_signers_add' gpgme-1.23.2-build/gpgme-1.23.2/src/signers.c:85:19: warning[-Wanalyzer-out-of-bounds]: buffer overflow # 83| return TRACE_ERR (gpg_error_from_syserror ()); # 84| for (j = ctx->signers_size; j < n; j++) # 85|-> newarr[j] = NULL; # 86| ctx->signers = newarr; # 87| ctx->signers_size = n; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/tofupolicy.c:141:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 139| err = _gpgme_op_data_lookup (ctx, OPDATA_TOFU_POLICY, &hook, # 140| sizeof (*opd), NULL); # 141|-> opd = hook; # 142| if (err) # 143| return err; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/trustlist.c:192:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 190| err = _gpgme_op_data_lookup (ctx, OPDATA_TRUSTLIST, &hook, # 191| sizeof (*opd), NULL); # 192|-> opd = hook; # 193| if (err) # 194| return TRACE_ERR (err); Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c: scope_hint: In function 'parse_valid_sig' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:429:6: warning[-Wanalyzer-malloc-leak]: leak of '*sig.fpr' # 427| free (sig->fpr); # 428| sig->fpr = strdup (args); # 429|-> if (!sig->fpr) # 430| return gpg_error_from_syserror (); # 431| Error: GCC_ANALYZER_WARNING (CWE-688): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:433:9: warning[-Wanalyzer-null-argument]: use of NULL 'end' where non-null expected <built-in>: note: argument 1 of '__builtin_strchr' must be non-null # 431| # 432| /* Skip the creation date. */ # 433|-> end = strchr (end, ' '); # 434| if (end) # 435| { Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:433:9: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull' # 431| # 432| /* Skip the creation date. */ # 433|-> end = strchr (end, ' '); # 434| if (end) # 435| { Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:480:5: warning[deadcode.DeadStores]: Value stored to 'end' is never read # 478| if (errno || end == tail || *tail != ' ') # 479| return trace_gpg_error (GPG_ERR_INV_ENGINE); # 480|-> end = tail; # 481| } # 482| } Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:556:4: warning[deadcode.DeadStores]: Value stored to 'lastp' is never read # 554| while (notation && notation->next) # 555| { # 556|-> lastp = ¬ation->next; # 557| notation = notation->next; # 558| } Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:589:4: warning[deadcode.DeadStores]: Value stored to 'lastp' is never read # 587| while (notation && notation->next) # 588| { # 589|-> lastp = ¬ation->next; # 590| notation = notation->next; # 591| } Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c: scope_hint: In function 'parse_tofu_user' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:757:10: warning[-Wanalyzer-malloc-leak]: leak of 'fpr' # 755| free (fpr); # 756| free (address); # 757|-> return err; # 758| } # 759| Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c: scope_hint: In function '_gpgme_verify_status_handler' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:1014:24: warning[-Wanalyzer-malloc-leak]: leak of '*sig.pka_address' # 1012| if (end) # 1013| *end = 0; # 1014|-> sig->pka_address = strdup (args); # 1015| break; # 1016| Error: GCC_ANALYZER_WARNING (CWE-476): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c: scope_hint: In function 'gpgme_get_sig_key' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:1239:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:32: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:100:7: note: in expansion of macro 'TRACE_SUC' # 1237| # 1238| result = gpgme_op_verify_result (ctx); # 1239|-> sig = result->signatures; # 1240| # 1241| while (sig && idx) Error: GCC_ANALYZER_WARNING (CWE-476): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c: scope_hint: In function 'gpgme_get_sig_status' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:1265:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:100:7: note: in expansion of macro 'TRACE_SUC' # 1263| # 1264| result = gpgme_op_verify_result (ctx); # 1265|-> sig = result->signatures; # 1266| # 1267| while (sig && idx) Error: GCC_ANALYZER_WARNING (CWE-476): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c: scope_hint: In function 'gpgme_get_sig_ulong_attr' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:1328:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:100:7: note: in expansion of macro 'TRACE_SUC' # 1326| # 1327| result = gpgme_op_verify_result (ctx); # 1328|-> sig = result->signatures; # 1329| # 1330| while (sig && idx) Error: GCC_ANALYZER_WARNING (CWE-476): gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c: scope_hint: In function 'gpgme_get_sig_string_attr' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:1392:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0' gpgme-1.23.2-build/gpgme-1.23.2/src/verify.c:100:7: note: in expansion of macro 'TRACE_SUC' # 1390| # 1391| result = gpgme_op_verify_result (ctx); # 1392|-> sig = result->signatures; # 1393| # 1394| while (sig && idx) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/vfs-create.c:133:18: warning[core.NullDereference]: Array access (from variable 'recp') results in a null pointer dereference # 131| # 132| i = 0; # 133|-> while (!err && recp[i]) # 134| { # 135| if (!recp[i]->subkeys || !recp[i]->subkeys->fpr) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/vfs-mount.c:107:3: warning[deadcode.DeadStores]: Value stored to 'opd' is never read # 105| err = _gpgme_op_data_lookup (ctx, OPDATA_VFS_MOUNT, &hook, sizeof (*opd), # 106| NULL); # 107|-> opd = hook; # 108| if (err) # 109| return err; Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/src/wait.c:139:3: warning[unix.Malloc]: Potential leak of memory pointed to by 'item' # 137| } # 138| # 139|-> TRACE (DEBUG_CTX, "_gpgme_add_io_cb", ctx, # 140| "fd=%d, dir=%d -> tag=%p", fd, dir, tag); # 141| Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/src/wait.c: scope_hint: In function '_gpgme_add_io_cb' gpgme-1.23.2-build/gpgme-1.23.2/src/wait.c:142:10: warning[-Wanalyzer-malloc-leak]: leak of 'item' gpgme-1.23.2-build/gpgme-1.23.2/src/wait.c:27: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/src/wait.c:40: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/src/wait.c:139:3: note: in expansion of macro 'TRACE' # 140| "fd=%d, dir=%d -> tag=%p", fd, dir, tag); # 141| # 142|-> *r_tag = tag; # 143| return 0; # 144| } Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-cancel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt-verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-edit-sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-edit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-encrypt-large.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-encrypt-mixed.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-encrypt-sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-encrypt-sym.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-eventloop.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-file-name.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-genkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-gpgconf.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("pubkey-1.asc")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:206:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’ # 228| fail_if_err (err); # 229| # 230|-> err = gpgme_set_ctx_flag (ctx, "key-origin", "wkd,https://openpgpkey.gnupg.org"); # 231| fail_if_err (err); # 232| Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("seckey-1.asc")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:206:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’ # 228| fail_if_err (err); # 229| # 230|-> err = gpgme_set_ctx_flag (ctx, "key-origin", "wkd,https://openpgpkey.gnupg.org"); # 231| fail_if_err (err); # 232| Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-secret-sig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-secret-sig.c:366:39: warning[core.NullDereference]: Access to field 'comment' results in a dereference of a null pointer (loaded from field 'uids') # 364| } # 365| if (keys[i].uid[0].comment # 366|-> && strcmp (keys[i].uid[0].comment, key->uids->comment)) # 367| { # 368| fprintf (stderr, "Unexpected comment in first user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-secret-sig.c:373:37: warning[core.NullDereference]: Access to field 'email' results in a dereference of a null pointer (loaded from field 'uids') # 371| } # 372| if (keys[i].uid[0].email # 373|-> && strcmp (keys[i].uid[0].email, key->uids->email)) # 374| { # 375| fprintf (stderr, "Unexpected email in first user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-secret-sig.c:384:38: warning[core.NullDereference]: Access to field 'signatures' results in a dereference of a null pointer (loaded from field 'uids') # 382| exit (1); # 383| } # 384|-> if (keys[i].uid[0].sig.algo != key->uids->signatures->pubkey_algo) # 385| { # 386| fprintf (stderr, "Unexpected algorithm in first user ID sig: %s\n", Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-sig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-sig.c:366:39: warning[core.NullDereference]: Access to field 'comment' results in a dereference of a null pointer (loaded from field 'uids') # 364| } # 365| if (keys[i].uid[0].comment # 366|-> && strcmp (keys[i].uid[0].comment, key->uids->comment)) # 367| { # 368| fprintf (stderr, "Unexpected comment in first user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-sig.c:373:37: warning[core.NullDereference]: Access to field 'email' results in a dereference of a null pointer (loaded from field 'uids') # 371| } # 372| if (keys[i].uid[0].email # 373|-> && strcmp (keys[i].uid[0].email, key->uids->email)) # 374| { # 375| fprintf (stderr, "Unexpected email in first user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist-sig.c:384:38: warning[core.NullDereference]: Access to field 'signatures' results in a dereference of a null pointer (loaded from field 'uids') # 382| exit (1); # 383| } # 384|-> if (keys[i].uid[0].sig.algo != key->uids->signatures->pubkey_algo) # 385| { # 386| fprintf (stderr, "Unexpected algorithm in first user ID sig: %s\n", Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:326:11: warning[core.NullDereference]: Access to field 'revoked' results in a dereference of a null pointer (loaded from field 'next') # 324| # 325| /* Secondary key. */ # 326|-> if (key->subkeys->next->revoked) # 327| { # 328| fprintf (stderr, "Secondary key unexpectedly revoked\n"); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:453:39: warning[core.NullDereference]: Access to field 'comment' results in a dereference of a null pointer (loaded from field 'uids') # 451| } # 452| if (keys[i].uid[0].comment # 453|-> && strcmp (keys[i].uid[0].comment, key->uids->comment)) # 454| { # 455| fprintf (stderr, "Unexpected comment in first user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:460:37: warning[core.NullDereference]: Access to field 'email' results in a dereference of a null pointer (loaded from field 'uids') # 458| } # 459| if (keys[i].uid[0].email # 460|-> && strcmp (keys[i].uid[0].email, key->uids->email)) # 461| { # 462| fprintf (stderr, "Unexpected email in first user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:489:36: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from field 'uids') # 487| } # 488| if (keys[i].uid[1].name # 489|-> && strcmp (keys[i].uid[1].name, key->uids->next->name)) # 490| { # 491| fprintf (stderr, "Unexpected name in second user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:496:39: warning[core.NullDereference]: Access to field 'comment' results in a dereference of a null pointer (loaded from field 'next') # 494| } # 495| if (keys[i].uid[1].comment # 496|-> && strcmp (keys[i].uid[1].comment, key->uids->next->comment)) # 497| { # 498| fprintf (stderr, "Unexpected comment in second user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:496:39: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from field 'uids') # 494| } # 495| if (keys[i].uid[1].comment # 496|-> && strcmp (keys[i].uid[1].comment, key->uids->next->comment)) # 497| { # 498| fprintf (stderr, "Unexpected comment in second user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:503:37: warning[core.NullDereference]: Access to field 'email' results in a dereference of a null pointer (loaded from field 'next') # 501| } # 502| if (keys[i].uid[1].email # 503|-> && strcmp (keys[i].uid[1].email, key->uids->next->email)) # 504| { # 505| fprintf (stderr, "Unexpected email in second user ID: %s\n", Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-keylist.c:503:37: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from field 'uids') # 501| } # 502| if (keys[i].uid[1].email # 503|-> && strcmp (keys[i].uid[1].email, key->uids->next->email)) # 504| { # 505| fprintf (stderr, "Unexpected email in second user ID: %s\n", Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-sig-notation.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-signers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt.c:36: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:46:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cipher-1.asc")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt.c:55:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:206:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt.c:55:3: note: in expansion of macro ‘fail_if_err’ # 44| do \ # 45| { \ # 46|-> if (err) \ # 47| { \ # 48| fprintf (stderr, "%s:%d: %s: %s\n", \ Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt-verify.c:36: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt-verify.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:46:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cipher-2.asc")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt-verify.c:125:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:206:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-decrypt-verify.c:125:3: note: in expansion of macro ‘fail_if_err’ # 44| do \ # 45| { \ # 46|-> if (err) \ # 47| { \ # 48| fprintf (stderr, "%s:%d: %s: %s\n", \ Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:35: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:46:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("pubkey-1.asc")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:206:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’ # 44| do \ # 45| { \ # 46|-> if (err) \ # 47| { \ # 48| fprintf (stderr, "%s:%d: %s: %s\n", \ Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:46:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("seckey-1.asc")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:206:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’ # 44| do \ # 45| { \ # 46|-> if (err) \ # 47| { \ # 48| fprintf (stderr, "%s:%d: %s: %s\n", \ Error: COMPILER_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h: scope_hint: In function 'check_data.constprop' gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:137:12: warning[-Wstringop-overflow=]: writing 1 byte into a region of size 0 # 137 | buf[ret] = 0; # | ^ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:114:8: note: at offset [-2147483648, -1] into destination object 'buf' of size 513 # 114 | char buf[BUF_SIZE + 1]; # | ^ # 135| if ((ret = gpgme_data_read (dh, buf, BUF_SIZE)) < 0) # 136| fail_if_err (gpgme_err_code_from_errno (errno)); # 137|-> buf[ret] = 0; # 138| if (ret != expectedlen || strncmp (buf, expected, expectedlen)) # 139| { Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-thread-keylist-verify.c:64:12: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' # 62| fail_if_err (err); # 63| # 64|-> while (!(err = gpgme_op_keylist_next (ctx, &key))) # 65| { # 66| gpgme_key_unref (key); Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-thread-keylist.c:52:12: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' # 50| fail_if_err (err); # 51| # 52|-> while (!(err = gpgme_op_keylist_next (ctx, &key))) # 53| { # 54| gpgme_key_unref (key); Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-thread1.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-thread1.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cipher-1.asc")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-support.h:206:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-thread1.c:112:7: note: in expansion of macro ‘fail_if_err’ # 113| # 114| if (!(agent_info && strchr (agent_info, ':'))) # 115|-> gpgme_set_passphrase_cb (ctx, passphrase_cb, NULL); # 116| # 117| err = gpgme_data_new_from_file (&in, cipher_1_asc, 1); Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpg/t-verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/cms-decrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/cms-keylist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c:155:3: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cert_dfn_pca15.der")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c:153:3: note: in expansion of macro ‘fail_if_err’ # 153| fail_if_err (err); # 154| # 155|-> gpgme_set_protocol (ctx, GPGME_PROTOCOL_CMS); # 156| # 157| err = gpgme_data_new_from_file (&in, cert_1, 1); Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-keylist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-465): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-keylist.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-keylist.c:214:10: warning[-Wanalyzer-deref-before-check]: check of ‘*key.subkeys’ for NULL after already dereferencing it gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-keylist.c:34: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-keylist.c:95:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-keylist.c:99:3: note: in expansion of macro ‘fail_if_err’ # 212| exit (1); # 213| } # 214|-> if (!key->subkeys || key->subkeys->next) # 215| { # 216| fprintf (stderr, "Key has unexpected number of subkeys\n"); Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-support.h:36:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cert_dfn_pca01.der")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c:153:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c:153:3: note: in expansion of macro ‘fail_if_err’ # 34| do \ # 35| { \ # 36|-> if (err) \ # 37| { \ # 38| fprintf (stderr, "%s:%d: %s: %s (%d.%d)\n", \ Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c:35: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-support.h:36:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cert_dfn_pca15.der")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c:153:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-import.c:153:3: note: in expansion of macro ‘fail_if_err’ # 34| do \ # 35| { \ # 36|-> if (err) \ # 37| { \ # 38| fprintf (stderr, "%s:%d: %s: %s (%d.%d)\n", \ Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/gpgsm/t-verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/json/t-json.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/json/t-json.c:221:23: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'hay') # 219| # 220| /* Type check. This automatically checks bool vals and NULL */ # 221|-> if (needle->type != hay->type) # 222| { # 223| if (verbose) Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-decrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-encrypt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-encrypt.c:257:17: warning[unix.Malloc]: Potential leak of memory pointed to by 'keystring' # 255| show_usage (1); # 256| keystring = xstrdup (*argv); # 257|-> for (i=0; keystring[i]; i++) # 258| if (keystring[i] == ';') # 259| keystring[i] = '\n'; Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-export.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-genkey.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-genkey.c:502:15: warning[unix.Malloc]: Potential leak of memory pointed to by 'subfprs' # 500| else if (setexpire) # 501| { # 502|-> err = gpgme_op_setexpire (ctx, akey, expire, subfprs, 0); # 503| if (err) # 504| { Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-identify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-identify.c:44:15: warning[deadcode.DeadStores]: Value stored to 's' during its initialization is never read # 42| data_type_to_string (gpgme_data_type_t dt) # 43| { # 44|-> const char *s = "[?]"; # 45| # 46| switch (dt) Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-import.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/run-import.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-import.c:115:23: warning[-Wanalyzer-malloc-leak]: leak of ‘import_filter’ # 113| show_usage (1); # 114| import_filter = strdup (*argv); # 115|-> argc--; argv++; # 116| } # 117| else if (!strcmp (*argv, "--key-origin")) Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-import.c:148:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'import_filter' # 146| if (import_filter) # 147| { # 148|-> err = gpgme_set_ctx_flag (ctx, "import-filter", import_filter); # 149| fail_if_err (err); # 150| } Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-import.c:153:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'key_origin' # 151| if (key_origin) # 152| { # 153|-> err = gpgme_set_ctx_flag (ctx, "key-origin", key_origin); # 154| fail_if_err (err); # 155| } Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-keylist.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-keylist.c:254:11: warning[unix.Malloc]: Potential leak of memory pointed to by 'trust_model' # 252| show_usage (1); # 253| trust_model = strdup (*argv); # 254|-> argc--; argv++; # 255| } # 256| else if (!strncmp (*argv, "--", 2)) Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/run-keylist.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-keylist.c:254:23: warning[-Wanalyzer-malloc-leak]: leak of ‘trust_model’ # 252| show_usage (1); # 253| trust_model = strdup (*argv); # 254|-> argc--; argv++; # 255| } # 256| else if (!strncmp (*argv, "--", 2)) Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-keysign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-receive-keys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-sign.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-swdb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-476): gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c: scope_hint: In function ‘random_data_new’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c:288:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c:43: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/tests/run-support.h:40:11: note: in definition of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c:571:3: note: in expansion of macro ‘fail_if_err’ # 286| int data_rand; # 287| # 288|-> ret->fd = -1; # 289| # 290| if (data_type) Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c: scope_hint: In function ‘decrypt’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c:290:7: warning[-Wanalyzer-malloc-leak]: leak of ‘random_data_new(fname)’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-support.h:40:11: note: in definition of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c:571:3: note: in expansion of macro ‘fail_if_err’ # 288| ret->fd = -1; # 289| # 290|-> if (data_type) # 291| { # 292| data_rand = data_type; Error: GCC_ANALYZER_WARNING (CWE-476): gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c:762:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘msg_it’ # 760| msg_it = msg_it->next; # 761| } # 762|-> msg_it->file_name = *argv; # 763| argc--; argv++; # 764| } Error: CLANG_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-threaded.c:797:10: warning[unix.Malloc]: Potential leak of memory pointed to by 'msg_it' # 795| while (--repeats != 0); # 796| # 797|-> return 0; # 798| } Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-tofu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/run-verify.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-775): gpgme-1.23.2-build/gpgme-1.23.2/tests/run-verify.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-verify.c:391:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*argv, "rb")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-verify.c:36: included_from: Included from here. gpgme-1.23.2-build/gpgme-1.23.2/tests/run-support.h:142:3: note: in expansion of macro ‘fail_if_err’ # 389| if (argc > 1) # 390| { # 391|-> fp_msg = fopen (argv[1], "rb"); # 392| if (!fp_msg) # 393| { Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/run-verify.c:391:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*argv, "rb")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/run-support.h:142:3: note: in expansion of macro ‘fail_if_err’ # 389| if (argc > 1) # 390| { # 391|-> fp_msg = fopen (argv[1], "rb"); # 392| if (!fp_msg) # 393| { Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:37:31: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-1.txt")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:264:7: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:264:7: note: in expansion of macro ‘fail_if_err’ # 35| # 36| #undef fail_if_err # 37|-> #define fail_if_err(a) do { if(a) { \ # 38| fprintf (stderr, "%s:%d: (%i) gpgme_error_t " \ # 39| "%s\n", __FILE__, __LINE__, round, \ Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:37:31: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-2.txt")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:264:7: note: in expansion of macro ‘fail_if_err’ gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:264:7: note: in expansion of macro ‘fail_if_err’ # 35| # 36| #undef fail_if_err # 37|-> #define fail_if_err(a) do { if(a) { \ # 38| fprintf (stderr, "%s:%d: (%i) gpgme_error_t " \ # 39| "%s\n", __FILE__, __LINE__, round, \ Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c: scope_hint: In function ‘main’ gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:195:14: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-1.txt")’ gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:34: included_from: Included from here. # 193| case TEST_INVALID_ARGUMENT: # 194| err = gpgme_data_new (NULL); # 195|-> if (!err) # 196| { # 197| fprintf (stderr, "%s:%d: gpgme_data_new on NULL pointer succeeded " Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:195:14: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-2.txt")’ # 193| case TEST_INVALID_ARGUMENT: # 194| err = gpgme_data_new (NULL); # 195|-> if (!err) # 196| { # 197| fprintf (stderr, "%s:%d: gpgme_data_new on NULL pointer succeeded " Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:216:14: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-1.txt")’ # 214| case TEST_INOUT_MEM_FROM_INEXISTANT_FILE: # 215| err = gpgme_data_new_from_file (&data, missing_filename, 1); # 216|-> if (!err) # 217| { # 218| fprintf (stderr, "%s:%d: gpgme_data_new_from_file on inexistant " Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:216:14: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-2.txt")’ # 214| case TEST_INOUT_MEM_FROM_INEXISTANT_FILE: # 215| err = gpgme_data_new_from_file (&data, missing_filename, 1); # 216|-> if (!err) # 217| { # 218| fprintf (stderr, "%s:%d: gpgme_data_new_from_file on inexistant " Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:237:14: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-1.txt")’ # 235| err = gpgme_data_new_from_filepart (&data, missing_filename, 0, # 236| strlen (text), strlen (text)); # 237|-> if (!err) # 238| { # 239| fprintf (stderr, "%s:%d: gpgme_data_new_from_file on inexistant " Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:237:14: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-2.txt")’ # 235| err = gpgme_data_new_from_filepart (&data, missing_filename, 0, # 236| strlen (text), strlen (text)); # 237|-> if (!err) # 238| { # 239| fprintf (stderr, "%s:%d: gpgme_data_new_from_file on inexistant " Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:247:16: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-1.txt")’ # 245| { # 246| FILE *fp = fopen (longer_text_filename, "rb"); # 247|-> if (! fp) # 248| { # 249| fprintf (stderr, "%s:%d: fopen: %s\n", __FILE__, __LINE__, Error: GCC_ANALYZER_WARNING (CWE-401): gpgme-1.23.2-build/gpgme-1.23.2/tests/t-data.c:247:16: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-2.txt")’ # 245| { # 246| FILE *fp = fopen (longer_text_filename, "rb"); # 247|-> if (! fp) # 248| { # 249| fprintf (stderr, "%s:%d: fopen: %s\n", __FILE__, __LINE__, Error: CPPCHECK_WARNING: gpgme-1.23.2-build/gpgme-1.23.2/tests/t-engine-info.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.