gnupg2-2.4.7-3.fc43

List of Findings

Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/gnupg2.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> export GPG_TTY=$(tty)

Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/etc/profile.d/gnupg2.sh:1:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
#    1|-> export GPG_TTY=$(tty)

Error: SHELLCHECK_WARNING (CWE-569): [#def3]
/usr/bin/addgnupghome:118:13: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
#  116|   fi
#  117|   
#  118|-> for name in $*; do
#  119|       one_user $name
#  120|   done

Error: SHELLCHECK_WARNING (CWE-477): [#def4]
/usr/bin/applygnupgdefaults:34:23: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   32|   cleanup ()
#   33|   {
#   34|->     [ -n "$errorfile" -a -f "$errorfile" ] && rm "$errorfile"
#   35|   }
#   36|   trap cleanup EXIT SIGINT SIGHUP SIGPIPE

Error: SHELLCHECK_WARNING: [#def5]
/usr/bin/applygnupgdefaults:36:19: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
#   34|       [ -n "$errorfile" -a -f "$errorfile" ] && rm "$errorfile"
#   35|   }
#   36|-> trap cleanup EXIT SIGINT SIGHUP SIGPIPE
#   37|   errorfile=$(mktemp "/tmp/$PGM.log.XXXXXX")
#   38|   [ -n "$errorfile" -a -f "$errorfile" ] || exit 2

Error: SHELLCHECK_WARNING: [#def6]
/usr/bin/applygnupgdefaults:36:26: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
#   34|       [ -n "$errorfile" -a -f "$errorfile" ] && rm "$errorfile"
#   35|   }
#   36|-> trap cleanup EXIT SIGINT SIGHUP SIGPIPE
#   37|   errorfile=$(mktemp "/tmp/$PGM.log.XXXXXX")
#   38|   [ -n "$errorfile" -a -f "$errorfile" ] || exit 2

Error: SHELLCHECK_WARNING: [#def7]
/usr/bin/applygnupgdefaults:36:33: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
#   34|       [ -n "$errorfile" -a -f "$errorfile" ] && rm "$errorfile"
#   35|   }
#   36|-> trap cleanup EXIT SIGINT SIGHUP SIGPIPE
#   37|   errorfile=$(mktemp "/tmp/$PGM.log.XXXXXX")
#   38|   [ -n "$errorfile" -a -f "$errorfile" ] || exit 2

Error: SHELLCHECK_WARNING (CWE-477): [#def8]
/usr/bin/applygnupgdefaults:38:19: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
#   36|   trap cleanup EXIT SIGINT SIGHUP SIGPIPE
#   37|   errorfile=$(mktemp "/tmp/$PGM.log.XXXXXX")
#   38|-> [ -n "$errorfile" -a -f "$errorfile" ] || exit 2
#   39|   
#   40|   # Check whether we can use getent

Error: SHELLCHECK_WARNING (CWE-156): [#def9]
/usr/bin/applygnupgdefaults:57:6: warning[SC2046]: Quote this to prevent word splitting.
#   55|   fi
#   56|   
#   57|-> if [ $(id -u) -ne 0 ]; then
#   58|       error "needs to be run as root"
#   59|       exit 1

Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/bin/applygnupgdefaults:63:30: warning[SC2034]: dmy_a appears unused. Verify use (or export if used externally).
#   61|   
#   62|   ${cat_passwd} \
#   63|->   | while IFS=: read -r user dmy_a uid dmy_c dmy_d home shell dmy_rest; do
#   64|       # Process only entries with a valid login shell
#   65|       grep </etc/shells "^$shell" 2>/dev/null >/dev/null || continue

Error: SHELLCHECK_WARNING (CWE-563): [#def11]
/usr/bin/applygnupgdefaults:63:40: warning[SC2034]: dmy_c appears unused. Verify use (or export if used externally).
#   61|   
#   62|   ${cat_passwd} \
#   63|->   | while IFS=: read -r user dmy_a uid dmy_c dmy_d home shell dmy_rest; do
#   64|       # Process only entries with a valid login shell
#   65|       grep </etc/shells "^$shell" 2>/dev/null >/dev/null || continue

Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/bin/applygnupgdefaults:63:46: warning[SC2034]: dmy_d appears unused. Verify use (or export if used externally).
#   61|   
#   62|   ${cat_passwd} \
#   63|->   | while IFS=: read -r user dmy_a uid dmy_c dmy_d home shell dmy_rest; do
#   64|       # Process only entries with a valid login shell
#   65|       grep </etc/shells "^$shell" 2>/dev/null >/dev/null || continue

Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/bin/applygnupgdefaults:63:63: warning[SC2034]: dmy_rest appears unused. Verify use (or export if used externally).
#   61|   
#   62|   ${cat_passwd} \
#   63|->   | while IFS=: read -r user dmy_a uid dmy_c dmy_d home shell dmy_rest; do
#   64|       # Process only entries with a valid login shell
#   65|       grep </etc/shells "^$shell" 2>/dev/null >/dev/null || continue

Error: GCC_ANALYZER_WARNING (CWE-457): [#def14]
gnupg-2.4.7/agent/call-pinentry.c:1367:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*thread_p’
gnupg-2.4.7/agent/call-pinentry.c:2034:1: enter_function: entry to ‘popup_message_thread’
gnupg-2.4.7/agent/call-pinentry.c:2040:8: call_function: calling ‘watch_sock_start’ from ‘popup_message_thread’
gnupg-2.4.7/agent/call-pinentry.c:2040:8: return_function: returning to ‘popup_message_thread’ from ‘watch_sock_start’
gnupg-2.4.7/agent/call-pinentry.c:2041:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/call-pinentry.c:2048:3: branch_false: ...to here
gnupg-2.4.7/agent/call-pinentry.c:2050:3: call_function: calling ‘watch_sock_end’ from ‘popup_message_thread’
# 1365|   
# 1366|     *sock_p = GNUPG_INVALID_FD;
# 1367|->   err = npth_join (*thread_p, NULL);
# 1368|     if (err)
# 1369|       log_error ("watch_sock_end: error joining thread: %s\n", strerror (err));

Error: GCC_ANALYZER_WARNING (CWE-121): [#def15]
gnupg-2.4.7/agent/call-scd.c:602:11: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gnupg-2.4.7/agent/call-scd.c:590:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/call-scd.c:595:8: branch_false: ...to here
gnupg-2.4.7/agent/call-scd.c:595:17: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/call-scd.c:598:10: branch_true: ...to here
gnupg-2.4.7/agent/call-scd.c:598:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
gnupg-2.4.7/agent/call-scd.c:600:17: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/call-scd.c:602:11: danger: out-of-bounds write from byte 1002 till byte 1009 but ‘line’ ends at byte 1002
#  600|         for (i=0; len < indatalen && (i*2 < DIM(line)-50); i++, len++)
#  601|           {
#  602|->           sprintf (p, "%02X", indata[len]);
#  603|             p += 2;
#  604|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
gnupg-2.4.7/agent/command-ssh.c:3576:8: warning[-Wanalyzer-null-argument]: use of NULL ‘exttype’ where non-null expected
gnupg-2.4.7/agent/command-ssh.c:3562:1: enter_function: entry to ‘ssh_handler_extension’
gnupg-2.4.7/agent/command-ssh.c:3566:9: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3567:9: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3568:9: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3570:9: call_function: inlined call to ‘stream_read_cstring’ from ‘ssh_handler_extension’
gnupg-2.4.7/agent/command-ssh.c:3570:9: call_function: inlined call to ‘stream_read_cstring’ from ‘ssh_handler_extension’
gnupg-2.4.7/agent/command-ssh.c:3571:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command-ssh.c:3574:7: branch_false: ...to here
gnupg-2.4.7/agent/command-ssh.c:3576:8: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3576:8: danger: argument 1 (‘exttype’) NULL where non-null expected
# 3574|     if (opt.verbose)
# 3575|       log_info ("ssh-agent extension '%s' received\n", exttype);
# 3576|->   if (!strcmp (exttype, "ssh-env@gnupg.org"))
# 3577|       {
# 3578|         for (;;)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
gnupg-2.4.7/agent/command.c:3311:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n’
gnupg-2.4.7/agent/command.c:3248:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3251:11: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3257:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3260:10: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3261:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3267:9: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3268:6: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/agent/command.c:3271:7: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3271:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3279:3: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3280:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/agent/command.c:3283:3: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3288:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3290:7: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3290:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3301:6: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3301:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/command.c:3303:19: branch_true: ...to here
gnupg-2.4.7/agent/command.c:3304:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/command.c:3308:17: branch_true: ...to here
gnupg-2.4.7/agent/command.c:3309:14: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/agent/command.c:3311:13: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3311:13: danger: use of uninitialized value ‘n’ here
# 3309|             if (err)
# 3310|               goto leave;  /* Badly formatted ecdh params. */
# 3311|->           n /= 2;
# 3312|             if (n < 4)
# 3313|               {

Error: COMPILER_WARNING (CWE-704): [#def18]
gnupg-2.4.7/agent/cvt-openpgp.h:27:13: warning[-Wlto-type-mismatch]: type of ‘convert_from_openpgp_native’ does not match original declaration
#   27 | gpg_error_t convert_from_openpgp_native (ctrl_t ctrl,
#      |             ^
gnupg-2.4.7/agent/t-protect.c:344:1: note: type mismatch in parameter 4
#  344 | convert_from_openpgp_native (gcry_sexp_t s_pgp, const char *passphrase,
#      | ^
gnupg-2.4.7/agent/t-protect.c:344:1: note: ‘convert_from_openpgp_native’ was previously declared here
#   25|                                     const char *cache_nonce,
#   26|                                     unsigned char **r_key, char **r_passphrase);
#   27|-> gpg_error_t convert_from_openpgp_native (ctrl_t ctrl,
#   28|                                            gcry_sexp_t s_pgp,
#   29|                                            const char *passphrase,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
gnupg-2.4.7/common/asshelp.c:474:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
gnupg-2.4.7/common/asshelp.c:641:1: enter_function: entry to ‘start_new_dirmngr’
gnupg-2.4.7/common/asshelp.c:651:10: call_function: calling ‘start_new_service’ from ‘start_new_dirmngr’
#  472|               }
#  473|             p = strchr (program, '|');
#  474|->           *p++ = 0;
#  475|             program_arg = p;
#  476|           }

Error: COMPILER_WARNING (CWE-252): [#def20]
gnupg-2.4.7/common/dotlock.c: scope_hint: In function ‘use_hardlinks_p’
gnupg-2.4.7/common/dotlock.c:667:10: warning[-Wunused-result]: ignoring return value of ‘link’ declared with attribute ‘warn_unused_result’
#  667 |   (void) link (tname, lname);
#      |          ^~~~~~~~~~~~~~~~~~~
#  665|   
#  666|     /* We ignore the return value of link() because it is unreliable.  */
#  667|->   (void) link (tname, lname);
#  668|   
#  669|     if (stat (tname, &sb))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
gnupg-2.4.7/common/dotlock.c:1296:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
gnupg-2.4.7/common/dotlock.c:1276:1: enter_function: entry to ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1290:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1349:30: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1351:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1367:11: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1367:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1375:15: call_function: calling ‘read_lockfile’ from ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1375:15: return_function: returning to ‘dotlock_take_unix’ from ‘read_lockfile’
gnupg-2.4.7/common/dotlock.c:1375:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/dotlock.c:1377:12: branch_true: ...to here
gnupg-2.4.7/common/dotlock.c:1377:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1387:7: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1296:11: danger: ‘fd’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
# 1294|           {
# 1295|             my_set_errno (0);
# 1296|->           fd = open (h->lockname, O_WRONLY|O_CREAT|O_EXCL,
# 1297|                        S_IRUSR|S_IRGRP|S_IROTH|S_IWUSR );
# 1298|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
gnupg-2.4.7/common/dotlock.c:1313:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
gnupg-2.4.7/common/dotlock.c:1276:1: enter_function: entry to ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1351:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1367:11: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1367:10: branch_false: following ‘false’ branch...
 branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1375:15: call_function: calling ‘read_lockfile’ from ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1375:15: return_function: returning to ‘dotlock_take_unix’ from ‘read_lockfile’
gnupg-2.4.7/common/dotlock.c:1375:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/dotlock.c:1377:12: branch_true: ...to here
gnupg-2.4.7/common/dotlock.c:1313:18: danger: ‘fd’ leaks here; was opened at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
# 1311|                           h->lockname, strerror (saveerrno));
# 1312|             my_set_errno (saveerrno);
# 1313|->           return -1;
# 1314|           }
# 1315|         else

Error: COMPILER_WARNING (CWE-252): [#def23]
gnupg-2.4.7/common/dotlock.c: scope_hint: In function ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1349:14: warning[-Wunused-result]: ignoring return value of ‘link’ declared with attribute ‘warn_unused_result’
# 1349 |       (void) link (h->tname, h->lockname);
#      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1347|   
# 1348|         /* We ignore the return value of link() because it is unreliable.  */
# 1349|->       (void) link (h->tname, h->lockname);
# 1350|   
# 1351|         if (stat (h->tname, &sb))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
gnupg-2.4.7/common/exechelp-posix.c:329:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[i], i)’
gnupg-2.4.7/common/exechelp-posix.c:578:1: enter_function: entry to ‘gnupg_spawn_process_fd’
gnupg-2.4.7/common/exechelp-posix.c:584:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/exechelp-posix.c:591:6: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:591:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/exechelp-posix.c:593:7: branch_true: ...to here
gnupg-2.4.7/common/exechelp-posix.c:595:7: call_function: calling ‘do_exec’ from ‘gnupg_spawn_process_fd’
#  327|         if (nodevnull[i])
#  328|           continue;
#  329|->       if (fds[i] != i && dup2 (fds[i], i) == -1)
#  330|           log_fatal ("dup2 std%s failed: %s\n",
#  331|                      i==0?"in":i==1?"out":"err", strerror (errno));

Error: GCC_ANALYZER_WARNING: [#def25]
gnupg-2.4.7/common/exechelp-posix.c:329:26: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘-1’
gnupg-2.4.7/common/exechelp-posix.c:437:1: enter_function: entry to ‘gnupg_spawn_process’
gnupg-2.4.7/common/exechelp-posix.c:455:6: branch_false: following ‘false’ branch (when ‘r_outfp’ is NULL)...
gnupg-2.4.7/common/exechelp-posix.c:457:6: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:457:6: branch_false: following ‘false’ branch (when ‘r_errfp’ is NULL)...
gnupg-2.4.7/common/exechelp-posix.c:459:3: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:509:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/exechelp-posix.c:537:6: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:537:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/exechelp-posix.c:540:7: branch_true: ...to here
gnupg-2.4.7/common/exechelp-posix.c:544:7: call_function: calling ‘do_exec’ from ‘gnupg_spawn_process’
#  327|         if (nodevnull[i])
#  328|           continue;
#  329|->       if (fds[i] != i && dup2 (fds[i], i) == -1)
#  330|           log_fatal ("dup2 std%s failed: %s\n",
#  331|                      i==0?"in":i==1?"out":"err", strerror (errno));

Error: COMPILER_WARNING (CWE-477): [#def26]
gnupg-2.4.7/common/miscellaneous.c: scope_hint: In function ‘setup_libgcrypt_logging’
gnupg-2.4.7/common/miscellaneous.c:103:3: warning[-Wdeprecated-declarations]: ‘gcry_set_log_handler’ is deprecated
#  103 |   gcry_set_log_handler (my_gcry_logger, NULL);
#      |   ^~~~~~~~~~~~~~~~~~~~
gnupg-2.4.7/common/util.h:34: included_from: Included from here.
gnupg-2.4.7/common/miscellaneous.c:35: included_from: Included from here.
/usr/include/gcrypt.h:2025:6: note: declared here
# 2025 | void gcry_set_log_handler (gcry_handler_log_t f,
#      |      ^~~~~~~~~~~~~~~~~~~~
#  101|   setup_libgcrypt_logging (void)
#  102|   {
#  103|->   gcry_set_log_handler (my_gcry_logger, NULL);
#  104|     gcry_set_fatalerror_handler (my_gcry_fatalerror_handler, NULL);
#  105|     gcry_set_outofcore_handler (my_gcry_outofcore_handler, NULL);

Error: COMPILER_WARNING (CWE-477): [#def27]
gnupg-2.4.7/common/miscellaneous.c:103:3: warning[-Wdeprecated-declarations]: ‘gcry_set_log_handler’ is deprecated
#  101|   setup_libgcrypt_logging (void)
#  102|   {
#  103|->   gcry_set_log_handler (my_gcry_logger, NULL);
#  104|     gcry_set_fatalerror_handler (my_gcry_fatalerror_handler, NULL);
#  105|     gcry_set_outofcore_handler (my_gcry_outofcore_handler, NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
gnupg-2.4.7/common/name-value.c:408:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pk’
gnupg-2.4.7/common/name-value.c:495:1: enter_function: entry to ‘nvc_set’
gnupg-2.4.7/common/name-value.c:502:7: call_function: calling ‘nvc_lookup’ from ‘nvc_set’
gnupg-2.4.7/common/name-value.c:502:7: return_function: returning to ‘nvc_set’ from ‘nvc_lookup’
gnupg-2.4.7/common/name-value.c:503:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/name-value.c:506:12: branch_false: ...to here
gnupg-2.4.7/common/name-value.c:506:12: call_function: calling ‘nvc_add’ from ‘nvc_set’
#  406|     e->raw_value = raw_value;
#  407|   
#  408|->   if (pk->first)
#  409|       {
#  410|         nve_t last;

Error: COMPILER_WARNING (CWE-252): [#def29]
gnupg-2.4.7/common/signal.c: scope_hint: In function ‘got_fatal_signal’
gnupg-2.4.7/common/signal.c:113:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  113 |   (void)write (2, "\n", 1 );
#      |         ^~~~~~~~~~~~~~~~~~~
#  111|       cleanup_fnc ();
#  112|     /* Better don't translate these messages. */
#  113|->   (void)write (2, "\n", 1 );
#  114|     s = log_get_prefix (NULL);
#  115|     if (s)

Error: COMPILER_WARNING (CWE-252): [#def30]
gnupg-2.4.7/common/signal.c:116:11: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  116 |     (void)write(2, s, strlen (s));
#      |           ^~~~~~~~~~~~~~~~~~~~~~~
#  114|     s = log_get_prefix (NULL);
#  115|     if (s)
#  116|->     (void)write(2, s, strlen (s));
#  117|     (void)write (2, ": signal ", 9 );
#  118|     s = get_signal_name(sig);

Error: COMPILER_WARNING (CWE-252): [#def31]
gnupg-2.4.7/common/signal.c:117:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  117 |   (void)write (2, ": signal ", 9 );
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  115|     if (s)
#  116|       (void)write(2, s, strlen (s));
#  117|->   (void)write (2, ": signal ", 9 );
#  118|     s = get_signal_name(sig);
#  119|     if (s)

Error: COMPILER_WARNING (CWE-252): [#def32]
gnupg-2.4.7/common/signal.c:120:12: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  120 |     (void) write (2, s, strlen(s) );
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~
#  118|     s = get_signal_name(sig);
#  119|     if (s)
#  120|->     (void) write (2, s, strlen(s) );
#  121|     else
#  122|       {

Error: COMPILER_WARNING (CWE-252): [#def33]
gnupg-2.4.7/common/signal.c:130:15: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  130 |         (void)write (2, "?", 1);
#      |               ^~~~~~~~~~~~~~~~~
#  128|            this is a bug in that system, we will protect against it.  */
#  129|         if (sig < 0 || sig >= 100000)
#  130|->         (void)write (2, "?", 1);
#  131|         else
#  132|           {

Error: COMPILER_WARNING (CWE-252): [#def34]
gnupg-2.4.7/common/signal.c:139:25: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  139 |                   (void)write (2, &"0123456789"[value/i], 1);
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  137|                 if (value >= i || ((any || i==1) && !(value/i)))
#  138|                   {
#  139|->                   (void)write (2, &"0123456789"[value/i], 1);
#  140|                     if ((value/i))
#  141|                       any = 1;

Error: COMPILER_WARNING (CWE-252): [#def35]
gnupg-2.4.7/common/signal.c:147:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  147 |   (void)write (2, " caught ... exiting\n", 20);
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  145|           }
#  146|       }
#  147|->   (void)write (2, " caught ... exiting\n", 20);
#  148|   
#  149|     /* Reset action to default action and raise signal again */

Error: GCC_ANALYZER_WARNING (CWE-121): [#def36]
gnupg-2.4.7/common/simple-pwquery.c:301:11: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gnupg-2.4.7/common/simple-pwquery.c:459:1: enter_function: entry to ‘simple_pwclear’
gnupg-2.4.7/common/simple-pwquery.c:466:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/simple-pwquery.c:469:3: branch_false: ...to here
gnupg-2.4.7/common/simple-pwquery.c:471:7: call_function: calling ‘copy_and_escape’ from ‘simple_pwclear’
#  299|         if (s[i] < ' ' || s[i] == '+')
#  300|           {
#  301|->           sprintf (p, "%%%02X", s[i]);
#  302|             p += 3;
#  303|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
gnupg-2.4.7/common/sysutils.c:705:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
gnupg-2.4.7/common/sysutils.c:703:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/sysutils.c:705:11: acquire_resource: opened here
gnupg-2.4.7/common/sysutils.c:705:10: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  703|     if (fcntl (STDIN_FILENO, F_GETFD) == -1 && errno ==EBADF)
#  704|       {
#  705|->       if (open ("/dev/null",O_RDONLY) == STDIN_FILENO)
#  706|   	did_stdin = 1;
#  707|         else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
gnupg-2.4.7/common/sysutils.c:713:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/common/sysutils.c:711:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/sysutils.c:713:11: acquire_resource: opened here
gnupg-2.4.7/common/sysutils.c:713:10: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  711|     if (fcntl (STDOUT_FILENO, F_GETFD) == -1 && errno == EBADF)
#  712|       {
#  713|->       if (open ("/dev/null",O_WRONLY) == STDOUT_FILENO)
#  714|   	did_stdout = 1;
#  715|         else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
gnupg-2.4.7/common/sysutils.c:721:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/common/sysutils.c:719:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/sysutils.c:721:11: acquire_resource: opened here
gnupg-2.4.7/common/sysutils.c:721:10: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  719|     if (fcntl (STDERR_FILENO, F_GETFD)==-1 && errno==EBADF)
#  720|       {
#  721|->       if (open ("/dev/null", O_WRONLY) == STDERR_FILENO)
#  722|   	did_stderr = 1;
#  723|         else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
gnupg-2.4.7/common/t-b64.c:185:20: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
gnupg-2.4.7/common/t-b64.c:173:8: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:173:16: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:173:16: acquire_memory: allocated here
gnupg-2.4.7/common/t-b64.c:174:6: release_memory: assuming ‘fp’ is NULL
gnupg-2.4.7/common/t-b64.c:174:6: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
gnupg-2.4.7/common/t-b64.c:177:70: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:176:7: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:176:7: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:185:20: danger: argument 4 (‘fp’) NULL where non-null expected
#  183|       fail (1);
#  184|   
#  185|->   while ( (nread = fread (buffer, 1, sizeof buffer, fp)) )
#  186|       {
#  187|         err = b64enc_write (&state, buffer, nread);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
gnupg-2.4.7/common/t-b64.c:222:20: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
gnupg-2.4.7/common/t-b64.c:210:8: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:210:16: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:210:16: acquire_memory: allocated here
gnupg-2.4.7/common/t-b64.c:211:6: release_memory: assuming ‘fp’ is NULL
gnupg-2.4.7/common/t-b64.c:211:6: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
gnupg-2.4.7/common/t-b64.c:214:70: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:213:7: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:213:7: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:222:20: danger: argument 4 (‘fp’) NULL where non-null expected
#  220|       fail (1);
#  221|   
#  222|->   while ( (nread = fread (buffer, 1, sizeof buffer, fp)) )
#  223|       {
#  224|         err = b64dec_proc (&state, buffer, nread, &nbytes);

Error: COMPILER_WARNING (CWE-252): [#def42]
gnupg-2.4.7/common/t-exechelp.c: scope_hint: In function ‘test_close_all_fds’
gnupg-2.4.7/common/t-exechelp.c:96:3: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
#   96 |   dup (1);
#      |   ^~~~~~~
#   94|   
#   95|     /* Some dups to get more file descriptors and close one. */
#   96|->   dup (1);
#   97|     dup (1);
#   98|     fd = dup (1);

Error: COMPILER_WARNING (CWE-252): [#def43]
gnupg-2.4.7/common/t-exechelp.c:97:3: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
#   97 |   dup (1);
#      |   ^~~~~~~
#   95|     /* Some dups to get more file descriptors and close one. */
#   96|     dup (1);
#   97|->   dup (1);
#   98|     fd = dup (1);
#   99|     dup (1);

Error: COMPILER_WARNING (CWE-252): [#def44]
gnupg-2.4.7/common/t-exechelp.c:99:3: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
#   99 |   dup (1);
#      |   ^~~~~~~
#   97|     dup (1);
#   98|     fd = dup (1);
#   99|->   dup (1);
#  100|     close (fd);
#  101|   

Error: COMPILER_WARNING (CWE-252): [#def45]
gnupg-2.4.7/common/t-exechelp.c:140:9: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
#  140 |         dup (1);
#      |         ^~~~~~~
#  138|   
#  139|         for (n=initial_count; n < 31; n++)
#  140|->         dup (1);
#  141|         array = xget_all_open_fds ();
#  142|         if (verbose)

Error: COMPILER_WARNING (CWE-252): [#def46]
gnupg-2.4.7/common/t-exechelp.c:147:11: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
#  147 |           dup (1);
#      |           ^~~~~~~
#  145|         for (n=0; n < 5; n++)
#  146|           {
#  147|->           dup (1);
#  148|             array = xget_all_open_fds ();
#  149|             if (verbose)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
gnupg-2.4.7/common/t-iobuf.c:91:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
gnupg-2.4.7/common/t-iobuf.c:89:7: acquire_memory: this call could return NULL
gnupg-2.4.7/common/t-iobuf.c:91:3: danger: ‘state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   89|       = malloc (sizeof (struct content_filter_state));
#   90|   
#   91|->   state->pos = 0;
#   92|     state->len = strlen (buffer);
#   93|     state->buffer = buffer;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
gnupg-2.4.7/common/t-ssh-utils.c:224:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_resource: opened here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: danger: ‘fopen(fname, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  222|       }
#  223|   
#  224|->   if (fstat (fileno(fp), &st))
#  225|       {
#  226|         fprintf (stderr, "%s:%d: can't stat '%s': %s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
gnupg-2.4.7/common/t-ssh-utils.c:224:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_memory: allocated here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: danger: ‘fopen(fname, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  222|       }
#  223|   
#  224|->   if (fstat (fileno(fp), &st))
#  225|       {
#  226|         fprintf (stderr, "%s:%d: can't stat '%s': %s\n",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
gnupg-2.4.7/common/t-ssh-utils.c:231:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_resource: opened here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:231:12: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:231:12: danger: ‘fopen(fname, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  229|       }
#  230|   
#  231|->   buflen = st.st_size;
#  232|     buf = xmalloc (buflen+1);
#  233|     if (fread (buf, buflen, 1, fp) != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
gnupg-2.4.7/common/t-ssh-utils.c:231:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_memory: allocated here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:231:12: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:231:12: danger: ‘fopen(fname, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  229|       }
#  230|   
#  231|->   buflen = st.st_size;
#  232|     buf = xmalloc (buflen+1);
#  233|     if (fread (buf, buflen, 1, fp) != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
gnupg-2.4.7/common/utf8conv.c:631:14: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(active_charset_name, "utf-8")’
gnupg-2.4.7/common/utf8conv.c:429:12: branch_false: following ‘false’ branch (when ‘slen == 0’)...
gnupg-2.4.7/common/utf8conv.c:615:10: branch_false: ...to here
gnupg-2.4.7/common/utf8conv.c:615:10: branch_true: following ‘true’ branch (when ‘buffer’ is NULL)...
gnupg-2.4.7/common/utf8conv.c:618:24: branch_true: ...to here
gnupg-2.4.7/common/utf8conv.c:429:12: branch_false: following ‘false’ branch (when ‘slen == 0’)...
gnupg-2.4.7/common/utf8conv.c:615:10: branch_false: ...to here
gnupg-2.4.7/common/utf8conv.c:620:15: branch_true: following ‘true’ branch (when ‘with_iconv != 0’)...
gnupg-2.4.7/common/utf8conv.c:628:11: branch_true: ...to here
gnupg-2.4.7/common/utf8conv.c:630:16: acquire_memory: allocated here
gnupg-2.4.7/common/utf8conv.c:631:14: danger: ‘iconv_open(active_charset_name, "utf-8")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  629|   
#  630|             cd = iconv_open (active_charset_name, "utf-8");
#  631|->           if (cd == (iconv_t)-1)
#  632|               {
#  633|                 handle_iconv_error (active_charset_name, "utf-8", 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
gnupg-2.4.7/common/utf8conv.c:640:15: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(active_charset_name, "utf-8")’
gnupg-2.4.7/common/utf8conv.c:688:1: enter_function: entry to ‘utf8_to_native’
gnupg-2.4.7/common/utf8conv.c:690:10: call_function: calling ‘do_utf8_to_native’ from ‘utf8_to_native’
#  638|             /* Allocate a new buffer large enough to hold all possible
#  639|                encodings. */
#  640|->           n = p - buffer + 1;
#  641|             inbytes = n - 1;;
#  642|             inptr = buffer;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def54]
gnupg-2.4.7/common/w32-cmdline.c:281:14: warning[-Wanalyzer-deref-before-check]: check of ‘p0’ for NULL after already dereferencing it
gnupg-2.4.7/common/w32-cmdline.c:345:1: enter_function: entry to ‘w32_parse_commandline’
gnupg-2.4.7/common/w32-cmdline.c:355:10: call_function: calling ‘parse_cmdstring’ from ‘w32_parse_commandline’
#  279|         else if (*p == '\\' && (n=count_backslashes (p)))
#  280|           {
#  281|->           if (!p0) /* First non-WS; set start.  */
#  282|               p0 = p;
#  283|             if (p[n] == '"')

Error: GCC_ANALYZER_WARNING (CWE-465): [#def55]
gnupg-2.4.7/common/w32-cmdline.c:299:14: warning[-Wanalyzer-deref-before-check]: check of ‘p0’ for NULL after already dereferencing it
gnupg-2.4.7/common/w32-cmdline.c:345:1: enter_function: entry to ‘w32_parse_commandline’
gnupg-2.4.7/common/w32-cmdline.c:355:10: call_function: calling ‘parse_cmdstring’ from ‘w32_parse_commandline’
#  297|         else if (*p == ' ' || *p == '\t')
#  298|           {
#  299|->           if (p0) /* We are in an argument and reached WS.  */
#  300|               {
#  301|                 if (argv)

Error: GCC_ANALYZER_WARNING (CWE-465): [#def56]
gnupg-2.4.7/common/w32-cmdline.c:313:15: warning[-Wanalyzer-deref-before-check]: check of ‘p0’ for NULL after already dereferencing it
gnupg-2.4.7/common/w32-cmdline.c:345:1: enter_function: entry to ‘w32_parse_commandline’
gnupg-2.4.7/common/w32-cmdline.c:355:10: call_function: calling ‘parse_cmdstring’ from ‘w32_parse_commandline’
#  311|               }
#  312|           }
#  313|->       else if (!p0) /* First non-WS; set start.  */
#  314|           p0 = p;
#  315|       }

Error: CPPCHECK_WARNING (CWE-457): [#def57]
gnupg-2.4.7/dirmngr/dns.c:4505: error[uninitvar]: Uninitialized variable: &src
# 4503|   		return t->print(_dst, lim, any);
# 4504|   
# 4505|-> 	dns_b_from(&src, any->rdata.data, any->rdata.len);
# 4506|   	dns_b_into(&dst, _dst, lim);
# 4507|   

Error: CPPCHECK_WARNING (CWE-909): [#def58]
gnupg-2.4.7/dirmngr/dns.c:4510: error[uninitStructMember]: Uninitialized struct member: src.p
# 4508|   	dns_b_putc(&dst, '"');
# 4509|   
# 4510|-> 	while (src.p < src.pe) {
# 4511|   		dns_b_putc(&dst, '\\');
# 4512|   		dns_b_fmtju(&dst, *src.p++, 3);

Error: CPPCHECK_WARNING (CWE-909): [#def59]
gnupg-2.4.7/dirmngr/dns.c:4510: error[uninitStructMember]: Uninitialized struct member: src.pe
# 4508|   	dns_b_putc(&dst, '"');
# 4509|   
# 4510|-> 	while (src.p < src.pe) {
# 4511|   		dns_b_putc(&dst, '\\');
# 4512|   		dns_b_fmtju(&dst, *src.p++, 3);

Error: CPPCHECK_WARNING (CWE-909): [#def60]
gnupg-2.4.7/dirmngr/dns.c:4512: error[uninitStructMember]: Uninitialized struct member: src.p
# 4510|   	while (src.p < src.pe) {
# 4511|   		dns_b_putc(&dst, '\\');
# 4512|-> 		dns_b_fmtju(&dst, *src.p++, 3);
# 4513|   	}
# 4514|   

Error: CPPCHECK_WARNING (CWE-786): [#def61]
gnupg-2.4.7/dirmngr/dns.c:7658: error[negativeIndex]: Array 'so->query->data[1]' accessed at index -2, which is out of bounds.
# 7656|   	size_t n;
# 7657|   
# 7658|-> 	so->query->data[-2] = 0xff & (so->query->end >> 8);
# 7659|   	so->query->data[-1] = 0xff & (so->query->end >> 0);
# 7660|   

Error: CPPCHECK_WARNING (CWE-786): [#def62]
gnupg-2.4.7/dirmngr/dns.c:7659: error[negativeIndex]: Array 'so->query->data[1]' accessed at index -1, which is out of bounds.
# 7657|   
# 7658|   	so->query->data[-2] = 0xff & (so->query->end >> 8);
# 7659|-> 	so->query->data[-1] = 0xff & (so->query->end >> 0);
# 7660|   
# 7661|   	qend = so->query->end + 2;

Error: CPPCHECK_WARNING (CWE-786): [#def63]
gnupg-2.4.7/dirmngr/dns.c:7664: error[negativeIndex]: Array 'so->query->data[1]' accessed at index -2, which is out of bounds.
# 7662|   
# 7663|   	while (so->qout < qend) {
# 7664|-> 		qsrc = &so->query->data[-2] + so->qout;
# 7665|   		n = dns_send_nopipe(so->tcp, (void *)qsrc, qend - so->qout, 0, &error);
# 7666|   		dns_trace_sys_send(so->trace, so->tcp, SOCK_STREAM, qsrc, n, error);

Error: CPPCHECK_WARNING (CWE-786): [#def64]
gnupg-2.4.7/dirmngr/dns.c:7687: error[negativeIndex]: Array 'so->answer->data[1]' accessed at index -2, which is out of bounds.
# 7685|   
# 7686|   	while (so->apos < aend) {
# 7687|-> 		asrc = &so->answer->data[-2];
# 7688|   
# 7689|   		n = dns_recv(so->tcp, (void *)&asrc[so->apos], aend - so->apos, 0, &error);

Error: CPPCHECK_WARNING (CWE-786): [#def65]
gnupg-2.4.7/dirmngr/dns.c:7698: error[negativeIndex]: Array 'so->answer->data[1]' accessed at index -2, which is out of bounds.
# 7696|   
# 7697|   		if (so->alen == 0 && so->apos >= 2) {
# 7698|-> 			alen = ((0xff & so->answer->data[-2]) << 8)
# 7699|   			     | ((0xff & so->answer->data[-1]) << 0);
# 7700|   

Error: CPPCHECK_WARNING (CWE-786): [#def66]
gnupg-2.4.7/dirmngr/dns.c:7699: error[negativeIndex]: Array 'so->answer->data[1]' accessed at index -1, which is out of bounds.
# 7697|   		if (so->alen == 0 && so->apos >= 2) {
# 7698|   			alen = ((0xff & so->answer->data[-2]) << 8)
# 7699|-> 			     | ((0xff & so->answer->data[-1]) << 0);
# 7700|   
# 7701|   			if ((error = dns_so_newanswer(so, alen)))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
gnupg-2.4.7/dirmngr/ks-action.c:571:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘puri’
gnupg-2.4.7/dirmngr/ks-action.c:552:1: enter_function: entry to ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: call_function: calling ‘ks_action_parse_uri’ from ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: return_function: returning to ‘ks_action_query’ from ‘ks_action_parse_uri’
gnupg-2.4.7/dirmngr/ks-action.c:565:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:568:7: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:568:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:571:11: branch_true: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:571:11: release_memory: ‘puri’ is NULL
gnupg-2.4.7/dirmngr/ks-action.c:571:7: danger: dereference of NULL ‘puri’
#  569|       {
#  570|         /* Reset authentication for a serverless connection.  */
#  571|->       puri->parsed_uri->ad_current = 0;
#  572|         puri->parsed_uri->auth = NULL;
#  573|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
gnupg-2.4.7/dirmngr/ks-action.c:575:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘puri’
gnupg-2.4.7/dirmngr/ks-action.c:552:1: enter_function: entry to ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: call_function: calling ‘ks_action_parse_uri’ from ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: return_function: returning to ‘ks_action_query’ from ‘ks_action_parse_uri’
gnupg-2.4.7/dirmngr/ks-action.c:565:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:568:7: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:568:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:575:20: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:575:20: release_memory: ‘puri’ is NULL
gnupg-2.4.7/dirmngr/ks-action.c:575:16: danger: dereference of NULL ‘puri’
#  573|       }
#  574|   
#  575|->   if (!strcmp (puri->parsed_uri->scheme, "ldap")
#  576|         || !strcmp (puri->parsed_uri->scheme, "ldaps")
#  577|         || !strcmp (puri->parsed_uri->scheme, "ldapi")

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1104:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hostname’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1819:1: enter_function: entry to ‘ks_hkp_put’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1822:9: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1826:9: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1828:9: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1834:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1837:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1840:21: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1841:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1846:3: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1847:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1852:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1853:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1854:9: call_function: calling ‘make_host_part’ from ‘ks_hkp_put’
# 1102|       strcpy (portstr, "11371");
# 1103|   
# 1104|->   if (*hostname != '[' && is_ip_address (hostname) == 6)
# 1105|       *r_hostport = strconcat (scheme, "://[", hostname, "]:", portstr, NULL);
# 1106|     else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1871:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘http_status’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1819:1: enter_function: entry to ‘ks_hkp_put’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1837:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1840:21: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1841:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1846:3: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1854:9: call_function: calling ‘make_host_part’ from ‘ks_hkp_put’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1854:9: return_function: returning to ‘ks_hkp_put’ from ‘make_host_part’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1857:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1860:3: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1862:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1869:9: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1871:7: danger: use of uninitialized value ‘http_status’ here
# 1869|     err = send_request (ctrl, request, hostport, httphost, 0,
# 1870|                         put_post_cb, &parm, &fp, &http_status);
# 1871|->   if (handle_send_request_error (ctrl, err, request, http_status,
# 1872|                                    &tries, &extra_tries))
# 1873|       {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:3076:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:188:1: enter_function: entry to ‘getval_for_filter’
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:245:11: branch_true: following ‘true’ branch (when the strings are equal)...
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:246:14: branch_true: ...to here
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:246:14: call_function: calling ‘map_rid_to_dn’ from ‘getval_for_filter’
# 3074|       {
# 3075|       next_again:
# 3076|->       if (!ctrl->ks_get_state->msg_iter && ctrl->ks_get_state->more_pages)
# 3077|           {
# 3078|             /* Get the next page of results.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
gnupg-2.4.7/doc/./mkdefsinc.c:223:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opt_date’
gnupg-2.4.7/doc/./mkdefsinc.c:166:1: enter_function: entry to ‘main’
gnupg-2.4.7/doc/./mkdefsinc.c:179:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/doc/./mkdefsinc.c:182:10: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:187:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:187:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:198:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: call_function: calling ‘xstrdup’ from ‘main’
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: return_function: returning to ‘main’ from ‘xstrdup’
gnupg-2.4.7/doc/./mkdefsinc.c:179:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/doc/./mkdefsinc.c:182:10: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:187:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:187:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:198:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: call_function: calling ‘xstrdup’ from ‘main’
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: return_function: returning to ‘main’ from ‘xstrdup’
gnupg-2.4.7/doc/./mkdefsinc.c:223:23: danger: ‘opt_date’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  221|               {
#  222|                 opt_date = xstrdup (*argv);
#  223|->               argc--; argv++;
#  224|               }
#  225|           }

Error: CPPCHECK_WARNING (CWE-457): [#def73]
gnupg-2.4.7/doc/mkdefsinc.c:337: warning[uninitvar]: Uninitialized variable: monthoff
#  335|   
#  336|     printf ("@set UPDATED %s\n", opt_date);
#  337|->   printf ("@set UPDATED-MONTH %s\n", opt_date + monthoff);
#  338|     printf ("@set EDITION %s\n", PACKAGE_VERSION);
#  339|     printf ("@set VERSION %s\n", PACKAGE_VERSION);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
gnupg-2.4.7/g10/export.c:1754:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
gnupg-2.4.7/g10/export.c:2238:1: enter_function: entry to ‘do_export_stream’
gnupg-2.4.7/g10/export.c:2259:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2264:7: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2264:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/export.c:2266:18: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2270:6: branch_true: following ‘true’ branch (when ‘users’ is NULL)...
gnupg-2.4.7/g10/export.c:2273:14: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2311:10: branch_true: following ‘true’ branch (when ‘users’ is NULL)...
gnupg-2.4.7/g10/export.c:2312:9: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2313:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2317:7: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2320:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2326:14: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2327:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2332:7: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2420:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/export.c:2421:15: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2429:10: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/g10/export.c:2432:10: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2432:10: branch_false: following ‘false’ branch (when ‘keyblock_out’ is NULL)...
gnupg-2.4.7/g10/export.c:2438:10: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2438:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/export.c:2449:17: call_function: calling ‘print_dane_records’ from ‘do_export_stream’
# 1752|   
# 1753|         domain = strchr (mbox, '@');
# 1754|->       *domain++ = 0;
# 1755|   
# 1756|         if (1)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
gnupg-2.4.7/g10/getkey.c:196:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pk’
gnupg-2.4.7/g10/getkey.c:4255:1: enter_function: entry to ‘get_user_id’
gnupg-2.4.7/g10/getkey.c:4264:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/getkey.c:4267:12: branch_true: ...to here
gnupg-2.4.7/g10/getkey.c:4267:12: call_function: calling ‘get_pubkey’ from ‘get_user_id’
#  194|       return;
#  195|   
#  196|->   if (is_ELGAMAL (pk->pubkey_algo)
#  197|         || pk->pubkey_algo == PUBKEY_ALGO_DSA
#  198|         || pk->pubkey_algo == PUBKEY_ALGO_ECDSA

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
gnupg-2.4.7/g10/keyedit.c:3087:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘keyblock’
gnupg-2.4.7/g10/keyedit.c:3060:1: enter_function: entry to ‘keyedit_quick_revsig’
gnupg-2.4.7/g10/keyedit.c:3084:9: call_function: calling ‘quick_find_keyblock’ from ‘keyedit_quick_revsig’
gnupg-2.4.7/g10/keyedit.c:3084:9: return_function: returning to ‘keyedit_quick_revsig’ from ‘quick_find_keyblock’
gnupg-2.4.7/g10/keyedit.c:3085:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:3087:3: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:3087:3: release_memory: ‘keyblock’ is NULL
gnupg-2.4.7/g10/keyedit.c:3087:3: danger: dereference of NULL ‘keyblock’
# 3085|     if (err)
# 3086|       goto leave;
# 3087|->   log_assert (keyblock->pkt->pkttype == PKT_PUBLIC_KEY
# 3088|                 || keyblock->pkt->pkttype == PKT_SECRET_KEY);
# 3089|     primarypk = keyblock->pkt->pkt.public_key;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
gnupg-2.4.7/g10/keyedit.c:5209:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub_pk’
gnupg-2.4.7/g10/keyedit.c:5121:1: enter_function: entry to ‘menu_expire’
gnupg-2.4.7/g10/keyedit.c:5133:6: branch_false: following ‘false’ branch (when ‘unattended == 0’)...
gnupg-2.4.7/g10/keyedit.c:5143:12: call_function: inlined call to ‘count_selected_keys’ from ‘menu_expire’
gnupg-2.4.7/g10/keyedit.c:5146:14: branch_false: following ‘false’ branch...
 branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5169:29: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5171:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5171:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5173:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5169:29: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5171:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5171:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5177:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5177:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5189:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5189:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5191:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5191:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5191:16: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5194:26: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5196:14: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5196:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5197:18: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5197:18: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5196:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5208:18: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5208:18: branch_false: following ‘false’ branch (when ‘only_mainkey == 0’)...
gnupg-2.4.7/g10/keyedit.c:5209:40: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5209:40: danger: dereference of NULL ‘sub_pk’
# 5207|   
# 5208|   	      if ((only_mainkey && main_pk->version < 4)
# 5209|-> 		  || (!only_mainkey && sub_pk->version < 4))
# 5210|   		{
# 5211|   		  log_info

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
gnupg-2.4.7/g10/keyedit.c:5313:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub_pk’
gnupg-2.4.7/g10/keyedit.c:5266:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5271:11: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5282:25: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5284:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5284:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5286:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5282:25: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5284:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5284:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5289:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5289:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5296:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5296:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5298:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5298:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5298:16: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5301:26: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5302:14: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5302:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5303:18: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5303:18: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5302:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5312:18: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5312:18: branch_false: following ‘false’ branch (when ‘mainkey == 0’)...
gnupg-2.4.7/g10/keyedit.c:5313:35: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5313:35: danger: dereference of NULL ‘sub_pk’
# 5311|   
# 5312|   	      if ((mainkey && main_pk->version < 4)
# 5313|-> 		  || (!mainkey && sub_pk->version < 4))
# 5314|   		{
# 5315|                     /* Note: This won't happen because we don't support

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
gnupg-2.4.7/g10/keyid.c:341:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gcry_mpi_get_opaque(*pk.pkey[i], &nbits)’
gnupg-2.4.7/g10/keyid.c:1048:1: enter_function: entry to ‘v5_fingerprint_from_pk’
gnupg-2.4.7/g10/keyid.c:1053:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyid.c:1056:7: branch_false: ...to here
gnupg-2.4.7/g10/keyid.c:1056:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyid.c:1058:3: branch_false: ...to here
gnupg-2.4.7/g10/keyid.c:1058:3: call_function: calling ‘do_hash_public_key’ from ‘v5_fingerprint_from_pk’
#  339|                 if (is_sos)
#  340|                   {
#  341|->                   if (*p)
#  342|                       {
#  343|                         nbits = ((nbits + 7) / 8) * 8;

Error: COMPILER_WARNING (CWE-704): [#def80]
gnupg-2.4.7/g10/keyserver-internal.h:34:24: warning[-Wlto-type-mismatch]: type of ‘parse_keyserver_uri’ does not match original declaration
#   34 | struct keyserver_spec *parse_keyserver_uri (const char *string,
#      |                        ^
gnupg-2.4.7/g10/gpgv.c:644:1: note: type mismatch in parameter 3
#  644 | parse_keyserver_uri (const char *uri, int require_scheme,
#      | ^
gnupg-2.4.7/g10/gpgv.c:644:1: note: ‘parse_keyserver_uri’ was previously declared here
#   32|   void free_keyserver_spec(struct keyserver_spec *keyserver);
#   33|   struct keyserver_spec *keyserver_match(struct keyserver_spec *spec);
#   34|-> struct keyserver_spec *parse_keyserver_uri (const char *string,
#   35|                                               int require_scheme);
#   36|   struct keyserver_spec *parse_preferred_keyserver(PKT_signature *sig);

Error: COMPILER_WARNING (CWE-704): [#def81]
gnupg-2.4.7/g10/keyserver-internal.h:45:5: warning[-Wlto-type-mismatch]: type of ‘keyserver_import_keyid’ does not match original declaration
#   45 | int keyserver_import_keyid (ctrl_t ctrl, u32 *keyid,
#      |     ^
gnupg-2.4.7/g10/gpgv.c:458:1: note: type mismatch in parameter 3
#  458 | keyserver_import_keyid (u32 *keyid, void *dummy, unsigned int flags)
#      | ^
gnupg-2.4.7/g10/gpgv.c:458:1: note: ‘keyserver_import_keyid’ was previously declared here
#   43|   int keyserver_import_fprint_ntds (ctrl_t ctrl,
#   44|                                     const byte *fprint, size_t fprint_len);
#   45|-> int keyserver_import_keyid (ctrl_t ctrl, u32 *keyid,
#   46|                               struct keyserver_spec *keyserver,
#   47|                               unsigned int flags);

Error: COMPILER_WARNING (CWE-704): [#def82]
gnupg-2.4.7/g10/keyserver-internal.h:51:5: warning[-Wlto-type-mismatch]: type of ‘keyserver_import_cert’ does not match original declaration
#   51 | int keyserver_import_cert (ctrl_t ctrl, const char *name, int dane_mode,
#      |     ^
gnupg-2.4.7/g10/gpgv.c:489:1: note: type mismatch in parameter 2
#  489 | keyserver_import_cert (const char *name)
#      | ^
gnupg-2.4.7/g10/gpgv.c:489:1: note: ‘keyserver_import_cert’ was previously declared here
#   49|   gpg_error_t keyserver_search (ctrl_t ctrl, strlist_t tokens);
#   50|   int keyserver_fetch (ctrl_t ctrl, strlist_t urilist, int origin);
#   51|-> int keyserver_import_cert (ctrl_t ctrl, const char *name, int dane_mode,
#   52|                              unsigned char **fpr,size_t *fpr_len);
#   53|   gpg_error_t keyserver_import_wkd (ctrl_t ctrl, const char *name,

Error: COMPILER_WARNING (CWE-704): [#def83]
gnupg-2.4.7/g10/keyserver-internal.h:58:13: warning[-Wlto-type-mismatch]: type of ‘keyserver_import_mbox’ does not match original declaration
#   58 | gpg_error_t keyserver_import_mbox (ctrl_t ctrl, const char *mbox,
#      |             ^
gnupg-2.4.7/g10/gpgv.c:508:1: note: return value type mismatch
#  508 | keyserver_import_mbox (const char *name,struct keyserver_spec *spec)
#      | ^
gnupg-2.4.7/g10/gpgv.c:508:1: note: type ‘int’ should match type ‘gpg_error_t’
gnupg-2.4.7/g10/gpgv.c:508:1: note: ‘keyserver_import_mbox’ was previously declared here
#   56|   int keyserver_import_ntds (ctrl_t ctrl, const char *name,
#   57|                              unsigned char **fpr,size_t *fpr_len);
#   58|-> gpg_error_t keyserver_import_mbox (ctrl_t ctrl, const char *mbox,
#   59|                                      unsigned char **fpr,size_t *fpr_len,
#   60|                                      struct keyserver_spec *keyserver,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
gnupg-2.4.7/g10/keyserver.c:1212:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘desc’
gnupg-2.4.7/g10/keyserver.c:1182:1: enter_function: entry to ‘keyserver_refresh’
gnupg-2.4.7/g10/keyserver.c:1200:9: call_function: calling ‘keyidlist’ from ‘keyserver_refresh’
gnupg-2.4.7/g10/keyserver.c:1200:9: return_function: returning to ‘keyserver_refresh’ from ‘keyidlist’
gnupg-2.4.7/g10/keyserver.c:1201:6: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/g10/keyserver.c:1204:3: branch_false: ...to here
gnupg-2.4.7/g10/keyserver.c:1205:5: branch_true: following ‘true’ branch (when ‘count > 0’)...
 branch_true: ...to here
gnupg-2.4.7/g10/keyserver.c:1210:15: branch_true: following ‘true’ branch (when ‘i < count’)...
gnupg-2.4.7/g10/keyserver.c:1212:18: branch_true: ...to here
gnupg-2.4.7/g10/keyserver.c:1212:18: release_memory: ‘desc’ is NULL
gnupg-2.4.7/g10/keyserver.c:1212:18: release_memory: ‘desc’ is NULL
gnupg-2.4.7/g10/keyserver.c:1212:14: danger: dereference of NULL ‘desc + (long unsigned int)i * 80’
# 1210|         for(i=0;i<numdesc;i++)
# 1211|   	{
# 1212|-> 	  if(desc[i].skipfncvalue)
# 1213|   	    {
# 1214|   	      struct keyserver_spec *keyserver=desc[i].skipfncvalue;

Error: COMPILER_WARNING (CWE-252): [#def85]
gnupg-2.4.7/g10/photoid.c: scope_hint: In function ‘run_with_pipe’
gnupg-2.4.7/g10/photoid.c:624:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  624 |       write (to[1], image, len);
#      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
#  622|     else
#  623|       {
#  624|->       write (to[1], image, len);
#  625|         close (to[1]);
#  626|   

Error: COMPILER_WARNING (CWE-704): [#def86]
gnupg-2.4.7/g10/photoid.h:31:6: warning[-Wlto-type-mismatch]: type of ‘show_photos’ does not match original declaration
#   31 | void show_photos (ctrl_t ctrl, const struct user_attribute *attrs, int count,
#      |      ^
gnupg-2.4.7/g10/gpgv.c:662:1: note: type mismatch in parameter 2
#  662 | show_photos (const struct user_attribute *attrs, int count, PKT_public_key *pk)
#      | ^
gnupg-2.4.7/g10/gpgv.c:662:1: note: ‘show_photos’ was previously declared here
#   29|   int parse_image_header(const struct user_attribute *attr,byte *type,u32 *len);
#   30|   const char *image_type_to_string(byte type,int style);
#   31|-> void show_photos (ctrl_t ctrl, const struct user_attribute *attrs, int count,
#   32|                     PKT_public_key *pk, PKT_user_id *uid);
#   33|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
gnupg-2.4.7/g10/sign.c:859:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pt’
gnupg-2.4.7/g10/sign.c:1627:1: enter_function: entry to ‘sign_symencrypt_file’
gnupg-2.4.7/g10/sign.c:1663:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/g10/sign.c:1667:9: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1668:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/sign.c:1668:14: branch_true: ...to here
gnupg-2.4.7/g10/sign.c:1668:7: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1681:3: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1691:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1710:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1714:7: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1716:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1718:8: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1763:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1766:3: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1770:8: call_function: calling ‘write_plaintext_packet’ from ‘sign_symencrypt_file’
#  857|   
#  858|         /* Note that PT has been initialized above in no_literal mode.  */
#  859|->       pt->timestamp = make_timestamp ();
#  860|         pt->mode = ptmode;
#  861|         pt->len = filesize;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def88]
gnupg-2.4.7/g10/test.c:163:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
gnupg-2.4.7/g10/test.c:162:12: acquire_memory: this call could return NULL
gnupg-2.4.7/g10/test.c:163:3: danger: argument 1 (‘result’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 1 of ‘__builtin_strcpy’ must be non-null
#  161|   
#  162|     result = malloc (strlen (srcdir) + strlen ("/g10/") + strlen (fname) + 1);
#  163|->   strcpy (result, srcdir);
#  164|     strcat (result, "/g10/");
#  165|     strcat (result, fname);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
gnupg-2.4.7/g10/tofu.c:2535:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/g10/tofu.c:3971:1: enter_function: entry to ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3980:3: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3982:9: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3982:9: call_function: calling ‘opendbs’ from ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3982:9: return_function: returning to ‘tofu_get_policy’ from ‘opendbs’
gnupg-2.4.7/g10/tofu.c:3983:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3990:17: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3991:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3994:31: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3996:13: call_function: calling ‘get_policy’ from ‘tofu_get_policy’
# 2533|   
# 2534|     if (conflict_set_count == 1
# 2535|->       && (conflict_set->flags & BINDING_NEW))
# 2536|       {
# 2537|         /* We've never observed a binding with this email address and we

Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
gnupg-2.4.7/g10/tofu.c:2586:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/g10/tofu.c:3971:1: enter_function: entry to ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3980:3: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3982:9: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3982:9: call_function: calling ‘opendbs’ from ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3982:9: return_function: returning to ‘tofu_get_policy’ from ‘opendbs’
gnupg-2.4.7/g10/tofu.c:3983:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3990:17: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3991:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3994:31: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3996:13: call_function: calling ‘get_policy’ from ‘tofu_get_policy’
# 2584|     log_assert (conflict_set_count > 1);
# 2585|     effective_policy = TOFU_POLICY_ASK;
# 2586|->   conflict = xstrdup (conflict_set->next->d);
# 2587|   
# 2588|    out:

Error: GCC_ANALYZER_WARNING (CWE-465): [#def91]
gnupg-2.4.7/g10/tofu.c:3925:10: warning[-Wanalyzer-deref-before-check]: check of ‘kb’ for NULL after already dereferencing it
gnupg-2.4.7/g10/tofu.c:3894:1: enter_function: entry to ‘tofu_set_policy’
gnupg-2.4.7/g10/tofu.c:3902:3: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3903:3: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3905:9: call_function: calling ‘opendbs’ from ‘tofu_set_policy’
gnupg-2.4.7/g10/tofu.c:3905:9: return_function: returning to ‘tofu_set_policy’ from ‘opendbs’
gnupg-2.4.7/g10/tofu.c:3906:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3913:7: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3916:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3919:17: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3920:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3923:3: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3923:3: call_function: calling ‘begin_transaction’ from ‘tofu_set_policy’
gnupg-2.4.7/g10/tofu.c:3923:3: return_function: returning to ‘tofu_set_policy’ from ‘begin_transaction’
gnupg-2.4.7/g10/tofu.c:3925:10: danger: pointer ‘kb’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
# 3923|     begin_transaction (ctrl, 0);
# 3924|   
# 3925|->   for (; kb; kb = kb->next)
# 3926|       {
# 3927|         PKT_user_id *user_id;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
gnupg-2.4.7/g10/trust.c:71:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/g10/trust.c:64:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/trust.c:68:13: branch_true: ...to here
gnupg-2.4.7/g10/trust.c:69:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/trust.c:71:12: branch_true: ...to here
gnupg-2.4.7/g10/trust.c:71:11: danger: dereference of NULL ‘strchr(gcry_strdup(string), 35)’
#   69|         if (buf)
#   70|           {
#   71|->           *strchr (buf, '#') = 0;
#   72|             tdb_register_trusted_key (buf);
#   73|             xfree (buf);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def93]
gnupg-2.4.7/g13/g13tuple.c:240:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n’
gnupg-2.4.7/g13/g13tuple.c:233:1: enter_function: entry to ‘find_tuple_uint’
gnupg-2.4.7/g13/g13tuple.c:239:7: call_function: calling ‘find_tuple’ from ‘find_tuple_uint’
gnupg-2.4.7/g13/g13tuple.c:239:7: return_function: returning to ‘find_tuple_uint’ from ‘find_tuple’
gnupg-2.4.7/g13/g13tuple.c:240:10: danger: use of uninitialized value ‘n’ here
#  238|   
#  239|     s = find_tuple (tupledesc, tag, &n);
#  240|->   return convert_uint (s, n, r_value);
#  241|   }
#  242|   

Error: COMPILER_WARNING (CWE-252): [#def94]
gnupg-2.4.7/scd/app.c: scope_hint: In function ‘card_list_signal’
gnupg-2.4.7/scd/app.c:389:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  389 |     write (card_list_lock.notify_pipe[1], "", 1);
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  387|     npth_mutex_lock (&card_list_lock.lock);
#  388|     if (card_list_lock.notify_watchers)
#  389|->     write (card_list_lock.notify_pipe[1], "", 1);
#  390|     npth_mutex_unlock (&card_list_lock.lock);
#  391|   #endif

Error: COMPILER_WARNING (CWE-252): [#def95]
gnupg-2.4.7/scd/app.c: scope_hint: In function ‘card_list_wait’
gnupg-2.4.7/scd/app.c:450:11: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  450 |           read (card_list_lock.notify_pipe[0], buf, sizeof buf);
#      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  448|             char buf[256];
#  449|   
#  450|->           read (card_list_lock.notify_pipe[0], buf, sizeof buf);
#  451|             ret = 0;
#  452|             break;

Error: COMPILER_WARNING (CWE-252): [#def96]
gnupg-2.4.7/scd/scdaemon.c: scope_hint: In function ‘scd_kick_the_loop’
gnupg-2.4.7/scd/scdaemon.c:1292:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 1292 |   write (notify_fd, "", 1);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
# 1290|                  w32_strerror (-1));
# 1291|   #elif defined(HAVE_PSELECT_NO_EINTR)
# 1292|->   write (notify_fd, "", 1);
# 1293|   #else
# 1294|     int ret = kill (main_thread_pid, SIGCONT);

Error: COMPILER_WARNING (CWE-252): [#def97]
gnupg-2.4.7/scd/scdaemon.c: scope_hint: In function ‘handle_connections’
gnupg-2.4.7/scd/scdaemon.c:1428:11: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 1428 |           read (pipe_fd[0], buf, sizeof buf);
#      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1426|             char buf[256];
# 1427|   
# 1428|->           read (pipe_fd[0], buf, sizeof buf);
# 1429|           }
# 1430|   #endif

Error: GCC_ANALYZER_WARNING (CWE-121): [#def98]
gnupg-2.4.7/sm/call-agent.c:403:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gnupg-2.4.7/sm/call-agent.c:376:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/call-agent.c:378:3: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:381:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/call-agent.c:385:3: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:389:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/call-agent.c:395:7: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:398:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/call-agent.c:402:3: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:402:13: branch_true: following ‘true’ branch...
gnupg-2.4.7/sm/call-agent.c:403:31: branch_true: ...to here
gnupg-2.4.7/sm/call-agent.c:403:5: danger: out-of-bounds write from byte 1002 till byte 1013 but ‘line’ ends at byte 1002
#  401|     p = stpcpy (line, "SCD SETDATA " );
#  402|     for (i=0; i < digestlen ; i++, p += 2 )
#  403|->     sprintf (p, "%02X", digest[i]);
#  404|     rc = assuan_transact (agent_ctx, line, NULL, NULL, NULL, NULL, NULL, NULL);
#  405|     if (rc)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def99]
gnupg-2.4.7/sm/certcheck.c:691:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘frame’
gnupg-2.4.7/sm/certcheck.c:607:1: enter_function: entry to ‘gpgsm_check_cms_signature’
gnupg-2.4.7/sm/certcheck.c:644:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/certcheck.c:650:7: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:655:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/certcheck.c:661:12: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:665:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/certcheck.c:683:12: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:683:12: call_function: calling ‘do_encode_md’ from ‘gpgsm_check_cms_signature’
gnupg-2.4.7/sm/certcheck.c:683:12: return_function: returning to ‘gpgsm_check_cms_signature’ from ‘do_encode_md’
gnupg-2.4.7/sm/certcheck.c:685:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/certcheck.c:691:12: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:691:12: danger: use of uninitialized value ‘frame’ here
#  689|           }
#  690|         /* put hash into the S-Exp s_hash */
#  691|->       if ( gcry_sexp_build (&s_hash, NULL, "%m", frame) )
#  692|           BUG ();
#  693|         gcry_mpi_release (frame);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def100]
gnupg-2.4.7/sm/decrypt.c:1368:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nbits’
gnupg-2.4.7/sm/decrypt.c:1075:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1082:11: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1083:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1091:20: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1095:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1101:8: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1105:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1111:3: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1116:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1119:8: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1120:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1127:3: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1133:10: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1139:11: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1151:14: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1177:17: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1177:14: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1188:29: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1194:14: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1200:16: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1204:14: branch_false: following ‘false’ branch (when ‘rc == 0’)...
 branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1210:24: branch_true: following ‘true’ branch (when ‘any_key == 0’)...
gnupg-2.4.7/sm/decrypt.c:1221:27: branch_true: ...to here
gnupg-2.4.7/sm/decrypt.c:1229:18: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1231:15: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1354:18: branch_true: following ‘true’ branch...
gnupg-2.4.7/sm/decrypt.c:1354:19: branch_true: ...to here
gnupg-2.4.7/sm/decrypt.c:1354:19: branch_false: following ‘false’ branch (when ‘maybe_pwri != 0’)...
gnupg-2.4.7/sm/decrypt.c:1356:36: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1356:23: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1365:22: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1368:24: danger: use of uninitialized value ‘nbits’ here
# 1366|                       log_info ("recp %d - KEKRI or PWRI\n", recp);
# 1367|   
# 1368|->                   rc = prepare_decryption (ctrl, hexkeygrip, pk_algo, nbits,
# 1369|                                              desc, enc_val, &dfparm);
# 1370|                     xfree (enc_val);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def101]
gnupg-2.4.7/sm/export.c:770:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘resultlen’
gnupg-2.4.7/sm/export.c:654:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/export.c:661:9: branch_false: ...to here
gnupg-2.4.7/sm/export.c:663:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/export.c:668:9: branch_false: ...to here
gnupg-2.4.7/sm/export.c:744:6: branch_false: following ‘false’ branch (when ‘kparms’ is NULL)...
gnupg-2.4.7/sm/export.c:750:3: branch_false: ...to here
gnupg-2.4.7/sm/export.c:763:6: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/sm/export.c:769:7: branch_false: ...to here
gnupg-2.4.7/sm/export.c:770:7: danger: use of uninitialized value ‘resultlen’ here
#  768|       {
#  769|         *r_result = result;
#  770|->       *r_resultlen = resultlen;
#  771|       }
#  772|     return err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
gnupg-2.4.7/sm/minip12.c:201:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "wb")’
gnupg-2.4.7/sm/minip12.c:200:12: acquire_resource: opened here
gnupg-2.4.7/sm/minip12.c:201:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/minip12.c:201:18: branch_false: ...to here
gnupg-2.4.7/sm/minip12.c:201:11: danger: ‘fopen(&fname, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  199|         log_debug ("dumping %zu bytes to '%s'\n", n, fname);
#  200|         fp = fopen (fname, "wb");
#  201|->       if (!fp || fwrite (s, n, 1, fp) != 1)
#  202|           log_assert (!"fopen or fwrite failed");
#  203|         fclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
gnupg-2.4.7/sm/minip12.c:201:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "wb")’
gnupg-2.4.7/sm/minip12.c:200:12: acquire_memory: allocated here
gnupg-2.4.7/sm/minip12.c:201:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/minip12.c:201:18: branch_false: ...to here
gnupg-2.4.7/sm/minip12.c:201:11: danger: ‘fopen(&fname, "wb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  199|         log_debug ("dumping %zu bytes to '%s'\n", n, fname);
#  200|         fp = fopen (fname, "wb");
#  201|->       if (!fp || fwrite (s, n, 1, fp) != 1)
#  202|           log_assert (!"fopen or fwrite failed");
#  203|         fclose (fp);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
gnupg-2.4.7/sm/t-minip12.c:399:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
#  397|       }
#  398|   
#  399|->   if (fstat (fileno(fp), &st))
#  400|       {
#  401|         fprintf (stderr, PGM": can't stat '%s': %s\n", name, strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
gnupg-2.4.7/sm/t-minip12.c:399:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
#  397|       }
#  398|   
#  399|->   if (fstat (fileno(fp), &st))
#  400|       {
#  401|         fprintf (stderr, PGM": can't stat '%s': %s\n", name, strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
gnupg-2.4.7/sm/t-minip12.c:405:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
#  403|       }
#  404|   
#  405|->   buflen = st.st_size;
#  406|     buf = xmalloc (buflen+1);
#  407|     if (fread (buf, buflen, 1, fp) != 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
gnupg-2.4.7/sm/t-minip12.c:405:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
#  403|       }
#  404|   
#  405|->   buflen = st.st_size;
#  406|     buf = xmalloc (buflen+1);
#  407|     if (fread (buf, buflen, 1, fp) != 1)

Error: COMPILER_WARNING: [#def108] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:87:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#   85|     while (args != sc->NIL)
#   86|       {
#   87|->       FFI_ARG_OR_RETURN (sc, unsigned int, v, number, args);
#   88|         acc &= v;
#   89|       }

Error: COMPILER_WARNING: [#def109] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:100:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#   98|     while (args != sc->NIL)
#   99|       {
#  100|->       FFI_ARG_OR_RETURN (sc, unsigned int, v, number, args);
#  101|         acc |= v;
#  102|       }

Error: COMPILER_WARNING: [#def110] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:113:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  111|     while (args != sc->NIL)
#  112|       {
#  113|->       FFI_ARG_OR_RETURN (sc, unsigned int, v, number, args);
#  114|         acc ^= v;
#  115|       }

Error: COMPILER_WARNING: [#def111] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:124:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  122|     FFI_PROLOG ();
#  123|     unsigned int v;
#  124|->   FFI_ARG_OR_RETURN (sc, unsigned int, v, number, args);
#  125|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  126|     FFI_RETURN_INT (sc, ~v);

Error: COMPILER_WARNING: [#def112] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:125:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  123|     unsigned int v;
#  124|     FFI_ARG_OR_RETURN (sc, unsigned int, v, number, args);
#  125|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  126|     FFI_RETURN_INT (sc, ~v);
#  127|   }

Error: COMPILER_WARNING: [#def113] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:135:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  133|   {
#  134|     FFI_PROLOG ();
#  135|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  136|     fflush (stdout);
#  137|     fflush (stderr);

Error: COMPILER_WARNING: [#def114] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:183:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  181|     const char *prompt;
#  182|     const char *line;
#  183|->   FFI_ARG_OR_RETURN (sc, const char *, prompt, string, args);
#  184|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  185|     line = rl_gets (prompt);

Error: COMPILER_WARNING: [#def115] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:184:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  182|     const char *line;
#  183|     FFI_ARG_OR_RETURN (sc, const char *, prompt, string, args);
#  184|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  185|     line = rl_gets (prompt);
#  186|     if (! line)

Error: COMPILER_WARNING: [#def116] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:197:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  195|     FFI_PROLOG ();
#  196|     unsigned int seconds;
#  197|->   FFI_ARG_OR_RETURN (sc, unsigned int, seconds, number, args);
#  198|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  199|     sleep (seconds);

Error: COMPILER_WARNING: [#def117] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:198:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  196|     unsigned int seconds;
#  197|     FFI_ARG_OR_RETURN (sc, unsigned int, seconds, number, args);
#  198|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  199|     sleep (seconds);
#  200|     FFI_RETURN (sc);

Error: COMPILER_WARNING: [#def118] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:208:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  206|     FFI_PROLOG ();
#  207|     useconds_t microseconds;
#  208|->   FFI_ARG_OR_RETURN (sc, useconds_t, microseconds, number, args);
#  209|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  210|     usleep (microseconds);

Error: COMPILER_WARNING: [#def119] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:209:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  207|     useconds_t microseconds;
#  208|     FFI_ARG_OR_RETURN (sc, useconds_t, microseconds, number, args);
#  209|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  210|     usleep (microseconds);
#  211|     FFI_RETURN (sc);

Error: COMPILER_WARNING: [#def120] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:219:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  217|     FFI_PROLOG ();
#  218|     char *name;
#  219|->   FFI_ARG_OR_RETURN (sc, char *, name, path, args);
#  220|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  221|     if (chdir (name))

Error: COMPILER_WARNING: [#def121] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:220:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  218|     char *name;
#  219|     FFI_ARG_OR_RETURN (sc, char *, name, path, args);
#  220|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  221|     if (chdir (name))
#  222|       FFI_RETURN_ERR (sc, gpg_error_from_syserror ());

Error: COMPILER_WARNING: [#def122] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:231:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  229|     FFI_PROLOG ();
#  230|     int error;
#  231|->   FFI_ARG_OR_RETURN (sc, int, error, number, args);
#  232|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  233|     FFI_RETURN_STRING (sc, gpg_strerror (error));

Error: COMPILER_WARNING: [#def123] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:232:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  230|     int error;
#  231|     FFI_ARG_OR_RETURN (sc, int, error, number, args);
#  232|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  233|     FFI_RETURN_STRING (sc, gpg_strerror (error));
#  234|   }

Error: COMPILER_WARNING: [#def124] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:242:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  240|     char *name;
#  241|     char *value;
#  242|->   FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  243|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  244|     value = getenv (name);

Error: COMPILER_WARNING: [#def125] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:243:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  241|     char *value;
#  242|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  243|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  244|     value = getenv (name);
#  245|     FFI_RETURN_STRING (sc, value ? value : "");

Error: COMPILER_WARNING: [#def126] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:255:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  253|     char *value;
#  254|     int overwrite;
#  255|->   FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  256|     FFI_ARG_OR_RETURN (sc, char *, value, string, args);
#  257|     FFI_ARG_OR_RETURN (sc, int, overwrite, bool, args);

Error: COMPILER_WARNING: [#def127] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:256:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  254|     int overwrite;
#  255|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  256|->   FFI_ARG_OR_RETURN (sc, char *, value, string, args);
#  257|     FFI_ARG_OR_RETURN (sc, int, overwrite, bool, args);
#  258|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def128] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:257:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  255|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  256|     FFI_ARG_OR_RETURN (sc, char *, value, string, args);
#  257|->   FFI_ARG_OR_RETURN (sc, int, overwrite, bool, args);
#  258|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  259|     if (gnupg_setenv (name, value, overwrite))

Error: COMPILER_WARNING: [#def129] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:258:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  256|     FFI_ARG_OR_RETURN (sc, char *, value, string, args);
#  257|     FFI_ARG_OR_RETURN (sc, int, overwrite, bool, args);
#  258|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  259|     if (gnupg_setenv (name, value, overwrite))
#  260|       FFI_RETURN_ERR (sc, gpg_error_from_syserror ());

Error: COMPILER_WARNING: [#def130] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:269:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  267|     FFI_PROLOG ();
#  268|     int retcode;
#  269|->   FFI_ARG_OR_RETURN (sc, int, retcode, number, args);
#  270|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  271|     exit (retcode);

Error: COMPILER_WARNING: [#def131] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:270:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  268|     int retcode;
#  269|     FFI_ARG_OR_RETURN (sc, int, retcode, number, args);
#  270|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  271|     exit (retcode);
#  272|   }

Error: COMPILER_WARNING: [#def132] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:283:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  281|     int flags;
#  282|     mode_t mode = 0;
#  283|->   FFI_ARG_OR_RETURN (sc, char *, pathname, path, args);
#  284|     FFI_ARG_OR_RETURN (sc, int, flags, number, args);
#  285|     if (args != sc->NIL)

Error: COMPILER_WARNING: [#def133] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:284:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  282|     mode_t mode = 0;
#  283|     FFI_ARG_OR_RETURN (sc, char *, pathname, path, args);
#  284|->   FFI_ARG_OR_RETURN (sc, int, flags, number, args);
#  285|     if (args != sc->NIL)
#  286|       FFI_ARG_OR_RETURN (sc, mode_t, mode, number, args);

Error: COMPILER_WARNING: [#def134] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:286:5: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  284|     FFI_ARG_OR_RETURN (sc, int, flags, number, args);
#  285|     if (args != sc->NIL)
#  286|->     FFI_ARG_OR_RETURN (sc, mode_t, mode, number, args);
#  287|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  288|   

Error: COMPILER_WARNING: [#def135] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:287:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  285|     if (args != sc->NIL)
#  286|       FFI_ARG_OR_RETURN (sc, mode_t, mode, number, args);
#  287|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  288|   
#  289|     fd = open (pathname, flags, mode);

Error: COMPILER_WARNING: [#def136] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:303:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  301|     char *mode;
#  302|     int kind;
#  303|->   FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  304|     FFI_ARG_OR_RETURN (sc, char *, mode, string, args);
#  305|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def137] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:304:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  302|     int kind;
#  303|     FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  304|->   FFI_ARG_OR_RETURN (sc, char *, mode, string, args);
#  305|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  306|   

Error: COMPILER_WARNING: [#def138] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:305:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  303|     FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  304|     FFI_ARG_OR_RETURN (sc, char *, mode, string, args);
#  305|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  306|   
#  307|     stream = fdopen (fd, mode);

Error: COMPILER_WARNING: [#def139] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:320:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  318|       kind |= port_output;
#  319|   
#  320|->   FFI_RETURN_POINTER (sc, sc->vptr->mk_port_from_file (sc, stream, kind));
#  321|   }
#  322|   

Error: COMPILER_WARNING: [#def140] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:328:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  326|     FFI_PROLOG ();
#  327|     int fd;
#  328|->   FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  329|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  330|     FFI_RETURN_ERR (sc, close (fd) == 0 ? 0 : gpg_error_from_syserror ());

Error: COMPILER_WARNING: [#def141] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:329:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  327|     int fd;
#  328|     FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  329|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  330|     FFI_RETURN_ERR (sc, close (fd) == 0 ? 0 : gpg_error_from_syserror ());
#  331|   }

Error: COMPILER_WARNING: [#def142] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:340:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  338|     off_t offset;
#  339|     int whence;
#  340|->   FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  341|     FFI_ARG_OR_RETURN (sc, off_t, offset, number, args);
#  342|     FFI_ARG_OR_RETURN (sc, int, whence, number, args);

Error: COMPILER_WARNING: [#def143] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:341:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  339|     int whence;
#  340|     FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  341|->   FFI_ARG_OR_RETURN (sc, off_t, offset, number, args);
#  342|     FFI_ARG_OR_RETURN (sc, int, whence, number, args);
#  343|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def144] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:342:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  340|     FFI_ARG_OR_RETURN (sc, int, fd, number, args);
#  341|     FFI_ARG_OR_RETURN (sc, off_t, offset, number, args);
#  342|->   FFI_ARG_OR_RETURN (sc, int, whence, number, args);
#  343|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  344|     FFI_RETURN_ERR (sc, lseek (fd, offset, whence) == (off_t) -1

Error: COMPILER_WARNING: [#def145] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:343:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  341|     FFI_ARG_OR_RETURN (sc, off_t, offset, number, args);
#  342|     FFI_ARG_OR_RETURN (sc, int, whence, number, args);
#  343|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  344|     FFI_RETURN_ERR (sc, lseek (fd, offset, whence) == (off_t) -1
#  345|                     ? gpg_error_from_syserror () : 0);

Error: COMPILER_WARNING: [#def146] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:355:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  353|     char buffer[MAX_PATH+1];
#  354|   #endif
#  355|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  356|   
#  357|   #ifdef HAVE_W32_SYSTEM

Error: COMPILER_WARNING: [#def147] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:382:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  380|   #endif
#  381|     char *name;
#  382|->   FFI_ARG_OR_RETURN (sc, char *, template, string, args);
#  383|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  384|   

Error: COMPILER_WARNING: [#def148] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:383:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  381|     char *name;
#  382|     FFI_ARG_OR_RETURN (sc, char *, template, string, args);
#  383|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  384|   
#  385|     if (strlen (template) > sizeof buffer - 1)

Error: COMPILER_WARNING: [#def149] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:400:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  398|     FFI_PROLOG ();
#  399|     char *name;
#  400|->   FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  401|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  402|     if (unlink (name) == -1)

Error: COMPILER_WARNING: [#def150] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:401:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  399|     char *name;
#  400|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  401|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  402|     if (unlink (name) == -1)
#  403|       FFI_RETURN_ERR (sc, gpg_error_from_syserror ());

Error: COMPILER_WARNING: [#def151] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:465:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  463|     FFI_PROLOG ();
#  464|     char *name;
#  465|->   FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  466|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  467|     err = unlink_recursively (name);

Error: COMPILER_WARNING: [#def152] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:466:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  464|     char *name;
#  465|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  466|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  467|     err = unlink_recursively (name);
#  468|     FFI_RETURN (sc);

Error: COMPILER_WARNING: [#def153] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:477:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  475|     char *old;
#  476|     char *new;
#  477|->   FFI_ARG_OR_RETURN (sc, char *, old, string, args);
#  478|     FFI_ARG_OR_RETURN (sc, char *, new, string, args);
#  479|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def154] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:478:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  476|     char *new;
#  477|     FFI_ARG_OR_RETURN (sc, char *, old, string, args);
#  478|->   FFI_ARG_OR_RETURN (sc, char *, new, string, args);
#  479|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  480|     if (rename (old, new) == -1)

Error: COMPILER_WARNING: [#def155] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:479:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  477|     FFI_ARG_OR_RETURN (sc, char *, old, string, args);
#  478|     FFI_ARG_OR_RETURN (sc, char *, new, string, args);
#  479|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  480|     if (rename (old, new) == -1)
#  481|       FFI_RETURN_ERR (sc, gpg_error_from_syserror ());

Error: COMPILER_WARNING: [#def156] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:491:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  489|     pointer result;
#  490|     char *cwd;
#  491|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  492|     cwd = gnupg_getcwd ();
#  493|     if (cwd == NULL)

Error: COMPILER_WARNING: [#def157] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:495:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  493|     if (cwd == NULL)
#  494|       FFI_RETURN_ERR (sc, gpg_error_from_syserror ());
#  495|->   result = sc->vptr->mk_string (sc, cwd);
#  496|     xfree (cwd);
#  497|     FFI_RETURN_POINTER (sc, result);

Error: COMPILER_WARNING: [#def158] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:506:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  504|     char *name;
#  505|     char *mode;
#  506|->   FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  507|     FFI_ARG_OR_RETURN (sc, char *, mode, string, args);
#  508|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def159] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:507:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  505|     char *mode;
#  506|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  507|->   FFI_ARG_OR_RETURN (sc, char *, mode, string, args);
#  508|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  509|     if (gnupg_mkdir (name, mode) == -1)

Error: COMPILER_WARNING: [#def160] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:508:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  506|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  507|     FFI_ARG_OR_RETURN (sc, char *, mode, string, args);
#  508|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  509|     if (gnupg_mkdir (name, mode) == -1)
#  510|       FFI_RETURN_ERR (sc, gpg_error_from_syserror ());

Error: COMPILER_WARNING: [#def161] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:519:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  517|     FFI_PROLOG ();
#  518|     char *name;
#  519|->   FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  520|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  521|     if (rmdir (name) == -1)

Error: COMPILER_WARNING: [#def162] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:520:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  518|     char *name;
#  519|     FFI_ARG_OR_RETURN (sc, char *, name, string, args);
#  520|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  521|     if (rmdir (name) == -1)
#  522|       FFI_RETURN_ERR (sc, gpg_error_from_syserror ());

Error: COMPILER_WARNING: [#def163] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:531:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  529|     FFI_PROLOG ();
#  530|     gnupg_isotime_t timebuf;
#  531|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  532|     gnupg_get_isotime (timebuf);
#  533|     FFI_RETURN_STRING (sc, timebuf);

Error: COMPILER_WARNING: [#def164] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:540:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  538|   {
#  539|     FFI_PROLOG ();
#  540|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  541|     FFI_RETURN_INT (sc, gnupg_get_time ());
#  542|   }

Error: COMPILER_WARNING: [#def165] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:548:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  546|   {
#  547|     FFI_PROLOG ();
#  548|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  549|     FFI_RETURN_INT (sc, getpid ());
#  550|   }

Error: COMPILER_WARNING: [#def166] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:557:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  555|     FFI_PROLOG ();
#  556|     int seed;
#  557|->   FFI_ARG_OR_RETURN (sc, int, seed, number, args);
#  558|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  559|     srand (seed);

Error: COMPILER_WARNING: [#def167] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:558:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  556|     int seed;
#  557|     FFI_ARG_OR_RETURN (sc, int, seed, number, args);
#  558|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  559|     srand (seed);
#  560|     FFI_RETURN (sc);

Error: COMPILER_WARNING: [#def168] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:585:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  583|     FFI_PROLOG ();
#  584|     int scale;
#  585|->   FFI_ARG_OR_RETURN (sc, int, scale, number, args);
#  586|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  587|     FFI_RETURN_INT (sc, random_scaled (scale));

Error: COMPILER_WARNING: [#def169] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:586:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  584|     int scale;
#  585|     FFI_ARG_OR_RETURN (sc, int, scale, number, args);
#  586|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  587|     FFI_RETURN_INT (sc, random_scaled (scale));
#  588|   }

Error: COMPILER_WARNING: [#def170] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:597:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  595|     pointer chunk;
#  596|     char *p;
#  597|->   FFI_ARG_OR_RETURN (sc, int, size, number, args);
#  598|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  599|     if (size < 0)

Error: COMPILER_WARNING: [#def171] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:598:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  596|     char *p;
#  597|     FFI_ARG_OR_RETURN (sc, int, size, number, args);
#  598|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  599|     if (size < 0)
#  600|       return ffi_sprintf (sc, "size must be positive");

Error: COMPILER_WARNING: [#def172] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:602:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  600|       return ffi_sprintf (sc, "size must be positive");
#  601|   
#  602|->   chunk = sc->vptr->mk_counted_string (sc, NULL, size);
#  603|     if (sc->no_memory)
#  604|       FFI_RETURN_ERR (sc, ENOMEM);

Error: COMPILER_WARNING: [#def173] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:606:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  604|       FFI_RETURN_ERR (sc, ENOMEM);
#  605|   
#  606|->   for (p = sc->vptr->string_value (chunk); size; p++, size--)
#  607|       *p = (char) random_scaled (256);
#  608|     FFI_RETURN_POINTER (sc, chunk);

Error: COMPILER_WARNING: [#def174] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:656:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  654|     box->stream = stream;
#  655|     box->closed = 0;
#  656|->   return sc->vptr->mk_foreign_object (sc, &es_object_vtable, box);
#  657|   }
#  658|   

Error: COMPILER_WARNING: [#def175] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:667:15: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  665|       return NULL;
#  666|   
#  667|->   if (sc->vptr->get_foreign_object_vtable (object) != &es_object_vtable)
#  668|       return NULL;
#  669|   

Error: COMPILER_WARNING: [#def176] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:670:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  668|       return NULL;
#  669|   
#  670|->   return sc->vptr->get_foreign_object_data (object);
#  671|   }
#  672|   

Error: COMPILER_WARNING: [#def177] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:681:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  679|     FFI_PROLOG ();
#  680|     struct es_object_box *box;
#  681|->   FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  682|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  683|     err = es_fclose (box->stream);

Error: COMPILER_WARNING: [#def178] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:682:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  680|     struct es_object_box *box;
#  681|     FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  682|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  683|     err = es_fclose (box->stream);
#  684|     if (! err)

Error: COMPILER_WARNING: [#def179] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:700:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  698|     size_t bytes_read;
#  699|   
#  700|->   FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  701|     FFI_ARG_OR_RETURN (sc, size_t, bytes_to_read, number, args);
#  702|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def180] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:701:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  699|   
#  700|     FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  701|->   FFI_ARG_OR_RETURN (sc, size_t, bytes_to_read, number, args);
#  702|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  703|   

Error: COMPILER_WARNING: [#def181] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:702:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  700|     FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  701|     FFI_ARG_OR_RETURN (sc, size_t, bytes_to_read, number, args);
#  702|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  703|   
#  704|     buffer = xtrymalloc (bytes_to_read);

Error: COMPILER_WARNING: [#def182] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:712:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  710|       FFI_RETURN_ERR (sc, err);
#  711|   
#  712|->   result = sc->vptr->mk_counted_string (sc, buffer, bytes_read);
#  713|     xfree (buffer);
#  714|     FFI_RETURN_POINTER (sc, result);

Error: COMPILER_WARNING: [#def183] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:722:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  720|     FFI_PROLOG ();
#  721|     struct es_object_box *box;
#  722|->   FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  723|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  724|   

Error: COMPILER_WARNING: [#def184] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:723:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  721|     struct es_object_box *box;
#  722|     FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  723|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  724|   
#  725|     FFI_RETURN_POINTER (sc, es_feof (box->stream) ? sc->T : sc->F);

Error: COMPILER_WARNING: [#def185] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:736:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  734|     size_t bytes_to_write, bytes_written;
#  735|   
#  736|->   FFI_ARG_OR_RETURN (sc, struct es_object_box *, box, estream, args);
#  737|     /* XXX how to get the length of the string buffer?  scheme strings
#  738|        may contain \0.  */

Error: COMPILER_WARNING: [#def186] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:739:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  737|     /* XXX how to get the length of the string buffer?  scheme strings
#  738|        may contain \0.  */
#  739|->   FFI_ARG_OR_RETURN (sc, const char *, buffer, string, args);
#  740|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  741|   

Error: COMPILER_WARNING: [#def187] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:740:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  738|        may contain \0.  */
#  739|     FFI_ARG_OR_RETURN (sc, const char *, buffer, string, args);
#  740|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  741|   
#  742|     bytes_to_write = strlen (buffer);

Error: COMPILER_WARNING: [#def188] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:773:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  771|     pid_t pid;
#  772|   
#  773|->   FFI_ARG_OR_RETURN (sc, pointer, arguments, list, args);
#  774|     FFI_ARG_OR_RETURN (sc, unsigned int, flags, number, args);
#  775|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def189] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:774:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  772|   
#  773|     FFI_ARG_OR_RETURN (sc, pointer, arguments, list, args);
#  774|->   FFI_ARG_OR_RETURN (sc, unsigned int, flags, number, args);
#  775|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  776|   

Error: COMPILER_WARNING: [#def190] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:775:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  773|     FFI_ARG_OR_RETURN (sc, pointer, arguments, list, args);
#  774|     FFI_ARG_OR_RETURN (sc, unsigned int, flags, number, args);
#  775|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  776|   
#  777|     err = ffi_list2argv (sc, arguments, &argv, &len);

Error: COMPILER_WARNING: [#def191] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:803:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  801|   #define IMS(A, B)                                                       \
#  802|     _cons (sc, es_wrap (sc, (A)), (B), 1)
#  803|->   FFI_RETURN_POINTER (sc, IMS (infp,
#  804|                                 IMS (outfp,
#  805|                                      IMS (errfp,

Error: COMPILER_WARNING: [#def192] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:822:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  820|     pid_t pid;
#  821|   
#  822|->   FFI_ARG_OR_RETURN (sc, pointer, arguments, list, args);
#  823|     FFI_ARG_OR_RETURN (sc, int, infd, number, args);
#  824|     FFI_ARG_OR_RETURN (sc, int, outfd, number, args);

Error: COMPILER_WARNING: [#def193] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:823:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  821|   
#  822|     FFI_ARG_OR_RETURN (sc, pointer, arguments, list, args);
#  823|->   FFI_ARG_OR_RETURN (sc, int, infd, number, args);
#  824|     FFI_ARG_OR_RETURN (sc, int, outfd, number, args);
#  825|     FFI_ARG_OR_RETURN (sc, int, errfd, number, args);

Error: COMPILER_WARNING: [#def194] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:824:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  822|     FFI_ARG_OR_RETURN (sc, pointer, arguments, list, args);
#  823|     FFI_ARG_OR_RETURN (sc, int, infd, number, args);
#  824|->   FFI_ARG_OR_RETURN (sc, int, outfd, number, args);
#  825|     FFI_ARG_OR_RETURN (sc, int, errfd, number, args);
#  826|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def195] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:825:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  823|     FFI_ARG_OR_RETURN (sc, int, infd, number, args);
#  824|     FFI_ARG_OR_RETURN (sc, int, outfd, number, args);
#  825|->   FFI_ARG_OR_RETURN (sc, int, errfd, number, args);
#  826|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  827|   

Error: COMPILER_WARNING: [#def196] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:826:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  824|     FFI_ARG_OR_RETURN (sc, int, outfd, number, args);
#  825|     FFI_ARG_OR_RETURN (sc, int, errfd, number, args);
#  826|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  827|   
#  828|     err = ffi_list2argv (sc, arguments, &argv, &len);

Error: COMPILER_WARNING: [#def197] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:861:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  859|     int retcode;
#  860|   
#  861|->   FFI_ARG_OR_RETURN (sc, const char *, name, string, args);
#  862|     FFI_ARG_OR_RETURN (sc, pid_t, pid, number, args);
#  863|     FFI_ARG_OR_RETURN (sc, int, hang, bool, args);

Error: COMPILER_WARNING: [#def198] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:862:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  860|   
#  861|     FFI_ARG_OR_RETURN (sc, const char *, name, string, args);
#  862|->   FFI_ARG_OR_RETURN (sc, pid_t, pid, number, args);
#  863|     FFI_ARG_OR_RETURN (sc, int, hang, bool, args);
#  864|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def199] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:863:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  861|     FFI_ARG_OR_RETURN (sc, const char *, name, string, args);
#  862|     FFI_ARG_OR_RETURN (sc, pid_t, pid, number, args);
#  863|->   FFI_ARG_OR_RETURN (sc, int, hang, bool, args);
#  864|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  865|     err = gnupg_wait_process (name, pid, hang, &retcode);

Error: COMPILER_WARNING: [#def200] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:864:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  862|     FFI_ARG_OR_RETURN (sc, pid_t, pid, number, args);
#  863|     FFI_ARG_OR_RETURN (sc, int, hang, bool, args);
#  864|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  865|     err = gnupg_wait_process (name, pid, hang, &retcode);
#  866|     if (err == GPG_ERR_GENERAL)

Error: COMPILER_WARNING: [#def201] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:886:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  884|     pointer retcodes_list = sc->NIL;
#  885|   
#  886|->   FFI_ARG_OR_RETURN (sc, pointer, list_names, list, args);
#  887|     FFI_ARG_OR_RETURN (sc, pointer, list_pids, list, args);
#  888|     FFI_ARG_OR_RETURN (sc, int, hang, bool, args);

Error: COMPILER_WARNING: [#def202] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:887:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  885|   
#  886|     FFI_ARG_OR_RETURN (sc, pointer, list_names, list, args);
#  887|->   FFI_ARG_OR_RETURN (sc, pointer, list_pids, list, args);
#  888|     FFI_ARG_OR_RETURN (sc, int, hang, bool, args);
#  889|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def203] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:888:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  886|     FFI_ARG_OR_RETURN (sc, pointer, list_names, list, args);
#  887|     FFI_ARG_OR_RETURN (sc, pointer, list_pids, list, args);
#  888|->   FFI_ARG_OR_RETURN (sc, int, hang, bool, args);
#  889|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  890|   

Error: COMPILER_WARNING: [#def204] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:889:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  887|     FFI_ARG_OR_RETURN (sc, pointer, list_pids, list, args);
#  888|     FFI_ARG_OR_RETURN (sc, int, hang, bool, args);
#  889|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  890|   
#  891|     if (sc->vptr->list_length (sc, list_names)

Error: COMPILER_WARNING: [#def205] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:891:15: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  889|     FFI_ARGS_DONE_OR_RETURN (sc, args);
#  890|   
#  891|->   if (sc->vptr->list_length (sc, list_names)
#  892|         != sc->vptr->list_length (sc, list_pids))
#  893|       return

Error: COMPILER_WARNING: [#def206] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:892:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  890|   
#  891|     if (sc->vptr->list_length (sc, list_names)
#  892|->       != sc->vptr->list_length (sc, list_pids))
#  893|       return
#  894|         sc->vptr->mk_string (sc, "length of first two arguments must match");

Error: COMPILER_WARNING: [#def207] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:894:15: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  892|         != sc->vptr->list_length (sc, list_pids))
#  893|       return
#  894|->       sc->vptr->mk_string (sc, "length of first two arguments must match");
#  895|   
#  896|     err = ffi_list2argv (sc, list_names, &names, &count);

Error: COMPILER_WARNING: [#def208] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:931:16: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  929|     for (i = 0; i < count; i++)
#  930|       retcodes_list =
#  931|->       (sc->vptr->cons) (sc,
#  932|                           sc->vptr->mk_integer (sc,
#  933|                                                 (long) retcodes[count-1-i]),

Error: COMPILER_WARNING: [#def209] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:932:33: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  930|       retcodes_list =
#  931|         (sc->vptr->cons) (sc,
#  932|->                         sc->vptr->mk_integer (sc,
#  933|                                                 (long) retcodes[count-1-i]),
#  934|                           retcodes_list);

Error: COMPILER_WARNING: [#def210] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:948:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  946|     FFI_PROLOG ();
#  947|     int filedes[2];
#  948|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  949|     err = gnupg_create_pipe (filedes);
#  950|   #define IMC(A, B)                                                       \

Error: COMPILER_WARNING: [#def211] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:952:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  950|   #define IMC(A, B)                                                       \
#  951|     _cons (sc, sc->vptr->mk_integer (sc, (unsigned long) (A)), (B), 1)
#  952|->   FFI_RETURN_POINTER (sc, IMC (filedes[0],
#  953|                                 IMC (filedes[1], sc->NIL)));
#  954|   #undef IMC

Error: COMPILER_WARNING: [#def212] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:962:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  960|     FFI_PROLOG ();
#  961|     int filedes[2];
#  962|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  963|     err = gnupg_create_inbound_pipe (filedes, NULL, 0);
#  964|   #define IMC(A, B)                                                       \

Error: COMPILER_WARNING: [#def213] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:966:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  964|   #define IMC(A, B)                                                       \
#  965|     _cons (sc, sc->vptr->mk_integer (sc, (unsigned long) (A)), (B), 1)
#  966|->   FFI_RETURN_POINTER (sc, IMC (filedes[0],
#  967|                                 IMC (filedes[1], sc->NIL)));
#  968|   #undef IMC

Error: COMPILER_WARNING: [#def214] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:976:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  974|     FFI_PROLOG ();
#  975|     int filedes[2];
#  976|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
#  977|     err = gnupg_create_outbound_pipe (filedes, NULL, 0);
#  978|   #define IMC(A, B)                                                       \

Error: COMPILER_WARNING: [#def215] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:980:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
#  978|   #define IMC(A, B)                                                       \
#  979|     _cons (sc, sc->vptr->mk_integer (sc, (unsigned long) (A)), (B), 1)
#  980|->   FFI_RETURN_POINTER (sc, IMC (filedes[0],
#  981|                                 IMC (filedes[1], sc->NIL)));
#  982|   #undef IMC

Error: COMPILER_WARNING: [#def216] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1003:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1001|     size_t chunk;
# 1002|   
# 1003|->   FFI_ARG_OR_RETURN (sc, char *, a_name, string, args);
# 1004|     FFI_ARG_OR_RETURN (sc, char *, b_name, string, args);
# 1005|     FFI_ARG_OR_RETURN (sc, int, binary, bool, args);

Error: COMPILER_WARNING: [#def217] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1004:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1002|   
# 1003|     FFI_ARG_OR_RETURN (sc, char *, a_name, string, args);
# 1004|->   FFI_ARG_OR_RETURN (sc, char *, b_name, string, args);
# 1005|     FFI_ARG_OR_RETURN (sc, int, binary, bool, args);
# 1006|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def218] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1005:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1003|     FFI_ARG_OR_RETURN (sc, char *, a_name, string, args);
# 1004|     FFI_ARG_OR_RETURN (sc, char *, b_name, string, args);
# 1005|->   FFI_ARG_OR_RETURN (sc, int, binary, bool, args);
# 1006|     FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1007|   

Error: COMPILER_WARNING: [#def219] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1006:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1004|     FFI_ARG_OR_RETURN (sc, char *, b_name, string, args);
# 1005|     FFI_ARG_OR_RETURN (sc, int, binary, bool, args);
# 1006|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1007|   
# 1008|     mode = binary ? "rb" : "r";

Error: COMPILER_WARNING (CWE-252): [#def220]
gnupg-2.4.7/tests/gpgscm/ffi.c: scope_hint: In function ‘do_file_equal’
gnupg-2.4.7/tests/gpgscm/ffi.c:1052:3: warning[-Wunused-result]: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’
# 1052 |   fread (b_buf, 1, 1, b_stream);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1050|       }
# 1051|   
# 1052|->   fread (b_buf, 1, 1, b_stream);
# 1053|     if (! feof (b_stream))
# 1054|       goto out;	/* b is longer */

Error: COMPILER_WARNING: [#def221] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1078:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1076|     ssize_t bytes_read;
# 1077|     pointer sinks, sink;
# 1078|->   FFI_ARG_OR_RETURN (sc, int, source, number, args);
# 1079|     sinks = args;
# 1080|     if (sinks == sc->NIL)

Error: COMPILER_WARNING: [#def222] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1083:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1081|       return ffi_sprintf (sc, "need at least one sink");
# 1082|     for (sink = sinks; sink != sc->NIL; sink = pair_cdr (sink), ffi_arg_index++)
# 1083|->     if (! sc->vptr->is_number (pair_car (sink)))
# 1084|         return ffi_sprintf (sc, "%d%s argument is not a number",
# 1085|                             ffi_arg_index, ordinal_suffix (ffi_arg_index));

Error: COMPILER_WARNING: [#def223] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1097:28: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1095|         for (sink = sinks; sink != sc->NIL; sink = pair_cdr (sink))
# 1096|           {
# 1097|->           int fd = sc->vptr->ivalue (pair_car (sink));
# 1098|             char *p = buffer;
# 1099|             ssize_t left = bytes_read;

Error: COMPILER_WARNING: [#def224] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1123:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1121|     ssize_t offset = 0;
# 1122|     char *position;
# 1123|->   FFI_ARG_OR_RETURN (sc, char *, haystack, string, args);
# 1124|     FFI_ARG_OR_RETURN (sc, char, needle, character, args);
# 1125|     if (args != sc->NIL)

Error: COMPILER_WARNING: [#def225] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1124:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1122|     char *position;
# 1123|     FFI_ARG_OR_RETURN (sc, char *, haystack, string, args);
# 1124|->   FFI_ARG_OR_RETURN (sc, char, needle, character, args);
# 1125|     if (args != sc->NIL)
# 1126|       {

Error: COMPILER_WARNING: [#def226] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1127:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1125|     if (args != sc->NIL)
# 1126|       {
# 1127|->       FFI_ARG_OR_RETURN (sc, ssize_t, offset, number, args);
# 1128|         if (offset < 0)
# 1129|           return ffi_sprintf (sc, "offset must be positive");

Error: COMPILER_WARNING: [#def227] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1133:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1131|           return ffi_sprintf (sc, "offset exceeds haystack");
# 1132|       }
# 1133|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1134|   
# 1135|     position = strchr (haystack+offset, needle);

Error: COMPILER_WARNING: [#def228] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1150:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1148|     ssize_t offset = 0;
# 1149|     char *position;
# 1150|->   FFI_ARG_OR_RETURN (sc, char *, haystack, string, args);
# 1151|     FFI_ARG_OR_RETURN (sc, char, needle, character, args);
# 1152|     if (args != sc->NIL)

Error: COMPILER_WARNING: [#def229] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1151:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1149|     char *position;
# 1150|     FFI_ARG_OR_RETURN (sc, char *, haystack, string, args);
# 1151|->   FFI_ARG_OR_RETURN (sc, char, needle, character, args);
# 1152|     if (args != sc->NIL)
# 1153|       {

Error: COMPILER_WARNING: [#def230] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1154:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1152|     if (args != sc->NIL)
# 1153|       {
# 1154|->       FFI_ARG_OR_RETURN (sc, ssize_t, offset, number, args);
# 1155|         if (offset < 0)
# 1156|           return ffi_sprintf (sc, "offset must be positive");

Error: COMPILER_WARNING: [#def231] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1160:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1158|           return ffi_sprintf (sc, "offset exceeds haystack");
# 1159|       }
# 1160|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1161|   
# 1162|     position = strrchr (haystack+offset, needle);

Error: COMPILER_WARNING: [#def232] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1175:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1173|     char *haystack;
# 1174|     char *needle;
# 1175|->   FFI_ARG_OR_RETURN (sc, char *, haystack, string, args);
# 1176|     FFI_ARG_OR_RETURN (sc, char *, needle, string, args);
# 1177|     FFI_ARGS_DONE_OR_RETURN (sc, args);

Error: COMPILER_WARNING: [#def233] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1176:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1174|     char *needle;
# 1175|     FFI_ARG_OR_RETURN (sc, char *, haystack, string, args);
# 1176|->   FFI_ARG_OR_RETURN (sc, char *, needle, string, args);
# 1177|     FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1178|     FFI_RETURN_POINTER (sc, strstr (haystack, needle) ? sc->T : sc->F);

Error: COMPILER_WARNING: [#def234] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1177:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1175|     FFI_ARG_OR_RETURN (sc, char *, haystack, string, args);
# 1176|     FFI_ARG_OR_RETURN (sc, char *, needle, string, args);
# 1177|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1178|     FFI_RETURN_POINTER (sc, strstr (haystack, needle) ? sc->T : sc->F);
# 1179|   }

Error: COMPILER_WARNING: [#def235] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1187:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1185|   {
# 1186|     FFI_PROLOG ();
# 1187|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1188|     FFI_RETURN_INT (sc, verbose);
# 1189|   }

Error: COMPILER_WARNING: [#def236] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1196:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1194|     FFI_PROLOG ();
# 1195|     int new_verbosity, old;
# 1196|->   FFI_ARG_OR_RETURN (sc, int, new_verbosity, number, args);
# 1197|     FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1198|   

Error: COMPILER_WARNING: [#def237] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1197:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1195|     int new_verbosity, old;
# 1196|     FFI_ARG_OR_RETURN (sc, int, new_verbosity, number, args);
# 1197|->   FFI_ARGS_DONE_OR_RETURN (sc, args);
# 1198|   
# 1199|     old = verbose;

Error: COMPILER_WARNING: [#def238] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1211:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1209|     int i;
# 1210|   
# 1211|->   *len = sc->vptr->list_length (sc, list);
# 1212|     *argv = xtrycalloc (*len + 1, sizeof **argv);
# 1213|     if (*argv == NULL)

Error: COMPILER_WARNING: [#def239] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1216:23: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1214|       return gpg_error_from_syserror ();
# 1215|   
# 1216|->   for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1217|       {
# 1218|         if (sc->vptr->is_string (sc->vptr->pair_car (list)))

Error: COMPILER_WARNING: [#def240] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1216:56: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1214|       return gpg_error_from_syserror ();
# 1215|   
# 1216|->   for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1217|       {
# 1218|         if (sc->vptr->is_string (sc->vptr->pair_car (list)))

Error: COMPILER_WARNING: [#def241] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1218:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1216|     for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1217|       {
# 1218|->       if (sc->vptr->is_string (sc->vptr->pair_car (list)))
# 1219|           (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|         else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))

Error: COMPILER_WARNING: [#def242] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1218:40: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1216|     for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1217|       {
# 1218|->       if (sc->vptr->is_string (sc->vptr->pair_car (list)))
# 1219|           (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|         else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))

Error: COMPILER_WARNING: [#def243] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1219:32: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1217|       {
# 1218|         if (sc->vptr->is_string (sc->vptr->pair_car (list)))
# 1219|->         (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|         else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))
# 1221|           (*argv)[i++] = sc->vptr->symname (sc->vptr->pair_car (list));

Error: COMPILER_WARNING: [#def244] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1219:56: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1217|       {
# 1218|         if (sc->vptr->is_string (sc->vptr->pair_car (list)))
# 1219|->         (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|         else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))
# 1221|           (*argv)[i++] = sc->vptr->symname (sc->vptr->pair_car (list));

Error: COMPILER_WARNING: [#def245] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1220:24: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1218|         if (sc->vptr->is_string (sc->vptr->pair_car (list)))
# 1219|           (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|->       else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))
# 1221|           (*argv)[i++] = sc->vptr->symname (sc->vptr->pair_car (list));
# 1222|         else

Error: COMPILER_WARNING: [#def246] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1220:45: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1218|         if (sc->vptr->is_string (sc->vptr->pair_car (list)))
# 1219|           (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|->       else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))
# 1221|           (*argv)[i++] = sc->vptr->symname (sc->vptr->pair_car (list));
# 1222|         else

Error: COMPILER_WARNING: [#def247] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1221:32: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1219|           (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|         else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))
# 1221|->         (*argv)[i++] = sc->vptr->symname (sc->vptr->pair_car (list));
# 1222|         else
# 1223|           {

Error: COMPILER_WARNING: [#def248] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1221:51: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1219|           (*argv)[i++] = sc->vptr->string_value (sc->vptr->pair_car (list));
# 1220|         else if (sc->vptr->is_symbol (sc->vptr->pair_car (list)))
# 1221|->         (*argv)[i++] = sc->vptr->symname (sc->vptr->pair_car (list));
# 1222|         else
# 1223|           {

Error: COMPILER_WARNING: [#def249] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1239:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1237|     int i;
# 1238|   
# 1239|->   *len = sc->vptr->list_length (sc, list);
# 1240|     *intv = xtrycalloc (*len, sizeof **intv);
# 1241|     if (*intv == NULL)

Error: COMPILER_WARNING: [#def250] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1244:23: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1242|       return gpg_error_from_syserror ();
# 1243|   
# 1244|->   for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1245|       {
# 1246|         if (sc->vptr->is_number (sc->vptr->pair_car (list)))

Error: COMPILER_WARNING: [#def251] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1244:56: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1242|       return gpg_error_from_syserror ();
# 1243|   
# 1244|->   for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1245|       {
# 1246|         if (sc->vptr->is_number (sc->vptr->pair_car (list)))

Error: COMPILER_WARNING: [#def252] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1246:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1244|     for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1245|       {
# 1246|->       if (sc->vptr->is_number (sc->vptr->pair_car (list)))
# 1247|           (*intv)[i++] = sc->vptr->ivalue (sc->vptr->pair_car (list));
# 1248|         else

Error: COMPILER_WARNING: [#def253] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1246:40: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1244|     for (i = 0; sc->vptr->is_pair (list); list = sc->vptr->pair_cdr (list))
# 1245|       {
# 1246|->       if (sc->vptr->is_number (sc->vptr->pair_car (list)))
# 1247|           (*intv)[i++] = sc->vptr->ivalue (sc->vptr->pair_car (list));
# 1248|         else

Error: COMPILER_WARNING: [#def254] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1247:32: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1245|       {
# 1246|         if (sc->vptr->is_number (sc->vptr->pair_car (list)))
# 1247|->         (*intv)[i++] = sc->vptr->ivalue (sc->vptr->pair_car (list));
# 1248|         else
# 1249|           {

Error: COMPILER_WARNING: [#def255] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1247:50: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1245|       {
# 1246|         if (sc->vptr->is_number (sc->vptr->pair_car (list)))
# 1247|->         (*intv)[i++] = sc->vptr->ivalue (sc->vptr->pair_car (list));
# 1248|         else
# 1249|           {

Error: COMPILER_WARNING: [#def256] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1308:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1306|     assert (size == written);
# 1307|   
# 1308|->   result = sc->vptr->mk_string (sc, expression);
# 1309|     xfree (expression);
# 1310|     return result;

Error: COMPILER_WARNING: [#def257] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1334:11: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1332|     assert (size == written);
# 1333|   
# 1334|->   sc->vptr->load_string (sc, expression);
# 1335|     xfree (expression);
# 1336|   }

Error: COMPILER_WARNING: [#def258] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1430:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1428|     ffi_define_function_name (sc, "*set-verbose!*", set_verbose);
# 1429|   
# 1430|->   ffi_define (sc, "*argv0*", sc->vptr->mk_string (sc, argv0));
# 1431|     ffi_define (sc, "*scriptname*", sc->vptr->mk_string (sc, scriptname));
# 1432|     for (i = argc - 1; i >= 0; i--)

Error: COMPILER_WARNING: [#def259] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1431:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1429|   
# 1430|     ffi_define (sc, "*argv0*", sc->vptr->mk_string (sc, argv0));
# 1431|->   ffi_define (sc, "*scriptname*", sc->vptr->mk_string (sc, scriptname));
# 1432|     for (i = argc - 1; i >= 0; i--)
# 1433|       {

Error: COMPILER_WARNING: [#def260] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1434:31: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1432|     for (i = argc - 1; i >= 0; i--)
# 1433|       {
# 1434|->       pointer value = sc->vptr->mk_string (sc, argv[i]);
# 1435|         args = (sc->vptr->cons) (sc, value, args);
# 1436|       }

Error: COMPILER_WARNING: [#def261] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1435:23: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1433|       {
# 1434|         pointer value = sc->vptr->mk_string (sc, argv[i]);
# 1435|->       args = (sc->vptr->cons) (sc, value, args);
# 1436|       }
# 1437|     ffi_define (sc, "*args*", args);

Error: COMPILER_WARNING: [#def262] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1442:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1440|     ffi_define (sc, "*pathsep*", sc->vptr->mk_character (sc, ';'));
# 1441|   #else
# 1442|->   ffi_define (sc, "*pathsep*", sc->vptr->mk_character (sc, ':'));
# 1443|   #endif
# 1444|   

Error: COMPILER_WARNING: [#def263] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1470:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1468|   
# 1469|   
# 1470|->   ffi_define (sc, "*stdin*",
# 1471|                 sc->vptr->mk_port_from_file (sc, stdin, port_input));
# 1472|     ffi_define (sc, "*stdout*",

Error: COMPILER_WARNING: [#def264] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1472:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1470|     ffi_define (sc, "*stdin*",
# 1471|                 sc->vptr->mk_port_from_file (sc, stdin, port_input));
# 1472|->   ffi_define (sc, "*stdout*",
# 1473|                 sc->vptr->mk_port_from_file (sc, stdout, port_output));
# 1474|     ffi_define (sc, "*stderr*",

Error: COMPILER_WARNING: [#def265] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1474:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
# 1472|     ffi_define (sc, "*stdout*",
# 1473|                 sc->vptr->mk_port_from_file (sc, stdout, port_output));
# 1474|->   ffi_define (sc, "*stderr*",
# 1475|                 sc->vptr->mk_port_from_file (sc, stderr, port_output));
# 1476|   

Error: CPPCHECK_WARNING (CWE-476): [#def266]
gnupg-2.4.7/tests/gpgscm/scheme.c:5604: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5602|     sc->vptr=&vtbl;
# 5603|   #endif
# 5604|->   sc->gensym_cnt=0;
# 5605|     sc->malloc=malloc;
# 5606|     sc->free=free;

Error: CPPCHECK_WARNING (CWE-476): [#def267]
gnupg-2.4.7/tests/gpgscm/scheme.c:5605: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5603|   #endif
# 5604|     sc->gensym_cnt=0;
# 5605|->   sc->malloc=malloc;
# 5606|     sc->free=free;
# 5607|     sc->sink = &sc->_sink;

Error: CPPCHECK_WARNING (CWE-476): [#def268]
gnupg-2.4.7/tests/gpgscm/scheme.c:5606: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5604|     sc->gensym_cnt=0;
# 5605|     sc->malloc=malloc;
# 5606|->   sc->free=free;
# 5607|     sc->sink = &sc->_sink;
# 5608|     sc->NIL = &sc->_NIL;

Error: CPPCHECK_WARNING (CWE-476): [#def269]
gnupg-2.4.7/tests/gpgscm/scheme.c:5607: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5605|     sc->malloc=malloc;
# 5606|     sc->free=free;
# 5607|->   sc->sink = &sc->_sink;
# 5608|     sc->NIL = &sc->_NIL;
# 5609|     sc->T = &sc->_HASHT;

Error: CPPCHECK_WARNING (CWE-476): [#def270]
gnupg-2.4.7/tests/gpgscm/scheme.c:5608: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5606|     sc->free=free;
# 5607|     sc->sink = &sc->_sink;
# 5608|->   sc->NIL = &sc->_NIL;
# 5609|     sc->T = &sc->_HASHT;
# 5610|     sc->F = &sc->_HASHF;

Error: CPPCHECK_WARNING (CWE-476): [#def271]
gnupg-2.4.7/tests/gpgscm/scheme.c:5609: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5607|     sc->sink = &sc->_sink;
# 5608|     sc->NIL = &sc->_NIL;
# 5609|->   sc->T = &sc->_HASHT;
# 5610|     sc->F = &sc->_HASHF;
# 5611|     sc->EOF_OBJ=&sc->_EOF_OBJ;

Error: CPPCHECK_WARNING (CWE-476): [#def272]
gnupg-2.4.7/tests/gpgscm/scheme.c:5610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5608|     sc->NIL = &sc->_NIL;
# 5609|     sc->T = &sc->_HASHT;
# 5610|->   sc->F = &sc->_HASHF;
# 5611|     sc->EOF_OBJ=&sc->_EOF_OBJ;
# 5612|   

Error: CPPCHECK_WARNING (CWE-476): [#def273]
gnupg-2.4.7/tests/gpgscm/scheme.c:5611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5609|     sc->T = &sc->_HASHT;
# 5610|     sc->F = &sc->_HASHF;
# 5611|->   sc->EOF_OBJ=&sc->_EOF_OBJ;
# 5612|   
# 5613|     sc->free_cell = &sc->_NIL;

Error: CPPCHECK_WARNING (CWE-476): [#def274]
gnupg-2.4.7/tests/gpgscm/scheme.c:5613: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5611|     sc->EOF_OBJ=&sc->_EOF_OBJ;
# 5612|   
# 5613|->   sc->free_cell = &sc->_NIL;
# 5614|     sc->fcells = 0;
# 5615|     sc->inhibit_gc = GC_ENABLED;

Error: CPPCHECK_WARNING (CWE-476): [#def275]
gnupg-2.4.7/tests/gpgscm/scheme.c:5614: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5612|   
# 5613|     sc->free_cell = &sc->_NIL;
# 5614|->   sc->fcells = 0;
# 5615|     sc->inhibit_gc = GC_ENABLED;
# 5616|     sc->reserved_cells = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def276]
gnupg-2.4.7/tests/gpgscm/scheme.c:5615: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5613|     sc->free_cell = &sc->_NIL;
# 5614|     sc->fcells = 0;
# 5615|->   sc->inhibit_gc = GC_ENABLED;
# 5616|     sc->reserved_cells = 0;
# 5617|   #ifndef NDEBUG

Error: CPPCHECK_WARNING (CWE-476): [#def277]
gnupg-2.4.7/tests/gpgscm/scheme.c:5616: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5614|     sc->fcells = 0;
# 5615|     sc->inhibit_gc = GC_ENABLED;
# 5616|->   sc->reserved_cells = 0;
# 5617|   #ifndef NDEBUG
# 5618|     sc->reserved_lineno = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def278]
gnupg-2.4.7/tests/gpgscm/scheme.c:5618: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5616|     sc->reserved_cells = 0;
# 5617|   #ifndef NDEBUG
# 5618|->   sc->reserved_lineno = 0;
# 5619|   #endif
# 5620|     sc->no_memory=0;

Error: CPPCHECK_WARNING (CWE-476): [#def279]
gnupg-2.4.7/tests/gpgscm/scheme.c:5620: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5618|     sc->reserved_lineno = 0;
# 5619|   #endif
# 5620|->   sc->no_memory=0;
# 5621|     sc->inport=sc->NIL;
# 5622|     sc->outport=sc->NIL;

Error: CPPCHECK_WARNING (CWE-476): [#def280]
gnupg-2.4.7/tests/gpgscm/scheme.c:5621: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5619|   #endif
# 5620|     sc->no_memory=0;
# 5621|->   sc->inport=sc->NIL;
# 5622|     sc->outport=sc->NIL;
# 5623|     sc->save_inport=sc->NIL;

Error: CPPCHECK_WARNING (CWE-476): [#def281]
gnupg-2.4.7/tests/gpgscm/scheme.c:5622: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5620|     sc->no_memory=0;
# 5621|     sc->inport=sc->NIL;
# 5622|->   sc->outport=sc->NIL;
# 5623|     sc->save_inport=sc->NIL;
# 5624|     sc->loadport=sc->NIL;

Error: CPPCHECK_WARNING (CWE-476): [#def282]
gnupg-2.4.7/tests/gpgscm/scheme.c:5623: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5621|     sc->inport=sc->NIL;
# 5622|     sc->outport=sc->NIL;
# 5623|->   sc->save_inport=sc->NIL;
# 5624|     sc->loadport=sc->NIL;
# 5625|     sc->nesting=0;

Error: CPPCHECK_WARNING (CWE-476): [#def283]
gnupg-2.4.7/tests/gpgscm/scheme.c:5624: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5622|     sc->outport=sc->NIL;
# 5623|     sc->save_inport=sc->NIL;
# 5624|->   sc->loadport=sc->NIL;
# 5625|     sc->nesting=0;
# 5626|     memset (sc->nesting_stack, 0, sizeof sc->nesting_stack);

Error: CPPCHECK_WARNING (CWE-476): [#def284]
gnupg-2.4.7/tests/gpgscm/scheme.c:5625: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5623|     sc->save_inport=sc->NIL;
# 5624|     sc->loadport=sc->NIL;
# 5625|->   sc->nesting=0;
# 5626|     memset (sc->nesting_stack, 0, sizeof sc->nesting_stack);
# 5627|     sc->interactive_repl=0;

Error: CPPCHECK_WARNING (CWE-476): [#def285]
gnupg-2.4.7/tests/gpgscm/scheme.c:5626: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5624|     sc->loadport=sc->NIL;
# 5625|     sc->nesting=0;
# 5626|->   memset (sc->nesting_stack, 0, sizeof sc->nesting_stack);
# 5627|     sc->interactive_repl=0;
# 5628|     sc->strbuff = sc->malloc(STRBUFFSIZE);

Error: CPPCHECK_WARNING (CWE-476): [#def286]
gnupg-2.4.7/tests/gpgscm/scheme.c:5627: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5625|     sc->nesting=0;
# 5626|     memset (sc->nesting_stack, 0, sizeof sc->nesting_stack);
# 5627|->   sc->interactive_repl=0;
# 5628|     sc->strbuff = sc->malloc(STRBUFFSIZE);
# 5629|     if (sc->strbuff == 0) {

Error: CPPCHECK_WARNING (CWE-476): [#def287]
gnupg-2.4.7/tests/gpgscm/scheme.c:5628: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5626|     memset (sc->nesting_stack, 0, sizeof sc->nesting_stack);
# 5627|     sc->interactive_repl=0;
# 5628|->   sc->strbuff = sc->malloc(STRBUFFSIZE);
# 5629|     if (sc->strbuff == 0) {
# 5630|        sc->no_memory=1;

Error: CPPCHECK_WARNING (CWE-476): [#def288]
gnupg-2.4.7/tests/gpgscm/scheme.c:5629: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5627|     sc->interactive_repl=0;
# 5628|     sc->strbuff = sc->malloc(STRBUFFSIZE);
# 5629|->   if (sc->strbuff == 0) {
# 5630|        sc->no_memory=1;
# 5631|        return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def289]
gnupg-2.4.7/tests/gpgscm/scheme.c:5633: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5631|        return 0;
# 5632|     }
# 5633|->   sc->strbuff_size = STRBUFFSIZE;
# 5634|   
# 5635|     sc->cell_segments = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def290]
gnupg-2.4.7/tests/gpgscm/scheme.c:5635: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
# 5633|     sc->strbuff_size = STRBUFFSIZE;
# 5634|   
# 5635|->   sc->cell_segments = NULL;
# 5636|     if (alloc_cellseg(sc,FIRST_CELLSEGS) != FIRST_CELLSEGS) {
# 5637|       sc->no_memory=1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def291]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:80:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#   78|   
#   79|     sink = fopen (fname_new, "w");
#   80|->   if (! sink)
#   81|       {
#   82|         perror (fname_new);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:80:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#   78|   
#   79|     sink = fopen (fname_new, "w");
#   80|->   if (! sink)
#   81|       {
#   82|         perror (fname_new);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def293]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#   90|           {
#   91|             passphrase = strdup (linebuf);
#   92|->           if (passphrase == NULL)
#   93|               {
#   94|                 perror ("strdup");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def294]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#   90|           {
#   91|             passphrase = strdup (linebuf);
#   92|->           if (passphrase == NULL)
#   93|               {
#   94|                 perror ("strdup");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#   90|           {
#   91|             passphrase = strdup (linebuf);
#   92|->           if (passphrase == NULL)
#   93|               {
#   94|                 perror ("strdup");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#   90|           {
#   91|             passphrase = strdup (linebuf);
#   92|->           if (passphrase == NULL)
#   93|               {
#   94|                 perror ("strdup");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def297]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  100|       }
#  101|   
#  102|->   if (ferror (source))
#  103|       {
#  104|         perror (fname);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  100|       }
#  101|   
#  102|->   if (ferror (source))
#  103|       {
#  104|         perror (fname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  100|       }
#  101|   
#  102|->   if (ferror (source))
#  103|       {
#  104|         perror (fname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  100|       }
#  101|   
#  102|->   if (ferror (source))
#  103|       {
#  104|         perror (fname);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def301]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  106|       }
#  107|   
#  108|->   if (ferror (sink))
#  109|       {
#  110|         perror (fname_new);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  106|       }
#  107|   
#  108|->   if (ferror (sink))
#  109|       {
#  110|         perror (fname_new);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  106|       }
#  107|   
#  108|->   if (ferror (sink))
#  109|       {
#  110|         perror (fname_new);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
 branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
#  106|       }
#  107|   
#  108|->   if (ferror (sink))
#  109|       {
#  110|         perror (fname_new);

Error: COMPILER_WARNING (CWE-252): [#def305]
gnupg-2.4.7/tools/gpg-auth.c: scope_hint: In function ‘getpin’
gnupg-2.4.7/tools/gpg-auth.c:962:3: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
#  962 |   fgets (line, ASSUAN_LINELENGTH, stdin);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  960|       }
#  961|   
#  962|->   fgets (line, ASSUAN_LINELENGTH, stdin);
#  963|     if (split_fields (line, fields, DIM (fields)) < DIM (fields))
#  964|       rc = GPG_ERR_PROTOCOL_VIOLATION;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def306]
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 2)’
gnupg-2.4.7/tools/gpg-mail-tube.c:268:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:274:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:274:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:276:7: branch_true: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:279:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:282:16: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:282:16: acquire_resource: opened here
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: danger: ‘dup2(open("/dev/null", 1), 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  280|           log_fatal ("failed to open '/dev/null': %s\n",
#  281|                      gpg_strerror (gpg_err_code_from_syserror ()));
#  282|->       else if (dup2 (i, 2) == -1)
#  283|           log_fatal ("directing stderr to '/dev/null' failed: %s\n",
#  284|                      gpg_strerror (gpg_err_code_from_syserror ()));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/gpg-mail-tube.c:268:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:274:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:274:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:276:7: branch_true: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:278:11: acquire_resource: opened here
gnupg-2.4.7/tools/gpg-mail-tube.c:279:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:282:16: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  280|           log_fatal ("failed to open '/dev/null': %s\n",
#  281|                      gpg_strerror (gpg_err_code_from_syserror ()));
#  282|->       else if (dup2 (i, 2) == -1)
#  283|           log_fatal ("directing stderr to '/dev/null' failed: %s\n",
#  284|                      gpg_strerror (gpg_err_code_from_syserror ()));

Error: GCC_ANALYZER_WARNING (CWE-686): [#def308]
gnupg-2.4.7/tools/gpg-pair-tool.c:1125:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘size_t’ {{aka ‘long unsigned int’}} but received ‘int’ for variadic argument 4 of ‘arg_ptr’
gnupg-2.4.7/tools/gpg-pair-tool.c:1455:1: enter_function: entry to ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1473:3: branch_false: following ‘false’ branch (when ‘msglen > 79’)...
gnupg-2.4.7/tools/gpg-pair-tool.c:1477:3: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1479:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1486:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1486:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1495:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1495:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1501:8: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1501:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1509:12: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1510:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1516:18: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1523:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1531:9: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1531:9: call_function: calling ‘compute_master_secret’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1531:9: return_function: returning to ‘proc_msg_dhpart2’ from ‘compute_master_secret’
gnupg-2.4.7/tools/gpg-pair-tool.c:1533:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1539:3: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1539:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1539:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1542:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1542:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1545:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1545:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1548:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1548:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1555:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1562:3: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1562:3: call_function: calling ‘hmac_data’ from ‘proc_msg_dhpart2’ with 7 variadic arguments
# 1123|     while ((data = va_arg (arg_ptr, const void *)))
# 1124|       {
# 1125|->       datalen = va_arg (arg_ptr, size_t);
# 1126|         /* log_printhex (data, datalen, "    data:"); */
# 1127|         err = gcry_mac_write (hd, data, datalen);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
gnupg-2.4.7/tools/gpgconf-comp.c:2548:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘option’
gnupg-2.4.7/tools/gpgconf-comp.c:3413:1: enter_function: entry to ‘gc_apply_profile’
gnupg-2.4.7/tools/gpgconf-comp.c:3448:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gnupg-2.4.7/tools/gpgconf-comp.c:3455:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgconf-comp.c:3586:6: branch_true: following ‘true’ branch (when ‘err == 0’)...
gnupg-2.4.7/tools/gpgconf-comp.c:3590:11: branch_true: ...to here
gnupg-2.4.7/tools/gpgconf-comp.c:3593:30: branch_true: following ‘true’ branch (when ‘component_id != 9’)...
gnupg-2.4.7/tools/gpgconf-comp.c:3595:11: branch_true: ...to here
gnupg-2.4.7/tools/gpgconf-comp.c:3595:11: call_function: calling ‘gc_component_change_options’ from ‘gc_apply_profile’
# 2546|   
# 2547|     option = gc_component[component].options;
# 2548|->   for ( ; option->name; option++)
# 2549|       {
# 2550|         if (!option->is_header && option->new_value)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
gnupg-2.4.7/tools/gpgparsemail.c:191:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(sig_fd, 0)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
#  189|         if (sig_fd != 0)
#  190|           {
#  191|->           if (dup2 (sig_fd, 0) == -1)
#  192|               die ("dup2 stdin failed: %s", strerror (errno));
#  193|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
gnupg-2.4.7/tools/gpgparsemail.c:205:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
#  203|         if (fd == -1)
#  204|           die ("can't open '/dev/null': %s", strerror (errno));
#  205|->       if (fd != 1)
#  206|   	{
#  207|             if (dup2 (fd, 1) == -1)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
gnupg-2.4.7/tools/gpgparsemail.c:207:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 1)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
#  205|         if (fd != 1)
#  206|   	{
#  207|->           if (dup2 (fd, 1) == -1)
#  208|               die ("dup2 stderr failed: %s", strerror (errno));
#  209|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def313]
gnupg-2.4.7/tools/gpgparsemail.c:207:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
#  205|         if (fd != 1)
#  206|   	{
#  207|->           if (dup2 (fd, 1) == -1)
#  208|               die ("dup2 stderr failed: %s", strerror (errno));
#  209|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def314]
gnupg-2.4.7/tools/gpgparsemail.c:214:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(rp[1], 2)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
#  212|         if (rp[1] != 2)
#  213|   	{
#  214|-> 	  if (dup2 (rp[1], 2) == -1)
#  215|   	    die ("dup2 stderr failed: %s", strerror (errno));
#  216|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def315]
gnupg-2.4.7/tools/rfc822parse.c:693: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
#  691|     if (valueoff)
#  692|       {
#  693|->       p = strchr (buf, ':');
#  694|         if (!p)
#  695|           *valueoff = 0; /* Oops: should never happen. */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def316]
gnupg-2.4.7/tools/rfc822parse.c:693:11: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
gnupg-2.4.7/tools/rfc822parse.c:660:1: enter_function: entry to ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: call_function: calling ‘find_header’ from ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: return_function: returning to ‘rfc822parse_get_field’ from ‘find_header’
gnupg-2.4.7/tools/rfc822parse.c:668:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/rfc822parse.c:674:15: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:678:13: acquire_memory: allocated here
gnupg-2.4.7/tools/rfc822parse.c:679:6: release_memory: assuming ‘p’ is NULL
gnupg-2.4.7/tools/rfc822parse.c:679:6: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_true: following ‘true’ branch (when ‘valueoff’ is non-NULL)...
gnupg-2.4.7/tools/rfc822parse.c:693:11: branch_true: ...to here
gnupg-2.4.7/tools/rfc822parse.c:693:11: danger: argument 1 (‘p’) NULL where non-null expected
#argument 1 of ‘__builtin_strchr’ must be non-null
#  691|     if (valueoff)
#  692|       {
#  693|->       p = strchr (buf, ':');
#  694|         if (!p)
#  695|           *valueoff = 0; /* Oops: should never happen. */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def317]
gnupg-2.4.7/tools/rfc822parse.c:693:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
gnupg-2.4.7/tools/rfc822parse.c:660:1: enter_function: entry to ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: call_function: calling ‘find_header’ from ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: return_function: returning to ‘rfc822parse_get_field’ from ‘find_header’
gnupg-2.4.7/tools/rfc822parse.c:668:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/rfc822parse.c:674:15: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:679:6: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_true: following ‘true’ branch (when ‘valueoff’ is non-NULL)...
gnupg-2.4.7/tools/rfc822parse.c:693:11: branch_true: ...to here
gnupg-2.4.7/tools/rfc822parse.c:693:11: danger: use of uninitialized value ‘*p’ here
#  691|     if (valueoff)
#  692|       {
#  693|->       p = strchr (buf, ':');
#  694|         if (!p)
#  695|           *valueoff = 0; /* Oops: should never happen. */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def318]
gnupg-2.4.7/tools/watchgnupg.c:305:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:302:12: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:10: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#  303|         if (fd == -1)
#  304|           die ("can't open '/dev/null': %s", strerror (errno));
#  305|->       if (fd != 0 && dup2 (fd, 0) == -1)
#  306|           die ("dup2 stderr failed: %s", strerror (errno));
#  307|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def319]
gnupg-2.4.7/tools/watchgnupg.c:305:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 0)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:22: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:22: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:305:11: danger: ‘dup2(open("/dev/null", 1), 0)’ leaks here; was opened at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
#  303|         if (fd == -1)
#  304|           die ("can't open '/dev/null': %s", strerror (errno));
#  305|->       if (fd != 0 && dup2 (fd, 0) == -1)
#  306|           die ("dup2 stderr failed: %s", strerror (errno));
#  307|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def320]
gnupg-2.4.7/tools/watchgnupg.c:305:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:302:12: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:22: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:11: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#  303|         if (fd == -1)
#  304|           die ("can't open '/dev/null': %s", strerror (errno));
#  305|->       if (fd != 0 && dup2 (fd, 0) == -1)
#  306|           die ("dup2 stderr failed: %s", strerror (errno));
#  307|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
gnupg-2.4.7/tools/watchgnupg.c:309:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(rp[1], 1)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:309:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/watchgnupg.c:309:25: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:309:25: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:309:11: danger: ‘dup2(rp[1], 1)’ leaks here; was opened at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
#  307|   
#  308|         /* Connect stdout to our pipe. */
#  309|->       if (rp[1] != 1 && dup2 (rp[1], 1) == -1)
#  310|           die ("dup2 stdout failed: %s", strerror (errno));
#  311|   

Error: CPPCHECK_WARNING (CWE-476): [#def322]
gnupg-2.4.7/tools/watchgnupg.c:557: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
#  555|         srvr_addr_un.sun_path[sizeof (srvr_addr_un.sun_path) - 1] = 0;
#  556|         addr_un = (struct sockaddr *)&srvr_addr_un;
#  557|->       addrlen_un = SUN_LEN (&srvr_addr_un);
#  558|       }
#  559|     else

Error: COMPILER_WARNING (CWE-252): [#def323]
gnupg-2.4.7/tpm2d/tpm2daemon.c: scope_hint: In function ‘tpm2d_kick_the_loop’
gnupg-2.4.7/tpm2d/tpm2daemon.c:1062:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 1062 |   write (notify_fd, "", 1);
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
# 1060|                  w32_strerror (-1));
# 1061|   #elif defined(HAVE_PSELECT_NO_EINTR)
# 1062|->   write (notify_fd, "", 1);
# 1063|   #else
# 1064|     int ret;

Error: COMPILER_WARNING (CWE-252): [#def324]
gnupg-2.4.7/tpm2d/tpm2daemon.c: scope_hint: In function ‘handle_connections’
gnupg-2.4.7/tpm2d/tpm2daemon.c:1230:11: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 1230 |           read (pipe_fd[0], buf, sizeof buf);
#      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 1228|             char buf[256];
# 1229|   
# 1230|->           read (pipe_fd[0], buf, sizeof buf);
# 1231|           }
# 1232|   #endif

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-88.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegnupg2-2.4.7-3.fc43
store-results-to/tmp/tmp_kvrc4qd/gnupg2-2.4.7-3.fc43.tar.xz
time-created2025-04-25 13:04:47
time-finished2025-04-25 13:09:14
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp_kvrc4qd/gnupg2-2.4.7-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_kvrc4qd/gnupg2-2.4.7-3.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9