gpgme-1.24.0-1.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-156): [#def1]
/usr/bin/gpgme-config:2:28: warning[SC2046]: Quote this to prevent word splitting.
#    1|   #!/usr/bin/sh
#    2|-> exec /usr/bin/gpgme-config.$(arch) $@

Error: SHELLCHECK_WARNING (CWE-88): [#def2]
/usr/bin/gpgme-config:2:36: error[SC2068]: Double quote array expansions to avoid re-splitting elements.
#    1|   #!/usr/bin/sh
#    2|-> exec /usr/bin/gpgme-config.$(arch) $@

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/gpgme-config.x86_64:41:1: warning[SC2034]: libs_pthread appears unused. Verify use (or export if used externally).
#   39|   # thread modules variable.
#   40|   thread_modules="$thread_modules pthread"
#   41|-> libs_pthread="-lpthread"
#   42|   cflags_pthread=""
#   43|   

Error: SHELLCHECK_WARNING (CWE-457): [#def4]
/usr/bin/gpgme-config.x86_64:128:37: warning[SC2154]: assuan_cflags is referenced but not assigned.
#  126|   	    esac
#  127|   	    test "x$with_glib" = "xyes" && tmp_g="$cflags_glib"
#  128|->             for i in $cflags $tmp_c $assuan_cflags $gpg_error_cflags $tmp_g ; do
#  129|                 skip=no
#  130|                 case $i in

Error: SHELLCHECK_WARNING (CWE-457): [#def5]
/usr/bin/gpgme-config.x86_64:164:35: warning[SC2154]: assuan_libs is referenced but not assigned.
#  162|   		    ;;
#  163|   	    esac
#  164|->             for i in $libs $tmp_l $assuan_libs $gpg_error_libs $tmp_x; do
#  165|                 skip=no
#  166|                 case $i in

Error: SHELLCHECK_WARNING (CWE-457): [#def6]
/usr/bin/gpgme-config.x86_64:164:48: warning[SC2154]: gpg_error_libs is referenced but not assigned.
#  162|   		    ;;
#  163|   	    esac
#  164|->             for i in $libs $tmp_l $assuan_libs $gpg_error_libs $tmp_x; do
#  165|                 skip=no
#  166|                 case $i in

Error: COMPILER_WARNING (CWE-457): [#def7]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:3959:10: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
# 3959 |     *obj = value;
#      |     ~~~~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_error_t_p_assign’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:49009:17: note: ‘arg2’ was declared here
#49009 |   gpgme_error_t arg2 ;
#      |                 ^~~~
# 3957|   
# 3958|     static void gpgme_error_t_p_assign(gpgme_error_t *obj, gpgme_error_t value) {
# 3959|->     *obj = value;
# 3960|     }
# 3961|   

Error: COMPILER_WARNING (CWE-457): [#def8]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_seek’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4157:14: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
# 4157 |     result = gpgme_data_seek(arg1,arg2,arg3);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4118:9: note: ‘arg2’ was declared here
# 4118 |   off_t arg2 ;
#      |         ^~~~
# 4155|     {
# 4156|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4157|->     result = gpgme_data_seek(arg1,arg2,arg3);
# 4158|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4159|     }

Error: COMPILER_WARNING (CWE-457): [#def9]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4717:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4717 |     result = (char *)gpgme_strerror(arg1);
#      |                      ^~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4698:17: note: ‘arg1’ was declared here
# 4698 |   gpgme_error_t arg1 ;
#      |                 ^~~~
# 4715|     {
# 4716|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4717|->     result = (char *)gpgme_strerror(arg1);
# 4718|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4719|     }

Error: COMPILER_WARNING (CWE-457): [#def10]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror_r’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4772:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4772 |     result = (int)gpgme_strerror_r(arg1,arg2,arg3);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4729:15: note: ‘arg1’ was declared here
# 4729 |   gpg_error_t arg1 ;
#      |               ^~~~
# 4770|     {
# 4771|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4772|->     result = (int)gpgme_strerror_r(arg1,arg2,arg3);
# 4773|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4774|     }

Error: COMPILER_WARNING (CWE-457): [#def11]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strsource’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4813:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4813 |     result = (char *)gpgme_strsource(arg1);
#      |                      ^~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4794:17: note: ‘arg1’ was declared here
# 4794 |   gpgme_error_t arg1 ;
#      |                 ^~~~
# 4811|     {
# 4812|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4813|->     result = (char *)gpgme_strsource(arg1);
# 4814|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4815|     }

Error: COMPILER_WARNING (CWE-457): [#def12]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_code_to_errno’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4874:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4874 |     result = (int)gpgme_err_code_to_errno(arg1);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4855:20: note: ‘arg1’ was declared here
# 4855 |   gpgme_err_code_t arg1 ;
#      |                    ^~~~
# 4872|     {
# 4873|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4874|->     result = (int)gpgme_err_code_to_errno(arg1);
# 4875|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4876|     }

Error: COMPILER_WARNING (CWE-457): [#def13]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_make_from_errno’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4959:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4959 |     result = gpgme_err_make_from_errno(arg1,arg2);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:4933:22: note: ‘arg1’ was declared here
# 4933 |   gpgme_err_source_t arg1 ;
#      |                      ^~~~
# 4957|     {
# 4958|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4959|->     result = gpgme_err_make_from_errno(arg1,arg2);
# 4960|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4961|     }

Error: COMPILER_WARNING (CWE-457): [#def14]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_key_sig_status_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:8763:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
# 8763 |     if (arg1) (arg1)->status = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:8739:17: note: ‘arg2’ was declared here
# 8739 |   gpgme_error_t arg2 ;
#      |                 ^~~~
# 8761|     {
# 8762|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 8763|->     if (arg1) (arg1)->status = arg2;
# 8764|       SWIG_PYTHON_THREAD_END_ALLOW;
# 8765|     }

Error: COMPILER_WARNING (CWE-457): [#def15]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_invalid_key_reason_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:13035:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#13035 |     if (arg1) (arg1)->reason = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:13011:17: note: ‘arg2’ was declared here
#13011 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#13033|     {
#13034|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#13035|->     if (arg1) (arg1)->reason = arg2;
#13036|       SWIG_PYTHON_THREAD_END_ALLOW;
#13037|     }

Error: COMPILER_WARNING (CWE-457): [#def16]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_io_event_done_data_err_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14711:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#14711 |     if (arg1) (arg1)->err = arg2;
#      |               ~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14687:17: note: ‘arg2’ was declared here
#14687 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#14709|     {
#14710|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#14711|->     if (arg1) (arg1)->err = arg2;
#14712|       SWIG_PYTHON_THREAD_END_ALLOW;
#14713|     }

Error: COMPILER_WARNING (CWE-457): [#def17]
gpgme-1.24.0-build/gpgme-1.24.0/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.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14778:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#14778 |     if (arg1) (arg1)->op_err = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:14754:17: note: ‘arg2’ was declared here
#14754 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#14776|     {
#14777|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#14778|->     if (arg1) (arg1)->op_err = arg2;
#14779|       SWIG_PYTHON_THREAD_END_ALLOW;
#14780|     }

Error: COMPILER_WARNING (CWE-457): [#def18]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_new_from_filepart’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:16767:14: warning[-Wmaybe-uninitialized]: ‘arg4’ may be used uninitialized
#16767 |     result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:16703:9: note: ‘arg4’ was declared here
#16703 |   off_t arg4 ;
#      |         ^~~~
#16765|     {
#16766|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#16767|->     result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5);
#16768|       SWIG_PYTHON_THREAD_END_ALLOW;
#16769|     }

Error: COMPILER_WARNING (CWE-457): [#def19]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_recipient_status_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:21693:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#21693 |     if (arg1) (arg1)->status = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:21669:17: note: ‘arg2’ was declared here
#21669 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#21691|     {
#21692|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#21693|->     if (arg1) (arg1)->status = arg2;
#21694|       SWIG_PYTHON_THREAD_END_ALLOW;
#21695|     }

Error: COMPILER_WARNING (CWE-457): [#def20]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_status_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:27384:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#27384 |     if (arg1) (arg1)->status = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:27360:17: note: ‘arg2’ was declared here
#27360 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#27382|     {
#27383|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#27384|->     if (arg1) (arg1)->status = arg2;
#27385|       SWIG_PYTHON_THREAD_END_ALLOW;
#27386|     }

Error: COMPILER_WARNING (CWE-457): [#def21]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_validity_reason_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:28083:39: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#28083 |     if (arg1) (arg1)->validity_reason = arg2;
#      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:28059:17: note: ‘arg2’ was declared here
#28059 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#28081|     {
#28082|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#28083|->     if (arg1) (arg1)->validity_reason = arg2;
#28084|       SWIG_PYTHON_THREAD_END_ALLOW;
#28085|     }

Error: COMPILER_WARNING (CWE-457): [#def22]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_import_status_result_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:31689:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#31689 |     if (arg1) (arg1)->result = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:31665:17: note: ‘arg2’ was declared here
#31665 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#31687|     {
#31688|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#31689|->     if (arg1) (arg1)->result = arg2;
#31690|       SWIG_PYTHON_THREAD_END_ALLOW;
#31691|     }

Error: COMPILER_WARNING (CWE-457): [#def23]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys_start’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33660:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#33660 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33588:10: note: ‘size2’ was declared here
#33588 |   size_t size2 ;
#      |          ^~~~~
#33658|       size_t i;
#33659|       free(vector2);
#33660|->     for (i = 0; i < size2; i++)
#33661|       Py_XDECREF(pyVector2[i]);
#33662|     }

Error: COMPILER_WARNING (CWE-457): [#def24]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33746:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#33746 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:33674:10: note: ‘size2’ was declared here
#33674 |   size_t size2 ;
#      |          ^~~~~
#33744|       size_t i;
#33745|       free(vector2);
#33746|->     for (i = 0; i < size2; i++)
#33747|       Py_XDECREF(pyVector2[i]);
#33748|     }

Error: COMPILER_WARNING (CWE-457): [#def25]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext_start’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:34539:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#34539 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:34334:10: note: ‘size2’ was declared here
#34334 |   size_t size2 ;
#      |          ^~~~~
#34537|       size_t i;
#34538|       free(vector2);
#34539|->     for (i = 0; i < size2; i++)
#34540|       Py_XDECREF(pyVector2[i]);
#34541|     }

Error: COMPILER_WARNING (CWE-457): [#def26]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:34855:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#34855 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:34650:10: note: ‘size2’ was declared here
#34650 |   size_t size2 ;
#      |          ^~~~~
#34853|       size_t i;
#34854|       free(vector2);
#34855|->     for (i = 0; i < size2; i++)
#34856|       Py_XDECREF(pyVector2[i]);
#34857|     }

Error: COMPILER_WARNING (CWE-457): [#def27]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_keylist_ext_start’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:40191:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#40191 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:40105:10: note: ‘size2’ was declared here
#40105 |   size_t size2 ;
#      |          ^~~~~
#40189|       size_t i;
#40190|       free(vector2);
#40191|->     for (i = 0; i < size2; i++)
#40192|       Py_XDECREF(pyVector2[i]);
#40193|     }

Error: COMPILER_WARNING (CWE-457): [#def28]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn_start’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:41760:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized
#41760 |     for (i = 0; i < size3; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:41635:10: note: ‘size3’ was declared here
#41635 |   size_t size3 ;
#      |          ^~~~~
#41758|       size_t i;
#41759|       free(vector3);
#41760|->     for (i = 0; i < size3; i++)
#41761|       Py_XDECREF(pyVector3[i]);
#41762|     }

Error: COMPILER_WARNING (CWE-457): [#def29]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:41905:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized
#41905 |     for (i = 0; i < size3; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:41780:10: note: ‘size3’ was declared here
#41780 |   size_t size3 ;
#      |          ^~~~~
#41903|       size_t i;
#41904|       free(vector3);
#41905|->     for (i = 0; i < size3; i++)
#41906|       Py_XDECREF(pyVector3[i]);
#41907|     }

Error: COMPILER_WARNING (CWE-457): [#def30]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_op_assuan_result_err_set’
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:48296:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#48296 |     if (arg1) (arg1)->err = arg2;
#      |               ~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/gpgme_wrap.c:48272:17: note: ‘arg2’ was declared here
#48272 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#48294|     {
#48295|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#48296|->     if (arg1) (arg1)->err = arg2;
#48297|       SWIG_PYTHON_THREAD_END_ALLOW;
#48298|     }

Error: COMPILER_WARNING (CWE-477): [#def31]
gpgme-1.24.0-build/gpgme-1.24.0/build-qt6/lang/python/python3.13-gpg/helpers.c: scope_hint: In function ‘_gpg_stash_callback_exception’
gpgme-1.24.0-build/gpgme-1.24.0/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:113: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def32]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:3959:10: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
# 3959 |     *obj = value;
#      |     ~~~~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_error_t_p_assign’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:49009:17: note: ‘arg2’ was declared here
#49009 |   gpgme_error_t arg2 ;
#      |                 ^~~~
# 3957|   
# 3958|     static void gpgme_error_t_p_assign(gpgme_error_t *obj, gpgme_error_t value) {
# 3959|->     *obj = value;
# 3960|     }
# 3961|   

Error: COMPILER_WARNING (CWE-457): [#def33]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_seek’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4157:14: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
# 4157 |     result = gpgme_data_seek(arg1,arg2,arg3);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4118:9: note: ‘arg2’ was declared here
# 4118 |   off_t arg2 ;
#      |         ^~~~
# 4155|     {
# 4156|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4157|->     result = gpgme_data_seek(arg1,arg2,arg3);
# 4158|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4159|     }

Error: COMPILER_WARNING (CWE-457): [#def34]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4717:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4717 |     result = (char *)gpgme_strerror(arg1);
#      |                      ^~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4698:17: note: ‘arg1’ was declared here
# 4698 |   gpgme_error_t arg1 ;
#      |                 ^~~~
# 4715|     {
# 4716|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4717|->     result = (char *)gpgme_strerror(arg1);
# 4718|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4719|     }

Error: COMPILER_WARNING (CWE-457): [#def35]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strerror_r’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4772:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4772 |     result = (int)gpgme_strerror_r(arg1,arg2,arg3);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4729:15: note: ‘arg1’ was declared here
# 4729 |   gpg_error_t arg1 ;
#      |               ^~~~
# 4770|     {
# 4771|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4772|->     result = (int)gpgme_strerror_r(arg1,arg2,arg3);
# 4773|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4774|     }

Error: COMPILER_WARNING (CWE-457): [#def36]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_strsource’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4813:22: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4813 |     result = (char *)gpgme_strsource(arg1);
#      |                      ^~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4794:17: note: ‘arg1’ was declared here
# 4794 |   gpgme_error_t arg1 ;
#      |                 ^~~~
# 4811|     {
# 4812|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4813|->     result = (char *)gpgme_strsource(arg1);
# 4814|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4815|     }

Error: COMPILER_WARNING (CWE-457): [#def37]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_code_to_errno’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4874:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4874 |     result = (int)gpgme_err_code_to_errno(arg1);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4855:20: note: ‘arg1’ was declared here
# 4855 |   gpgme_err_code_t arg1 ;
#      |                    ^~~~
# 4872|     {
# 4873|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4874|->     result = (int)gpgme_err_code_to_errno(arg1);
# 4875|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4876|     }

Error: COMPILER_WARNING (CWE-457): [#def38]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_err_make_from_errno’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4959:14: warning[-Wmaybe-uninitialized]: ‘arg1’ may be used uninitialized
# 4959 |     result = gpgme_err_make_from_errno(arg1,arg2);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:4933:22: note: ‘arg1’ was declared here
# 4933 |   gpgme_err_source_t arg1 ;
#      |                      ^~~~
# 4957|     {
# 4958|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 4959|->     result = gpgme_err_make_from_errno(arg1,arg2);
# 4960|       SWIG_PYTHON_THREAD_END_ALLOW;
# 4961|     }

Error: COMPILER_WARNING (CWE-457): [#def39]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_key_sig_status_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:8763:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
# 8763 |     if (arg1) (arg1)->status = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:8739:17: note: ‘arg2’ was declared here
# 8739 |   gpgme_error_t arg2 ;
#      |                 ^~~~
# 8761|     {
# 8762|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
# 8763|->     if (arg1) (arg1)->status = arg2;
# 8764|       SWIG_PYTHON_THREAD_END_ALLOW;
# 8765|     }

Error: COMPILER_WARNING (CWE-457): [#def40]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_invalid_key_reason_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:13035:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#13035 |     if (arg1) (arg1)->reason = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:13011:17: note: ‘arg2’ was declared here
#13011 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#13033|     {
#13034|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#13035|->     if (arg1) (arg1)->reason = arg2;
#13036|       SWIG_PYTHON_THREAD_END_ALLOW;
#13037|     }

Error: COMPILER_WARNING (CWE-457): [#def41]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_io_event_done_data_err_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:14711:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#14711 |     if (arg1) (arg1)->err = arg2;
#      |               ~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:14687:17: note: ‘arg2’ was declared here
#14687 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#14709|     {
#14710|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#14711|->     if (arg1) (arg1)->err = arg2;
#14712|       SWIG_PYTHON_THREAD_END_ALLOW;
#14713|     }

Error: COMPILER_WARNING (CWE-457): [#def42]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_io_event_done_data_op_err_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:14778:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#14778 |     if (arg1) (arg1)->op_err = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:14754:17: note: ‘arg2’ was declared here
#14754 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#14776|     {
#14777|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#14778|->     if (arg1) (arg1)->op_err = arg2;
#14779|       SWIG_PYTHON_THREAD_END_ALLOW;
#14780|     }

Error: COMPILER_WARNING (CWE-457): [#def43]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_data_new_from_filepart’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:16767:14: warning[-Wmaybe-uninitialized]: ‘arg4’ may be used uninitialized
#16767 |     result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:16703:9: note: ‘arg4’ was declared here
#16703 |   off_t arg4 ;
#      |         ^~~~
#16765|     {
#16766|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#16767|->     result = gpgme_data_new_from_filepart(arg1,(char const *)arg2,arg3,arg4,arg5);
#16768|       SWIG_PYTHON_THREAD_END_ALLOW;
#16769|     }

Error: COMPILER_WARNING (CWE-457): [#def44]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_recipient_status_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:21693:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#21693 |     if (arg1) (arg1)->status = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:21669:17: note: ‘arg2’ was declared here
#21669 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#21691|     {
#21692|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#21693|->     if (arg1) (arg1)->status = arg2;
#21694|       SWIG_PYTHON_THREAD_END_ALLOW;
#21695|     }

Error: COMPILER_WARNING (CWE-457): [#def45]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_status_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:27384:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#27384 |     if (arg1) (arg1)->status = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:27360:17: note: ‘arg2’ was declared here
#27360 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#27382|     {
#27383|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#27384|->     if (arg1) (arg1)->status = arg2;
#27385|       SWIG_PYTHON_THREAD_END_ALLOW;
#27386|     }

Error: COMPILER_WARNING (CWE-457): [#def46]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_signature_validity_reason_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:28083:39: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#28083 |     if (arg1) (arg1)->validity_reason = arg2;
#      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:28059:17: note: ‘arg2’ was declared here
#28059 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#28081|     {
#28082|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#28083|->     if (arg1) (arg1)->validity_reason = arg2;
#28084|       SWIG_PYTHON_THREAD_END_ALLOW;
#28085|     }

Error: COMPILER_WARNING (CWE-457): [#def47]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_import_status_result_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:31689:30: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#31689 |     if (arg1) (arg1)->result = arg2;
#      |               ~~~~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:31665:17: note: ‘arg2’ was declared here
#31665 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#31687|     {
#31688|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#31689|->     if (arg1) (arg1)->result = arg2;
#31690|       SWIG_PYTHON_THREAD_END_ALLOW;
#31691|     }

Error: COMPILER_WARNING (CWE-457): [#def48]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys_start’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:33660:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#33660 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:33588:10: note: ‘size2’ was declared here
#33588 |   size_t size2 ;
#      |          ^~~~~
#33658|       size_t i;
#33659|       free(vector2);
#33660|->     for (i = 0; i < size2; i++)
#33661|       Py_XDECREF(pyVector2[i]);
#33662|     }

Error: COMPILER_WARNING (CWE-457): [#def49]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_receive_keys’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:33746:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#33746 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:33674:10: note: ‘size2’ was declared here
#33674 |   size_t size2 ;
#      |          ^~~~~
#33744|       size_t i;
#33745|       free(vector2);
#33746|->     for (i = 0; i < size2; i++)
#33747|       Py_XDECREF(pyVector2[i]);
#33748|     }

Error: COMPILER_WARNING (CWE-457): [#def50]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext_start’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:34539:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#34539 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:34334:10: note: ‘size2’ was declared here
#34334 |   size_t size2 ;
#      |          ^~~~~
#34537|       size_t i;
#34538|       free(vector2);
#34539|->     for (i = 0; i < size2; i++)
#34540|       Py_XDECREF(pyVector2[i]);
#34541|     }

Error: COMPILER_WARNING (CWE-457): [#def51]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_export_ext’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:34855:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#34855 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:34650:10: note: ‘size2’ was declared here
#34650 |   size_t size2 ;
#      |          ^~~~~
#34853|       size_t i;
#34854|       free(vector2);
#34855|->     for (i = 0; i < size2; i++)
#34856|       Py_XDECREF(pyVector2[i]);
#34857|     }

Error: COMPILER_WARNING (CWE-457): [#def52]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_keylist_ext_start’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:40191:19: warning[-Wmaybe-uninitialized]: ‘size2’ may be used uninitialized
#40191 |     for (i = 0; i < size2; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:40105:10: note: ‘size2’ was declared here
#40105 |   size_t size2 ;
#      |          ^~~~~
#40189|       size_t i;
#40190|       free(vector2);
#40191|->     for (i = 0; i < size2; i++)
#40192|       Py_XDECREF(pyVector2[i]);
#40193|     }

Error: COMPILER_WARNING (CWE-457): [#def53]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn_start’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:41760:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized
#41760 |     for (i = 0; i < size3; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:41635:10: note: ‘size3’ was declared here
#41635 |   size_t size3 ;
#      |          ^~~~~
#41758|       size_t i;
#41759|       free(vector3);
#41760|->     for (i = 0; i < size3; i++)
#41761|       Py_XDECREF(pyVector3[i]);
#41762|     }

Error: COMPILER_WARNING (CWE-457): [#def54]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap_gpgme_op_spawn’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:41905:19: warning[-Wmaybe-uninitialized]: ‘size3’ may be used uninitialized
#41905 |     for (i = 0; i < size3; i++)
#      |                 ~~^~~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:41780:10: note: ‘size3’ was declared here
#41780 |   size_t size3 ;
#      |          ^~~~~
#41903|       size_t i;
#41904|       free(vector3);
#41905|->     for (i = 0; i < size3; i++)
#41906|       Py_XDECREF(pyVector3[i]);
#41907|     }

Error: COMPILER_WARNING (CWE-457): [#def55]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c: scope_hint: In function ‘_wrap__gpgme_op_assuan_result_err_set’
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:48296:27: warning[-Wmaybe-uninitialized]: ‘arg2’ may be used uninitialized
#48296 |     if (arg1) (arg1)->err = arg2;
#      |               ~~~~~~~~~~~~^~~~~~
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/gpgme_wrap.c:48272:17: note: ‘arg2’ was declared here
#48272 |   gpgme_error_t arg2 ;
#      |                 ^~~~
#48294|     {
#48295|       SWIG_PYTHON_THREAD_BEGIN_ALLOW;
#48296|->     if (arg1) (arg1)->err = arg2;
#48297|       SWIG_PYTHON_THREAD_END_ALLOW;
#48298|     }

Error: COMPILER_WARNING (CWE-477): [#def56]
gpgme-1.24.0-build/gpgme-1.24.0/build/lang/python/python3.13-gpg/helpers.c: scope_hint: In function ‘_gpg_stash_callback_exception’
gpgme-1.24.0-build/gpgme-1.24.0/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:113: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def57]
gpgme-1.24.0-build/gpgme-1.24.0/doc/mkdefsinc.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def58]
gpgme-1.24.0-build/gpgme-1.24.0/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: COMPILER_WARNING (CWE-477): [#def59]
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/qgpgmeaddexistingsubkeyjob.cpp: scope_hint: In function 'QGpgME::_detail::ThreadedJobMixin<QGpgME::AddExistingSubkeyJob>::result_type add_subkey(GpgME::Context*, const GpgME::Key&, const GpgME::Subkey&)'
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/qgpgmeaddexistingsubkeyjob.cpp:67:58: warning[-Wdeprecated-declarations]: 'static QDateTime QDateTime::fromSecsSinceEpoch(qint64, Qt::TimeSpec, int)' is deprecated: Pass QTimeZone instead of time-spec, offset
#   67 |         const auto expiry = QDateTime::fromSecsSinceEpoch(uint_least32_t(subkey.expirationTime()),
#      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   68 |                                                           Qt::UTC).toString(u"yyyyMMdd'T'hhmmss").toStdString();
#      |                                                           ~~~~~~~~
/usr/include/qt6/QtCore/QDateTime:1: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/qgpgmeaddexistingsubkeyjob.cpp:42: included_from: Included from here.
/usr/include/qt6/QtCore/qdatetime.h:488:22: note: declared here
#  488 |     static QDateTime fromSecsSinceEpoch(qint64 secs, Qt::TimeSpec spec, int offsetFromUtc = 0);
#      |                      ^~~~~~~~~~~~~~~~~~
#   65|   
#   66|       if (!subkey.neverExpires()) {
#   67|->         const auto expiry = QDateTime::fromSecsSinceEpoch(uint_least32_t(subkey.expirationTime()),
#   68|                                                             Qt::UTC).toString(u"yyyyMMdd'T'hhmmss").toStdString();
#   69|           interactor->setExpiry(expiry);

Error: COMPILER_WARNING (CWE-477): [#def60]
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/qgpgmenewcryptoconfig.cpp: scope_hint: In member function 'virtual void QGpgMENewCryptoConfig::sync(bool)'
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/qgpgmenewcryptoconfig.cpp:130:77: warning[-Wdeprecated-declarations]: 'constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QHash<QString, std::shared_ptr<QGpgMENewCryptoConfigComponent> >; typename std::add_const<_Tp>::type = const QHash<QString, std::shared_ptr<QGpgMENewCryptoConfigComponent> >]' is deprecated: Use std::as_const() instead.
#  130 |     for (const std::shared_ptr<QGpgMENewCryptoConfigComponent> &c : qAsConst(m_componentsByName)) {
#      |                                                                     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/qt6/QtCore/qforeach.h:11: included_from: Included from here.
/usr/include/qt6/QtCore/qglobal.h:57: included_from: Included from here.
/usr/include/qt6/QtCore/qnamespace.h:12: included_from: Included from here.
/usr/include/qt6/QtCore/qbytearray.h:9: included_from: Included from here.
/usr/include/qt6/QtCore/qurl.h:8: included_from: Included from here.
/usr/include/qt6/QtCore/QUrl:1: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/cryptoconfig.h:43: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/qgpgmenewcryptoconfig.h:39: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/lang/qt/src/qgpgmenewcryptoconfig.cpp:39: included_from: Included from here.
/usr/include/qt6/QtCore/qttypetraits.h:36:45: note: declared here
#   36 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
#      |                                             ^~~~~~~~
#  128|   void QGpgMENewCryptoConfig::sync(bool runtime)
#  129|   {
#  130|->     for (const std::shared_ptr<QGpgMENewCryptoConfigComponent> &c : qAsConst(m_componentsByName)) {
#  131|           c->sync(runtime);
#  132|       }

Error: GCC_ANALYZER_WARNING (CWE-465): [#def61]
gpgme-1.24.0-build/gpgme-1.24.0/src/data-identify.c: scope_hint: In function 'basic_detection'
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def62]
gpgme-1.24.0-build/gpgme-1.24.0/src/data.c: scope_hint: In function '_gpgme_data_inbound_handler'
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def63]
gpgme-1.24.0-build/gpgme-1.24.0/src/data.c: scope_hint: In function '_gpgme_data_outbound_handler'
gpgme-1.24.0-build/gpgme-1.24.0/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 (CWE-457): [#def64]
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def65]
gpgme-1.24.0-build/gpgme-1.24.0/src/engine-gpgsm.c: scope_hint: In function 'gpgsm_export.part.0'
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def66]
gpgme-1.24.0-build/gpgme-1.24.0/src/engine-gpgsm.c: scope_hint: In function 'gpgsm_export_ext.part.0'
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-688): [#def67]
gpgme-1.24.0-build/gpgme-1.24.0/src/gpgme-tool.c: scope_hint: In function ‘put_membuf.part.0’
gpgme-1.24.0-build/gpgme-1.24.0/src/gpgme-tool.c:140:3: warning[-Wanalyzer-null-argument]: use of NULL ‘mb.buf’ where non-null expected
gpgme-1.24.0-build/gpgme-1.24.0/src/gpgme-tool.c: scope_hint: In function ‘put_membuf.part.0’
gpgme-1.24.0-build/gpgme-1.24.0/src/gpgme-tool.c:29: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/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: CPPCHECK_WARNING (CWE-562): [#def68]
gpgme-1.24.0-build/gpgme-1.24.0/src/gpgme-tool.c:3314: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3312|     server.gt = gt;
# 3313|     gt->write_status = server_write_status;
# 3314|->   gt->write_status_hook = &server;
# 3315|     gt->write_data = server_write_data;
# 3316|     gt->write_data_hook = &server;

Error: CPPCHECK_WARNING (CWE-562): [#def69]
gpgme-1.24.0-build/gpgme-1.24.0/src/gpgme-tool.c:3316: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 3314|     gt->write_status_hook = &server;
# 3315|     gt->write_data = server_write_data;
# 3316|->   gt->write_data_hook = &server;
# 3317|   
# 3318|     /* We use a pipe based server so that we can work from scripts.

Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
gpgme-1.24.0-build/gpgme-1.24.0/src/key.c: scope_hint: In function 'gpgme_key_from_uid'
gpgme-1.24.0-build/gpgme-1.24.0/src/key.c:470:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'key'
#  468|   
#  469|     /* Note: protocol doesn't matter if only email is provided.  */
#  470|->   err = _gpgme_key_append_name (key, name, 0);
#  471|     if (err)
#  472|       gpgme_key_unref (key);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
gpgme-1.24.0-build/gpgme-1.24.0/src/posix-io.c: scope_hint: In function '_gpgme_io_spawn'
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def72]
gpgme-1.24.0-build/gpgme-1.24.0/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: [#def73]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def74]
gpgme-1.24.0-build/gpgme-1.24.0/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: [#def75]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def76]
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def77]
gpgme-1.24.0-build/gpgme-1.24.0/src/sign.c:207:12: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  205|     sig = malloc (sizeof (*sig));
#  206|     if (!sig)
#  207|->     return gpg_error_from_syserror ();
#  208|   
#  209|     sig->next = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
gpgme-1.24.0-build/gpgme-1.24.0/src/sign.c: scope_hint: In function 'parse_sig_created'
gpgme-1.24.0-build/gpgme-1.24.0/src/sign.c:207:12: warning[-Wanalyzer-malloc-leak]: leak of 'sig'
#  205|     sig = malloc (sizeof (*sig));
#  206|     if (!sig)
#  207|->     return gpg_error_from_syserror ();
#  208|   
#  209|     sig->next = NULL;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def79]
gpgme-1.24.0-build/gpgme-1.24.0/src/signers.c: scope_hint: In function 'gpgme_signers_add'
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def80]
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c: scope_hint: In function 'parse_valid_sig'
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def81]
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def82]
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c: scope_hint: In function 'parse_tofu_user'
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def83]
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c: scope_hint: In function '_gpgme_verify_status_handler'
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def84]
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c: scope_hint: In function 'gpgme_get_sig_key'
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c:1239:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c:32: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def85]
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c: scope_hint: In function 'gpgme_get_sig_status'
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c:1265:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def86]
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c: scope_hint: In function 'gpgme_get_sig_ulong_attr'
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c:1328:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def87]
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c: scope_hint: In function 'gpgme_get_sig_string_attr'
gpgme-1.24.0-build/gpgme-1.24.0/src/verify.c:1392:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def88]
gpgme-1.24.0-build/gpgme-1.24.0/src/wait.c: scope_hint: In function '_gpgme_add_io_cb'
gpgme-1.24.0-build/gpgme-1.24.0/src/wait.c:142:10: warning[-Wanalyzer-malloc-leak]: leak of 'item'
gpgme-1.24.0-build/gpgme-1.24.0/src/wait.c:27: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/src/wait.c:40: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def89]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("pubkey-1.asc")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:219:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def90]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("seckey-1.asc")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:219:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def91]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt.c:36: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:48:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cipher-1.asc")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt.c:55:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:219:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt.c:55:3: note: in expansion of macro ‘fail_if_err’
#   46|     do								\
#   47|       {								\
#   48|->       if (err)							\
#   49|           {							\
#   50|             fprintf (stderr, "%s:%d: %s: %s\n",			\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt-verify.c:36: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt-verify.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:48:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cipher-2.asc")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt-verify.c:125:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:219:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-decrypt-verify.c:125:3: note: in expansion of macro ‘fail_if_err’
#   46|     do								\
#   47|       {								\
#   48|->       if (err)							\
#   49|           {							\
#   50|             fprintf (stderr, "%s:%d: %s: %s\n",			\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c:35: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:48:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("pubkey-1.asc")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:219:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’
#   46|     do								\
#   47|       {								\
#   48|->       if (err)							\
#   49|           {							\
#   50|             fprintf (stderr, "%s:%d: %s: %s\n",			\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:48:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("seckey-1.asc")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:219:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-import.c:228:3: note: in expansion of macro ‘fail_if_err’
#   46|     do								\
#   47|       {								\
#   48|->       if (err)							\
#   49|           {							\
#   50|             fprintf (stderr, "%s:%d: %s: %s\n",			\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-thread1.c:115:9: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cipher-1.asc")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpg/t-support.h:219:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def96]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-import.c:155:3: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cert_dfn_pca15.der")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-465): [#def97]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-keylist.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-keylist.c:214:10: warning[-Wanalyzer-deref-before-check]: check of ‘*key.subkeys’ for NULL after already dereferencing it
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-keylist.c:34: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-keylist.c:95:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-401): [#def98]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-import.c:35: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-import.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-support.h:36:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cert_dfn_pca01.der")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-import.c:153:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def99]
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-support.h:36:10: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("cert_dfn_pca15.der")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-import.c:153:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/tests/gpgsm/t-support.h:122:3: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def100]
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-keylist.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-476): [#def101]
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-threaded.c: scope_hint: In function ‘random_data_new’
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-threaded.c:288:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-threaded.c:43: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-support.h:40:11: note: in definition of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def102]
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-threaded.c: scope_hint: In function ‘verify’
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-threaded.c:290:7: warning[-Wanalyzer-malloc-leak]: leak of ‘random_data_new(fname)’
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-support.h:40:11: note: in definition of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def103]
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-threaded.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/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: GCC_ANALYZER_WARNING (CWE-775): [#def104]
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-verify.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-verify.c:418:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*argv, "rb")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-verify.c:36: included_from: Included from here.
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-support.h:154:3: note: in expansion of macro ‘fail_if_err’
#  416|             if (argc > 1)
#  417|               {
#  418|->               fp_msg = fopen (argv[1], "rb");
#  419|                 if (!fp_msg)
#  420|                   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-verify.c:418:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*argv, "rb")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/run-support.h:154:3: note: in expansion of macro ‘fail_if_err’
#  416|             if (argc > 1)
#  417|               {
#  418|->               fp_msg = fopen (argv[1], "rb");
#  419|                 if (!fp_msg)
#  420|                   {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
gpgme-1.24.0-build/gpgme-1.24.0/tests/t-data.c:37:31: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-1.txt")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/t-data.c:264:7: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def107]
gpgme-1.24.0-build/gpgme-1.24.0/tests/t-data.c:37:31: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-2.txt")’
gpgme-1.24.0-build/gpgme-1.24.0/tests/t-data.c:264:7: note: in expansion of macro ‘fail_if_err’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def108]
gpgme-1.24.0-build/gpgme-1.24.0/tests/t-data.c: scope_hint: In function ‘main’
gpgme-1.24.0-build/gpgme-1.24.0/tests/t-data.c:195:14: warning[-Wanalyzer-malloc-leak]: leak of ‘make_filename("t-data-1.txt")’
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def109]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def110]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def111]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def112]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def113]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def114]
gpgme-1.24.0-build/gpgme-1.24.0/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): [#def115]
gpgme-1.24.0-build/gpgme-1.24.0/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__,

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-232.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namegpgme-1.24.0-1.fc42
store-results-to/tmp/tmp1_0knd0h/gpgme-1.24.0-1.fc42.tar.xz
time-created2024-11-13 00:09:36
time-finished2024-11-13 00:17:07
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp1_0knd0h/gpgme-1.24.0-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp1_0knd0h/gpgme-1.24.0-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9