gnupg2-2.4.7-3.fc43
List of Findings
Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/gnupg2.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
Error: SHELLCHECK_WARNING (CWE-571): [#def2]
/etc/profile.d/gnupg2.sh:1:8: warning[SC2155]: Declare and assign separately to avoid masking return values.
Error: SHELLCHECK_WARNING (CWE-569): [#def3]
/usr/bin/addgnupghome:118:13: warning[SC2048]: Use "$@" (with quotes) to prevent whitespace problems.
Error: SHELLCHECK_WARNING (CWE-477): [#def4]
/usr/bin/applygnupgdefaults:34:23: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING: [#def5]
/usr/bin/applygnupgdefaults:36:19: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING: [#def6]
/usr/bin/applygnupgdefaults:36:26: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING: [#def7]
/usr/bin/applygnupgdefaults:36:33: warning[SC3048]: In POSIX sh, prefixing signal names with 'SIG' is undefined.
Error: SHELLCHECK_WARNING (CWE-477): [#def8]
/usr/bin/applygnupgdefaults:38:19: warning[SC2166]: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
Error: SHELLCHECK_WARNING (CWE-156): [#def9]
/usr/bin/applygnupgdefaults:57:6: warning[SC2046]: Quote this to prevent word splitting.
Error: SHELLCHECK_WARNING (CWE-563): [#def10]
/usr/bin/applygnupgdefaults:63:30: warning[SC2034]: dmy_a appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def11]
/usr/bin/applygnupgdefaults:63:40: warning[SC2034]: dmy_c appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def12]
/usr/bin/applygnupgdefaults:63:46: warning[SC2034]: dmy_d appears unused. Verify use (or export if used externally).
Error: SHELLCHECK_WARNING (CWE-563): [#def13]
/usr/bin/applygnupgdefaults:63:63: warning[SC2034]: dmy_rest appears unused. Verify use (or export if used externally).
Error: GCC_ANALYZER_WARNING (CWE-457): [#def14]
gnupg-2.4.7/agent/call-pinentry.c:1367:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*thread_p’
gnupg-2.4.7/agent/call-pinentry.c:2034:1: enter_function: entry to ‘popup_message_thread’
gnupg-2.4.7/agent/call-pinentry.c:2040:8: call_function: calling ‘watch_sock_start’ from ‘popup_message_thread’
gnupg-2.4.7/agent/call-pinentry.c:2040:8: return_function: returning to ‘popup_message_thread’ from ‘watch_sock_start’
gnupg-2.4.7/agent/call-pinentry.c:2041:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/call-pinentry.c:2048:3: branch_false: ...to here
gnupg-2.4.7/agent/call-pinentry.c:2050:3: call_function: calling ‘watch_sock_end’ from ‘popup_message_thread’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def15]
gnupg-2.4.7/agent/call-scd.c:602:11: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gnupg-2.4.7/agent/call-scd.c:590:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/call-scd.c:595:8: branch_false: ...to here
gnupg-2.4.7/agent/call-scd.c:595:17: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/call-scd.c:598:10: branch_true: ...to here
gnupg-2.4.7/agent/call-scd.c:598:10: branch_false: following ‘false’ branch...
branch_false: ...to here
gnupg-2.4.7/agent/call-scd.c:600:17: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/call-scd.c:602:11: danger: out-of-bounds write from byte 1002 till byte 1009 but ‘line’ ends at byte 1002
Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
gnupg-2.4.7/agent/command-ssh.c:3576:8: warning[-Wanalyzer-null-argument]: use of NULL ‘exttype’ where non-null expected
gnupg-2.4.7/agent/command-ssh.c:3562:1: enter_function: entry to ‘ssh_handler_extension’
gnupg-2.4.7/agent/command-ssh.c:3566:9: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3567:9: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3568:9: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3570:9: call_function: inlined call to ‘stream_read_cstring’ from ‘ssh_handler_extension’
gnupg-2.4.7/agent/command-ssh.c:3570:9: call_function: inlined call to ‘stream_read_cstring’ from ‘ssh_handler_extension’
gnupg-2.4.7/agent/command-ssh.c:3571:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command-ssh.c:3574:7: branch_false: ...to here
gnupg-2.4.7/agent/command-ssh.c:3576:8: release_memory: ‘exttype’ is NULL
gnupg-2.4.7/agent/command-ssh.c:3576:8: danger: argument 1 (‘exttype’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
gnupg-2.4.7/agent/command.c:3311:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n’
gnupg-2.4.7/agent/command.c:3248:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3251:11: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3257:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3260:10: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3261:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3267:9: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3268:6: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/agent/command.c:3271:7: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3271:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3279:3: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3280:6: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/agent/command.c:3283:3: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3288:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3290:7: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3290:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/agent/command.c:3301:6: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3301:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/command.c:3303:19: branch_true: ...to here
gnupg-2.4.7/agent/command.c:3304:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/agent/command.c:3308:17: branch_true: ...to here
gnupg-2.4.7/agent/command.c:3309:14: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/agent/command.c:3311:13: branch_false: ...to here
gnupg-2.4.7/agent/command.c:3311:13: danger: use of uninitialized value ‘n’ here
Error: COMPILER_WARNING (CWE-704): [#def18]
gnupg-2.4.7/agent/cvt-openpgp.h:27:13: warning[-Wlto-type-mismatch]: type of ‘convert_from_openpgp_native’ does not match original declaration
gnupg-2.4.7/agent/t-protect.c:344:1: note: type mismatch in parameter 4
gnupg-2.4.7/agent/t-protect.c:344:1: note: ‘convert_from_openpgp_native’ was previously declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
gnupg-2.4.7/common/asshelp.c:474:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
gnupg-2.4.7/common/asshelp.c:641:1: enter_function: entry to ‘start_new_dirmngr’
gnupg-2.4.7/common/asshelp.c:651:10: call_function: calling ‘start_new_service’ from ‘start_new_dirmngr’
Error: COMPILER_WARNING (CWE-252): [#def20]
gnupg-2.4.7/common/dotlock.c: scope_hint: In function ‘use_hardlinks_p’
gnupg-2.4.7/common/dotlock.c:667:10: warning[-Wunused-result]: ignoring return value of ‘link’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
gnupg-2.4.7/common/dotlock.c:1296:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
gnupg-2.4.7/common/dotlock.c:1276:1: enter_function: entry to ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1290:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1349:30: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1351:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1367:11: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1367:10: branch_false: following ‘false’ branch...
branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1375:15: call_function: calling ‘read_lockfile’ from ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1375:15: return_function: returning to ‘dotlock_take_unix’ from ‘read_lockfile’
gnupg-2.4.7/common/dotlock.c:1375:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/dotlock.c:1377:12: branch_true: ...to here
gnupg-2.4.7/common/dotlock.c:1377:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1387:7: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1296:11: danger: ‘fd’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
gnupg-2.4.7/common/dotlock.c:1313:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
gnupg-2.4.7/common/dotlock.c:1276:1: enter_function: entry to ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1351:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/dotlock.c:1367:11: branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1367:10: branch_false: following ‘false’ branch...
branch_false: ...to here
gnupg-2.4.7/common/dotlock.c:1375:15: call_function: calling ‘read_lockfile’ from ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1375:15: return_function: returning to ‘dotlock_take_unix’ from ‘read_lockfile’
gnupg-2.4.7/common/dotlock.c:1375:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/dotlock.c:1377:12: branch_true: ...to here
gnupg-2.4.7/common/dotlock.c:1313:18: danger: ‘fd’ leaks here; was opened at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: COMPILER_WARNING (CWE-252): [#def23]
gnupg-2.4.7/common/dotlock.c: scope_hint: In function ‘dotlock_take_unix’
gnupg-2.4.7/common/dotlock.c:1349:14: warning[-Wunused-result]: ignoring return value of ‘link’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
gnupg-2.4.7/common/exechelp-posix.c:329:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fds[i], i)’
gnupg-2.4.7/common/exechelp-posix.c:578:1: enter_function: entry to ‘gnupg_spawn_process_fd’
gnupg-2.4.7/common/exechelp-posix.c:584:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/exechelp-posix.c:591:6: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:591:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/exechelp-posix.c:593:7: branch_true: ...to here
gnupg-2.4.7/common/exechelp-posix.c:595:7: call_function: calling ‘do_exec’ from ‘gnupg_spawn_process_fd’
Error: GCC_ANALYZER_WARNING: [#def25]
gnupg-2.4.7/common/exechelp-posix.c:329:26: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘-1’
gnupg-2.4.7/common/exechelp-posix.c:437:1: enter_function: entry to ‘gnupg_spawn_process’
gnupg-2.4.7/common/exechelp-posix.c:455:6: branch_false: following ‘false’ branch (when ‘r_outfp’ is NULL)...
gnupg-2.4.7/common/exechelp-posix.c:457:6: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:457:6: branch_false: following ‘false’ branch (when ‘r_errfp’ is NULL)...
gnupg-2.4.7/common/exechelp-posix.c:459:3: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:509:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/exechelp-posix.c:537:6: branch_false: ...to here
gnupg-2.4.7/common/exechelp-posix.c:537:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/exechelp-posix.c:540:7: branch_true: ...to here
gnupg-2.4.7/common/exechelp-posix.c:544:7: call_function: calling ‘do_exec’ from ‘gnupg_spawn_process’
Error: COMPILER_WARNING (CWE-477): [#def26]
gnupg-2.4.7/common/miscellaneous.c: scope_hint: In function ‘setup_libgcrypt_logging’
gnupg-2.4.7/common/miscellaneous.c:103:3: warning[-Wdeprecated-declarations]: ‘gcry_set_log_handler’ is deprecated
gnupg-2.4.7/common/util.h:34: included_from: Included from here.
gnupg-2.4.7/common/miscellaneous.c:35: included_from: Included from here.
/usr/include/gcrypt.h:2025:6: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def27]
gnupg-2.4.7/common/miscellaneous.c:103:3: warning[-Wdeprecated-declarations]: ‘gcry_set_log_handler’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
gnupg-2.4.7/common/name-value.c:408:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pk’
gnupg-2.4.7/common/name-value.c:495:1: enter_function: entry to ‘nvc_set’
gnupg-2.4.7/common/name-value.c:502:7: call_function: calling ‘nvc_lookup’ from ‘nvc_set’
gnupg-2.4.7/common/name-value.c:502:7: return_function: returning to ‘nvc_set’ from ‘nvc_lookup’
gnupg-2.4.7/common/name-value.c:503:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/name-value.c:506:12: branch_false: ...to here
gnupg-2.4.7/common/name-value.c:506:12: call_function: calling ‘nvc_add’ from ‘nvc_set’
Error: COMPILER_WARNING (CWE-252): [#def29]
gnupg-2.4.7/common/signal.c: scope_hint: In function ‘got_fatal_signal’
gnupg-2.4.7/common/signal.c:113:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def30]
gnupg-2.4.7/common/signal.c:116:11: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def31]
gnupg-2.4.7/common/signal.c:117:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def32]
gnupg-2.4.7/common/signal.c:120:12: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def33]
gnupg-2.4.7/common/signal.c:130:15: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def34]
gnupg-2.4.7/common/signal.c:139:25: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def35]
gnupg-2.4.7/common/signal.c:147:9: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def36]
gnupg-2.4.7/common/simple-pwquery.c:301:11: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gnupg-2.4.7/common/simple-pwquery.c:459:1: enter_function: entry to ‘simple_pwclear’
gnupg-2.4.7/common/simple-pwquery.c:466:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/simple-pwquery.c:469:3: branch_false: ...to here
gnupg-2.4.7/common/simple-pwquery.c:471:7: call_function: calling ‘copy_and_escape’ from ‘simple_pwclear’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
gnupg-2.4.7/common/sysutils.c:705:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
gnupg-2.4.7/common/sysutils.c:703:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/sysutils.c:705:11: acquire_resource: opened here
gnupg-2.4.7/common/sysutils.c:705:10: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
gnupg-2.4.7/common/sysutils.c:713:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/common/sysutils.c:711:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/sysutils.c:713:11: acquire_resource: opened here
gnupg-2.4.7/common/sysutils.c:713:10: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
gnupg-2.4.7/common/sysutils.c:721:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/common/sysutils.c:719:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/common/sysutils.c:721:11: acquire_resource: opened here
gnupg-2.4.7/common/sysutils.c:721:10: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def40]
gnupg-2.4.7/common/t-b64.c:185:20: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
gnupg-2.4.7/common/t-b64.c:173:8: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:173:16: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:173:16: acquire_memory: allocated here
gnupg-2.4.7/common/t-b64.c:174:6: release_memory: assuming ‘fp’ is NULL
gnupg-2.4.7/common/t-b64.c:174:6: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
gnupg-2.4.7/common/t-b64.c:177:70: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:176:7: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:176:7: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:185:20: danger: argument 4 (‘fp’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def41]
gnupg-2.4.7/common/t-b64.c:222:20: warning[-Wanalyzer-null-argument]: use of NULL ‘fp’ where non-null expected
gnupg-2.4.7/common/t-b64.c:210:8: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:210:16: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:210:16: acquire_memory: allocated here
gnupg-2.4.7/common/t-b64.c:211:6: release_memory: assuming ‘fp’ is NULL
gnupg-2.4.7/common/t-b64.c:211:6: branch_true: following ‘true’ branch (when ‘fp’ is NULL)...
gnupg-2.4.7/common/t-b64.c:214:70: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:213:7: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
gnupg-2.4.7/common/t-b64.c:213:7: branch_true: ...to here
gnupg-2.4.7/common/t-b64.c:222:20: danger: argument 4 (‘fp’) NULL where non-null expected
Error: COMPILER_WARNING (CWE-252): [#def42]
gnupg-2.4.7/common/t-exechelp.c: scope_hint: In function ‘test_close_all_fds’
gnupg-2.4.7/common/t-exechelp.c:96:3: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def43]
gnupg-2.4.7/common/t-exechelp.c:97:3: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def44]
gnupg-2.4.7/common/t-exechelp.c:99:3: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def45]
gnupg-2.4.7/common/t-exechelp.c:140:9: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def46]
gnupg-2.4.7/common/t-exechelp.c:147:11: warning[-Wunused-result]: ignoring return value of ‘dup’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
gnupg-2.4.7/common/t-iobuf.c:91:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘state’
gnupg-2.4.7/common/t-iobuf.c:89:7: acquire_memory: this call could return NULL
gnupg-2.4.7/common/t-iobuf.c:91:3: danger: ‘state’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
gnupg-2.4.7/common/t-ssh-utils.c:224:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_resource: opened here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: danger: ‘fopen(fname, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
gnupg-2.4.7/common/t-ssh-utils.c:224:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_memory: allocated here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: danger: ‘fopen(fname, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
gnupg-2.4.7/common/t-ssh-utils.c:231:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_resource: opened here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:231:12: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:231:12: danger: ‘fopen(fname, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
gnupg-2.4.7/common/t-ssh-utils.c:231:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "rb")’
gnupg-2.4.7/common/t-ssh-utils.c:216:8: acquire_memory: allocated here
gnupg-2.4.7/common/t-ssh-utils.c:217:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:224:7: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:224:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/common/t-ssh-utils.c:231:12: branch_false: ...to here
gnupg-2.4.7/common/t-ssh-utils.c:231:12: danger: ‘fopen(fname, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
gnupg-2.4.7/common/utf8conv.c:631:14: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(active_charset_name, "utf-8")’
gnupg-2.4.7/common/utf8conv.c:429:12: branch_false: following ‘false’ branch (when ‘slen == 0’)...
gnupg-2.4.7/common/utf8conv.c:615:10: branch_false: ...to here
gnupg-2.4.7/common/utf8conv.c:615:10: branch_true: following ‘true’ branch (when ‘buffer’ is NULL)...
gnupg-2.4.7/common/utf8conv.c:618:24: branch_true: ...to here
gnupg-2.4.7/common/utf8conv.c:429:12: branch_false: following ‘false’ branch (when ‘slen == 0’)...
gnupg-2.4.7/common/utf8conv.c:615:10: branch_false: ...to here
gnupg-2.4.7/common/utf8conv.c:620:15: branch_true: following ‘true’ branch (when ‘with_iconv != 0’)...
gnupg-2.4.7/common/utf8conv.c:628:11: branch_true: ...to here
gnupg-2.4.7/common/utf8conv.c:630:16: acquire_memory: allocated here
gnupg-2.4.7/common/utf8conv.c:631:14: danger: ‘iconv_open(active_charset_name, "utf-8")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
gnupg-2.4.7/common/utf8conv.c:640:15: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(active_charset_name, "utf-8")’
gnupg-2.4.7/common/utf8conv.c:688:1: enter_function: entry to ‘utf8_to_native’
gnupg-2.4.7/common/utf8conv.c:690:10: call_function: calling ‘do_utf8_to_native’ from ‘utf8_to_native’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def54]
gnupg-2.4.7/common/w32-cmdline.c:281:14: warning[-Wanalyzer-deref-before-check]: check of ‘p0’ for NULL after already dereferencing it
gnupg-2.4.7/common/w32-cmdline.c:345:1: enter_function: entry to ‘w32_parse_commandline’
gnupg-2.4.7/common/w32-cmdline.c:355:10: call_function: calling ‘parse_cmdstring’ from ‘w32_parse_commandline’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def55]
gnupg-2.4.7/common/w32-cmdline.c:299:14: warning[-Wanalyzer-deref-before-check]: check of ‘p0’ for NULL after already dereferencing it
gnupg-2.4.7/common/w32-cmdline.c:345:1: enter_function: entry to ‘w32_parse_commandline’
gnupg-2.4.7/common/w32-cmdline.c:355:10: call_function: calling ‘parse_cmdstring’ from ‘w32_parse_commandline’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def56]
gnupg-2.4.7/common/w32-cmdline.c:313:15: warning[-Wanalyzer-deref-before-check]: check of ‘p0’ for NULL after already dereferencing it
gnupg-2.4.7/common/w32-cmdline.c:345:1: enter_function: entry to ‘w32_parse_commandline’
gnupg-2.4.7/common/w32-cmdline.c:355:10: call_function: calling ‘parse_cmdstring’ from ‘w32_parse_commandline’
Error: CPPCHECK_WARNING (CWE-457): [#def57]
gnupg-2.4.7/dirmngr/dns.c:4505: error[uninitvar]: Uninitialized variable: &src
Error: CPPCHECK_WARNING (CWE-909): [#def58]
gnupg-2.4.7/dirmngr/dns.c:4510: error[uninitStructMember]: Uninitialized struct member: src.p
Error: CPPCHECK_WARNING (CWE-909): [#def59]
gnupg-2.4.7/dirmngr/dns.c:4510: error[uninitStructMember]: Uninitialized struct member: src.pe
Error: CPPCHECK_WARNING (CWE-909): [#def60]
gnupg-2.4.7/dirmngr/dns.c:4512: error[uninitStructMember]: Uninitialized struct member: src.p
Error: CPPCHECK_WARNING (CWE-786): [#def61]
gnupg-2.4.7/dirmngr/dns.c:7658: error[negativeIndex]: Array 'so->query->data[1]' accessed at index -2, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def62]
gnupg-2.4.7/dirmngr/dns.c:7659: error[negativeIndex]: Array 'so->query->data[1]' accessed at index -1, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def63]
gnupg-2.4.7/dirmngr/dns.c:7664: error[negativeIndex]: Array 'so->query->data[1]' accessed at index -2, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def64]
gnupg-2.4.7/dirmngr/dns.c:7687: error[negativeIndex]: Array 'so->answer->data[1]' accessed at index -2, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def65]
gnupg-2.4.7/dirmngr/dns.c:7698: error[negativeIndex]: Array 'so->answer->data[1]' accessed at index -2, which is out of bounds.
Error: CPPCHECK_WARNING (CWE-786): [#def66]
gnupg-2.4.7/dirmngr/dns.c:7699: error[negativeIndex]: Array 'so->answer->data[1]' accessed at index -1, which is out of bounds.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
gnupg-2.4.7/dirmngr/ks-action.c:571:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘puri’
gnupg-2.4.7/dirmngr/ks-action.c:552:1: enter_function: entry to ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: call_function: calling ‘ks_action_parse_uri’ from ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: return_function: returning to ‘ks_action_query’ from ‘ks_action_parse_uri’
gnupg-2.4.7/dirmngr/ks-action.c:565:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:568:7: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:568:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:571:11: branch_true: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:571:11: release_memory: ‘puri’ is NULL
gnupg-2.4.7/dirmngr/ks-action.c:571:7: danger: dereference of NULL ‘puri’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
gnupg-2.4.7/dirmngr/ks-action.c:575:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘puri’
gnupg-2.4.7/dirmngr/ks-action.c:552:1: enter_function: entry to ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: call_function: calling ‘ks_action_parse_uri’ from ‘ks_action_query’
gnupg-2.4.7/dirmngr/ks-action.c:564:9: return_function: returning to ‘ks_action_query’ from ‘ks_action_parse_uri’
gnupg-2.4.7/dirmngr/ks-action.c:565:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:568:7: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:568:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-action.c:575:20: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-action.c:575:20: release_memory: ‘puri’ is NULL
gnupg-2.4.7/dirmngr/ks-action.c:575:16: danger: dereference of NULL ‘puri’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1104:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hostname’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1819:1: enter_function: entry to ‘ks_hkp_put’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1822:9: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1826:9: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1828:9: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1834:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1837:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1840:21: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1841:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1846:3: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1847:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1852:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1853:3: release_memory: ‘hostport’ is NULL
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1854:9: call_function: calling ‘make_host_part’ from ‘ks_hkp_put’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def70]
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1871:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘http_status’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1819:1: enter_function: entry to ‘ks_hkp_put’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1837:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1840:21: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1841:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1846:3: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1854:9: call_function: calling ‘make_host_part’ from ‘ks_hkp_put’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1854:9: return_function: returning to ‘ks_hkp_put’ from ‘make_host_part’
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1857:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1860:3: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1862:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1869:9: branch_false: ...to here
gnupg-2.4.7/dirmngr/ks-engine-hkp.c:1871:7: danger: use of uninitialized value ‘http_status’ here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:3076:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:188:1: enter_function: entry to ‘getval_for_filter’
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:245:11: branch_true: following ‘true’ branch (when the strings are equal)...
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:246:14: branch_true: ...to here
gnupg-2.4.7/dirmngr/ks-engine-ldap.c:246:14: call_function: calling ‘map_rid_to_dn’ from ‘getval_for_filter’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
gnupg-2.4.7/doc/./mkdefsinc.c:223:23: warning[-Wanalyzer-malloc-leak]: leak of ‘opt_date’
gnupg-2.4.7/doc/./mkdefsinc.c:166:1: enter_function: entry to ‘main’
gnupg-2.4.7/doc/./mkdefsinc.c:179:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/doc/./mkdefsinc.c:182:10: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:187:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:187:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:198:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: call_function: calling ‘xstrdup’ from ‘main’
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: return_function: returning to ‘main’ from ‘xstrdup’
gnupg-2.4.7/doc/./mkdefsinc.c:179:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/doc/./mkdefsinc.c:182:10: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:187:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:187:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/doc/./mkdefsinc.c:198:17: branch_false: ...to here
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: call_function: calling ‘xstrdup’ from ‘main’
gnupg-2.4.7/doc/./mkdefsinc.c:222:26: return_function: returning to ‘main’ from ‘xstrdup’
gnupg-2.4.7/doc/./mkdefsinc.c:223:23: danger: ‘opt_date’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: CPPCHECK_WARNING (CWE-457): [#def73]
gnupg-2.4.7/doc/mkdefsinc.c:337: warning[uninitvar]: Uninitialized variable: monthoff
Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
gnupg-2.4.7/g10/export.c:1754:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘domain’
gnupg-2.4.7/g10/export.c:2238:1: enter_function: entry to ‘do_export_stream’
gnupg-2.4.7/g10/export.c:2259:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2264:7: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2264:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/export.c:2266:18: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2270:6: branch_true: following ‘true’ branch (when ‘users’ is NULL)...
gnupg-2.4.7/g10/export.c:2273:14: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2311:10: branch_true: following ‘true’ branch (when ‘users’ is NULL)...
gnupg-2.4.7/g10/export.c:2312:9: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2313:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2317:7: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2320:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2326:14: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2327:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/export.c:2332:7: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2420:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/export.c:2421:15: branch_true: ...to here
gnupg-2.4.7/g10/export.c:2429:10: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/g10/export.c:2432:10: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2432:10: branch_false: following ‘false’ branch (when ‘keyblock_out’ is NULL)...
gnupg-2.4.7/g10/export.c:2438:10: branch_false: ...to here
gnupg-2.4.7/g10/export.c:2438:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/export.c:2449:17: call_function: calling ‘print_dane_records’ from ‘do_export_stream’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
gnupg-2.4.7/g10/getkey.c:196:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pk’
gnupg-2.4.7/g10/getkey.c:4255:1: enter_function: entry to ‘get_user_id’
gnupg-2.4.7/g10/getkey.c:4264:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/getkey.c:4267:12: branch_true: ...to here
gnupg-2.4.7/g10/getkey.c:4267:12: call_function: calling ‘get_pubkey’ from ‘get_user_id’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
gnupg-2.4.7/g10/keyedit.c:3087:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘keyblock’
gnupg-2.4.7/g10/keyedit.c:3060:1: enter_function: entry to ‘keyedit_quick_revsig’
gnupg-2.4.7/g10/keyedit.c:3084:9: call_function: calling ‘quick_find_keyblock’ from ‘keyedit_quick_revsig’
gnupg-2.4.7/g10/keyedit.c:3084:9: return_function: returning to ‘keyedit_quick_revsig’ from ‘quick_find_keyblock’
gnupg-2.4.7/g10/keyedit.c:3085:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:3087:3: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:3087:3: release_memory: ‘keyblock’ is NULL
gnupg-2.4.7/g10/keyedit.c:3087:3: danger: dereference of NULL ‘keyblock’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
gnupg-2.4.7/g10/keyedit.c:5209:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub_pk’
gnupg-2.4.7/g10/keyedit.c:5121:1: enter_function: entry to ‘menu_expire’
gnupg-2.4.7/g10/keyedit.c:5133:6: branch_false: following ‘false’ branch (when ‘unattended == 0’)...
gnupg-2.4.7/g10/keyedit.c:5143:12: call_function: inlined call to ‘count_selected_keys’ from ‘menu_expire’
gnupg-2.4.7/g10/keyedit.c:5146:14: branch_false: following ‘false’ branch...
branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5169:29: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5171:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5171:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5173:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5169:29: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5171:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5171:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5177:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5177:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5189:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5189:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5191:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5191:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5191:16: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5194:26: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5196:14: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5196:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5197:18: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5197:18: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5196:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5208:18: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5208:18: branch_false: following ‘false’ branch (when ‘only_mainkey == 0’)...
gnupg-2.4.7/g10/keyedit.c:5209:40: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5209:40: danger: dereference of NULL ‘sub_pk’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
gnupg-2.4.7/g10/keyedit.c:5313:35: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘sub_pk’
gnupg-2.4.7/g10/keyedit.c:5266:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5271:11: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5282:25: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5284:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5284:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5286:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5282:25: branch_true: following ‘true’ branch (when ‘node’ is non-NULL)...
gnupg-2.4.7/g10/keyedit.c:5284:11: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5284:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5289:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5289:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5296:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5296:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5298:15: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5298:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5298:16: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5301:26: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5302:14: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5302:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyedit.c:5303:18: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5303:18: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5302:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/keyedit.c:5312:18: branch_true: ...to here
gnupg-2.4.7/g10/keyedit.c:5312:18: branch_false: following ‘false’ branch (when ‘mainkey == 0’)...
gnupg-2.4.7/g10/keyedit.c:5313:35: branch_false: ...to here
gnupg-2.4.7/g10/keyedit.c:5313:35: danger: dereference of NULL ‘sub_pk’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
gnupg-2.4.7/g10/keyid.c:341:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘gcry_mpi_get_opaque(*pk.pkey[i], &nbits)’
gnupg-2.4.7/g10/keyid.c:1048:1: enter_function: entry to ‘v5_fingerprint_from_pk’
gnupg-2.4.7/g10/keyid.c:1053:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyid.c:1056:7: branch_false: ...to here
gnupg-2.4.7/g10/keyid.c:1056:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/keyid.c:1058:3: branch_false: ...to here
gnupg-2.4.7/g10/keyid.c:1058:3: call_function: calling ‘do_hash_public_key’ from ‘v5_fingerprint_from_pk’
Error: COMPILER_WARNING (CWE-704): [#def80]
gnupg-2.4.7/g10/keyserver-internal.h:34:24: warning[-Wlto-type-mismatch]: type of ‘parse_keyserver_uri’ does not match original declaration
gnupg-2.4.7/g10/gpgv.c:644:1: note: type mismatch in parameter 3
gnupg-2.4.7/g10/gpgv.c:644:1: note: ‘parse_keyserver_uri’ was previously declared here
Error: COMPILER_WARNING (CWE-704): [#def81]
gnupg-2.4.7/g10/keyserver-internal.h:45:5: warning[-Wlto-type-mismatch]: type of ‘keyserver_import_keyid’ does not match original declaration
gnupg-2.4.7/g10/gpgv.c:458:1: note: type mismatch in parameter 3
gnupg-2.4.7/g10/gpgv.c:458:1: note: ‘keyserver_import_keyid’ was previously declared here
Error: COMPILER_WARNING (CWE-704): [#def82]
gnupg-2.4.7/g10/keyserver-internal.h:51:5: warning[-Wlto-type-mismatch]: type of ‘keyserver_import_cert’ does not match original declaration
gnupg-2.4.7/g10/gpgv.c:489:1: note: type mismatch in parameter 2
gnupg-2.4.7/g10/gpgv.c:489:1: note: ‘keyserver_import_cert’ was previously declared here
Error: COMPILER_WARNING (CWE-704): [#def83]
gnupg-2.4.7/g10/keyserver-internal.h:58:13: warning[-Wlto-type-mismatch]: type of ‘keyserver_import_mbox’ does not match original declaration
gnupg-2.4.7/g10/gpgv.c:508:1: note: return value type mismatch
gnupg-2.4.7/g10/gpgv.c:508:1: note: type ‘int’ should match type ‘gpg_error_t’
gnupg-2.4.7/g10/gpgv.c:508:1: note: ‘keyserver_import_mbox’ was previously declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
gnupg-2.4.7/g10/keyserver.c:1212:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘desc’
gnupg-2.4.7/g10/keyserver.c:1182:1: enter_function: entry to ‘keyserver_refresh’
gnupg-2.4.7/g10/keyserver.c:1200:9: call_function: calling ‘keyidlist’ from ‘keyserver_refresh’
gnupg-2.4.7/g10/keyserver.c:1200:9: return_function: returning to ‘keyserver_refresh’ from ‘keyidlist’
gnupg-2.4.7/g10/keyserver.c:1201:6: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/g10/keyserver.c:1204:3: branch_false: ...to here
gnupg-2.4.7/g10/keyserver.c:1205:5: branch_true: following ‘true’ branch (when ‘count > 0’)...
branch_true: ...to here
gnupg-2.4.7/g10/keyserver.c:1210:15: branch_true: following ‘true’ branch (when ‘i < count’)...
gnupg-2.4.7/g10/keyserver.c:1212:18: branch_true: ...to here
gnupg-2.4.7/g10/keyserver.c:1212:18: release_memory: ‘desc’ is NULL
gnupg-2.4.7/g10/keyserver.c:1212:18: release_memory: ‘desc’ is NULL
gnupg-2.4.7/g10/keyserver.c:1212:14: danger: dereference of NULL ‘desc + (long unsigned int)i * 80’
Error: COMPILER_WARNING (CWE-252): [#def85]
gnupg-2.4.7/g10/photoid.c: scope_hint: In function ‘run_with_pipe’
gnupg-2.4.7/g10/photoid.c:624:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-704): [#def86]
gnupg-2.4.7/g10/photoid.h:31:6: warning[-Wlto-type-mismatch]: type of ‘show_photos’ does not match original declaration
gnupg-2.4.7/g10/gpgv.c:662:1: note: type mismatch in parameter 2
gnupg-2.4.7/g10/gpgv.c:662:1: note: ‘show_photos’ was previously declared here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
gnupg-2.4.7/g10/sign.c:859:7: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pt’
gnupg-2.4.7/g10/sign.c:1627:1: enter_function: entry to ‘sign_symencrypt_file’
gnupg-2.4.7/g10/sign.c:1663:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/g10/sign.c:1667:9: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1668:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/sign.c:1668:14: branch_true: ...to here
gnupg-2.4.7/g10/sign.c:1668:7: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1681:3: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1691:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1710:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1714:7: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1716:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1718:8: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1763:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/sign.c:1766:3: branch_false: ...to here
gnupg-2.4.7/g10/sign.c:1770:8: call_function: calling ‘write_plaintext_packet’ from ‘sign_symencrypt_file’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def88]
gnupg-2.4.7/g10/test.c:163:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
gnupg-2.4.7/g10/test.c:162:12: acquire_memory: this call could return NULL
gnupg-2.4.7/g10/test.c:163:3: danger: argument 1 (‘result’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
gnupg-2.4.7/g10/tofu.c:2535:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/g10/tofu.c:3971:1: enter_function: entry to ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3980:3: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3982:9: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3982:9: call_function: calling ‘opendbs’ from ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3982:9: return_function: returning to ‘tofu_get_policy’ from ‘opendbs’
gnupg-2.4.7/g10/tofu.c:3983:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3990:17: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3991:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3994:31: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3996:13: call_function: calling ‘get_policy’ from ‘tofu_get_policy’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
gnupg-2.4.7/g10/tofu.c:2586:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/g10/tofu.c:3971:1: enter_function: entry to ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3980:3: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3982:9: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3982:9: call_function: calling ‘opendbs’ from ‘tofu_get_policy’
gnupg-2.4.7/g10/tofu.c:3982:9: return_function: returning to ‘tofu_get_policy’ from ‘opendbs’
gnupg-2.4.7/g10/tofu.c:3983:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3990:17: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3991:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3994:31: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3996:13: call_function: calling ‘get_policy’ from ‘tofu_get_policy’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def91]
gnupg-2.4.7/g10/tofu.c:3925:10: warning[-Wanalyzer-deref-before-check]: check of ‘kb’ for NULL after already dereferencing it
gnupg-2.4.7/g10/tofu.c:3894:1: enter_function: entry to ‘tofu_set_policy’
gnupg-2.4.7/g10/tofu.c:3902:3: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3903:3: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3905:9: call_function: calling ‘opendbs’ from ‘tofu_set_policy’
gnupg-2.4.7/g10/tofu.c:3905:9: return_function: returning to ‘tofu_set_policy’ from ‘opendbs’
gnupg-2.4.7/g10/tofu.c:3906:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3913:7: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3916:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3919:17: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3920:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/g10/tofu.c:3923:3: branch_false: ...to here
gnupg-2.4.7/g10/tofu.c:3923:3: call_function: calling ‘begin_transaction’ from ‘tofu_set_policy’
gnupg-2.4.7/g10/tofu.c:3923:3: return_function: returning to ‘tofu_set_policy’ from ‘begin_transaction’
gnupg-2.4.7/g10/tofu.c:3925:10: danger: pointer ‘kb’ is checked for NULL here but it was already dereferenced at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
gnupg-2.4.7/g10/trust.c:71:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gnupg-2.4.7/g10/trust.c:64:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/trust.c:68:13: branch_true: ...to here
gnupg-2.4.7/g10/trust.c:69:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/g10/trust.c:71:12: branch_true: ...to here
gnupg-2.4.7/g10/trust.c:71:11: danger: dereference of NULL ‘strchr(gcry_strdup(string), 35)’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def93]
gnupg-2.4.7/g13/g13tuple.c:240:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n’
gnupg-2.4.7/g13/g13tuple.c:233:1: enter_function: entry to ‘find_tuple_uint’
gnupg-2.4.7/g13/g13tuple.c:239:7: call_function: calling ‘find_tuple’ from ‘find_tuple_uint’
gnupg-2.4.7/g13/g13tuple.c:239:7: return_function: returning to ‘find_tuple_uint’ from ‘find_tuple’
gnupg-2.4.7/g13/g13tuple.c:240:10: danger: use of uninitialized value ‘n’ here
Error: COMPILER_WARNING (CWE-252): [#def94]
gnupg-2.4.7/scd/app.c: scope_hint: In function ‘card_list_signal’
gnupg-2.4.7/scd/app.c:389:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def95]
gnupg-2.4.7/scd/app.c: scope_hint: In function ‘card_list_wait’
gnupg-2.4.7/scd/app.c:450:11: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def96]
gnupg-2.4.7/scd/scdaemon.c: scope_hint: In function ‘scd_kick_the_loop’
gnupg-2.4.7/scd/scdaemon.c:1292:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def97]
gnupg-2.4.7/scd/scdaemon.c: scope_hint: In function ‘handle_connections’
gnupg-2.4.7/scd/scdaemon.c:1428:11: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-121): [#def98]
gnupg-2.4.7/sm/call-agent.c:403:5: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gnupg-2.4.7/sm/call-agent.c:376:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/call-agent.c:378:3: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:381:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/call-agent.c:385:3: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:389:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/call-agent.c:395:7: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:398:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/call-agent.c:402:3: branch_false: ...to here
gnupg-2.4.7/sm/call-agent.c:402:13: branch_true: following ‘true’ branch...
gnupg-2.4.7/sm/call-agent.c:403:31: branch_true: ...to here
gnupg-2.4.7/sm/call-agent.c:403:5: danger: out-of-bounds write from byte 1002 till byte 1013 but ‘line’ ends at byte 1002
Error: GCC_ANALYZER_WARNING (CWE-457): [#def99]
gnupg-2.4.7/sm/certcheck.c:691:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘frame’
gnupg-2.4.7/sm/certcheck.c:607:1: enter_function: entry to ‘gpgsm_check_cms_signature’
gnupg-2.4.7/sm/certcheck.c:644:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/certcheck.c:650:7: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:655:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/certcheck.c:661:12: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:665:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/certcheck.c:683:12: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:683:12: call_function: calling ‘do_encode_md’ from ‘gpgsm_check_cms_signature’
gnupg-2.4.7/sm/certcheck.c:683:12: return_function: returning to ‘gpgsm_check_cms_signature’ from ‘do_encode_md’
gnupg-2.4.7/sm/certcheck.c:685:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/certcheck.c:691:12: branch_false: ...to here
gnupg-2.4.7/sm/certcheck.c:691:12: danger: use of uninitialized value ‘frame’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def100]
gnupg-2.4.7/sm/decrypt.c:1368:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nbits’
gnupg-2.4.7/sm/decrypt.c:1075:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1082:11: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1083:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1091:20: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1095:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1101:8: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1105:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1111:3: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1116:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1119:8: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1120:6: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1127:3: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1133:10: branch_false: following ‘false’ branch (when ‘rc == 0’)...
gnupg-2.4.7/sm/decrypt.c:1139:11: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1151:14: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1177:17: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1177:14: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1188:29: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1194:14: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1200:16: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1204:14: branch_false: following ‘false’ branch (when ‘rc == 0’)...
branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1210:24: branch_true: following ‘true’ branch (when ‘any_key == 0’)...
gnupg-2.4.7/sm/decrypt.c:1221:27: branch_true: ...to here
gnupg-2.4.7/sm/decrypt.c:1229:18: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1231:15: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1354:18: branch_true: following ‘true’ branch...
gnupg-2.4.7/sm/decrypt.c:1354:19: branch_true: ...to here
gnupg-2.4.7/sm/decrypt.c:1354:19: branch_false: following ‘false’ branch (when ‘maybe_pwri != 0’)...
gnupg-2.4.7/sm/decrypt.c:1356:36: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1356:23: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/decrypt.c:1365:22: branch_false: ...to here
gnupg-2.4.7/sm/decrypt.c:1368:24: danger: use of uninitialized value ‘nbits’ here
Error: GCC_ANALYZER_WARNING (CWE-457): [#def101]
gnupg-2.4.7/sm/export.c:770:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘resultlen’
gnupg-2.4.7/sm/export.c:654:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/export.c:661:9: branch_false: ...to here
gnupg-2.4.7/sm/export.c:663:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/export.c:668:9: branch_false: ...to here
gnupg-2.4.7/sm/export.c:744:6: branch_false: following ‘false’ branch (when ‘kparms’ is NULL)...
gnupg-2.4.7/sm/export.c:750:3: branch_false: ...to here
gnupg-2.4.7/sm/export.c:763:6: branch_false: following ‘false’ branch (when ‘err == 0’)...
gnupg-2.4.7/sm/export.c:769:7: branch_false: ...to here
gnupg-2.4.7/sm/export.c:770:7: danger: use of uninitialized value ‘resultlen’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def102]
gnupg-2.4.7/sm/minip12.c:201:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "wb")’
gnupg-2.4.7/sm/minip12.c:200:12: acquire_resource: opened here
gnupg-2.4.7/sm/minip12.c:201:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/minip12.c:201:18: branch_false: ...to here
gnupg-2.4.7/sm/minip12.c:201:11: danger: ‘fopen(&fname, "wb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
gnupg-2.4.7/sm/minip12.c:201:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "wb")’
gnupg-2.4.7/sm/minip12.c:200:12: acquire_memory: allocated here
gnupg-2.4.7/sm/minip12.c:201:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/sm/minip12.c:201:18: branch_false: ...to here
gnupg-2.4.7/sm/minip12.c:201:11: danger: ‘fopen(&fname, "wb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
gnupg-2.4.7/sm/t-minip12.c:399:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
gnupg-2.4.7/sm/t-minip12.c:399:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def106]
gnupg-2.4.7/sm/t-minip12.c:405:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
gnupg-2.4.7/sm/t-minip12.c:405:12: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(name, "rb")’
gnupg-2.4.7/sm/t-minip12.c:687:1: enter_function: entry to ‘main’
gnupg-2.4.7/sm/t-minip12.c:695:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:696:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:740:6: branch_false: following ‘false’ branch (when ‘argc != 0’)...
gnupg-2.4.7/sm/t-minip12.c:745:11: branch_false: ...to here
gnupg-2.4.7/sm/t-minip12.c:764:6: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
gnupg-2.4.7/sm/t-minip12.c:766:7: branch_true: ...to here
gnupg-2.4.7/sm/t-minip12.c:767:13: call_function: calling ‘one_file’ from ‘main’
Error: COMPILER_WARNING: [#def108] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:87:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def109] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:100:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def110] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:113:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def111] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:124:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def112] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:125:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def113] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:135:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def114] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:183:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def115] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:184:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def116] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:197:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def117] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:198:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def118] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:208:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def119] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:209:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def120] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:219:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def121] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:220:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def122] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:231:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def123] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:232:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def124] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:242:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def125] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:243:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def126] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:255:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def127] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:256:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def128] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:257:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def129] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:258:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def130] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:269:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def131] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:270:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def132] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:283:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def133] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:284:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def134] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:286:5: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def135] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:287:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def136] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:303:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def137] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:304:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def138] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:305:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def139] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:320:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def140] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:328:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def141] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:329:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def142] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:340:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def143] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:341:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def144] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:342:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def145] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:343:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def146] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:355:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def147] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:382:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def148] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:383:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def149] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:400:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def150] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:401:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def151] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:465:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def152] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:466:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def153] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:477:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def154] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:478:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def155] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:479:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def156] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:491:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def157] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:495:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def158] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:506:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def159] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:507:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def160] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:508:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def161] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:519:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def162] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:520:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def163] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:531:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def164] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:540:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def165] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:548:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def166] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:557:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def167] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:558:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def168] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:585:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def169] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:586:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def170] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:597:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def171] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:598:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def172] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:602:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def173] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:606:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def174] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:656:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def175] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:667:15: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def176] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:670:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def177] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:681:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def178] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:682:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def179] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:700:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def180] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:701:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def181] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:702:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def182] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:712:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def183] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:722:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def184] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:723:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def185] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:736:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def186] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:739:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def187] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:740:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def188] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:773:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def189] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:774:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def190] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:775:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def191] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:803:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def192] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:822:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def193] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:823:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def194] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:824:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def195] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:825:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def196] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:826:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def197] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:861:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def198] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:862:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def199] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:863:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def200] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:864:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def201] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:886:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def202] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:887:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def203] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:888:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def204] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:889:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def205] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:891:15: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def206] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:892:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def207] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:894:15: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def208] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:931:16: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def209] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:932:33: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def210] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:948:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def211] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:952:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def212] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:962:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def213] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:966:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def214] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:976:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def215] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:980:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def216] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1003:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def217] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1004:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def218] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1005:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def219] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1006:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING (CWE-252): [#def220]
gnupg-2.4.7/tests/gpgscm/ffi.c: scope_hint: In function ‘do_file_equal’
gnupg-2.4.7/tests/gpgscm/ffi.c:1052:3: warning[-Wunused-result]: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING: [#def221] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1078:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def222] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1083:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def223] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1097:28: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def224] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1123:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def225] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1124:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def226] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1127:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def227] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1133:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def228] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1150:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def229] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1151:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def230] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1154:7: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def231] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1160:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def232] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1175:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def233] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1176:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def234] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1177:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def235] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1187:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def236] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1196:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def237] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1197:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def238] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1211:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def239] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1216:23: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def240] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1216:56: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def241] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1218:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def242] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1218:40: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def243] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1219:32: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def244] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1219:56: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def245] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1220:24: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def246] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1220:45: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def247] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1221:32: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def248] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1221:51: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def249] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1239:18: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def250] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1244:23: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def251] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1244:56: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def252] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1246:19: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def253] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1246:40: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def254] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1247:32: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def255] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1247:50: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def256] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1308:20: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def257] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1334:11: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def258] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1430:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def259] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1431:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def260] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1434:31: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def261] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1435:23: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def262] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1442:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def263] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1470:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def264] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1472:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: COMPILER_WARNING: [#def265] [important]
gnupg-2.4.7/tests/gpgscm/ffi.c:1474:3: error[error]: invalid use of undefined type ‘const struct scheme_interface’
Error: CPPCHECK_WARNING (CWE-476): [#def266]
gnupg-2.4.7/tests/gpgscm/scheme.c:5604: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def267]
gnupg-2.4.7/tests/gpgscm/scheme.c:5605: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def268]
gnupg-2.4.7/tests/gpgscm/scheme.c:5606: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def269]
gnupg-2.4.7/tests/gpgscm/scheme.c:5607: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def270]
gnupg-2.4.7/tests/gpgscm/scheme.c:5608: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def271]
gnupg-2.4.7/tests/gpgscm/scheme.c:5609: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def272]
gnupg-2.4.7/tests/gpgscm/scheme.c:5610: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def273]
gnupg-2.4.7/tests/gpgscm/scheme.c:5611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def274]
gnupg-2.4.7/tests/gpgscm/scheme.c:5613: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def275]
gnupg-2.4.7/tests/gpgscm/scheme.c:5614: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def276]
gnupg-2.4.7/tests/gpgscm/scheme.c:5615: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def277]
gnupg-2.4.7/tests/gpgscm/scheme.c:5616: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def278]
gnupg-2.4.7/tests/gpgscm/scheme.c:5618: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def279]
gnupg-2.4.7/tests/gpgscm/scheme.c:5620: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def280]
gnupg-2.4.7/tests/gpgscm/scheme.c:5621: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def281]
gnupg-2.4.7/tests/gpgscm/scheme.c:5622: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def282]
gnupg-2.4.7/tests/gpgscm/scheme.c:5623: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def283]
gnupg-2.4.7/tests/gpgscm/scheme.c:5624: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def284]
gnupg-2.4.7/tests/gpgscm/scheme.c:5625: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def285]
gnupg-2.4.7/tests/gpgscm/scheme.c:5626: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def286]
gnupg-2.4.7/tests/gpgscm/scheme.c:5627: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def287]
gnupg-2.4.7/tests/gpgscm/scheme.c:5628: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def288]
gnupg-2.4.7/tests/gpgscm/scheme.c:5629: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def289]
gnupg-2.4.7/tests/gpgscm/scheme.c:5633: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: CPPCHECK_WARNING (CWE-476): [#def290]
gnupg-2.4.7/tests/gpgscm/scheme.c:5635: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: sc
Error: GCC_ANALYZER_WARNING (CWE-775): [#def291]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:80:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:80:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def293]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def294]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:92:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def297]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:102:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def301]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def302]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:108:6: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname_new, "w")’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:260:1: enter_function: entry to ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:270:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: call_function: calling ‘reply’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:271:3: return_function: returning to ‘main’ from ‘reply’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:273:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:11: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:277:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:11: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:280:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:283:7: call_function: inlined call to ‘rstrip’ from ‘main’
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:287:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:294:15: branch_false: following ‘false’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:16: branch_false: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:299:15: branch_true: following ‘true’ branch...
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: branch_true: ...to here
gnupg-2.4.7/tests/openpgp/fake-pinentry.c:301:15: call_function: calling ‘parse_pinentry_user_data’ from ‘main’
Error: COMPILER_WARNING (CWE-252): [#def305]
gnupg-2.4.7/tools/gpg-auth.c: scope_hint: In function ‘getpin’
gnupg-2.4.7/tools/gpg-auth.c:962:3: warning[-Wunused-result]: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def306]
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 2)’
gnupg-2.4.7/tools/gpg-mail-tube.c:268:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:274:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:274:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:276:7: branch_true: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:279:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:282:16: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:282:16: acquire_resource: opened here
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: danger: ‘dup2(open("/dev/null", 1), 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def307]
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/gpg-mail-tube.c:268:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:274:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:274:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:276:7: branch_true: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:278:11: acquire_resource: opened here
gnupg-2.4.7/tools/gpg-mail-tube.c:279:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-mail-tube.c:282:16: branch_false: ...to here
gnupg-2.4.7/tools/gpg-mail-tube.c:282:15: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-686): [#def308]
gnupg-2.4.7/tools/gpg-pair-tool.c:1125:7: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘size_t’ {{aka ‘long unsigned int’}} but received ‘int’ for variadic argument 4 of ‘arg_ptr’
gnupg-2.4.7/tools/gpg-pair-tool.c:1455:1: enter_function: entry to ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1473:3: branch_false: following ‘false’ branch (when ‘msglen > 79’)...
gnupg-2.4.7/tools/gpg-pair-tool.c:1477:3: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1479:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1486:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1486:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1495:7: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1495:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1501:8: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1501:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1509:12: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1510:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1516:18: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1523:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1531:9: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1531:9: call_function: calling ‘compute_master_secret’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1531:9: return_function: returning to ‘proc_msg_dhpart2’ from ‘compute_master_secret’
gnupg-2.4.7/tools/gpg-pair-tool.c:1533:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1539:3: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1539:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1539:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1542:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1542:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1545:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1545:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1548:3: call_function: calling ‘kdf’ from ‘proc_msg_dhpart2’
gnupg-2.4.7/tools/gpg-pair-tool.c:1548:3: return_function: returning to ‘proc_msg_dhpart2’ from ‘kdf’
gnupg-2.4.7/tools/gpg-pair-tool.c:1555:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpg-pair-tool.c:1562:3: branch_false: ...to here
gnupg-2.4.7/tools/gpg-pair-tool.c:1562:3: call_function: calling ‘hmac_data’ from ‘proc_msg_dhpart2’ with 7 variadic arguments
Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
gnupg-2.4.7/tools/gpgconf-comp.c:2548:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘option’
gnupg-2.4.7/tools/gpgconf-comp.c:3413:1: enter_function: entry to ‘gc_apply_profile’
gnupg-2.4.7/tools/gpgconf-comp.c:3448:6: branch_false: following ‘false’ branch (when ‘fp’ is non-NULL)...
gnupg-2.4.7/tools/gpgconf-comp.c:3455:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgconf-comp.c:3586:6: branch_true: following ‘true’ branch (when ‘err == 0’)...
gnupg-2.4.7/tools/gpgconf-comp.c:3590:11: branch_true: ...to here
gnupg-2.4.7/tools/gpgconf-comp.c:3593:30: branch_true: following ‘true’ branch (when ‘component_id != 9’)...
gnupg-2.4.7/tools/gpgconf-comp.c:3595:11: branch_true: ...to here
gnupg-2.4.7/tools/gpgconf-comp.c:3595:11: call_function: calling ‘gc_component_change_options’ from ‘gc_apply_profile’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
gnupg-2.4.7/tools/gpgparsemail.c:191:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(sig_fd, 0)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
gnupg-2.4.7/tools/gpgparsemail.c:205:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
gnupg-2.4.7/tools/gpgparsemail.c:207:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 1)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def313]
gnupg-2.4.7/tools/gpgparsemail.c:207:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def314]
gnupg-2.4.7/tools/gpgparsemail.c:214:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(rp[1], 2)’
gnupg-2.4.7/tools/gpgparsemail.c:738:1: enter_function: entry to ‘main’
gnupg-2.4.7/tools/gpgparsemail.c:742:6: branch_true: following ‘true’ branch (when ‘argc != 0’)...
gnupg-2.4.7/tools/gpgparsemail.c:744:7: branch_true: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:754:15: branch_false: following ‘false’ branch (when the strings are non-equal)...
gnupg-2.4.7/tools/gpgparsemail.c:770:17: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:792:6: branch_false: following ‘false’ branch (when ‘argc <= 1’)...
gnupg-2.4.7/tools/gpgparsemail.c:795:3: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:797:6: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:800:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/gpgparsemail.c:802:7: branch_false: ...to here
gnupg-2.4.7/tools/gpgparsemail.c:802:7: call_function: calling ‘parse_message’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def315]
gnupg-2.4.7/tools/rfc822parse.c:693: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def316]
gnupg-2.4.7/tools/rfc822parse.c:693:11: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
gnupg-2.4.7/tools/rfc822parse.c:660:1: enter_function: entry to ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: call_function: calling ‘find_header’ from ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: return_function: returning to ‘rfc822parse_get_field’ from ‘find_header’
gnupg-2.4.7/tools/rfc822parse.c:668:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/rfc822parse.c:674:15: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:678:13: acquire_memory: allocated here
gnupg-2.4.7/tools/rfc822parse.c:679:6: release_memory: assuming ‘p’ is NULL
gnupg-2.4.7/tools/rfc822parse.c:679:6: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_true: following ‘true’ branch (when ‘valueoff’ is non-NULL)...
gnupg-2.4.7/tools/rfc822parse.c:693:11: branch_true: ...to here
gnupg-2.4.7/tools/rfc822parse.c:693:11: danger: argument 1 (‘p’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def317]
gnupg-2.4.7/tools/rfc822parse.c:693:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
gnupg-2.4.7/tools/rfc822parse.c:660:1: enter_function: entry to ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: call_function: calling ‘find_header’ from ‘rfc822parse_get_field’
gnupg-2.4.7/tools/rfc822parse.c:667:7: return_function: returning to ‘rfc822parse_get_field’ from ‘find_header’
gnupg-2.4.7/tools/rfc822parse.c:668:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/rfc822parse.c:674:15: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:679:6: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_false: ...to here
gnupg-2.4.7/tools/rfc822parse.c:691:6: branch_true: following ‘true’ branch (when ‘valueoff’ is non-NULL)...
gnupg-2.4.7/tools/rfc822parse.c:693:11: branch_true: ...to here
gnupg-2.4.7/tools/rfc822parse.c:693:11: danger: use of uninitialized value ‘*p’ here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def318]
gnupg-2.4.7/tools/watchgnupg.c:305:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:302:12: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:10: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def319]
gnupg-2.4.7/tools/watchgnupg.c:305:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 0)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:22: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:22: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:305:11: danger: ‘dup2(open("/dev/null", 1), 0)’ leaks here; was opened at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def320]
gnupg-2.4.7/tools/watchgnupg.c:305:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:302:12: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:22: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:305:11: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def321]
gnupg-2.4.7/tools/watchgnupg.c:309:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(rp[1], 1)’
gnupg-2.4.7/tools/watchgnupg.c:291:6: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:294:9: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:295:6: branch_false: following ‘false’ branch (when ‘pid != -1’)...
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:298:6: branch_true: following ‘true’ branch (when ‘pid == 0’)...
gnupg-2.4.7/tools/watchgnupg.c:302:12: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:303:10: branch_false: following ‘false’ branch...
gnupg-2.4.7/tools/watchgnupg.c:305:10: branch_false: ...to here
gnupg-2.4.7/tools/watchgnupg.c:309:10: branch_true: following ‘true’ branch...
gnupg-2.4.7/tools/watchgnupg.c:309:25: branch_true: ...to here
gnupg-2.4.7/tools/watchgnupg.c:309:25: acquire_resource: opened here
gnupg-2.4.7/tools/watchgnupg.c:309:11: danger: ‘dup2(rp[1], 1)’ leaks here; was opened at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
Error: CPPCHECK_WARNING (CWE-476): [#def322]
gnupg-2.4.7/tools/watchgnupg.c:557: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
Error: COMPILER_WARNING (CWE-252): [#def323]
gnupg-2.4.7/tpm2d/tpm2daemon.c: scope_hint: In function ‘tpm2d_kick_the_loop’
gnupg-2.4.7/tpm2d/tpm2daemon.c:1062:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
Error: COMPILER_WARNING (CWE-252): [#def324]
gnupg-2.4.7/tpm2d/tpm2daemon.c: scope_hint: In function ‘handle_connections’
gnupg-2.4.7/tpm2d/tpm2daemon.c:1230:11: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
Scan Properties
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-88.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | gnupg2-2.4.7-3.fc43 |
store-results-to | /tmp/tmp_kvrc4qd/gnupg2-2.4.7-3.fc43.tar.xz |
time-created | 2025-04-25 13:04:47 |
time-finished | 2025-04-25 13:09:14 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp_kvrc4qd/gnupg2-2.4.7-3.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_kvrc4qd/gnupg2-2.4.7-3.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |