libgpg-error-1.56-1.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-563): [#def1]
/usr/bin/gpg-error-config:15:1: warning[SC2034]: includedir appears unused. Verify use (or export if used externally).
#   13|   prefix=/usr
#   14|   exec_prefix=/usr
#   15|-> includedir=/usr/include
#   16|   libdir=/usr/lib
#   17|   

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/gpg-error-config:16:1: warning[SC2034]: libdir appears unused. Verify use (or export if used externally).
#   14|   exec_prefix=/usr
#   15|   includedir=/usr/include
#   16|-> libdir=/usr/lib
#   17|   
#   18|   if echo "$0" | grep gpg-error-config 2>/dev/null >/dev/null; then

Error: SHELLCHECK_WARNING (CWE-563): [#def3]
/usr/bin/gpg-error-config:52:6: warning[SC2034]: optarg appears unused. Verify use (or export if used externally).
#   50|   	    ;;
#   51|   	*)
#   52|-> 	    optarg=
#   53|   	    ;;
#   54|       esac

Error: SHELLCHECK_WARNING (CWE-569): [#def4]
/usr/bin/gpgrt-config:121:3: warning[SC2221]: This pattern always overrides a later one on line 132.
#  119|   	if [ -n "$_reading_attrs" ]; then
#  120|   	    case "$_line" in
#  121|-> 		*:\ *)
#  122|   		    _key="${_line%%:\ *}"
#  123|   		    _value="${_line#*:\ }"

Error: SHELLCHECK_WARNING (CWE-569): [#def5]
/usr/bin/gpgrt-config:132:6: warning[SC2222]: This pattern never matches because of a previous pattern on line 121.
#  130|   EOF2
#  131|   		    ;;
#  132|-> 		*:|*:\ ) ;;
#  133|   		*)
#  134|   		    echo "Error reading $_filename: $_line" 1>&2

Error: SHELLCHECK_WARNING (CWE-563): [#def6]
/usr/bin/gpgrt-config:597:5: warning[SC2034]: VAR_pc_sysrootdir appears unused. Verify use (or export if used externally).
#  595|       VAR_pc_sysrootdir="/"
#  596|   else
#  597|->     VAR_pc_sysrootdir="$PKG_CONFIG_SYSROOT_DIR"
#  598|   fi
#  599|   

Error: SHELLCHECK_WARNING (CWE-156): [#def7]
/usr/bin/gpgrt-config:696:42: warning[SC2046]: Quote this to prevent word splitting.
#  694|   if [ -z "$want_var" ] && [ -z "$want_attr" ]; then
#  695|       if [ -n "$want_cflags" ]; then
#  696|-> 	output="$output${output:+ }$(sysroot -I $(list_only_once $cflags))"
#  697|   	# Backward compatibility to old gpg-error-config
#  698|   	if [ $mt = yes ] && [ -n "$mtcflags" ]; then

Error: SHELLCHECK_WARNING (CWE-156): [#def8]
/usr/bin/gpgrt-config:703:42: warning[SC2046]: Quote this to prevent word splitting.
#  701|       fi
#  702|       if [ -n "$want_libs" ]; then
#  703|-> 	output="$output${output:+ }$(sysroot -L $(list_only_once_for_libs $libs))"
#  704|   	# Backward compatibility to old gpg-error-config
#  705|   	if [ $mt = yes ] && [ -n "$mtlibs" ]; then

Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
libgpg-error-1.56/doc/yat2m.c:341:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*argv, "rb")’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2447:18: acquire_resource: opened here
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  339|     va_list arg_ptr;
#  340|   
#  341|->   fflush (stdout);
#  342|     fprintf (stderr, "%s: ", PGM);
#  343|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
libgpg-error-1.56/doc/yat2m.c:341:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘incfp’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  339|     va_list arg_ptr;
#  340|   
#  341|->   fflush (stdout);
#  342|     fprintf (stderr, "%s: ", PGM);
#  343|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libgpg-error-1.56/doc/yat2m.c:341:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*argv, "rb")’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2447:18: acquire_memory: allocated here
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  339|     va_list arg_ptr;
#  340|   
#  341|->   fflush (stdout);
#  342|     fprintf (stderr, "%s: ", PGM);
#  343|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libgpg-error-1.56/doc/yat2m.c:341:3: warning[-Wanalyzer-malloc-leak]: leak of ‘incfp’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  339|     va_list arg_ptr;
#  340|   
#  341|->   fflush (stdout);
#  342|     fprintf (stderr, "%s: ", PGM);
#  343|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libgpg-error-1.56/doc/yat2m.c:341:3: warning[-Wanalyzer-malloc-leak]: leak of ‘incname’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  339|     va_list arg_ptr;
#  340|   
#  341|->   fflush (stdout);
#  342|     fprintf (stderr, "%s: ", PGM);
#  343|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libgpg-error-1.56/doc/yat2m.c:341:3: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  339|     va_list arg_ptr;
#  340|   
#  341|->   fflush (stdout);
#  342|     fprintf (stderr, "%s: ", PGM);
#  343|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libgpg-error-1.56/doc/yat2m.c:341:3: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup(p)’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  339|     va_list arg_ptr;
#  340|   
#  341|->   fflush (stdout);
#  342|     fprintf (stderr, "%s: ", PGM);
#  343|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
libgpg-error-1.56/doc/yat2m.c:359:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(*argv, "rb")’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2447:18: acquire_resource: opened here
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  357|     va_list arg_ptr;
#  358|   
#  359|->   fflush (stdout);
#  360|     if (strncmp (format, "%s:%d:", 6))
#  361|       fprintf (stderr, "%s: ", PGM);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
libgpg-error-1.56/doc/yat2m.c:359:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘incfp’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  357|     va_list arg_ptr;
#  358|   
#  359|->   fflush (stdout);
#  360|     if (strncmp (format, "%s:%d:", 6))
#  361|       fprintf (stderr, "%s: ", PGM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libgpg-error-1.56/doc/yat2m.c:359:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(*argv, "rb")’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2447:18: acquire_memory: allocated here
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  357|     va_list arg_ptr;
#  358|   
#  359|->   fflush (stdout);
#  360|     if (strncmp (format, "%s:%d:", 6))
#  361|       fprintf (stderr, "%s: ", PGM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libgpg-error-1.56/doc/yat2m.c:359:3: warning[-Wanalyzer-malloc-leak]: leak of ‘incfp’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  357|     va_list arg_ptr;
#  358|   
#  359|->   fflush (stdout);
#  360|     if (strncmp (format, "%s:%d:", 6))
#  361|       fprintf (stderr, "%s: ", PGM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
libgpg-error-1.56/doc/yat2m.c:359:3: warning[-Wanalyzer-malloc-leak]: leak of ‘incname’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  357|     va_list arg_ptr;
#  358|   
#  359|->   fflush (stdout);
#  360|     if (strncmp (format, "%s:%d:", 6))
#  361|       fprintf (stderr, "%s: ", PGM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libgpg-error-1.56/doc/yat2m.c:359:3: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  357|     va_list arg_ptr;
#  358|   
#  359|->   fflush (stdout);
#  360|     if (strncmp (format, "%s:%d:", 6))
#  361|       fprintf (stderr, "%s: ", PGM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libgpg-error-1.56/doc/yat2m.c:359:3: warning[-Wanalyzer-malloc-leak]: leak of ‘xmalloc(1024)’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
#  357|     va_list arg_ptr;
#  358|   
#  359|->   fflush (stdout);
#  360|     if (strncmp (format, "%s:%d:", 6))
#  361|       fprintf (stderr, "%s: ", PGM);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libgpg-error-1.56/doc/yat2m.c:2277:34: warning[-Wanalyzer-malloc-leak]: leak of ‘xstrdup("1")’
libgpg-error-1.56/doc/yat2m.c:2290:1: enter_function: entry to ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2300:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2301:3: call_function: calling ‘add_predefined_macro’ from ‘main’
libgpg-error-1.56/doc/yat2m.c:2301:3: return_function: returning to ‘main’ from ‘add_predefined_macro’
libgpg-error-1.56/doc/yat2m.c:2304:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/doc/yat2m.c:2306:7: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2436:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
libgpg-error-1.56/doc/yat2m.c:2441:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2441:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2441:25: branch_true: ...to here
libgpg-error-1.56/doc/yat2m.c:2445:6: branch_true: following ‘true’ branch...
libgpg-error-1.56/doc/yat2m.c:2448:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/doc/yat2m.c:2450:7: branch_false: ...to here
libgpg-error-1.56/doc/yat2m.c:2450:7: call_function: calling ‘top_parse_file’ from ‘main’
# 2275|         variablelist = next;
# 2276|       }
# 2277|->   for (m=predefinedmacrolist; m; m = m->next)
# 2278|       set_macro (m->name, xstrdup ("1"));
# 2279|     cond_is_active = 1;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def24]
libgpg-error-1.56/src/argparse.c:235:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/argparse.c:3341:1: enter_function: entry to 'dump_option_table'
libgpg-error-1.56/src/argparse.c:3352:6: branch_false: following 'false' branch (when 'nopts != 0')...
libgpg-error-1.56/src/argparse.c:3355:12: branch_false: ...to here
libgpg-error-1.56/src/argparse.c:3356:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/argparse.c:3358:7: branch_true: ...to here
libgpg-error-1.56/src/argparse.c:3358:7: call_function: calling 'writestrings' from 'dump_option_table'
#  233|           {
#  234|             if (custom_outfnc)
#  235|->             custom_outfnc (is_error? 2:1, s);
#  236|             else
#  237|               _gpgrt_fputs (s, is_error? es_stderr : es_stdout);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def25]
libgpg-error-1.56/src/argparse.c:237:13: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/argparse.c:3341:1: enter_function: entry to 'dump_option_table'
libgpg-error-1.56/src/argparse.c:3352:6: branch_false: following 'false' branch (when 'nopts != 0')...
libgpg-error-1.56/src/argparse.c:3355:12: branch_false: ...to here
libgpg-error-1.56/src/argparse.c:3356:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/argparse.c:3358:7: branch_true: ...to here
libgpg-error-1.56/src/argparse.c:3358:7: call_function: calling 'writestrings' from 'dump_option_table'
#  235|               custom_outfnc (is_error? 2:1, s);
#  236|             else
#  237|->             _gpgrt_fputs (s, is_error? es_stderr : es_stdout);
#  238|             count += strlen (s);
#  239|           }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def26]
libgpg-error-1.56/src/argparse.c:237:40: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/argparse.c:3341:1: enter_function: entry to 'dump_option_table'
libgpg-error-1.56/src/argparse.c:3352:6: branch_false: following 'false' branch (when 'nopts != 0')...
libgpg-error-1.56/src/argparse.c:3355:12: branch_false: ...to here
libgpg-error-1.56/src/argparse.c:3356:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/argparse.c:3358:7: branch_true: ...to here
libgpg-error-1.56/src/argparse.c:3358:7: call_function: calling 'writestrings' from 'dump_option_table'
#  235|               custom_outfnc (is_error? 2:1, s);
#  236|             else
#  237|->             _gpgrt_fputs (s, is_error? es_stderr : es_stdout);
#  238|             count += strlen (s);
#  239|           }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def27]
libgpg-error-1.56/src/argparse.c:237:52: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/argparse.c:3305:1: enter_function: entry to 'show_version'
libgpg-error-1.56/src/argparse.c:3311:3: call_function: calling 'writestrings' from 'show_version'
#  235|               custom_outfnc (is_error? 2:1, s);
#  236|             else
#  237|->             _gpgrt_fputs (s, is_error? es_stderr : es_stdout);
#  238|             count += strlen (s);
#  239|           }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def28]
libgpg-error-1.56/src/estream-printf.c:1867:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/estream-printf.c:1919:1: enter_function: entry to '_gpgrt_estream_bsprintf'
libgpg-error-1.56/src/estream-printf.c:1925:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/estream-printf.c:1926:8: call_function: calling '_gpgrt_estream_vasprintf' from '_gpgrt_estream_bsprintf'
# 1865|     parm.alloced = 512;
# 1866|     parm.used = 0;
# 1867|->   parm.buffer = my_printf_realloc (NULL, parm.alloced);
# 1868|     if (!parm.buffer)
# 1869|       {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def29]
libgpg-error-1.56/src/init.c:267:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/init.c:409:1: enter_function: entry to '_gpgrt_strconcat'
libgpg-error-1.56/src/init.c:414:6: branch_false: following 'false' branch (when 's1' is non-NULL)...
libgpg-error-1.56/src/init.c:418:7: branch_false: ...to here
libgpg-error-1.56/src/init.c:418:7: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/init.c:419:16: call_function: calling '_gpgrt_strconcat_core' from '_gpgrt_strconcat'
#  265|   {
#  266|     if (custom_realloc)
#  267|->     return custom_realloc (a, n);
#  268|   
#  269|     if (!n)

Error: CPPCHECK_WARNING (CWE-476): [#def30]
libgpg-error-1.56/src/logging.c:272: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
#  270|                     srvr_addr_un.sun_path[sizeof (srvr_addr_un.sun_path)-1] = 0;
#  271|                     srvr_addr = (struct sockaddr *)&srvr_addr_un;
#  272|->                   addrlen = SUN_LEN (&srvr_addr_un);
#  273|                     name_for_err = srvr_addr_un.sun_path;
#  274|                   }

Error: CPPCHECK_WARNING (CWE-476): [#def31]
libgpg-error-1.56/src/logging.c:284: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
#  282|                     srvr_addr_un.sun_path[sizeof (srvr_addr_un.sun_path)-1] = 0;
#  283|                     srvr_addr = (struct sockaddr *)&srvr_addr_un;
#  284|->                   addrlen = SUN_LEN (&srvr_addr_un);
#  285|                   }
#  286|               }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def32]
libgpg-error-1.56/src/logging.c:485:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/logging.c:1210:1: enter_function: entry to '_gpgrt_log_printf'
libgpg-error-1.56/src/logging.c:1214:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/logging.c:1215:3: call_function: calling '_gpgrt_logv_internal' from '_gpgrt_log_printf'
#  483|     if (name && !strcmp (name, "-"))
#  484|       {
#  485|->       fp = es_stderr;
#  486|         goto leave;
#  487|       }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def33]
libgpg-error-1.56/src/logging.c:488:52: warning[-Wanalyzer-out-of-bounds]: buffer over-read
libgpg-error-1.56/src/logging.c:1331:1: enter_function: entry to '_gpgrt_logv_clock'
libgpg-error-1.56/src/logging.c:1357:3: call_function: calling '_gpgrt_logv_internal' from '_gpgrt_logv_clock'
#  486|         goto leave;
#  487|       }
#  488|->   else if (name && !strncmp (name, "tcp://", 6) && name[6])
#  489|       want_socket = 1;
#  490|   #ifndef HAVE_W32_SYSTEM

Error: GCC_ANALYZER_WARNING (CWE-404): [#def34]
libgpg-error-1.56/src/logging.c:500:10: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/logging.c:1210:1: enter_function: entry to '_gpgrt_log_printf'
libgpg-error-1.56/src/logging.c:1214:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/logging.c:1215:3: call_function: calling '_gpgrt_logv_internal' from '_gpgrt_log_printf'
#  498|       fp = _gpgrt_fdopen (fd, "w");
#  499|     else if (!want_socket)
#  500|->     fp = _gpgrt_fopen (name, "a");
#  501|     else
#  502|       {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def35]
libgpg-error-1.56/src/logging.c:505:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/logging.c:1210:1: enter_function: entry to '_gpgrt_log_printf'
libgpg-error-1.56/src/logging.c:1214:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/logging.c:1215:3: call_function: calling '_gpgrt_logv_internal' from '_gpgrt_log_printf'
#  503|         es_cookie_io_functions_t io = { NULL };
#  504|   
#  505|->       cookie = _gpgrt_malloc (sizeof *cookie + (name? strlen (name):0));
#  506|         if (!cookie)
#  507|           return; /* oops */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def36]
libgpg-error-1.56/src/logging.c:523:10: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/logging.c:1210:1: enter_function: entry to '_gpgrt_log_printf'
libgpg-error-1.56/src/logging.c:1214:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/logging.c:1215:3: call_function: calling '_gpgrt_logv_internal' from '_gpgrt_log_printf'
#  521|     /* On error default to a stderr based estream.  */
#  522|     if (!fp)
#  523|->     fp = es_stderr;
#  524|   
#  525|    leave:

Error: CPPCHECK_WARNING (CWE-664): [#def37]
libgpg-error-1.56/src/logging.c:1324: error[va_list_usedBeforeStarted]: va_list 'dummy_argptr' used before va_start() was called.
# 1322|         static va_list dummy_argptr;
# 1323|   
# 1324|->       _gpgrt_logv_printhex (buffer, length, NULL, dummy_argptr);
# 1325|       }
# 1326|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
libgpg-error-1.56/src/spawn-posix.c:278:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:700:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:700:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  276|     gpg_error_t err = 0;
#  277|   
#  278|->   _gpgrt_pre_syscall ();
#  279|     if (pipe (filedes) == -1)
#  280|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
libgpg-error-1.56/src/spawn-posix.c:278:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:700:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:700:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  276|     gpg_error_t err = 0;
#  277|   
#  278|->   _gpgrt_pre_syscall ();
#  279|     if (pipe (filedes) == -1)
#  280|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
libgpg-error-1.56/src/spawn-posix.c:278:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:726:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:726:12: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  276|     gpg_error_t err = 0;
#  277|   
#  278|->   _gpgrt_pre_syscall ();
#  279|     if (pipe (filedes) == -1)
#  280|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
libgpg-error-1.56/src/spawn-posix.c:278:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:726:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:726:12: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  276|     gpg_error_t err = 0;
#  277|   
#  278|->   _gpgrt_pre_syscall ();
#  279|     if (pipe (filedes) == -1)
#  280|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
libgpg-error-1.56/src/spawn-posix.c:281:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:700:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:700:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  279|     if (pipe (filedes) == -1)
#  280|       {
#  281|->       err = _gpg_err_code_from_syserror ();
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
libgpg-error-1.56/src/spawn-posix.c:281:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:700:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:700:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  279|     if (pipe (filedes) == -1)
#  280|       {
#  281|->       err = _gpg_err_code_from_syserror ();
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
libgpg-error-1.56/src/spawn-posix.c:281:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:726:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:726:12: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  279|     if (pipe (filedes) == -1)
#  280|       {
#  281|->       err = _gpg_err_code_from_syserror ();
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
libgpg-error-1.56/src/spawn-posix.c:281:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:726:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:726:12: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  279|     if (pipe (filedes) == -1)
#  280|       {
#  281|->       err = _gpg_err_code_from_syserror ();
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
libgpg-error-1.56/src/spawn-posix.c:284:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_err[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:726:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:726:12: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }
#  284|->   _gpgrt_post_syscall ();
#  285|   
#  286|     return err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
libgpg-error-1.56/src/spawn-posix.c:284:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_err[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:726:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:726:12: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }
#  284|->   _gpgrt_post_syscall ();
#  285|   
#  286|     return err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
libgpg-error-1.56/src/spawn-posix.c:284:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }
#  284|->   _gpgrt_post_syscall ();
#  285|   
#  286|     return err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
libgpg-error-1.56/src/spawn-posix.c:284:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }
#  284|->   _gpgrt_post_syscall ();
#  285|   
#  286|     return err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
libgpg-error-1.56/src/spawn-posix.c:284:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:700:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:700:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }
#  284|->   _gpgrt_post_syscall ();
#  285|   
#  286|     return err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
libgpg-error-1.56/src/spawn-posix.c:284:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:700:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:700:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
#  282|         filedes[0] = filedes[1] = -1;
#  283|       }
#  284|->   _gpgrt_post_syscall ();
#  285|   
#  286|     return err;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
libgpg-error-1.56/src/spawn-posix.c:365:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", (int)(for_write != 0))'
libgpg-error-1.56/src/spawn-posix.c:398:1: enter_function: entry to 'my_exec'
libgpg-error-1.56/src/spawn-posix.c:404:15: branch_true: following 'true' branch (when 'i != 3')...
libgpg-error-1.56/src/spawn-posix.c:405:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:405:8: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:406:20: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:406:20: call_function: calling 'posix_open_null' from 'my_exec'
libgpg-error-1.56/src/spawn-posix.c:406:20: return_function: returning to 'my_exec' from 'posix_open_null'
libgpg-error-1.56/src/spawn-posix.c:404:15: branch_true: following 'true' branch (when 'i != 3')...
libgpg-error-1.56/src/spawn-posix.c:405:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:405:8: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:406:20: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:406:20: call_function: calling 'posix_open_null' from 'my_exec'
#  363|     int fd;
#  364|   
#  365|->   fd = open ("/dev/null", for_write? O_WRONLY : O_RDONLY);
#  366|     if (fd == -1)
#  367|       _gpgrt_log_fatal ("failed to open '/dev/null': %s\n", strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
libgpg-error-1.56/src/spawn-posix.c:412:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(*act.fd[i], i)'
libgpg-error-1.56/src/spawn-posix.c:404:15: branch_true: following 'true' branch (when 'i != 3')...
libgpg-error-1.56/src/spawn-posix.c:405:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:405:8: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:404:23: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:409:15: branch_true: following 'true' branch (when 'i != 3')...
libgpg-error-1.56/src/spawn-posix.c:410:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:410:8: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:412:13: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:412:13: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:412:12: danger: 'dup2(*act.fd[i], i)' leaks here; was opened at [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
#  410|       if (act->fd[i] != i)
#  411|         {
#  412|->         if (dup2 (act->fd[i], i) == -1)
#  413|             _gpgrt_log_fatal ("dup2 std%s failed: %s\n",
#  414|                               i==0?"in":i==1?"out":"err", strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
libgpg-error-1.56/src/spawn-posix.c:614:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:764:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:764:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:766:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:766:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:768:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:768:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:770:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:770:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:772:7: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:614:12: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/16)
#  612|     argv = xtrycalloc (i+2, sizeof *argv);
#  613|     if (!argv)
#  614|->     return _gpg_err_code_from_syserror ();
#  615|     if (pgmname)
#  616|       argv[0] = strrchr (pgmname, '/');

Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
libgpg-error-1.56/src/spawn-posix.c:753:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:753:3: danger: 'fd_in[0]' leaks here
#  751|       }
#  752|   
#  753|->   _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|     _gpgrt_post_syscall ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def56]
libgpg-error-1.56/src/spawn-posix.c:753:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:753:3: danger: 'fd_in[1]' leaks here
#  751|       }
#  752|   
#  753|->   _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|     _gpgrt_post_syscall ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def57]
libgpg-error-1.56/src/spawn-posix.c:753:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:753:3: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/16)
#  751|       }
#  752|   
#  753|->   _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|     _gpgrt_post_syscall ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
libgpg-error-1.56/src/spawn-posix.c:753:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:753:3: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/16)
#  751|       }
#  752|   
#  753|->   _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|     _gpgrt_post_syscall ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
libgpg-error-1.56/src/spawn-posix.c:755:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:755:3: danger: 'fd_in[0]' leaks here
#  753|     _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|->   _gpgrt_post_syscall ();
#  756|     if (pid == (pid_t)(-1))
#  757|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
libgpg-error-1.56/src/spawn-posix.c:755:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:755:3: danger: 'fd_in[1]' leaks here
#  753|     _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|->   _gpgrt_post_syscall ();
#  756|     if (pid == (pid_t)(-1))
#  757|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
libgpg-error-1.56/src/spawn-posix.c:755:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:755:3: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/16)
#  753|     _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|->   _gpgrt_post_syscall ();
#  756|     if (pid == (pid_t)(-1))
#  757|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
libgpg-error-1.56/src/spawn-posix.c:755:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:755:3: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/16)
#  753|     _gpgrt_pre_syscall ();
#  754|     pid = fork ();
#  755|->   _gpgrt_post_syscall ();
#  756|     if (pid == (pid_t)(-1))
#  757|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
libgpg-error-1.56/src/spawn-posix.c:758:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:758:12: danger: 'fd_in[0]' leaks here
#  756|     if (pid == (pid_t)(-1))
#  757|       {
#  758|->       ec = _gpg_err_code_from_syserror ();
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def64]
libgpg-error-1.56/src/spawn-posix.c:758:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:758:12: danger: 'fd_in[1]' leaks here
#  756|     if (pid == (pid_t)(-1))
#  757|       {
#  758|->       ec = _gpg_err_code_from_syserror ();
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
libgpg-error-1.56/src/spawn-posix.c:758:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:758:12: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/16)
#  756|     if (pid == (pid_t)(-1))
#  757|       {
#  758|->       ec = _gpg_err_code_from_syserror ();
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
libgpg-error-1.56/src/spawn-posix.c:758:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:758:12: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/16)
#  756|     if (pid == (pid_t)(-1))
#  757|       {
#  758|->       ec = _gpg_err_code_from_syserror ();
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
libgpg-error-1.56/src/spawn-posix.c:759:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:759:7: danger: 'fd_in[0]' leaks here
#  757|       {
#  758|         ec = _gpg_err_code_from_syserror ();
#  759|->       _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|           close (fd_in[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
libgpg-error-1.56/src/spawn-posix.c:759:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:759:7: danger: 'fd_in[1]' leaks here
#  757|       {
#  758|         ec = _gpg_err_code_from_syserror ();
#  759|->       _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|           close (fd_in[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
libgpg-error-1.56/src/spawn-posix.c:759:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:759:7: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/16)
#  757|       {
#  758|         ec = _gpg_err_code_from_syserror ();
#  759|->       _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|           close (fd_in[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def70]
libgpg-error-1.56/src/spawn-posix.c:759:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:759:7: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/16)
#  757|       {
#  758|         ec = _gpg_err_code_from_syserror ();
#  759|->       _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|           close (fd_in[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
libgpg-error-1.56/src/spawn-posix.c:761:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:761:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:761:9: danger: 'fd_in[0]' leaks here
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|->         close (fd_in[0]);
#  762|         if (fd_in[1] >= 0)
#  763|           close (fd_in[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
libgpg-error-1.56/src/spawn-posix.c:761:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:761:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:761:9: danger: 'fd_in[1]' leaks here
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|->         close (fd_in[0]);
#  762|         if (fd_in[1] >= 0)
#  763|           close (fd_in[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
libgpg-error-1.56/src/spawn-posix.c:761:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:761:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:761:9: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/16)
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|->         close (fd_in[0]);
#  762|         if (fd_in[1] >= 0)
#  763|           close (fd_in[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
libgpg-error-1.56/src/spawn-posix.c:761:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:761:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:761:9: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/16)
#  759|         _gpgrt_log_info (_("error forking process: %s\n"), _gpg_strerror (ec));
#  760|         if (fd_in[0] >= 0 && fd_in[0] != 0)
#  761|->         close (fd_in[0]);
#  762|         if (fd_in[1] >= 0)
#  763|           close (fd_in[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def75]
libgpg-error-1.56/src/spawn-posix.c:763:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:762:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:763:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:763:9: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/16)
#  761|           close (fd_in[0]);
#  762|         if (fd_in[1] >= 0)
#  763|->         close (fd_in[1]);
#  764|         if (fd_out[0] >= 0)
#  765|           close (fd_out[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
libgpg-error-1.56/src/spawn-posix.c:763:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:762:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:763:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:763:9: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/16)
#  761|           close (fd_in[0]);
#  762|         if (fd_in[1] >= 0)
#  763|->         close (fd_in[1]);
#  764|         if (fd_out[0] >= 0)
#  765|           close (fd_out[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
libgpg-error-1.56/src/spawn-posix.c:765:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:762:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:764:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:764:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:765:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:765:9: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/16)
#  763|           close (fd_in[1]);
#  764|         if (fd_out[0] >= 0)
#  765|->         close (fd_out[0]);
#  766|         if (fd_out[1] >= 0 && fd_out[1] != 1)
#  767|           close (fd_out[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def78]
libgpg-error-1.56/src/spawn-posix.c:765:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:762:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:764:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:764:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:765:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:765:9: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/16)
#  763|           close (fd_in[1]);
#  764|         if (fd_out[0] >= 0)
#  765|->         close (fd_out[0]);
#  766|         if (fd_out[1] >= 0 && fd_out[1] != 1)
#  767|           close (fd_out[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def79]
libgpg-error-1.56/src/spawn-posix.c:767:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:762:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:764:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:764:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:766:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:766:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:767:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:767:9: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/16)
#  765|           close (fd_out[0]);
#  766|         if (fd_out[1] >= 0 && fd_out[1] != 1)
#  767|->         close (fd_out[1]);
#  768|         if (fd_err[0] >= 0)
#  769|           close (fd_err[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def80]
libgpg-error-1.56/src/spawn-posix.c:772:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:760:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:762:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:764:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:764:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:766:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:766:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:768:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:768:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:770:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:770:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:772:7: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:772:7: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/16)
#  770|         if (fd_err[1] >= 0 && fd_err[1] != 2)
#  771|           close (fd_err[1]);
#  772|->       xfree (process);
#  773|         xfree (argv);
#  774|         return ec;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def81]
libgpg-error-1.56/src/spawn-posix.c:773:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_true: following 'true' branch (when 'pid == -1')...
libgpg-error-1.56/src/spawn-posix.c:758:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:762:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:764:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:764:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:766:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:766:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:768:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:768:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:770:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:770:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:772:7: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:773:7: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/16)
#  771|           close (fd_err[1]);
#  772|         xfree (process);
#  773|->       xfree (argv);
#  774|         return ec;
#  775|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
libgpg-error-1.56/src/spawn-posix.c:780:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_true: following 'true' branch (when 'pid == 0')...
libgpg-error-1.56/src/spawn-posix.c:779:11: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:779:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:780:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:780:9: danger: 'fd_in[0]' leaks here
#  778|       {
#  779|         if (fd_in[1] >= 0)
#  780|->         close (fd_in[1]);
#  781|         if (fd_out[0] >= 0)
#  782|           close (fd_out[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
libgpg-error-1.56/src/spawn-posix.c:780:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_true: following 'true' branch (when 'pid == 0')...
libgpg-error-1.56/src/spawn-posix.c:779:11: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:779:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:780:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:780:9: danger: 'fd_in[1]' leaks here
#  778|       {
#  779|         if (fd_in[1] >= 0)
#  780|->         close (fd_in[1]);
#  781|         if (fd_out[0] >= 0)
#  782|           close (fd_out[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
libgpg-error-1.56/src/spawn-posix.c:780:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_true: following 'true' branch (when 'pid == 0')...
libgpg-error-1.56/src/spawn-posix.c:779:11: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:779:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:780:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:780:9: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/16)
#  778|       {
#  779|         if (fd_in[1] >= 0)
#  780|->         close (fd_in[1]);
#  781|         if (fd_out[0] >= 0)
#  782|           close (fd_out[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
libgpg-error-1.56/src/spawn-posix.c:780:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_true: following 'true' branch (when 'pid == 0')...
libgpg-error-1.56/src/spawn-posix.c:779:11: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:779:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:780:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:780:9: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/16)
#  778|       {
#  779|         if (fd_in[1] >= 0)
#  780|->         close (fd_in[1]);
#  781|         if (fd_out[0] >= 0)
#  782|           close (fd_out[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def86]
libgpg-error-1.56/src/spawn-posix.c:782:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_true: following 'true' branch (when 'pid == 0')...
libgpg-error-1.56/src/spawn-posix.c:779:11: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:779:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:781:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:781:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:782:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:782:9: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/16)
#  780|           close (fd_in[1]);
#  781|         if (fd_out[0] >= 0)
#  782|->         close (fd_out[0]);
#  783|         if (fd_err[0] >= 0)
#  784|           close (fd_err[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def87]
libgpg-error-1.56/src/spawn-posix.c:782:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_true: following 'true' branch (when 'pid == 0')...
libgpg-error-1.56/src/spawn-posix.c:779:11: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:779:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:781:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:781:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:782:9: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:782:9: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/16)
#  780|           close (fd_in[1]);
#  781|         if (fd_out[0] >= 0)
#  782|->         close (fd_out[0]);
#  783|         if (fd_err[0] >= 0)
#  784|           close (fd_err[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
libgpg-error-1.56/src/spawn-posix.c:805:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: following 'false' branch (when 'pid != 0')...
libgpg-error-1.56/src/spawn-posix.c:805:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:805:3: danger: 'fd_in[0]' leaks here
#  803|       }
#  804|   
#  805|->   xfree (argv);
#  806|     process->pid = pid;
#  807|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
libgpg-error-1.56/src/spawn-posix.c:805:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_in[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:677:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:677:10: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:679:16: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:679:16: call_function: calling 'do_create_pipe' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:679:16: return_function: returning to '_gpgrt_process_spawn' from 'do_create_pipe'
libgpg-error-1.56/src/spawn-posix.c:680:14: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:698:11: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:698:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:712:16: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: following 'false' branch (when 'pid != 0')...
libgpg-error-1.56/src/spawn-posix.c:805:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:805:3: danger: 'fd_in[1]' leaks here
#  803|       }
#  804|   
#  805|->   xfree (argv);
#  806|     process->pid = pid;
#  807|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def90]
libgpg-error-1.56/src/spawn-posix.c:805:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[0]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:672:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: following 'false' branch (when 'pid != 0')...
libgpg-error-1.56/src/spawn-posix.c:805:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:805:3: danger: 'fd_out[0]' leaks here; was opened at [(17)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/16)
#  803|       }
#  804|   
#  805|->   xfree (argv);
#  806|     process->pid = pid;
#  807|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def91]
libgpg-error-1.56/src/spawn-posix.c:805:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'fd_out[1]'
libgpg-error-1.56/src/spawn-posix.c:573:1: enter_function: entry to '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:613:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:615:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:626:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:653:13: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:654:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:660:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:663:6: branch_true: following 'true' branch...
libgpg-error-1.56/src/spawn-posix.c:665:12: branch_true: ...to here
libgpg-error-1.56/src/spawn-posix.c:665:12: call_function: calling 'do_create_socketpair' from '_gpgrt_process_spawn'
libgpg-error-1.56/src/spawn-posix.c:665:12: return_function: returning to '_gpgrt_process_spawn' from 'do_create_socketpair'
libgpg-error-1.56/src/spawn-posix.c:666:10: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:672:19: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:673:19: acquire_resource: opened here
libgpg-error-1.56/src/spawn-posix.c:724:6: branch_false: following 'false' branch...
libgpg-error-1.56/src/spawn-posix.c:742:12: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:756:6: branch_false: following 'false' branch (when 'pid != -1')...
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:777:6: branch_false: following 'false' branch (when 'pid != 0')...
libgpg-error-1.56/src/spawn-posix.c:805:3: branch_false: ...to here
libgpg-error-1.56/src/spawn-posix.c:805:3: danger: 'fd_out[1]' leaks here; was opened at [(17)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/16)
#  803|       }
#  804|   
#  805|->   xfree (argv);
#  806|     process->pid = pid;
#  807|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def92]
libgpg-error-1.56/src/stringutils.c:82:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/stringutils.c:238:1: enter_function: entry to '_gpgrt_absfnameconcat'
libgpg-error-1.56/src/stringutils.c:243:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/stringutils.c:244:12: call_function: calling '_gpgrt_vfnameconcat' from '_gpgrt_absfnameconcat'
#   80|         if (argc >= DIM (argv)-1)
#   81|           {
#   82|->           _gpg_err_set_errno (EINVAL);
#   83|             return NULL;
#   84|           }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def93]
libgpg-error-1.56/src/stringutils.c:95:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/stringutils.c:238:1: enter_function: entry to '_gpgrt_absfnameconcat'
libgpg-error-1.56/src/stringutils.c:243:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/stringutils.c:244:12: call_function: calling '_gpgrt_vfnameconcat' from '_gpgrt_absfnameconcat'
#   93|           {
#   94|             /* This is the "~/" or "~" case.  */
#   95|->           home_buffer = _gpgrt_getenv ("HOME");
#   96|             if (!home_buffer)
#   97|               home_buffer = _gpgrt_getpwdir (NULL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def94]
libgpg-error-1.56/src/stringutils.c:97:27: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/stringutils.c:238:1: enter_function: entry to '_gpgrt_absfnameconcat'
libgpg-error-1.56/src/stringutils.c:243:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/stringutils.c:244:12: call_function: calling '_gpgrt_vfnameconcat' from '_gpgrt_absfnameconcat'
#   95|             home_buffer = _gpgrt_getenv ("HOME");
#   96|             if (!home_buffer)
#   97|->             home_buffer = _gpgrt_getpwdir (NULL);
#   98|             home = home_buffer;
#   99|             if (home && *home)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def95]
libgpg-error-1.56/src/stringutils.c:107:18: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/stringutils.c:238:1: enter_function: entry to '_gpgrt_absfnameconcat'
libgpg-error-1.56/src/stringutils.c:243:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/stringutils.c:244:12: call_function: calling '_gpgrt_vfnameconcat' from '_gpgrt_absfnameconcat'
#  105|             char *user;
#  106|   
#  107|->           user = _gpgrt_strdup (first_part+1);
#  108|             if (!user)
#  109|               return NULL;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def96]
libgpg-error-1.56/src/stringutils.c:116:32: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/stringutils.c:238:1: enter_function: entry to '_gpgrt_absfnameconcat'
libgpg-error-1.56/src/stringutils.c:243:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/stringutils.c:244:12: call_function: calling '_gpgrt_vfnameconcat' from '_gpgrt_absfnameconcat'
#  114|             skip = 1 + strlen (user);
#  115|   
#  116|->           home = home_buffer = _gpgrt_getpwdir (user);
#  117|             xfree (user);
#  118|             if (home)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def97]
libgpg-error-1.56/src/stringutils.c:117:11: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/stringutils.c:238:1: enter_function: entry to '_gpgrt_absfnameconcat'
libgpg-error-1.56/src/stringutils.c:243:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/stringutils.c:244:12: call_function: calling '_gpgrt_vfnameconcat' from '_gpgrt_absfnameconcat'
#  115|   
#  116|             home = home_buffer = _gpgrt_getpwdir (user);
#  117|->           xfree (user);
#  118|             if (home)
#  119|               n += strlen (home);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
libgpg-error-1.56/src/sysutils.c:50:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'd'
libgpg-error-1.56/src/sysutils.c:47:11: acquire_resource: opened here
libgpg-error-1.56/src/sysutils.c:48:6: branch_false: following 'false' branch (when 'd >= 0')...
libgpg-error-1.56/src/sysutils.c:50:3: branch_false: ...to here
libgpg-error-1.56/src/sysutils.c:50:3: danger: 'd' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   48|     if (d < 0)
#   49|       return 0;
#   50|->   close (d);
#   51|     return 1;
#   52|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def99]
libgpg-error-1.56/src/visibility.c:554:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:553:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:554:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  552|   
#  553|     va_start (ap, format);
#  554|->   rc = _gpgrt_vfprintf (es_stdout, NULL, NULL, format, ap);
#  555|     va_end (ap);
#  556|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def100]
libgpg-error-1.56/src/visibility.c:554:25: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:553:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:554:25: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  552|   
#  553|     va_start (ap, format);
#  554|->   rc = _gpgrt_vfprintf (es_stdout, NULL, NULL, format, ap);
#  555|     va_end (ap);
#  556|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def101]
libgpg-error-1.56/src/visibility.c:567:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:566:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:567:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  565|   
#  566|     va_start (ap, format);
#  567|->   rc = _gpgrt_vfprintf_unlocked (es_stdout, NULL, NULL, format, ap);
#  568|     va_end (ap);
#  569|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def102]
libgpg-error-1.56/src/visibility.c:567:34: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:566:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:567:34: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  565|   
#  566|     va_start (ap, format);
#  567|->   rc = _gpgrt_vfprintf_unlocked (es_stdout, NULL, NULL, format, ap);
#  568|     va_end (ap);
#  569|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def103]
libgpg-error-1.56/src/visibility.c:581:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:580:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:581:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  579|   
#  580|     va_start (ap, format);
#  581|->   rc = _gpgrt_vfprintf (stream, NULL, NULL, format, ap);
#  582|     va_end (ap);
#  583|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def104]
libgpg-error-1.56/src/visibility.c:595:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:594:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:595:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  593|   
#  594|     va_start (ap, format);
#  595|->   rc = _gpgrt_vfprintf_unlocked (stream, NULL, NULL, format, ap);
#  596|     va_end (ap);
#  597|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def105]
libgpg-error-1.56/src/visibility.c:610:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:609:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:610:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  608|   
#  609|     va_start (ap, format);
#  610|->   rc = _gpgrt_vfprintf (stream, sf, sfvalue, format, ap);
#  611|     va_end (ap);
#  612|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def106]
libgpg-error-1.56/src/visibility.c:625:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:624:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:625:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  623|   
#  624|     va_start (ap, format);
#  625|->   rc = _gpgrt_vfprintf_unlocked (stream, sf, sfvalue, format, ap);
#  626|     va_end (ap);
#  627|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def107]
libgpg-error-1.56/src/visibility.c:705:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:704:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:705:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  703|   
#  704|     va_start (ap, format);
#  705|->   rc = _gpgrt_estream_vasprintf (r_buf, format, ap);
#  706|     va_end (ap);
#  707|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def108]
libgpg-error-1.56/src/visibility.c:725:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:724:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:725:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  723|   
#  724|     va_start (ap, format);
#  725|->   rc = _gpgrt_estream_vasprintf (&buf, format, ap);
#  726|     va_end (ap);
#  727|     if (rc < 0)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def109]
libgpg-error-1.56/src/visibility.c:751:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:750:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:751:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  749|   
#  750|     va_start (arg_ptr, format);
#  751|->   rc = _gpgrt_estream_vsnprintf (buf, bufsize, format, arg_ptr);
#  752|     va_end (arg_ptr);
#  753|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def110]
libgpg-error-1.56/src/visibility.c:807:16: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:802:6: branch_false: following 'false' branch (when 's1' is non-NULL)...
libgpg-error-1.56/src/visibility.c:806:7: branch_false: ...to here
libgpg-error-1.56/src/visibility.c:806:7: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:807:16: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  805|       {
#  806|         va_start (arg_ptr, s1);
#  807|->       result = _gpgrt_strconcat_core (s1, arg_ptr);
#  808|         va_end (arg_ptr);
#  809|       }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def111]
libgpg-error-1.56/src/visibility.c:978:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:977:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:978:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  976|   
#  977|     va_start (arg_ptr, fmt) ;
#  978|->   _gpgrt_logv (level, fmt, arg_ptr);
#  979|     va_end (arg_ptr);
#  980|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def112]
libgpg-error-1.56/src/visibility.c:1018:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1017:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1018:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1016|   
# 1017|     va_start (arg_ptr, fmt);
# 1018|->   _gpgrt_logv (GPGRT_LOGLVL_INFO, fmt, arg_ptr);
# 1019|     va_end (arg_ptr);
# 1020|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def113]
libgpg-error-1.56/src/visibility.c:1028:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1027:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1028:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1026|   
# 1027|     va_start (arg_ptr, fmt);
# 1028|->   _gpgrt_logv (GPGRT_LOGLVL_ERROR, fmt, arg_ptr);
# 1029|     va_end (arg_ptr);
# 1030|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def114]
libgpg-error-1.56/src/visibility.c:1038:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1037:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1038:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1036|   
# 1037|     va_start (arg_ptr, fmt);
# 1038|->   _gpgrt_logv (GPGRT_LOGLVL_FATAL, fmt, arg_ptr);
# 1039|     va_end (arg_ptr);
# 1040|     _gpgrt_abort (); /* Never called; just to make the compiler happy.  */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def115]
libgpg-error-1.56/src/visibility.c:1049:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1048:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1049:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1047|   
# 1048|     va_start (arg_ptr, fmt);
# 1049|->   _gpgrt_logv (GPGRT_LOGLVL_BUG, fmt, arg_ptr);
# 1050|     va_end (arg_ptr);
# 1051|     _gpgrt_abort (); /* Never called; just to make the compiler happy.  */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def116]
libgpg-error-1.56/src/visibility.c:1060:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1059:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1060:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1058|   
# 1059|     va_start (arg_ptr, fmt);
# 1060|->   _gpgrt_logv (GPGRT_LOGLVL_DEBUG, fmt, arg_ptr);
# 1061|     va_end (arg_ptr);
# 1062|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def117]
libgpg-error-1.56/src/visibility.c:1070:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1069:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1070:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1068|   
# 1069|     va_start (arg_ptr, fmt);
# 1070|->   _gpgrt_logv_internal (GPGRT_LOGLVL_DEBUG, 0, string, NULL, fmt, arg_ptr);
# 1071|     va_end (arg_ptr);
# 1072|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def118]
libgpg-error-1.56/src/visibility.c:1080:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1079:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1080:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1078|   
# 1079|     va_start (arg_ptr, fmt);
# 1080|->   _gpgrt_logv (fmt ? GPGRT_LOGLVL_CONT : GPGRT_LOGLVL_BEGIN, fmt, arg_ptr);
# 1081|     va_end (arg_ptr);
# 1082|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def119]
libgpg-error-1.56/src/visibility.c:1096:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1095:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1096:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1094|   
# 1095|     va_start (arg_ptr, fmt);
# 1096|->   _gpgrt_logv_printhex (buffer, length, fmt, arg_ptr);
# 1097|     va_end (arg_ptr);
# 1098|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def120]
libgpg-error-1.56/src/visibility.c:1106:3: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1105:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1106:3: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1104|   
# 1105|     va_start (arg_ptr, fmt);
# 1106|->   _gpgrt_logv_clock (fmt, arg_ptr);
# 1107|     va_end (arg_ptr);
# 1108|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def121]
libgpg-error-1.56/src/visibility.c:1244:8: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1243:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1244:8: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 1242|   
# 1243|     va_start (arg_ptr, request);
# 1244|->   ec = _gpgrt_process_vctl (process, request, arg_ptr);
# 1245|     va_end (arg_ptr);
# 1246|     return ec;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def122]
libgpg-error-1.56/src/visibility.c:1329:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1328:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1329:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1327|   
# 1328|     va_start (arg_ptr, first);
# 1329|->   result = _gpgrt_vfnameconcat (0, first, arg_ptr);
# 1330|     va_end (arg_ptr);
# 1331|     return result;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def123]
libgpg-error-1.56/src/visibility.c:1341:12: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libgpg-error-1.56/src/visibility.c:1340:3: acquire_resource: 'va_start' called here
libgpg-error-1.56/src/visibility.c:1341:12: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 1339|   
# 1340|     va_start (arg_ptr, first);
# 1341|->   result = _gpgrt_vfnameconcat (1, first, arg_ptr);
# 1342|     va_end (arg_ptr);
# 1343|     return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
libgpg-error-1.56/tests/t-logging.c:77:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
libgpg-error-1.56/tests/t-logging.c:211:1: enter_function: entry to ‘main’
libgpg-error-1.56/tests/t-logging.c:236:6: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-logging.c:238:3: branch_false: ...to here
libgpg-error-1.56/tests/t-logging.c:240:3: call_function: calling ‘check_log_info’ from ‘main’
#   75|           die ("malloc failed at line %d\n", __LINE__);
#   76|   
#   77|->       nread = gpgrt_fread (buffer + buflen, 1, NCHUNK, stream);
#   78|         if (nread < NCHUNK && gpgrt_ferror (stream))
#   79|           die ("fread failed at line %d: %s\n", __LINE__,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
libgpg-error-1.56/tests/t-logging.c:78:29: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
libgpg-error-1.56/tests/t-logging.c:211:1: enter_function: entry to ‘main’
libgpg-error-1.56/tests/t-logging.c:236:6: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-logging.c:238:3: branch_false: ...to here
libgpg-error-1.56/tests/t-logging.c:240:3: call_function: calling ‘check_log_info’ from ‘main’
#   76|   
#   77|         nread = gpgrt_fread (buffer + buflen, 1, NCHUNK, stream);
#   78|->       if (nread < NCHUNK && gpgrt_ferror (stream))
#   79|           die ("fread failed at line %d: %s\n", __LINE__,
#   80|                gpg_strerror (gpg_err_code_from_syserror ()));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def126]
libgpg-error-1.56/tests/t-poll.c:211:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘filedes[0]’
libgpg-error-1.56/tests/t-poll.c:387:1: enter_function: entry to ‘main’
libgpg-error-1.56/tests/t-poll.c:391:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/tests/t-poll.c:393:7: branch_true: ...to here
libgpg-error-1.56/tests/t-poll.c:421:6: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-poll.c:427:3: branch_false: ...to here
libgpg-error-1.56/tests/t-poll.c:428:3: call_function: calling ‘create_pipe’ from ‘main’
#  209|   #endif
#  210|   
#  211|->   *r_in = es_sysopen (&syshd[0], "r,pollable");
#  212|     if (!*r_in)
#  213|       {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def127]
libgpg-error-1.56/tests/t-poll.c:211:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘filedes[1]’
libgpg-error-1.56/tests/t-poll.c:387:1: enter_function: entry to ‘main’
libgpg-error-1.56/tests/t-poll.c:391:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
libgpg-error-1.56/tests/t-poll.c:393:7: branch_true: ...to here
libgpg-error-1.56/tests/t-poll.c:421:6: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-poll.c:427:3: branch_false: ...to here
libgpg-error-1.56/tests/t-poll.c:428:3: call_function: calling ‘create_pipe’ from ‘main’
#  209|   #endif
#  210|   
#  211|->   *r_in = es_sysopen (&syshd[0], "r,pollable");
#  212|     if (!*r_in)
#  213|       {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
libgpg-error-1.56/tests/t-printf.c:68:15: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
libgpg-error-1.56/tests/t-printf.c:519:1: enter_function: entry to ‘check_fwrite’
libgpg-error-1.56/tests/t-printf.c:526:6: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-printf.c:529:3: branch_false: ...to here
libgpg-error-1.56/tests/t-printf.c:531:12: call_function: calling ‘stream_to_string’ from ‘check_fwrite’
#   66|           die ("malloc failed at line %d\n", __LINE__);
#   67|   
#   68|->       nread = gpgrt_fread (buffer + buflen, 1, NCHUNK, stream);
#   69|         if (nread < NCHUNK && gpgrt_ferror (stream))
#   70|           die ("fread failed at line %d: %s\n", __LINE__, strerror (errno));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
libgpg-error-1.56/tests/t-printf.c:69:29: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
libgpg-error-1.56/tests/t-printf.c:519:1: enter_function: entry to ‘check_fwrite’
libgpg-error-1.56/tests/t-printf.c:526:6: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-printf.c:529:3: branch_false: ...to here
libgpg-error-1.56/tests/t-printf.c:531:12: call_function: calling ‘stream_to_string’ from ‘check_fwrite’
#   67|   
#   68|         nread = gpgrt_fread (buffer + buflen, 1, NCHUNK, stream);
#   69|->       if (nread < NCHUNK && gpgrt_ferror (stream))
#   70|           die ("fread failed at line %d: %s\n", __LINE__, strerror (errno));
#   71|         buflen += nread;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def130]
libgpg-error-1.56/tests/t-printf.c:119:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libgpg-error-1.56/tests/t-printf.c:544:1: enter_function: entry to ‘main’
libgpg-error-1.56/tests/t-printf.c:548:6: branch_false: following ‘false’ branch (when ‘argc == 0’)...
 branch_false: ...to here
libgpg-error-1.56/tests/t-printf.c:552:10: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-printf.c:578:3: branch_false: ...to here
libgpg-error-1.56/tests/t-printf.c:579:6: branch_false: following ‘false’ branch...
libgpg-error-1.56/tests/t-printf.c:585:3: branch_false: ...to here
libgpg-error-1.56/tests/t-printf.c:585:3: call_function: calling ‘run_tests’ from ‘main’
#  117|     errno = ENOENT;
#  118|     va_start (arg_ptr, format);
#  119|->   rc2 = gpgrt_vasprintf (&buf2, format, arg_ptr);
#  120|     va_end (arg_ptr);
#  121|     if (rc2 == -1)

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-92.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibgpg-error-1.56-1.fc44
store-results-to/tmp/tmpyhulodol/libgpg-error-1.56-1.fc44.tar.xz
time-created2025-10-28 18:58:19
time-finished2025-10-28 19:00:20
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpyhulodol/libgpg-error-1.56-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpyhulodol/libgpg-error-1.56-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9