Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/gnupg1-1.4.23/include/cipher.h
Examining data/gnupg1-1.4.23/include/dotlock.h
Examining data/gnupg1-1.4.23/include/keyserver.h
Examining data/gnupg1-1.4.23/include/types.h
Examining data/gnupg1-1.4.23/include/estream-printf.h
Examining data/gnupg1-1.4.23/include/_regex.h
Examining data/gnupg1-1.4.23/include/util.h
Examining data/gnupg1-1.4.23/include/i18n.h
Examining data/gnupg1-1.4.23/include/http.h
Examining data/gnupg1-1.4.23/include/dynload.h
Examining data/gnupg1-1.4.23/include/host2net.h
Examining data/gnupg1-1.4.23/include/assuan.h
Examining data/gnupg1-1.4.23/include/errors.h
Examining data/gnupg1-1.4.23/include/ttyio.h
Examining data/gnupg1-1.4.23/include/mpi.h
Examining data/gnupg1-1.4.23/include/srv.h
Examining data/gnupg1-1.4.23/include/iobuf.h
Examining data/gnupg1-1.4.23/include/compat.h
Examining data/gnupg1-1.4.23/include/memory.h
Examining data/gnupg1-1.4.23/g10/progress.c
Examining data/gnupg1-1.4.23/g10/packet.h
Examining data/gnupg1-1.4.23/g10/dearmor.c
Examining data/gnupg1-1.4.23/g10/mainproc.c
Examining data/gnupg1-1.4.23/g10/status.h
Examining data/gnupg1-1.4.23/g10/pipemode.c
Examining data/gnupg1-1.4.23/g10/misc.c
Examining data/gnupg1-1.4.23/g10/getkey.c
Examining data/gnupg1-1.4.23/g10/exec.h
Examining data/gnupg1-1.4.23/g10/keydb.h
Examining data/gnupg1-1.4.23/g10/keyring.c
Examining data/gnupg1-1.4.23/g10/encode.c
Examining data/gnupg1-1.4.23/g10/status.c
Examining data/gnupg1-1.4.23/g10/armor.c
Examining data/gnupg1-1.4.23/g10/gpgv.c
Examining data/gnupg1-1.4.23/g10/card-util.c
Examining data/gnupg1-1.4.23/g10/cipher.c
Examining data/gnupg1-1.4.23/g10/tdbdump.c
Examining data/gnupg1-1.4.23/g10/plaintext.c
Examining data/gnupg1-1.4.23/g10/keylist.c
Examining data/gnupg1-1.4.23/g10/photoid.c
Examining data/gnupg1-1.4.23/g10/keyring.h
Examining data/gnupg1-1.4.23/g10/helptext.c
Examining data/gnupg1-1.4.23/g10/keydb.c
Examining data/gnupg1-1.4.23/g10/compress-bz2.c
Examining data/gnupg1-1.4.23/g10/trustdb.c
Examining data/gnupg1-1.4.23/g10/keyid.c
Examining data/gnupg1-1.4.23/g10/skclist.c
Examining data/gnupg1-1.4.23/g10/keyedit.c
Examining data/gnupg1-1.4.23/g10/keyserver.c
Examining data/gnupg1-1.4.23/g10/ccid-driver.c
Examining data/gnupg1-1.4.23/g10/delkey.c
Examining data/gnupg1-1.4.23/g10/sig-check.c
Examining data/gnupg1-1.4.23/g10/global.h
Examining data/gnupg1-1.4.23/g10/filter.h
Examining data/gnupg1-1.4.23/g10/encr-data.c
Examining data/gnupg1-1.4.23/g10/exec.c
Examining data/gnupg1-1.4.23/g10/seckey-cert.c
Examining data/gnupg1-1.4.23/g10/iso7816.c
Examining data/gnupg1-1.4.23/g10/photoid.h
Examining data/gnupg1-1.4.23/g10/export.c
Examining data/gnupg1-1.4.23/g10/tlv.c
Examining data/gnupg1-1.4.23/g10/compress.c
Examining data/gnupg1-1.4.23/g10/textfilter.c
Examining data/gnupg1-1.4.23/g10/kbnode.c
Examining data/gnupg1-1.4.23/g10/passphrase.c
Examining data/gnupg1-1.4.23/g10/ccid-driver.h
Examining data/gnupg1-1.4.23/g10/tdbio.c
Examining data/gnupg1-1.4.23/g10/seskey.c
Examining data/gnupg1-1.4.23/g10/openfile.c
Examining data/gnupg1-1.4.23/g10/parse-packet.c
Examining data/gnupg1-1.4.23/g10/keyserver-internal.h
Examining data/gnupg1-1.4.23/g10/decrypt.c
Examining data/gnupg1-1.4.23/g10/apdu.c
Examining data/gnupg1-1.4.23/g10/iso7816.h
Examining data/gnupg1-1.4.23/g10/keygen.c
Examining data/gnupg1-1.4.23/g10/verify.c
Examining data/gnupg1-1.4.23/g10/signal.c
Examining data/gnupg1-1.4.23/g10/revoke.c
Examining data/gnupg1-1.4.23/g10/gpg.c
Examining data/gnupg1-1.4.23/g10/pubkey-enc.c
Examining data/gnupg1-1.4.23/g10/mdfilter.c
Examining data/gnupg1-1.4.23/g10/tlv.h
Examining data/gnupg1-1.4.23/g10/app-common.h
Examining data/gnupg1-1.4.23/g10/app-openpgp.c
Examining data/gnupg1-1.4.23/g10/build-packet.c
Examining data/gnupg1-1.4.23/g10/cardglue.h
Examining data/gnupg1-1.4.23/g10/trustdb.h
Examining data/gnupg1-1.4.23/g10/free-packet.c
Examining data/gnupg1-1.4.23/g10/pkclist.c
Examining data/gnupg1-1.4.23/g10/tdbio.h
Examining data/gnupg1-1.4.23/g10/apdu.h
Examining data/gnupg1-1.4.23/g10/options.h
Examining data/gnupg1-1.4.23/g10/cardglue.c
Examining data/gnupg1-1.4.23/g10/import.c
Examining data/gnupg1-1.4.23/g10/main.h
Examining data/gnupg1-1.4.23/g10/sign.c
Examining data/gnupg1-1.4.23/keyserver/curl-shim.c
Examining data/gnupg1-1.4.23/keyserver/curl-shim.h
Examining data/gnupg1-1.4.23/keyserver/ksutil.c
Examining data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c
Examining data/gnupg1-1.4.23/keyserver/ksmalloc.c
Examining data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c
Examining data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c
Examining data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c
Examining data/gnupg1-1.4.23/keyserver/ksutil.h
Examining data/gnupg1-1.4.23/tools/shmtest.c
Examining data/gnupg1-1.4.23/tools/mpicalc.c
Examining data/gnupg1-1.4.23/tools/bftest.c
Examining data/gnupg1-1.4.23/tools/gpgsplit.c
Examining data/gnupg1-1.4.23/tools/make-dns-cert.c
Examining data/gnupg1-1.4.23/tools/clean-sat.c
Examining data/gnupg1-1.4.23/tools/mk-tdata.c
Examining data/gnupg1-1.4.23/zlib/trees.h
Examining data/gnupg1-1.4.23/zlib/infblock.c
Examining data/gnupg1-1.4.23/zlib/inffast.c
Examining data/gnupg1-1.4.23/zlib/infcodes.c
Examining data/gnupg1-1.4.23/zlib/trees.c
Examining data/gnupg1-1.4.23/zlib/infblock.h
Examining data/gnupg1-1.4.23/zlib/inftrees.h
Examining data/gnupg1-1.4.23/zlib/inflate.c
Examining data/gnupg1-1.4.23/zlib/infutil.h
Examining data/gnupg1-1.4.23/zlib/deflate.c
Examining data/gnupg1-1.4.23/zlib/zlib.h
Examining data/gnupg1-1.4.23/zlib/infcodes.h
Examining data/gnupg1-1.4.23/zlib/uncompr.c
Examining data/gnupg1-1.4.23/zlib/infutil.c
Examining data/gnupg1-1.4.23/zlib/compress.c
Examining data/gnupg1-1.4.23/zlib/inftrees.c
Examining data/gnupg1-1.4.23/zlib/adler32.c
Examining data/gnupg1-1.4.23/zlib/deflate.h
Examining data/gnupg1-1.4.23/zlib/zutil.h
Examining data/gnupg1-1.4.23/zlib/crc32.c
Examining data/gnupg1-1.4.23/zlib/zutil.c
Examining data/gnupg1-1.4.23/zlib/zconf.h
Examining data/gnupg1-1.4.23/zlib/inffixed.h
Examining data/gnupg1-1.4.23/zlib/inffast.h
Examining data/gnupg1-1.4.23/intl/verify.h
Examining data/gnupg1-1.4.23/intl/xsize.c
Examining data/gnupg1-1.4.23/intl/loadinfo.h
Examining data/gnupg1-1.4.23/intl/explodename.c
Examining data/gnupg1-1.4.23/intl/localcharset.c
Examining data/gnupg1-1.4.23/intl/threadlib.c
Examining data/gnupg1-1.4.23/intl/eval-plural.h
Examining data/gnupg1-1.4.23/intl/os2compat.h
Examining data/gnupg1-1.4.23/intl/wprintf-parse.h
Examining data/gnupg1-1.4.23/intl/plural-exp.c
Examining data/gnupg1-1.4.23/intl/dngettext.c
Examining data/gnupg1-1.4.23/intl/dcigettext.c
Examining data/gnupg1-1.4.23/intl/gettextP.h
Examining data/gnupg1-1.4.23/intl/vasnprintf.h
Examining data/gnupg1-1.4.23/intl/localealias.c
Examining data/gnupg1-1.4.23/intl/dcgettext.c
Examining data/gnupg1-1.4.23/intl/printf.c
Examining data/gnupg1-1.4.23/intl/tsearch.h
Examining data/gnupg1-1.4.23/intl/textdomain.c
Examining data/gnupg1-1.4.23/intl/localcharset.h
Examining data/gnupg1-1.4.23/intl/lock.h
Examining data/gnupg1-1.4.23/intl/tsearch.c
Examining data/gnupg1-1.4.23/intl/langprefs.c
Examining data/gnupg1-1.4.23/intl/intl-compat.c
Examining data/gnupg1-1.4.23/intl/gettext.c
Examining data/gnupg1-1.4.23/intl/vasnwprintf.h
Examining data/gnupg1-1.4.23/intl/relocatable.c
Examining data/gnupg1-1.4.23/intl/hash-string.c
Examining data/gnupg1-1.4.23/intl/osdep.c
Examining data/gnupg1-1.4.23/intl/printf-parse.h
Examining data/gnupg1-1.4.23/intl/loadmsgcat.c
Examining data/gnupg1-1.4.23/intl/l10nflist.c
Examining data/gnupg1-1.4.23/intl/plural.c
Examining data/gnupg1-1.4.23/intl/finddomain.c
Examining data/gnupg1-1.4.23/intl/localename.c
Examining data/gnupg1-1.4.23/intl/plural-exp.h
Examining data/gnupg1-1.4.23/intl/gmo.h
Examining data/gnupg1-1.4.23/intl/os2compat.c
Examining data/gnupg1-1.4.23/intl/ngettext.c
Examining data/gnupg1-1.4.23/intl/log.c
Examining data/gnupg1-1.4.23/intl/relocatable.h
Examining data/gnupg1-1.4.23/intl/xsize.h
Examining data/gnupg1-1.4.23/intl/setlocale.c
Examining data/gnupg1-1.4.23/intl/lock.c
Examining data/gnupg1-1.4.23/intl/export.h
Examining data/gnupg1-1.4.23/intl/printf-args.c
Examining data/gnupg1-1.4.23/intl/printf-args.h
Examining data/gnupg1-1.4.23/intl/intl-exports.c
Examining data/gnupg1-1.4.23/intl/version.c
Examining data/gnupg1-1.4.23/intl/bindtextdom.c
Examining data/gnupg1-1.4.23/intl/libgnuintl.in.h
Examining data/gnupg1-1.4.23/intl/dcngettext.c
Examining data/gnupg1-1.4.23/intl/printf-parse.c
Examining data/gnupg1-1.4.23/intl/dgettext.c
Examining data/gnupg1-1.4.23/intl/hash-string.h
Examining data/gnupg1-1.4.23/intl/vasnprintf.c
Examining data/gnupg1-1.4.23/mpi/mpi-mul.c
Examining data/gnupg1-1.4.23/mpi/mpih-mul.c
Examining data/gnupg1-1.4.23/mpi/mpi-cmp.c
Examining data/gnupg1-1.4.23/mpi/mpih-div.c
Examining data/gnupg1-1.4.23/mpi/mpi-pow.c
Examining data/gnupg1-1.4.23/mpi/m68k/syntax.h
Examining data/gnupg1-1.4.23/mpi/mpiutil.c
Examining data/gnupg1-1.4.23/mpi/generic/mpi-asm-defs.h
Examining data/gnupg1-1.4.23/mpi/generic/udiv-w-sdiv.c
Examining data/gnupg1-1.4.23/mpi/generic/mpih-mul2.c
Examining data/gnupg1-1.4.23/mpi/generic/mpih-mul1.c
Examining data/gnupg1-1.4.23/mpi/generic/mpih-mul3.c
Examining data/gnupg1-1.4.23/mpi/generic/mpih-sub1.c
Examining data/gnupg1-1.4.23/mpi/generic/mpih-rshift.c
Examining data/gnupg1-1.4.23/mpi/generic/mpih-lshift.c
Examining data/gnupg1-1.4.23/mpi/generic/mpih-add1.c
Examining data/gnupg1-1.4.23/mpi/mpi-inv.c
Examining data/gnupg1-1.4.23/mpi/mpicoder.c
Examining data/gnupg1-1.4.23/mpi/mpi-add.c
Examining data/gnupg1-1.4.23/mpi/mpi-inline.c
Examining data/gnupg1-1.4.23/mpi/i386/syntax.h
Examining data/gnupg1-1.4.23/mpi/mpi-scan.c
Examining data/gnupg1-1.4.23/mpi/mpi-inline.h
Examining data/gnupg1-1.4.23/mpi/mpi-internal.h
Examining data/gnupg1-1.4.23/mpi/mpi-bit.c
Examining data/gnupg1-1.4.23/mpi/mpih-cmp.c
Examining data/gnupg1-1.4.23/mpi/mpi-gcd.c
Examining data/gnupg1-1.4.23/mpi/mpi-div.c
Examining data/gnupg1-1.4.23/mpi/mips3/mpi-asm-defs.h
Examining data/gnupg1-1.4.23/mpi/longlong.h
Examining data/gnupg1-1.4.23/mpi/powerpc32/syntax.h
Examining data/gnupg1-1.4.23/mpi/mpi-mpow.c
Examining data/gnupg1-1.4.23/doc/yat2m.c
Examining data/gnupg1-1.4.23/bzlib/huffman.c
Examining data/gnupg1-1.4.23/bzlib/crctable.c
Examining data/gnupg1-1.4.23/bzlib/decompress.c
Examining data/gnupg1-1.4.23/bzlib/bzlib.h
Examining data/gnupg1-1.4.23/bzlib/compress.c
Examining data/gnupg1-1.4.23/bzlib/bzlib.c
Examining data/gnupg1-1.4.23/bzlib/randtable.c
Examining data/gnupg1-1.4.23/bzlib/blocksort.c
Examining data/gnupg1-1.4.23/bzlib/bzlib_private.h
Examining data/gnupg1-1.4.23/util/ttyio.c
Examining data/gnupg1-1.4.23/util/iobuf.c
Examining data/gnupg1-1.4.23/util/assuan-connect.c
Examining data/gnupg1-1.4.23/util/pka.c
Examining data/gnupg1-1.4.23/util/assuan-client.c
Examining data/gnupg1-1.4.23/util/estream-printf.c
Examining data/gnupg1-1.4.23/util/assuan-buffer.c
Examining data/gnupg1-1.4.23/util/membuf.c
Examining data/gnupg1-1.4.23/util/timegm.c
Examining data/gnupg1-1.4.23/util/regcomp.c
Examining data/gnupg1-1.4.23/util/w32reg.c
Examining data/gnupg1-1.4.23/util/dotlock.c
Examining data/gnupg1-1.4.23/util/isascii.c
Examining data/gnupg1-1.4.23/util/assuan-util.c
Examining data/gnupg1-1.4.23/util/memrchr.c
Examining data/gnupg1-1.4.23/util/compat.c
Examining data/gnupg1-1.4.23/util/assuan-logging.c
Examining data/gnupg1-1.4.23/util/errors.c
Examining data/gnupg1-1.4.23/util/regex_internal.c
Examining data/gnupg1-1.4.23/util/secmem.c
Examining data/gnupg1-1.4.23/util/cert.c
Examining data/gnupg1-1.4.23/util/argparse.c
Examining data/gnupg1-1.4.23/util/logger.c
Examining data/gnupg1-1.4.23/util/fileutil.c
Examining data/gnupg1-1.4.23/util/regexec.c
Examining data/gnupg1-1.4.23/util/convert.c
Examining data/gnupg1-1.4.23/util/regex_internal.h
Examining data/gnupg1-1.4.23/util/strgutil.c
Examining data/gnupg1-1.4.23/util/memory.c
Examining data/gnupg1-1.4.23/util/http.c
Examining data/gnupg1-1.4.23/util/mkdtemp.c
Examining data/gnupg1-1.4.23/util/assuan-errors.c
Examining data/gnupg1-1.4.23/util/assuan-socket-connect.c
Examining data/gnupg1-1.4.23/util/assuan-defs.h
Examining data/gnupg1-1.4.23/util/miscutil.c
Examining data/gnupg1-1.4.23/util/simple-gettext.c
Examining data/gnupg1-1.4.23/util/assuan-socket.c
Examining data/gnupg1-1.4.23/util/srv.c
Examining data/gnupg1-1.4.23/util/regex.c
Examining data/gnupg1-1.4.23/util/strsep.c
Examining data/gnupg1-1.4.23/cipher/algorithms.h
Examining data/gnupg1-1.4.23/cipher/pubkey.c
Examining data/gnupg1-1.4.23/cipher/cast5.c
Examining data/gnupg1-1.4.23/cipher/random.h
Examining data/gnupg1-1.4.23/cipher/cipher.c
Examining data/gnupg1-1.4.23/cipher/elgamal.c
Examining data/gnupg1-1.4.23/cipher/bithelp.h
Examining data/gnupg1-1.4.23/cipher/rmd.h
Examining data/gnupg1-1.4.23/cipher/camellia-glue.c
Examining data/gnupg1-1.4.23/cipher/rijndael.c
Examining data/gnupg1-1.4.23/cipher/blowfish.c
Examining data/gnupg1-1.4.23/cipher/smallprime.c
Examining data/gnupg1-1.4.23/cipher/rndlinux.c
Examining data/gnupg1-1.4.23/cipher/sha256.c
Examining data/gnupg1-1.4.23/cipher/twofish.c
Examining data/gnupg1-1.4.23/cipher/camellia.h
Examining data/gnupg1-1.4.23/cipher/dynload.c
Examining data/gnupg1-1.4.23/cipher/rand-internal.h
Examining data/gnupg1-1.4.23/cipher/rsa.h
Examining data/gnupg1-1.4.23/cipher/sha1.c
Examining data/gnupg1-1.4.23/cipher/idea.c
Examining data/gnupg1-1.4.23/cipher/rsa.c
Examining data/gnupg1-1.4.23/cipher/rndegd.c
Examining data/gnupg1-1.4.23/cipher/rndw32.c
Examining data/gnupg1-1.4.23/cipher/dsa.h
Examining data/gnupg1-1.4.23/cipher/camellia.c
Examining data/gnupg1-1.4.23/cipher/md5.c
Examining data/gnupg1-1.4.23/cipher/des.c
Examining data/gnupg1-1.4.23/cipher/rmd160.c
Examining data/gnupg1-1.4.23/cipher/rndunix.c
Examining data/gnupg1-1.4.23/cipher/dsa.c
Examining data/gnupg1-1.4.23/cipher/sha512.c
Examining data/gnupg1-1.4.23/cipher/random.c
Examining data/gnupg1-1.4.23/cipher/md.c
Examining data/gnupg1-1.4.23/cipher/primegen.c
Examining data/gnupg1-1.4.23/cipher/elgamal.h

FINAL RESULTS:

data/gnupg1-1.4.23/g10/keyring.c:1291:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
       (chmod(fname,statbuf.st_mode)==0))
data/gnupg1-1.4.23/g10/openfile.c:476:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
       if (chmod (fname, S_IRWXU ))
data/gnupg1-1.4.23/bzlib/bzlib.c:1417:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
   strcat(mode2, writing ? "w" : "r" );
data/gnupg1-1.4.23/bzlib/bzlib_private.h:65:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf ( stderr,   \
data/gnupg1-1.4.23/bzlib/bzlib_private.h:74:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr,zf)
data/gnupg1-1.4.23/bzlib/bzlib_private.h:76:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr,zf,za1)
data/gnupg1-1.4.23/bzlib/bzlib_private.h:78:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr,zf,za1,za2)
data/gnupg1-1.4.23/bzlib/bzlib_private.h:80:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr,zf,za1,za2,za3)
data/gnupg1-1.4.23/bzlib/bzlib_private.h:82:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr,zf,za1,za2,za3,za4)
data/gnupg1-1.4.23/bzlib/bzlib_private.h:84:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   fprintf(stderr,zf,za1,za2,za3,za4,za5)
data/gnupg1-1.4.23/cipher/dynload.c:67:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(el->name, tmp );
data/gnupg1-1.4.23/cipher/dynload.c:72:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(el->name, fname );
data/gnupg1-1.4.23/cipher/random.c:162:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if ( !access (NAME_OF_DEV_RANDOM, R_OK)
data/gnupg1-1.4.23/cipher/random.c:163:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
       && !access (NAME_OF_DEV_URANDOM, R_OK))
data/gnupg1-1.4.23/cipher/random.c:833:42:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#warning There is no RUSAGE_SELF on this system
data/gnupg1-1.4.23/cipher/rndegd.c:122:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy( addr.sun_path, name );	  
data/gnupg1-1.4.23/cipher/rndunix.c:418:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(entry->path, entry->path, entry->arg, NULL);
data/gnupg1-1.4.23/cipher/rndunix.c:508:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(dataSources[i].path, X_OK)) {
data/gnupg1-1.4.23/cipher/twofish.c:1002:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   printf (encrypt_msg);
data/gnupg1-1.4.23/cipher/twofish.c:1003:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   printf (memcmp (buffer, test_decrypt, sizeof (test_decrypt)) ?
data/gnupg1-1.4.23/doc/yat2m.c:116:51:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define ATTR_PRINTF(f, a) __attribute__ ((format(printf,f,a)))
data/gnupg1-1.4.23/doc/yat2m.c:117:64:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define ATTR_NR_PRINTF(f, a) __attribute__ ((noreturn, format(printf,f,a)))
data/gnupg1-1.4.23/doc/yat2m.c:260:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, format, arg_ptr);
data/gnupg1-1.4.23/doc/yat2m.c:279:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, format, arg_ptr);
data/gnupg1-1.4.23/doc/yat2m.c:295:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (stderr, format, arg_ptr);
data/gnupg1-1.4.23/doc/yat2m.c:334:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (p, string);
data/gnupg1-1.4.23/doc/yat2m.c:389:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (m->name, name);
data/gnupg1-1.4.23/doc/yat2m.c:412:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (m->name, macroname);
data/gnupg1-1.4.23/doc/yat2m.c:449:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (m->name, nameandvalue);
data/gnupg1-1.4.23/doc/yat2m.c:542:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (cond->name, name);
data/gnupg1-1.4.23/doc/yat2m.c:649:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (lb->line+n1+1, line);
data/gnupg1-1.4.23/doc/yat2m.c:1238:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (macrovalue+macrovalueused, line);
data/gnupg1-1.4.23/doc/yat2m.c:1402:19:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                  strcpy (incname, opt_include);
data/gnupg1-1.4.23/doc/yat2m.c:1405:19:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                  strcat (incname, p);
data/gnupg1-1.4.23/g10/apdu.c:692:56:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#  error Cannot use pth_read here because it expects a system HANDLE.
data/gnupg1-1.4.23/g10/apdu.c:1555:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (reader_table[slot].rdrname, portstr? portstr : list);
data/gnupg1-1.4.23/g10/apdu.c:1598:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access (wrapperpgm, X_OK))
data/gnupg1-1.4.23/g10/apdu.c:1671:7:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execl (wrapperpgm,
data/gnupg1-1.4.23/g10/app-openpgp.c:1244:12:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      fp = popen (command, "r");
data/gnupg1-1.4.23/g10/app-openpgp.c:1523:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf (prompt_buffer, promptsize-1, PROMPTSTRING, sigcount);
data/gnupg1-1.4.23/g10/app-openpgp.c:2079:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (stpcpy (buffer, resetcode), pinvalue);
data/gnupg1-1.4.23/g10/card-util.c:428:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (serialno, info.serialno);
data/gnupg1-1.4.23/g10/card-util.c:663:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (stpcpy (stpcpy (isoname, surname), "<<"), givenname);
data/gnupg1-1.4.23/g10/cardglue.c:261:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (log_stream (), fmt, arg_ptr);
data/gnupg1-1.4.23/g10/cardglue.c:999:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (stpcpy (buf, isadmin? "OPENPGP 3 ":"OPENPGP 1 "), parm->sn);
data/gnupg1-1.4.23/g10/cardglue.c:1207:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (stpcpy (buf, "0x"), line);
data/gnupg1-1.4.23/g10/ccid-driver.c:144:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, DRVNAME t); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:146:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, DRVNAME t, (a)); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:148:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, DRVNAME t, (a), (b)); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:150:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, DRVNAME t, (a), (b), (c)); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:152:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, DRVNAME t, (a), (b), (c), (d));} while(0)
data/gnupg1-1.4.23/g10/ccid-driver.c:154:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, t); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:156:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, t, (a)); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:158:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, t, (a), (b)); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:160:22:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                     fprintf (stderr, t, (a), (b), (c)); } while (0)
data/gnupg1-1.4.23/g10/ccid-driver.c:1024:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (result, prefix);
data/gnupg1-1.4.23/g10/ccid-driver.c:1038:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (result+n, suffix);
data/gnupg1-1.4.23/g10/ccid-driver.c:1061:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (rid, prefix);
data/gnupg1-1.4.23/g10/ccid-driver.c:1181:35:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                  strcat (p, *rid_list);
data/gnupg1-1.4.23/g10/ccid-driver.c:1184:31:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                              strcat (p, rid);
data/gnupg1-1.4.23/g10/ccid-driver.c:1402:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (rid, "0000:%04X:%s:0", transports[i].type, transports[i].name);
data/gnupg1-1.4.23/g10/ccid-driver.c:1418:15:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
              strcat (p, rid_list);
data/gnupg1-1.4.23/g10/ccid-driver.c:1421:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat (p, rid);
data/gnupg1-1.4.23/g10/exec.c:100:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(p,path);
data/gnupg1-1.4.23/g10/exec.c:167:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(info->tempdir,"%s" DIRSEP_S "gpg-XXXXXX",tmp);
data/gnupg1-1.4.23/g10/exec.c:182:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(info->tempfile_in,"%s" DIRSEP_S "%s",info->tempdir,namein);
data/gnupg1-1.4.23/g10/exec.c:188:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(info->tempfile_out,"%s" DIRSEP_S "%s",info->tempdir,nameout);
data/gnupg1-1.4.23/g10/exec.c:269:8:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	      strcat(info->command,append);
data/gnupg1-1.4.23/g10/exec.c:410:8:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	      execlp(program,program,(void *)NULL);
data/gnupg1-1.4.23/g10/exec.c:417:8:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	      execlp(shell,shell,"-c",(*info)->command,(void *)NULL);
data/gnupg1-1.4.23/g10/exec.c:506:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      info->progreturn=system(info->command);
data/gnupg1-1.4.23/g10/free-packet.c:213:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (d->email, s->email);
data/gnupg1-1.4.23/g10/getkey.c:2939:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		  sprintf(p, "%s %.*s", keystr(keyid), r->len, r->name );
data/gnupg1-1.4.23/g10/getkey.c:2946:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(p, "%s [?]", keystr(keyid));
data/gnupg1-1.4.23/g10/gpg.c:1643:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(str,argv[i]);
data/gnupg1-1.4.23/g10/gpg.c:1780:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  while (access (configname, R_OK));
data/gnupg1-1.4.23/g10/gpg.c:1786:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (! access (configname, R_OK))
data/gnupg1-1.4.23/g10/gpg.c:1790:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (! access (p, R_OK))
data/gnupg1-1.4.23/g10/gpg.c:1798:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (!access (p, R_OK))
data/gnupg1-1.4.23/g10/gpg.c:2560:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		  strcat(compress_algo_string,pargs.r.ret_str);
data/gnupg1-1.4.23/g10/gpg.c:3269:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (!access (p, F_OK))
data/gnupg1-1.4.23/g10/gpg.c:3442:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(sl->d, fname);
data/gnupg1-1.4.23/g10/gpg.c:3455:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	    strcpy(sl->d, fname);
data/gnupg1-1.4.23/g10/gpg.c:3479:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(sl->d, fname);
data/gnupg1-1.4.23/g10/gpg.c:3614:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    if( access( argv[1], R_OK ) ) {
data/gnupg1-1.4.23/g10/import.c:651:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (buf, id->name);
data/gnupg1-1.4.23/g10/keydb.c:86:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (!access (filename, F_OK))
data/gnupg1-1.4.23/g10/keydb.c:101:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(filename, F_OK))
data/gnupg1-1.4.23/g10/keydb.c:110:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (filename, F_OK))
data/gnupg1-1.4.23/g10/keydb.c:148:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (!access(filename, F_OK))
data/gnupg1-1.4.23/g10/keygen.c:192:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(pkt->pkt.user_id->name, s);
data/gnupg1-1.4.23/g10/keygen.c:1763:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(prompt,PROMPTSTRING,def_expire);
data/gnupg1-1.4.23/g10/keygen.c:2071:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(uid->name, p);
data/gnupg1-1.4.23/g10/keygen.c:2692:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy( r->u.value, value );
data/gnupg1-1.4.23/g10/keygen.c:2772:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy( r->u.value, card_serialno);
data/gnupg1-1.4.23/g10/keygen.c:2810:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (r->u.value, backup_encryption_dir);
data/gnupg1-1.4.23/g10/keygen.c:2865:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
              sprintf( r->u.value, "%s%s%s",
data/gnupg1-1.4.23/g10/keygen.c:2905:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy( r->u.value, uid );
data/gnupg1-1.4.23/g10/keygen.c:3497:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (para->u.value, serialno);
data/gnupg1-1.4.23/g10/keyring.c:219:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (kr->fname, fname);
data/gnupg1-1.4.23/g10/keyring.c:242:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return r? !access (r->fname, W_OK) : 0;
data/gnupg1-1.4.23/g10/keyring.c:1187:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (bakfname, template);
data/gnupg1-1.4.23/g10/keyring.c:1188:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (bakfname+strlen(template)-4, EXTSEP_S "bak");
data/gnupg1-1.4.23/g10/keyring.c:1191:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (tmpfname,template);
data/gnupg1-1.4.23/g10/keyring.c:1192:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (tmpfname+strlen(template)-4, EXTSEP_S "tmp");
data/gnupg1-1.4.23/g10/keyring.c:1197:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (stpcpy(bakfname, template), EXTSEP_S "bak");
data/gnupg1-1.4.23/g10/keyring.c:1200:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy (stpcpy(tmpfname, template), EXTSEP_S "tmp");
data/gnupg1-1.4.23/g10/keyring.c:1204:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (stpcpy (bakfname, template), GNUPG_BAK_SFX);
data/gnupg1-1.4.23/g10/keyring.c:1207:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (stpcpy(tmpfname, template), GNUPG_TMP_SFX);
data/gnupg1-1.4.23/g10/keyring.c:1526:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access (fname, W_OK))
data/gnupg1-1.4.23/g10/keyserver.c:108:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(joined,option);
data/gnupg1-1.4.23/g10/keyserver.c:110:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(joined,arg);
data/gnupg1-1.4.23/g10/keyserver.c:294:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(keyserver->uri,keyserver->scheme);
data/gnupg1-1.4.23/g10/keyserver.c:296:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(keyserver->uri,uri);
data/gnupg1-1.4.23/g10/keyserver.c:1125:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(command,libexecdir);
data/gnupg1-1.4.23/g10/keyserver.c:1127:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (command, DIRSEP_S);
data/gnupg1-1.4.23/g10/keyserver.c:1139:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(command,GPGKEYS_PREFIX);
data/gnupg1-1.4.23/g10/keyserver.c:1140:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(command,scheme);
data/gnupg1-1.4.23/g10/keyserver.c:1151:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(command,EXEEXT);
data/gnupg1-1.4.23/g10/keyserver.c:1155:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(end,GPGKEYS_CURL);
data/gnupg1-1.4.23/g10/keyserver.c:1163:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(command,KEYSERVER_ARGS_KEEP);
data/gnupg1-1.4.23/g10/keyserver.c:1169:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(command,KEYSERVER_ARGS_NOKEEP);
data/gnupg1-1.4.23/g10/keyserver.c:1519:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(searchstr,key->d);
data/gnupg1-1.4.23/g10/keyserver.c:2307:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(keyserver->host,srvlist[i].target);
data/gnupg1-1.4.23/g10/keyserver.c:2317:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(keyserver->host,port);
data/gnupg1-1.4.23/g10/keyserver.c:2332:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(keyserver->host,domain);
data/gnupg1-1.4.23/g10/mainproc.c:1424:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (pka->email, nd->value);
data/gnupg1-1.4.23/g10/mainproc.c:1903:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(bufp, " %s %lu %lu %d 0 %d %d %02X ",
data/gnupg1-1.4.23/g10/misc.c:661:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		    strcpy(&ret[idx],str);
data/gnupg1-1.4.23/g10/misc.c:1220:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          if (access (dir, F_OK))
data/gnupg1-1.4.23/g10/misc.c:1291:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return access(file,mode);
data/gnupg1-1.4.23/g10/misc.c:1302:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(buffer,item);
data/gnupg1-1.4.23/g10/misc.c:1304:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(buffer,file);
data/gnupg1-1.4.23/g10/misc.c:1305:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	  ret=access(buffer,mode);
data/gnupg1-1.4.23/g10/openfile.c:70:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access( fname, F_OK ) )
data/gnupg1-1.4.23/g10/openfile.c:158:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(prompt, "%s [%s]: ", s, defname );
data/gnupg1-1.4.23/g10/openfile.c:160:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(prompt, "%s: ", s );
data/gnupg1-1.4.23/g10/openfile.c:229:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(buf,iname);
data/gnupg1-1.4.23/g10/openfile.c:240:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (dot, newsfx );
data/gnupg1-1.4.23/g10/openfile.c:243:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy ( dot, newsfx+1 );
data/gnupg1-1.4.23/g10/openfile.c:245:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat ( buf, newsfx ); /* Just append the new suffix. */
data/gnupg1-1.4.23/g10/openfile.c:255:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy(stpcpy(buf,iname), mode==1 ? EXTSEP_S "asc" :
data/gnupg1-1.4.23/g10/openfile.c:324:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (fname, R_OK ))
data/gnupg1-1.4.23/g10/openfile.c:386:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(stpcpy(fname, datadir), DIRSEP_S "options" SKELEXT );
data/gnupg1-1.4.23/g10/openfile.c:399:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(stpcpy(fname, destdir), DIRSEP_S "gpg" EXTSEP_S "conf" );
data/gnupg1-1.4.23/g10/parse-packet.c:1930:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf (listfp,
data/gnupg1-1.4.23/g10/passphrase.c:83:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(next_pw, s );
data/gnupg1-1.4.23/g10/passphrase.c:121:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(fd_passwd,pass);
data/gnupg1-1.4.23/g10/passphrase.c:185:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (stpcpy (stpcpy (stpcpy (line, "OPTION "), name), "="), value);
data/gnupg1-1.4.23/g10/passphrase.c:546:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf( maink, KEYIDSTRING, keystr(&keyid[2]) );
data/gnupg1-1.4.23/g10/passphrase.c:563:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (atext, PROMPTSTRING,
data/gnupg1-1.4.23/g10/passphrase.c:810:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (pw, fd_passwd);
data/gnupg1-1.4.23/g10/passphrase.c:979:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy( pw, fd_passwd );
data/gnupg1-1.4.23/g10/photoid.c:352:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name,"%08lX" EXTSEP_S "%s",(ulong)kid[1],
data/gnupg1-1.4.23/g10/photoid.c:355:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name,"%08lX%08lX" EXTSEP_S "%s",(ulong)kid[0],(ulong)kid[1],
data/gnupg1-1.4.23/g10/plaintext.c:99:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(fname, opt.outfile );
data/gnupg1-1.4.23/g10/revoke.c:705:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(stpcpy(stpcpy( p, description),"\n"),answer);
data/gnupg1-1.4.23/g10/sig-check.c:164:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buffer, "%s %s %lu",
data/gnupg1-1.4.23/g10/tdbio.c:534:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access( fname, F_OK ) ) {
data/gnupg1-1.4.23/g10/tdbio.c:536:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (fname, F_OK ))
data/gnupg1-1.4.23/g10/tdbio.c:544:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access( fname, R_OK ) ) {
data/gnupg1-1.4.23/g10/verify.c:130:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(p, "%d %s", what, name );
data/gnupg1-1.4.23/include/estream-printf.h:68:65:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define _ESTREAM_GCC_A_PRINTF( f, a )  __attribute__ ((format (printf,f,a)))
data/gnupg1-1.4.23/include/ttyio.h:30:66:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
 void tty_printf (const char *fmt, ... ) __attribute__ ((format (printf,1,2)));
data/gnupg1-1.4.23/include/ttyio.h:32:57:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                __attribute__ ((format (printf,2,3)));
data/gnupg1-1.4.23/include/util.h:86:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			    __attribute__ ((noreturn, format (printf,1,2)));
data/gnupg1-1.4.23/include/util.h:89:42:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			    __attribute__ ((noreturn, format (printf,1,2)));
data/gnupg1-1.4.23/include/util.h:90:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  void g10_log_error( const char *fmt, ... ) __attribute__ ((format (printf,1,2)));
data/gnupg1-1.4.23/include/util.h:91:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  void g10_log_info( const char *fmt, ... )  __attribute__ ((format (printf,1,2)));
data/gnupg1-1.4.23/include/util.h:92:73:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  void g10_log_warning( const char *fmt, ... )  __attribute__ ((format (printf,1,2)));
data/gnupg1-1.4.23/include/util.h:93:70:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  void g10_log_debug( const char *fmt, ... ) __attribute__ ((format (printf,1,2)));
data/gnupg1-1.4.23/include/util.h:334:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access(a,b) riscos_access((a),(b))
data/gnupg1-1.4.23/intl/dcigettext.c:797:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		      strcpy (new_localename, localename);
data/gnupg1-1.4.23/intl/langprefs.c:297:29:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                            strcpy (p, buf);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:326:15:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#if !(defined fprintf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:327:8:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef fprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:328:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fprintf libintl_fprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:329:12:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int fprintf (FILE *, const char *, ...);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:331:15:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#if !(defined vfprintf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:332:8:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vfprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:333:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vfprintf libintl_vfprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:334:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int vfprintf (FILE *, const char *, va_list);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:337:15:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:338:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef printf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:351:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printf libintl_printf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:352:12:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int printf (const char *, ...);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:354:15:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#if !(defined vprintf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:355:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:356:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vprintf libintl_vprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:357:12:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int vprintf (const char *, va_list);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:360:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#if !(defined sprintf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:361:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:362:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define sprintf libintl_sprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:363:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern int sprintf (char *, const char *, ...);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:365:15:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#if !(defined vsprintf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:366:8:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef vsprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:367:9:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define vsprintf libintl_vsprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:368:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern int vsprintf (char *, const char *, va_list);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:373:15:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#if !(defined snprintf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:374:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:375:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf libintl_snprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:376:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
extern int snprintf (char *, size_t, const char *, ...);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:378:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#if !(defined vsnprintf && defined _GL_STDIO_H) /* don't override gnulib */
data/gnupg1-1.4.23/intl/libgnuintl.in.h:379:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef vsnprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:380:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf libintl_vsnprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:381:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
extern int vsnprintf (char *, size_t, const char *, va_list);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:403:8:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef fwprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:404:9:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define fwprintf libintl_fwprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:405:12:  [4] (format) fwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int fwprintf (FILE *, const wchar_t *, ...);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:406:8:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vfwprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:407:9:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vfwprintf libintl_vfwprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:408:12:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int vfwprintf (FILE *, const wchar_t *, va_list);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:410:8:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef wprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:411:9:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define wprintf libintl_wprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:412:12:  [4] (format) wprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int wprintf (const wchar_t *, ...);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:413:8:  [4] (format) vwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vwprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:414:9:  [4] (format) vwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vwprintf libintl_vwprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:415:12:  [4] (format) vwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern int vwprintf (const wchar_t *, va_list);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:417:8:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef swprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:418:9:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define swprintf libintl_swprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:419:12:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern int swprintf (wchar_t *, size_t, const wchar_t *, ...);
data/gnupg1-1.4.23/intl/libgnuintl.in.h:420:8:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef vswprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:421:9:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define vswprintf libintl_vswprintf
data/gnupg1-1.4.23/intl/libgnuintl.in.h:422:12:  [4] (format) vswprintf:
  Potential format string problem (CWE-134). Make format string constant.
extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list);
data/gnupg1-1.4.23/intl/localcharset.c:239:23:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                      strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
data/gnupg1-1.4.23/intl/localcharset.c:240:23:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                      strcpy (res_ptr + res_size - (l2 + 1), buf2);
data/gnupg1-1.4.23/intl/localcharset.c:481:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (buf, "CP%s", pdot + 1);
data/gnupg1-1.4.23/intl/localename.c:1354:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (name, legacy_table[i1].unixy);
data/gnupg1-1.4.23/intl/localename.c:1378:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (name, langtag_table[i1].unixy);
data/gnupg1-1.4.23/intl/localename.c:1398:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (name + 3, script_table[i1].unixy);
data/gnupg1-1.4.23/intl/localename.c:2577:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (last_locale, locale_name);
data/gnupg1-1.4.23/intl/log.c:88:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (last_logfilename, logfilename);
data/gnupg1-1.4.23/intl/os2compat.c:95:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (libintl_nl_default_dirname, _nlos2_localedir);
data/gnupg1-1.4.23/intl/plural.c:756:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/gnupg1-1.4.23/intl/printf.c:98:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfprintf (stream, format, args);
data/gnupg1-1.4.23/intl/printf.c:158:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    return vsprintf (resultbuf, format, args);
data/gnupg1-1.4.23/intl/printf.c:197:29:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define system_vsnprintf vsnprintf
data/gnupg1-1.4.23/intl/printf.c:203:28:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define system_vsnprintf vsnprintf
data/gnupg1-1.4.23/intl/printf.c:317:28:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define system_vswprintf vswprintf
data/gnupg1-1.4.23/intl/printf.c:325:12:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfwprintf (stream, format, args);
data/gnupg1-1.4.23/intl/relocatable.c:471:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (result, curr_prefix);
data/gnupg1-1.4.23/intl/relocatable.c:487:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (result + curr_prefix_len, pathname_tail);
data/gnupg1-1.4.23/intl/setlocale.c:712:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy (ll_buf + (underscore - llCC_buf), territory_end);
data/gnupg1-1.4.23/intl/vasnprintf.c:162:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/gnupg1-1.4.23/intl/vasnprintf.c:180:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define SNPRINTF snprintf
data/gnupg1-1.4.23/intl/vasnprintf.c:182:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   undef snprintf
data/gnupg1-1.4.23/intl/vasnprintf.c:184:21:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define SNPRINTF _snprintf
data/gnupg1-1.4.23/intl/vasnprintf.c:188:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF snprintf
data/gnupg1-1.4.23/intl/vasnprintf.c:190:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  undef snprintf
data/gnupg1-1.4.23/intl/vasnprintf.c:194:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/gnupg1-1.4.23/intl/vasnprintf.c:4256:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf ((char *) p, decimal_format, exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:4264:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf (expbuf, decimal_format, exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:4449:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf ((char *) p, decimal_format, exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:4457:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf (expbuf, decimal_format, exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:4969:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, arg);                    \
data/gnupg1-1.4.23/intl/vasnprintf.c:4972:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, prefixes[0], arg);       \
data/gnupg1-1.4.23/intl/vasnprintf.c:4975:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
data/gnupg1-1.4.23/intl/vasnprintf.h:35:22:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define __printf__ printf
data/gnupg1-1.4.23/keyserver/curl-shim.c:71:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(curl->errorbuffer,str);
data/gnupg1-1.4.23/keyserver/curl-shim.c:365:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(&enc[enc_idx],numbuf);
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:71:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(request,"%s://%s%s%s%s",opt->scheme,opt->host,
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:110:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  return strcat(dest,src);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:176:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(key,line);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:206:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(key,encoded_key);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:208:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(request,proto);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:210:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->host);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:212:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,port);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:213:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->path);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:274:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(request,proto);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:276:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->host);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:278:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,port);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:279:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->path);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:297:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,offset);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:392:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(request,proto);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:394:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->host);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:396:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,port);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:397:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->path);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:399:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,searchkey_encoded);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:507:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(request,proto);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:509:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->host);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:511:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,port);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:512:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,opt->path);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:520:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(request,searchkey_encoded);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:607:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(srvname,srvtag);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:609:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(srvname,opt->host);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:646:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		  sprintf (entry, "%s:%s:%s", opt->host, portstr, ipaddr);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:647:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		  sprintf (host, "%s %s", HOST_HEADER, opt->host);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:978:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(work->str,line);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:1088:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(searchkey,keyptr->str);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:672:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(dn,"pgpCertID=%s,%s",keyid,basekeyspacedn);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:748:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(key,line);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:838:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(dn,basekeyspacedn);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:889:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(key[0],line);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1387:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(search,searchkey);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1693:8:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	      strcat(object,context[i]);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:2068:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy(work->str,line);
data/gnupg1-1.4.23/keyserver/ksutil.c:474:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	  fprintf(ctx->stream,BEGIN"\n\n");
data/gnupg1-1.4.23/keyserver/ksutil.c:503:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		      fprintf(ctx->stream,BEGIN);
data/gnupg1-1.4.23/keyserver/ksutil.c:560:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(ctx->stream,"\n"END);
data/gnupg1-1.4.23/mpi/mpicoder.c:302:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    n += fprintf(fp, i!=a->nlimbs? "%0" X "lX":"%lX", (ulong)a->d[i-1]);
data/gnupg1-1.4.23/tools/gpgsplit.c:210:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (name, "%s%06u-%03d" EXTSEP_S "%.40s",
data/gnupg1-1.4.23/tools/shmtest.c:125:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(p, argv[i] );
data/gnupg1-1.4.23/tools/shmtest.c:128:10:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    fp = popen( p, "r" );
data/gnupg1-1.4.23/util/argparse.c:306:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (item->name, name);
data/gnupg1-1.4.23/util/assuan-defs.h:217:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
 __attribute__ ((format (printf,1,2)))
data/gnupg1-1.4.23/util/assuan-logging.c:95:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf (fp, format, arg_ptr );
data/gnupg1-1.4.23/util/dotlock.c:381:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_info_0(a)       fprintf (stderr, (a))
data/gnupg1-1.4.23/util/dotlock.c:382:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_info_1(a,b)     fprintf (stderr, (a), (b))
data/gnupg1-1.4.23/util/dotlock.c:383:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_info_2(a,b,c)   fprintf (stderr, (a), (b), (c))
data/gnupg1-1.4.23/util/dotlock.c:384:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_info_3(a,b,c,d) fprintf (stderr, (a), (b), (c), (d))
data/gnupg1-1.4.23/util/dotlock.c:385:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_error_0(a)      fprintf (stderr, (a))
data/gnupg1-1.4.23/util/dotlock.c:386:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_error_1(a,b)    fprintf (stderr, (a), (b))
data/gnupg1-1.4.23/util/dotlock.c:387:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_error_2(a,b,c)  fprintf (stderr, (a), (b), (c))
data/gnupg1-1.4.23/util/dotlock.c:388:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_debug_1(a,b)    fprintf (stderr, (a), (b))
data/gnupg1-1.4.23/util/dotlock.c:389:34:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
# define my_fatal_0(a)      do { fprintf (stderr,(a)); fflush (stderr); \
data/gnupg1-1.4.23/util/dotlock.c:587:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (lname, tname);
data/gnupg1-1.4.23/util/dotlock.c:713:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (stpcpy (h->lockname, file_to_lock), EXTSEP_S "lock");
data/gnupg1-1.4.23/util/dotlock.c:754:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (stpcpy(h->lockname, file_to_lock), EXTSEP_S "lock");
data/gnupg1-1.4.23/util/estream-printf.c:1062:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf (numbuf, p, adblfloat);
data/gnupg1-1.4.23/util/estream-printf.c:1065:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf (numbuf, p, afloat);
data/gnupg1-1.4.23/util/http.c:280:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy( (*ret_uri)->buffer, uri );
data/gnupg1-1.4.23/util/http.c:556:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(proxy_authstr,"Proxy-Authorization: Basic %s\r\n",x);
data/gnupg1-1.4.23/util/http.c:580:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(authstr,"Authorization: Basic %s\r\n",x);
data/gnupg1-1.4.23/util/http.c:594:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( request, "%s http://%s:%hu%s%s HTTP/1.0\r\n%s%s",
data/gnupg1-1.4.23/util/http.c:609:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( request, "%s %s%s HTTP/1.0\r\nHost: %s%s\r\n%s",
data/gnupg1-1.4.23/util/http.c:873:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(srvname,srv->srvtag);
data/gnupg1-1.4.23/util/http.c:875:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(srvname,server);
data/gnupg1-1.4.23/util/iobuf.c:348:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (cc->fname, fname);
data/gnupg1-1.4.23/util/iobuf.c:1144:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fcx->fname, fname );
data/gnupg1-1.4.23/util/iobuf.c:1245:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fcx->fname, fname );
data/gnupg1-1.4.23/util/iobuf.c:1280:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fcx->fname, fname );
data/gnupg1-1.4.23/util/iobuf.c:1309:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(fcx->fname, fname );
data/gnupg1-1.4.23/util/logger.c:167:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(logfp,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/logger.c:189:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(logfp,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/logger.c:204:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(logfp,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/logger.c:220:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(logfp,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/logger.c:237:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/logger.c:266:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(logfp,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/memory.c:359:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/memory.c:641:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(p, a);
data/gnupg1-1.4.23/util/memory.c:651:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (p, a);
data/gnupg1-1.4.23/util/simple-gettext.c:275:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (langid, p);
data/gnupg1-1.4.23/util/simple-gettext.c:403:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (p, buf);
data/gnupg1-1.4.23/util/simple-gettext.c:414:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
              strcpy (os->d, buf);
data/gnupg1-1.4.23/util/strgutil.c:189:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(sl->d, string);
data/gnupg1-1.4.23/util/strgutil.c:221:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(sl->d, string);
data/gnupg1-1.4.23/util/strgutil.c:277:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(str,sl->d);
data/gnupg1-1.4.23/util/strgutil.c:797:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (buffer, string);
data/gnupg1-1.4.23/util/timegm.c:53:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	  strcat(old_zone,zone);
data/gnupg1-1.4.23/util/ttyio.c:282:24:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    last_prompt_len += vfprintf(ttyfp,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/ttyio.c:299:7:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      vfprintf (fp, fmt, arg_ptr );
data/gnupg1-1.4.23/util/ttyio.c:330:24:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    last_prompt_len += vfprintf(ttyfp,fmt,arg_ptr) ;
data/gnupg1-1.4.23/util/ttyio.c:608:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (buf, line);
data/gnupg1-1.4.23/util/w32reg.c:133:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy (result, tmp);
data/gnupg1-1.4.23/zlib/zutil.h:195:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Trace(x) {if (z_verbose>=0) fprintf x ;}
data/gnupg1-1.4.23/zlib/zutil.h:196:39:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracev(x) {if (z_verbose>0) fprintf x ;}
data/gnupg1-1.4.23/zlib/zutil.h:197:40:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracevv(x) {if (z_verbose>1) fprintf x ;}
data/gnupg1-1.4.23/zlib/zutil.h:198:48:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
data/gnupg1-1.4.23/zlib/zutil.h:199:49:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
data/gnupg1-1.4.23/cipher/random.c:898:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(make_timestamp()*getpid());
data/gnupg1-1.4.23/cipher/random.c:900:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(make_timestamp()*getpid());
data/gnupg1-1.4.23/cipher/random.c:911:38:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	*p++ = ((unsigned)(1 + (int) (256.0*random()/(RAND_MAX+1.0)))-1);
data/gnupg1-1.4.23/cipher/rndunix.c:665:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *s = getenv("GNUPG_RNDUNIX_DBG");
data/gnupg1-1.4.23/cipher/rndunix.c:674:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	dbgall = !!getenv("GNUPG_RNDUNIX_DBGALL");
data/gnupg1-1.4.23/cipher/rndw32.c:364:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	if ( (hNetAPI32 = LoadLibrary ("NETAPI32.DLL")) ) {
data/gnupg1-1.4.23/cipher/rndw32.c:480:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (getenv("GNUPG_RNDW32_NOPERF"))
data/gnupg1-1.4.23/g10/exec.c:79:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
  if(!CreateProcess(NULL,string,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi))
data/gnupg1-1.4.23/g10/exec.c:79:7:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
  if(!CreateProcess(NULL,string,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi))
data/gnupg1-1.4.23/g10/exec.c:148:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      tmp=getenv("TMPDIR");
data/gnupg1-1.4.23/g10/exec.c:151:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  tmp=getenv("TMP");
data/gnupg1-1.4.23/g10/exec.c:379:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  char *shell=getenv("SHELL");
data/gnupg1-1.4.23/g10/gpg.c:972:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  str=getenv("COLUMNS");
data/gnupg1-1.4.23/g10/gpg.c:976:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  str=getenv("LINES");
data/gnupg1-1.4.23/g10/misc.c:1196:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  dir = getenv("GNUPGHOME");
data/gnupg1-1.4.23/g10/misc.c:1280:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  envpath=getenv("PATH");
data/gnupg1-1.4.23/g10/passphrase.c:203:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  dft_display = getenv ("DISPLAY");
data/gnupg1-1.4.23/g10/passphrase.c:211:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  dbus_session_address = getenv ("DBUS_SESSION_BUS_ADDRESS");
data/gnupg1-1.4.23/g10/passphrase.c:223:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      dft_ttyname = getenv ("GPG_TTY");
data/gnupg1-1.4.23/g10/passphrase.c:236:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  dft_ttytype = getenv ("TERM");
data/gnupg1-1.4.23/g10/passphrase.c:310:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      infostr = getenv ( "GPG_AGENT_INFO" );
data/gnupg1-1.4.23/include/dynload.h:33:15:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  void * hd = LoadLibrary (name);
data/gnupg1-1.4.23/intl/dcigettext.c:141:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
char *getwd ();
data/gnupg1-1.4.23/intl/dcigettext.c:142:28:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define getcwd(buf, max) getwd (buf)
data/gnupg1-1.4.23/intl/dcigettext.c:864:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED");
data/gnupg1-1.4.23/intl/dcigettext.c:1587:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  language = getenv ("LANGUAGE");
data/gnupg1-1.4.23/intl/dcigettext.c:1627:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  const char *value = getenv ("OUTPUT_CHARSET");
data/gnupg1-1.4.23/intl/langprefs.c:327:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if (!cache_initialized && getenv ("GETTEXT_MUI") != NULL)
data/gnupg1-1.4.23/intl/localcharset.c:138:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      dir = getenv ("CHARSETALIASDIR");
data/gnupg1-1.4.23/intl/localcharset.c:384:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      locale = getenv ("LC_ALL");
data/gnupg1-1.4.23/intl/localcharset.c:387:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          locale = getenv ("LC_CTYPE");
data/gnupg1-1.4.23/intl/localcharset.c:389:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            locale = getenv ("LANG");
data/gnupg1-1.4.23/intl/localcharset.c:445:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      locale = getenv ("LC_ALL");
data/gnupg1-1.4.23/intl/localcharset.c:448:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          locale = getenv ("LC_CTYPE");
data/gnupg1-1.4.23/intl/localcharset.c:450:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            locale = getenv ("LANG");
data/gnupg1-1.4.23/intl/localcharset.c:504:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  locale = getenv ("LC_ALL");
data/gnupg1-1.4.23/intl/localcharset.c:507:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      locale = getenv ("LC_CTYPE");
data/gnupg1-1.4.23/intl/localcharset.c:509:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        locale = getenv ("LANG");
data/gnupg1-1.4.23/intl/localename.c:1458:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("GETTEXT_MUI") != NULL)
data/gnupg1-1.4.23/intl/localename.c:2812:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  retval = getenv ("LC_ALL");
data/gnupg1-1.4.23/intl/localename.c:2816:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  retval = getenv (categoryname);
data/gnupg1-1.4.23/intl/localename.c:2820:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  retval = getenv ("LANG");
data/gnupg1-1.4.23/intl/lock.c:639:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:657:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:776:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:797:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:827:15:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
              EnterCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:851:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:880:15:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
              EnterCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:895:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:957:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:979:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection (&lock->lock);
data/gnupg1-1.4.23/intl/lock.c:1026:11:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
          InitializeCriticalSection (&once_control->lock);
data/gnupg1-1.4.23/intl/lock.c:1027:11:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
          EnterCriticalSection (&once_control->lock);
data/gnupg1-1.4.23/intl/lock.c:1046:15:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
              EnterCriticalSection (&once_control->lock);
data/gnupg1-1.4.23/intl/os2compat.c:49:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *root = getenv ("UNIXROOT");
data/gnupg1-1.4.23/intl/os2compat.c:50:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *gnulocaledir = getenv ("GNULOCALEDIR");
data/gnupg1-1.4.23/intl/os2compat.h:41:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv _nl_getenv
data/gnupg1-1.4.23/keyserver/curl-shim.c:183:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    proxy=getenv(HTTP_PROXY_ENV);
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:138:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((arg=getopt(argc,argv,"hVo:"))!=-1)
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:382:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((arg=getopt(argc,argv,"hVo:"))!=-1)
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:729:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((arg=getopt(argc,argv,"hVo:"))!=-1)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1826:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((arg=getopt(argc,argv,"hVo:"))!=-1)
data/gnupg1-1.4.23/tools/make-dns-cert.c:193:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((arg=getopt(argc,argv,"hf:u:k:n:"))!=-1)
data/gnupg1-1.4.23/tools/mk-tdata.c:48:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(getpid());
data/gnupg1-1.4.23/tools/mk-tdata.c:61:44:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
          c = ((unsigned)(1 + (int) (256.0*random()/(RAND_MAX+1.0)))-1);
data/gnupg1-1.4.23/util/fileutil.c:117:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *tmp=getenv("HOME");
data/gnupg1-1.4.23/util/simple-gettext.c:269:36:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          if (!envvar_mode && (p = getenv ("LANGUAGE")) && *p)
data/gnupg1-1.4.23/util/srv.c:186:7:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      srand(time(NULL)*getpid());
data/gnupg1-1.4.23/util/strgutil.c:617:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        lc = getenv ("LC_ALL");
data/gnupg1-1.4.23/util/strgutil.c:619:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            lc = getenv ("LC_CTYPE");
data/gnupg1-1.4.23/util/strgutil.c:621:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                lc = getenv ("LANG");
data/gnupg1-1.4.23/util/timegm.c:41:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  zone=getenv("TZ");
data/gnupg1-1.4.23/bzlib/bzlib.c:1390:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   unused[BZ_MAX_UNUSED];
data/gnupg1-1.4.23/bzlib/bzlib.c:1393:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char   mode2[10]     = "";
data/gnupg1-1.4.23/bzlib/bzlib.c:1425:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(path,mode2);
data/gnupg1-1.4.23/cipher/blowfish.c:280:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/gnupg1-1.4.23/cipher/camellia-glue.c:46:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128];
data/gnupg1-1.4.23/cipher/camellia.c:945:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char kk[32];
data/gnupg1-1.4.23/cipher/camellia.c:948:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(kk, key, 24);
data/gnupg1-1.4.23/cipher/camellia.c:949:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((unsigned char *)&krll, key+16,4);
data/gnupg1-1.4.23/cipher/camellia.c:950:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((unsigned char *)&krlr, key+20,4);
data/gnupg1-1.4.23/cipher/camellia.c:953:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(kk+24, (unsigned char *)&krrl, 4);
data/gnupg1-1.4.23/cipher/camellia.c:954:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(kk+28, (unsigned char *)&krrr, 4);
data/gnupg1-1.4.23/cipher/cast5.c:355:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/gnupg1-1.4.23/cipher/cipher.c:66:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char iv[MAX_BLOCKSIZE];	
data/gnupg1-1.4.23/cipher/cipher.c:489:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( c->u_iv.iv, iv, ivlen );
data/gnupg1-1.4.23/cipher/cipher.c:533:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c->u_iv.iv, outbuf, blocksize );
data/gnupg1-1.4.23/cipher/cipher.c:551:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c->lastiv, inbuf, blocksize );
data/gnupg1-1.4.23/cipher/cipher.c:555:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c->u_iv.iv, c->lastiv, blocksize );
data/gnupg1-1.4.23/cipher/cipher.c:621:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy( c->lastiv, c->u_iv.iv, blocksize );
data/gnupg1-1.4.23/cipher/cipher.c:631:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (c->lastiv, c->u_iv.iv, blocksize );
data/gnupg1-1.4.23/cipher/cipher.c:714:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ( c->lastiv, c->u_iv.iv, blocksize);
data/gnupg1-1.4.23/cipher/cipher.c:729:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy ( c->lastiv, c->u_iv.iv, blocksize );
data/gnupg1-1.4.23/cipher/cipher.c:818:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(c->u_iv.iv, c->lastiv + c->blocksize - c->unused, c->unused);
data/gnupg1-1.4.23/cipher/des.c:454:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/gnupg1-1.4.23/cipher/des.c:806:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (key, temp3, 8);
data/gnupg1-1.4.23/cipher/des.c:807:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (input, temp1, 8);
data/gnupg1-1.4.23/cipher/des.c:912:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char	error[80];
data/gnupg1-1.4.23/cipher/des.c:920:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (error, "Triple-DES SSLeay test pattern no. %d failend on encryption.", i+1);
data/gnupg1-1.4.23/cipher/des.c:926:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (error, "Triple-DES SSLeay test pattern no. %d failend on decryption.", i+1);
data/gnupg1-1.4.23/cipher/dsa.c:104:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( rndbuf,pp, 4 );
data/gnupg1-1.4.23/cipher/dsa.c:220:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(rndbuf, r, 16/8 );
data/gnupg1-1.4.23/cipher/dynload.c:32:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1];
data/gnupg1-1.4.23/cipher/elgamal.c:199:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( rndbuf,pp, 4 );
data/gnupg1-1.4.23/cipher/elgamal.c:291:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(rndbuf, r, 16/8 );
data/gnupg1-1.4.23/cipher/idea.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/gnupg1-1.4.23/cipher/idea.c:170:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dk, temp, sizeof(temp) );
data/gnupg1-1.4.23/cipher/md.c:251:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( b, a, sizeof *a + a->bufsize - 1 );
data/gnupg1-1.4.23/cipher/md.c:261:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( br, ar, sizeof(*br) + ar->contextsize
data/gnupg1-1.4.23/cipher/md.c:409:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( context, r->context.c, r->contextsize );
data/gnupg1-1.4.23/cipher/md.c:415:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buffer, digest, buflen );
data/gnupg1-1.4.23/cipher/md.c:498:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[25];
data/gnupg1-1.4.23/cipher/md.c:505:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "dbgmd-%05d" EXTSEP_S "%.10s", idx, suffix );
data/gnupg1-1.4.23/cipher/md.c:506:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    md->debug = fopen(buf, "wb");
data/gnupg1-1.4.23/cipher/md5.c:78:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/gnupg1-1.4.23/cipher/md5.c:113:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( correct_words, data, 64 );
data/gnupg1-1.4.23/cipher/random.c:233:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/gnupg1-1.4.23/cipher/random.c:282:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buffer, p, length );
data/gnupg1-1.4.23/cipher/random.c:365:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hashbuf, pend - DIGESTLEN, DIGESTLEN );
data/gnupg1-1.4.23/cipher/random.c:366:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hashbuf+DIGESTLEN, pool, BLOCKLEN-DIGESTLEN);
data/gnupg1-1.4.23/cipher/random.c:368:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pool, hashbuf, DIGESTLEN);
data/gnupg1-1.4.23/cipher/random.c:374:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(hashbuf, p, BLOCKLEN);
data/gnupg1-1.4.23/cipher/random.c:386:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p, hashbuf, DIGESTLEN);
data/gnupg1-1.4.23/cipher/random.c:453:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char buffer[POOLSIZE];
data/gnupg1-1.4.23/cipher/random.c:460:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( seed_file_name, O_RDONLY | O_BINARY );
data/gnupg1-1.4.23/cipher/random.c:463:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( seed_file_name, O_RDONLY, 0777, "shr=get,put,upd" );
data/gnupg1-1.4.23/cipher/random.c:465:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( seed_file_name, O_RDONLY );
data/gnupg1-1.4.23/cipher/random.c:583:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( seed_file_name, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,
data/gnupg1-1.4.23/cipher/random.c:587:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( seed_file_name, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR );
data/gnupg1-1.4.23/cipher/random.c:595:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        while ((fd = open( seed_file_name,
data/gnupg1-1.4.23/cipher/random.c:617:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( seed_file_name, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR );
data/gnupg1-1.4.23/cipher/random.c:710:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( buffer, keypool, length );
data/gnupg1-1.4.23/cipher/rijndael.c:1720:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/gnupg1-1.4.23/cipher/rijndael.c:1983:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (a.a, ax, 16);
data/gnupg1-1.4.23/cipher/rijndael.c:1985:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (bx, b.b, 16);
data/gnupg1-1.4.23/cipher/rmd160.c:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[150];
data/gnupg1-1.4.23/cipher/rmd160.c:200:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( x, data, 64 );
data/gnupg1-1.4.23/cipher/rmd160.c:550:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( outbuf, hd.buf, 20 );
data/gnupg1-1.4.23/cipher/rndlinux.c:74:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open( name, O_RDONLY );
data/gnupg1-1.4.23/cipher/rndunix.c:321:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[500];	/* gathered data */
data/gnupg1-1.4.23/cipher/rndunix.c:379:18:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    entry->pid = vfork();
data/gnupg1-1.4.23/cipher/rndunix.c:398:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd = open ("/dev/null", O_RDWR)) != -1) {
data/gnupg1-1.4.23/cipher/rndunix.c:667:43:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	    dbgfp = (*s=='-' && !s[1])? stdout : fopen(s, "a");
data/gnupg1-1.4.23/cipher/rndunix.c:723:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  if ((fd = open ("/dev/null", O_RDWR)) != -1) {
data/gnupg1-1.4.23/cipher/rndunix.c:749:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( msg.data, p, msg.ndata );
data/gnupg1-1.4.23/cipher/rndw32.c:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  szExeFile[260];
data/gnupg1-1.4.23/cipher/rndw32.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  szModule[256];
data/gnupg1-1.4.23/cipher/rndw32.c:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char  szExePath[260];
data/gnupg1-1.4.23/cipher/rndw32.c:404:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char diskPerformance[SIZEOF_DISK_PERFORMANCE_STRUCT];
data/gnupg1-1.4.23/cipher/rndw32.c:405:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char szDevice[50];
data/gnupg1-1.4.23/cipher/rndw32.c:408:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf (szDevice, "\\\\.\\PhysicalDrive%d", nDrive);
data/gnupg1-1.4.23/cipher/rndw32.c:598:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			   memcpy (bufptr, &along, sizeof (along) );  \
data/gnupg1-1.4.23/cipher/sha1.c:54:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/gnupg1-1.4.23/cipher/sha1.c:93:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( x, data, 64 );
data/gnupg1-1.4.23/cipher/sha1.c:339:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (outbuf, hd.buf, 20);
data/gnupg1-1.4.23/cipher/sha256.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/gnupg1-1.4.23/cipher/sha256.c:138:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( w, data, 64 );
data/gnupg1-1.4.23/cipher/sha512.c:67:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[128];
data/gnupg1-1.4.23/cipher/sha512.c:173:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( w, data, 128 );
data/gnupg1-1.4.23/cipher/twofish.c:551:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[64];
data/gnupg1-1.4.23/doc/yat2m.c:160:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1];
data/gnupg1-1.4.23/doc/yat2m.c:178:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1];  /* Name of the condition macro.  */
data/gnupg1-1.4.23/doc/yat2m.c:356:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[11+5];
data/gnupg1-1.4.23/doc/yat2m.c:365:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy (buffer, "????" "-??" "-??");
data/gnupg1-1.4.23/doc/yat2m.c:369:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (buffer,"%04d-%02d-%02d",
data/gnupg1-1.4.23/doc/yat2m.c:475:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return !!atoi (m->value);
data/gnupg1-1.4.23/doc/yat2m.c:925:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cmdbuf[256];
data/gnupg1-1.4.23/doc/yat2m.c:1088:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          fp = fopen ( "/dev/null", "w" );
data/gnupg1-1.4.23/doc/yat2m.c:1096:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fp = fopen ( thepage.name, "w" );
data/gnupg1-1.4.23/doc/yat2m.c:1395:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
              FILE *incfp = fopen (incname, "r");
data/gnupg1-1.4.23/doc/yat2m.c:1406:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                  incfp = fopen (incname, "r");
data/gnupg1-1.4.23/doc/yat2m.c:1616:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp = fopen (*argv, "rb");
data/gnupg1-1.4.23/g10/apdu.c:145:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char atr[33];
data/gnupg1-1.4.23/g10/apdu.c:254:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char atr[33];
data/gnupg1-1.4.23/g10/apdu.c:486:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char dad[1], sad[1], cmd[11], buf[256];
data/gnupg1-1.4.23/g10/apdu.c:539:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (reader_table[slot].atr, buf, buflen - 2);
data/gnupg1-1.4.23/g10/apdu.c:579:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char dad[1], sad[1];
data/gnupg1-1.4.23/g10/apdu.c:886:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msgbuf[9];
data/gnupg1-1.4.23/g10/apdu.c:887:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buffer[16];
data/gnupg1-1.4.23/g10/apdu.c:957:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char dummybuf[128];
data/gnupg1-1.4.23/g10/apdu.c:1044:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msgbuf[9];
data/gnupg1-1.4.23/g10/apdu.c:1123:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       unsigned char dummybuf[128];
data/gnupg1-1.4.23/g10/apdu.c:1187:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msgbuf[9];
data/gnupg1-1.4.23/g10/apdu.c:1289:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char reader[250];
data/gnupg1-1.4.23/g10/apdu.c:1372:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msgbuf[9];
data/gnupg1-1.4.23/g10/apdu.c:1590:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msgbuf[9];
data/gnupg1-1.4.23/g10/apdu.c:1662:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open ("/dev/null", O_WRONLY);
data/gnupg1-1.4.23/g10/apdu.c:1835:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char atr[33];
data/gnupg1-1.4.23/g10/apdu.c:1844:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (slotp->atr, atr, atrlen);
data/gnupg1-1.4.23/g10/apdu.c:2085:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (slotp->atr, msg->data, msg->datalen);
data/gnupg1-1.4.23/g10/apdu.c:2192:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buffer, msg->data, msg->datalen);
data/gnupg1-1.4.23/g10/apdu.c:2265:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (slotp->atr, msg->data, msg->datalen);
data/gnupg1-1.4.23/g10/apdu.c:2362:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int port = portstr? atoi (portstr) : 32768;
data/gnupg1-1.4.23/g10/apdu.c:2497:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return open_rapdu_reader (portstr? atoi (portstr) : 0,
data/gnupg1-1.4.23/g10/apdu.c:2770:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, reader_table[slot].atr, reader_table[slot].atrlen);
data/gnupg1-1.4.23/g10/apdu.c:2905:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char short_result_buffer[SHORT_RESULT_BUFFER_SIZE+10];
data/gnupg1-1.4.23/g10/apdu.c:2910:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char short_apdu_buffer[5+256+1];
data/gnupg1-1.4.23/g10/apdu.c:3030:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (apdu+apdulen, data, lc);
data/gnupg1-1.4.23/g10/apdu.c:3063:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (apdu+apdulen, data, lc_chunk);
data/gnupg1-1.4.23/g10/apdu.c:3130:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (*retbuf, result, resultlen);
data/gnupg1-1.4.23/g10/apdu.c:3150:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (p, result, resultlen);
data/gnupg1-1.4.23/g10/apdu.c:3210:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (p, result, resultlen);
data/gnupg1-1.4.23/g10/apdu.c:3333:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char short_result_buffer[SHORT_RESULT_BUFFER_SIZE+10];
data/gnupg1-1.4.23/g10/apdu.c:3338:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char short_apdu_buffer[5+256+10];
data/gnupg1-1.4.23/g10/apdu.c:3364:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (apdu, apdudata, apdudatalen);
data/gnupg1-1.4.23/g10/apdu.c:3432:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (p, result, resultlen);
data/gnupg1-1.4.23/g10/apdu.c:3490:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (p, result, resultlen);
data/gnupg1-1.4.23/g10/apdu.c:3521:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (*retbuf, result, resultlen);
data/gnupg1-1.4.23/g10/app-openpgp.c:139:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[1];
data/gnupg1-1.4.23/g10/app-openpgp.c:283:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (p, c->data, c->length);
data/gnupg1-1.4.23/g10/app-openpgp.c:323:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (c->data, p, len);
data/gnupg1-1.4.23/g10/app-openpgp.c:681:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, m, mlen); p += mlen;
data/gnupg1-1.4.23/g10/app-openpgp.c:685:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, e, elen); p += elen;
data/gnupg1-1.4.23/g10/app-openpgp.c:702:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char buf[4];
data/gnupg1-1.4.23/g10/app-openpgp.c:724:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[41];
data/gnupg1-1.4.23/g10/app-openpgp.c:725:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[25];
data/gnupg1-1.4.23/g10/app-openpgp.c:735:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (numbuf, "%d", number);
data/gnupg1-1.4.23/g10/app-openpgp.c:745:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf1[50], numbuf2[50];
data/gnupg1-1.4.23/g10/app-openpgp.c:751:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf1, "%d", number);
data/gnupg1-1.4.23/g10/app-openpgp.c:752:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf2, "%lu", value);
data/gnupg1-1.4.23/g10/app-openpgp.c:782:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200];
data/gnupg1-1.4.23/g10/app-openpgp.c:847:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[50];
data/gnupg1-1.4.23/g10/app-openpgp.c:851:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (tmp, "%lu", (unsigned long)stamp);
data/gnupg1-1.4.23/g10/app-openpgp.c:862:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[100];
data/gnupg1-1.4.23/g10/app-openpgp.c:913:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char numbuf[7*23];
data/gnupg1-1.4.23/g10/app-openpgp.c:916:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (numbuf+strlen (numbuf), " %d", value[i]); 
data/gnupg1-1.4.23/g10/app-openpgp.c:922:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char numbuf[50];
data/gnupg1-1.4.23/g10/app-openpgp.c:924:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (numbuf, "%lu", convert_sig_counter_value (value, valuelen));
data/gnupg1-1.4.23/g10/app-openpgp.c:1003:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *fields[6];
data/gnupg1-1.4.23/g10/app-openpgp.c:1049:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if ( nfields < 4 || (i = atoi (fields[1])) < 0 || i > 1
data/gnupg1-1.4.23/g10/app-openpgp.c:1189:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (mbuf+1, m, mlen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1202:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ebuf+1, e, elen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1218:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fpr[41];
data/gnupg1-1.4.23/g10/app-openpgp.c:1273:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (keybuf, "(10:public-key(3:rsa(1:n%u:", (unsigned int) mlen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1275:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (keybuf_p, m, mlen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1277:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (keybuf_p, ")(1:e%u:", (unsigned int)elen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1279:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (keybuf_p, e, elen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1281:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy (keybuf_p, ")))");
data/gnupg1-1.4.23/g10/app-openpgp.c:1309:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char grip[20];
data/gnupg1-1.4.23/g10/app-openpgp.c:1310:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char gripstr[41];
data/gnupg1-1.4.23/g10/app-openpgp.c:1311:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char idbuf[50];
data/gnupg1-1.4.23/g10/app-openpgp.c:1329:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (idbuf, "OPENPGP.%d", keyno);
data/gnupg1-1.4.23/g10/app-openpgp.c:1415:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (*pk, buf, *pklen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1453:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (*cert, buffer, buflen);
data/gnupg1-1.4.23/g10/app-openpgp.c:1906:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int chvno = atoi (chvnostr);
data/gnupg1-1.4.23/g10/app-openpgp.c:2242:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char privkey[7*(1+3)];
data/gnupg1-1.4.23/g10/app-openpgp.c:2244:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char exthdr[2+2+3];
data/gnupg1-1.4.23/g10/app-openpgp.c:2246:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char suffix[2+3];
data/gnupg1-1.4.23/g10/app-openpgp.c:2317:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tp, exthdr, exthdr_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2319:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tp, privkey, privkey_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2321:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tp, suffix, suffix_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2324:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tp, rsa_e, rsa_e_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2333:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tp, rsa_p, rsa_p_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2336:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (tp, rsa_q, rsa_q_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2342:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (tp, rsa_n, rsa_n_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2434:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (string, value, valuelen);
data/gnupg1-1.4.23/g10/app-openpgp.c:2486:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char fprbuf[20];
data/gnupg1-1.4.23/g10/app-openpgp.c:2733:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (tp, rsa_e, rsa_e_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2744:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (tp, rsa_p, rsa_p_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2749:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (tp, rsa_q, rsa_q_len);
data/gnupg1-1.4.23/g10/app-openpgp.c:2791:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[30];
data/gnupg1-1.4.23/g10/app-openpgp.c:2792:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char fprbuf[20];
data/gnupg1-1.4.23/g10/app-openpgp.c:2797:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  int keyno = atoi (keynostr);
data/gnupg1-1.4.23/g10/app-openpgp.c:2900:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf, "%lu", (unsigned long)created_at);
data/gnupg1-1.4.23/g10/app-openpgp.c:2992:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp[20];
data/gnupg1-1.4.23/g10/app-openpgp.c:3031:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char rmd160_prefix[15] = /* Object ID is 1.3.36.3.2.1 */
data/gnupg1-1.4.23/g10/app-openpgp.c:3034:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char sha1_prefix[15] =   /* (1.3.14.3.2.26) */
data/gnupg1-1.4.23/g10/app-openpgp.c:3037:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char sha224_prefix[19] = /* (2.16.840.1.101.3.4.2.4) */
data/gnupg1-1.4.23/g10/app-openpgp.c:3041:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char sha256_prefix[19] = /* (2.16.840.1.101.3.4.2.1) */
data/gnupg1-1.4.23/g10/app-openpgp.c:3045:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char sha384_prefix[19] = /* (2.16.840.1.101.3.4.2.2) */
data/gnupg1-1.4.23/g10/app-openpgp.c:3049:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char sha512_prefix[19] = /* (2.16.840.1.101.3.4.2.3) */
data/gnupg1-1.4.23/g10/app-openpgp.c:3054:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[19+64];
data/gnupg1-1.4.23/g10/app-openpgp.c:3056:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp_sn[20]; /* Actually 16 bytes but also for the fpr. */
data/gnupg1-1.4.23/g10/app-openpgp.c:3144:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (data, b ## _prefix, sizeof b ## _prefix);       \
data/gnupg1-1.4.23/g10/app-openpgp.c:3145:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (data + sizeof b ## _prefix, indata, indatalen); \
data/gnupg1-1.4.23/g10/app-openpgp.c:3237:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp_sn[20]; /* Actually 16 but we use it also for the fpr. */
data/gnupg1-1.4.23/g10/app-openpgp.c:3315:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp_sn[20]; /* actually 16 but we use it also for the fpr. */
data/gnupg1-1.4.23/g10/app-openpgp.c:3397:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (fixbuf+fixuplen, indata, indatalen);
data/gnupg1-1.4.23/g10/app-openpgp.c:3441:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp_sn[20]; 
data/gnupg1-1.4.23/g10/app-openpgp.c:3601:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char desc[3][5] = {"sign", "encr", "auth"};
data/gnupg1-1.4.23/g10/armor.c:627:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&buf[len],tempbuf,PARTIAL_CHUNK);
data/gnupg1-1.4.23/g10/armor.c:734:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&buf[len],tempbuf,tempbuf_len);
data/gnupg1-1.4.23/g10/armor.c:994:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen("armor.out", "w");
data/gnupg1-1.4.23/g10/armor.c:1062:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf+n, sesmark, sesmarklen ); n+= sesmarklen;
data/gnupg1-1.4.23/g10/build-packet.c:784:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (p, buffer, buflen);
data/gnupg1-1.4.23/g10/build-packet.c:790:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (p, buffer, buflen);
data/gnupg1-1.4.23/g10/build-packet.c:795:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (p, buffer, buflen);
data/gnupg1-1.4.23/g10/build-packet.c:898:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&attrib[idx],header,headerlen);
data/gnupg1-1.4.23/g10/build-packet.c:899:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&attrib[idx+headerlen],buf,buflen);
data/gnupg1-1.4.23/g10/build-packet.c:1024:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(n->name,&p[8],n1);
data/gnupg1-1.4.23/g10/build-packet.c:1030:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(n->value,&p[8+n1],n2);
data/gnupg1-1.4.23/g10/build-packet.c:1037:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(n->bdat,&p[8+n1],n2);
data/gnupg1-1.4.23/g10/build-packet.c:1040:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(n->value,"[ ");
data/gnupg1-1.4.23/g10/build-packet.c:1041:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(n->value,_("not human readable"));
data/gnupg1-1.4.23/g10/build-packet.c:1042:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(n->value," ]");
data/gnupg1-1.4.23/g10/card-util.c:776:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (fname, "rb");
data/gnupg1-1.4.23/g10/card-util.c:822:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (fname, "wb");
data/gnupg1-1.4.23/g10/card-util.c:1078:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char fpr[20];
data/gnupg1-1.4.23/g10/card-util.c:1302:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      req_nbits = *answer? atoi (answer): nbits;
data/gnupg1-1.4.23/g10/card-util.c:1337:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char args[100];
data/gnupg1-1.4.23/g10/card-util.c:1465:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      keyno = *answer? atoi(answer): 0;
data/gnupg1-1.4.23/g10/card-util.c:1575:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      keyno = *answer? atoi(answer): 0;
data/gnupg1-1.4.23/g10/card-util.c:1766:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char serialnobuf[50];
data/gnupg1-1.4.23/g10/card-util.c:1844:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              arg_number = atoi(p);
data/gnupg1-1.4.23/g10/card-util.c:1888:15:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
              strcpy (stpcpy (tmp, serialnobuf), "[CHV3]");
data/gnupg1-1.4.23/g10/cardglue.c:126:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char fpr[MAX_FINGERPRINT_LEN];
data/gnupg1-1.4.23/g10/cardglue.c:134:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (p, "%02X", sn[i]);
data/gnupg1-1.4.23/g10/cardglue.c:137:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (p, "%02X", fpr[i]);
data/gnupg1-1.4.23/g10/cardglue.c:152:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[950], *p;
data/gnupg1-1.4.23/g10/cardglue.c:177:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              sprintf (p, "%%%02X", *value);
data/gnupg1-1.4.23/g10/cardglue.c:197:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[950];
data/gnupg1-1.4.23/g10/cardglue.c:237:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (digest, md_read (h, algo), md_digest_length (algo));
data/gnupg1-1.4.23/g10/cardglue.c:324:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (p, "%02X", app->serialno[i]);
data/gnupg1-1.4.23/g10/cardglue.c:504:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (p, "%02X", app->serialno[i]);
data/gnupg1-1.4.23/g10/cardglue.c:554:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (cacheid, "CARDSN:", 7);
data/gnupg1-1.4.23/g10/cardglue.c:555:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (cacheid+7, sn, snlen);
data/gnupg1-1.4.23/g10/cardglue.c:605:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[5+32+1];
data/gnupg1-1.4.23/g10/cardglue.c:618:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (buf, "1 %.32s", serialno);
data/gnupg1-1.4.23/g10/cardglue.c:670:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, line, s-line);
data/gnupg1-1.4.23/g10/cardglue.c:749:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          parm->chv1_cached = atoi (p);
data/gnupg1-1.4.23/g10/cardglue.c:756:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              parm->chvmaxlen[i] = atoi (p);
data/gnupg1-1.4.23/g10/cardglue.c:764:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              parm->chvretry[i] = atoi (p);
data/gnupg1-1.4.23/g10/cardglue.c:799:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int no = atoi (line);
data/gnupg1-1.4.23/g10/cardglue.c:813:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int no = atoi (line);
data/gnupg1-1.4.23/g10/cardglue.c:827:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int no = atoi (line);
data/gnupg1-1.4.23/g10/cardglue.c:924:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.c:1082:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.c:1096:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              sprintf (p, "%%%02X", *value);
data/gnupg1-1.4.23/g10/cardglue.c:1138:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.c:1236:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.c:1308:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *p, line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.c:1318:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (p, "%02X", indata[i]);
data/gnupg1-1.4.23/g10/cardglue.c:1390:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *p, line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.c:1400:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (p, "%02X", indata[i]);
data/gnupg1-1.4.23/g10/cardglue.c:1465:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.c:1476:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char chvnostr[50];
data/gnupg1-1.4.23/g10/cardglue.c:1478:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (chvnostr, "%d", chvno);
data/gnupg1-1.4.23/g10/cardglue.c:1506:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[ASSUAN_LINELENGTH];
data/gnupg1-1.4.23/g10/cardglue.h:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *private_do[4]; /* malloced. */
data/gnupg1-1.4.23/g10/cardglue.h:49:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cafpr1[20];
data/gnupg1-1.4.23/g10/cardglue.h:50:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cafpr2[20];
data/gnupg1-1.4.23/g10/cardglue.h:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cafpr3[20];
data/gnupg1-1.4.23/g10/cardglue.h:55:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fpr1[20];
data/gnupg1-1.4.23/g10/cardglue.h:56:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fpr2[20];
data/gnupg1-1.4.23/g10/cardglue.h:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fpr3[20];
data/gnupg1-1.4.23/g10/cardglue.h:80:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fpr[20];
data/gnupg1-1.4.23/g10/ccid-driver.c:204:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define CCID_ERROR_CODE(buf)     (((unsigned char *)(buf))[8])
data/gnupg1-1.4.23/g10/ccid-driver.c:365:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[100];
data/gnupg1-1.4.23/g10/ccid-driver.c:396:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buffer, "Parameter error at offset %d", ec);
data/gnupg1-1.4.23/g10/ccid-driver.c:398:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buffer, "Error code %02X", ec);
data/gnupg1-1.4.23/g10/ccid-driver.c:977:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[280];
data/gnupg1-1.4.23/g10/ccid-driver.c:1032:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (result+n, "%%%02X", *s);
data/gnupg1-1.4.23/g10/ccid-driver.c:1052:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char prefix[20];
data/gnupg1-1.4.23/g10/ccid-driver.c:1054:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (prefix, "%04X:%04X:", (vendor & 0xffff), (product & 0xffff));
data/gnupg1-1.4.23/g10/ccid-driver.c:1062:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat (rid, "X:0");
data/gnupg1-1.4.23/g10/ccid-driver.c:1210:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                              memcpy (*ifcdesc_extra, ifcdesc->extra,
data/gnupg1-1.4.23/g10/ccid-driver.c:1380:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open (transports[i].name, O_RDWR);
data/gnupg1-1.4.23/g10/ccid-driver.c:1526:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      readerno = atoi (readerid);
data/gnupg1-1.4.23/g10/ccid-driver.c:1625:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msg[100];
data/gnupg1-1.4.23/g10/ccid-driver.c:2048:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char dummybuf[8];
data/gnupg1-1.4.23/g10/ccid-driver.c:2049:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msg[100];
data/gnupg1-1.4.23/g10/ccid-driver.c:2157:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msg[100];
data/gnupg1-1.4.23/g10/ccid-driver.c:2173:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (msg+10, data, datalen);
data/gnupg1-1.4.23/g10/ccid-driver.c:2194:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (result, msg, msglen);
data/gnupg1-1.4.23/g10/ccid-driver.c:2223:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msg[10];
data/gnupg1-1.4.23/g10/ccid-driver.c:2284:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msg[100];
data/gnupg1-1.4.23/g10/ccid-driver.c:2336:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char msg[100];
data/gnupg1-1.4.23/g10/ccid-driver.c:2396:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (atr, msg+10, n);
data/gnupg1-1.4.23/g10/ccid-driver.c:2563:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char send_buffer[10+261+300], recv_buffer[10+261+300];
data/gnupg1-1.4.23/g10/ccid-driver.c:2589:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (msg+10, apdu, apdulen);
data/gnupg1-1.4.23/g10/ccid-driver.c:2616:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (resp, apdu, apdulen); 
data/gnupg1-1.4.23/g10/ccid-driver.c:2685:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char send_buffer[11+259], recv_buffer[11+259];
data/gnupg1-1.4.23/g10/ccid-driver.c:2761:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (tpdu+3, apdu, apdulen);
data/gnupg1-1.4.23/g10/ccid-driver.c:2875:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (resp, p, n); 
data/gnupg1-1.4.23/g10/ccid-driver.c:3031:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char send_buffer[10+259], recv_buffer[10+259];
data/gnupg1-1.4.23/g10/ccid-driver.c:3180:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (resp, tpdu, tpdulen); 
data/gnupg1-1.4.23/g10/ccid-driver.c:3225:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (resp, p, n); 
data/gnupg1-1.4.23/g10/ccid-driver.c:3276:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[50];
data/gnupg1-1.4.23/g10/ccid-driver.c:3293:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    default: sprintf (buf, "0x%05x", err); p = buf; break;
data/gnupg1-1.4.23/g10/ccid-driver.c:3332:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char result[512];
data/gnupg1-1.4.23/g10/cipher.c:66:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[20];
data/gnupg1-1.4.23/g10/cipher.c:68:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf, "%d %d", ed.mdc_method, cfx->dek->algo);
data/gnupg1-1.4.23/g10/cipher.c:139:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(temp+2, hash, 20);
data/gnupg1-1.4.23/g10/decrypt.c:113:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[2048];
data/gnupg1-1.4.23/g10/encode.c:81:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buf + 1, (*seskey)->key, (*seskey)->keylen );
data/gnupg1-1.4.23/g10/encode.c:89:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( enckey, buf, (*seskey)->keylen + 1 );
data/gnupg1-1.4.23/g10/encode.c:260:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy( enc->seskey, enckey, seskeylen + 1 );
data/gnupg1-1.4.23/g10/encode.c:402:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( enc->seskey, enckey, seskeylen + 1 );
data/gnupg1-1.4.23/g10/encode.c:829:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[2048];
data/gnupg1-1.4.23/g10/encr-data.c:43:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char defer[22];
data/gnupg1-1.4.23/g10/encr-data.c:97:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[20];
data/gnupg1-1.4.23/g10/encr-data.c:106:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf, "%d:", dek->algo);
data/gnupg1-1.4.23/g10/encr-data.c:108:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(buf+strlen(buf), "%02X", dek->key[i] );
data/gnupg1-1.4.23/g10/encr-data.c:256:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, buf+22, 22 );
data/gnupg1-1.4.23/g10/encr-data.c:260:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, dfx->defer, 22 );
data/gnupg1-1.4.23/g10/encr-data.c:271:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( dfx->defer, buf+n, 22 );
data/gnupg1-1.4.23/g10/encr-data.c:277:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(buf, buf+22, n );
data/gnupg1-1.4.23/g10/encr-data.c:281:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (buf, dfx->defer, 22 );
data/gnupg1-1.4.23/g10/encr-data.c:283:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( dfx->defer, buf+n, 22 );
data/gnupg1-1.4.23/g10/exec.c:99:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(p,"PATH=");
data/gnupg1-1.4.23/g10/exec.c:135:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(tmp,"c:\\windows\\temp");
data/gnupg1-1.4.23/g10/exec.c:476:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    (*info)->tochild=fopen((*info)->tempfile_in,binary?"wb":"w");
data/gnupg1-1.4.23/g10/free-packet.c:123:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (d->data, s->data, s->len);
data/gnupg1-1.4.23/g10/free-packet.c:160:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( d, s, sizeof *d );
data/gnupg1-1.4.23/g10/free-packet.c:174:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(d->revkey,s->revkey,sizeof(struct revocation_key)*s->numrevkeys);
data/gnupg1-1.4.23/g10/free-packet.c:212:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (d->fpr, s->fpr, sizeof s->fpr);
data/gnupg1-1.4.23/g10/free-packet.c:225:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( d, s, sizeof *d );
data/gnupg1-1.4.23/g10/free-packet.c:289:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( d, s, sizeof *d );
data/gnupg1-1.4.23/g10/getkey.c:93:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1];
data/gnupg1-1.4.23/g10/getkey.c:272:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(r->name, uid, r->len);
data/gnupg1-1.4.23/g10/getkey.c:717:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[9];
data/gnupg1-1.4.23/g10/getkey.c:1068:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char fpr_string[MAX_FINGERPRINT_LEN*2+1];
data/gnupg1-1.4.23/g10/getkey.c:1076:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(fpr_string+2*i,"%02X",fpr[i]);
data/gnupg1-1.4.23/g10/getkey.c:1151:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( ctx.items[0].u.fpr, fprint, fprint_len );
data/gnupg1-1.4.23/g10/getkey.c:1230:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( ctx.items[0].u.fpr, fprint, fprint_len );
data/gnupg1-1.4.23/g10/getkey.c:1332:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( ctx.items[0].u.fpr, fprint, fprint_len );
data/gnupg1-1.4.23/g10/getkey.c:1364:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (ctx.items[0].u.fpr, fprint, fprint_len);
data/gnupg1-1.4.23/g10/getkey.c:1728:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy(&pk->revkey[pk->numrevkeys++],
data/gnupg1-1.4.23/g10/getkey.c:2361:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy(&pk->revoked,&rinfo,sizeof(rinfo));
data/gnupg1-1.4.23/g10/getkey.c:2974:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(p, "%08lX%08lX %.*s",
data/gnupg1-1.4.23/g10/getkey.c:2983:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(p, "%08lX%08lX [?]", (ulong)keyid[0], (ulong)keyid[1] );
data/gnupg1-1.4.23/g10/getkey.c:3001:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(p, r->name, r->len );
data/gnupg1-1.4.23/g10/gpg.c:885:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char num[20];
data/gnupg1-1.4.23/g10/gpg.c:974:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    opt.screen_columns=atoi(str);
data/gnupg1-1.4.23/g10/gpg.c:978:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    opt.screen_lines=atoi(str);
data/gnupg1-1.4.23/g10/gpg.c:1019:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open (fname, O_CREAT | O_TRUNC | O_WRONLY,
data/gnupg1-1.4.23/g10/gpg.c:1022:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open (fname, O_RDONLY | MY_O_BINARY);
data/gnupg1-1.4.23/g10/gpg.c:1538:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  i=atoi(tok);
data/gnupg1-1.4.23/g10/gpg.c:1677:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if(open("/dev/null",O_RDONLY)==STDIN_FILENO)
data/gnupg1-1.4.23/g10/gpg.c:1685:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if(open("/dev/null",O_WRONLY)==STDOUT_FILENO)
data/gnupg1-1.4.23/g10/gpg.c:1693:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if(open("/dev/null",O_WRONLY)==STDERR_FILENO)
data/gnupg1-1.4.23/g10/gpg.c:2048:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	configfp = fopen( configname, "r" );
data/gnupg1-1.4.23/g10/gpg.c:3761:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	{   int mode = argc < 2 ? 0 : atoi(*argv);
data/gnupg1-1.4.23/g10/gpg.c:3764:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		mpi_print( stdout, generate_public_prime( atoi(argv[1]) ), 1);
data/gnupg1-1.4.23/g10/gpg.c:3768:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					     0, atoi(argv[1]),
data/gnupg1-1.4.23/g10/gpg.c:3769:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					     atoi(argv[2]), NULL,NULL ), 1);
data/gnupg1-1.4.23/g10/gpg.c:3774:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					     1, atoi(argv[1]),
data/gnupg1-1.4.23/g10/gpg.c:3775:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					     atoi(argv[2]), NULL,&factors ), 1);
data/gnupg1-1.4.23/g10/gpg.c:3782:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						 0, atoi(argv[1]),
data/gnupg1-1.4.23/g10/gpg.c:3783:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						 atoi(argv[2]), g, NULL ), 1);
data/gnupg1-1.4.23/g10/gpg.c:3796:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    int level = argc ? atoi(*argv):0;
data/gnupg1-1.4.23/g10/gpg.c:3797:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    int count = argc > 1 ? atoi(argv[1]): 0;
data/gnupg1-1.4.23/g10/gpg.c:3946:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            change_pin (atoi (*argv),1);
data/gnupg1-1.4.23/g10/gpg.c:4137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/gnupg1-1.4.23/g10/gpg.c:4148:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen( fname, "rb" );
data/gnupg1-1.4.23/g10/import.c:361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[14*20];
data/gnupg1-1.4.23/g10/import.c:362:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu",
data/gnupg1-1.4.23/g10/import.c:617:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[MAX_FINGERPRINT_LEN*2+30], *p;
data/gnupg1-1.4.23/g10/import.c:620:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%u ", reason);
data/gnupg1-1.4.23/g10/import.c:629:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (p, "%02X", *s);
data/gnupg1-1.4.23/g10/import.c:644:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (buf, "%08X%08X ", keyid[0], keyid[1]);
data/gnupg1-1.4.23/g10/import.c:648:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf+pos, "%02X", fpr[i]);
data/gnupg1-1.4.23/g10/import.c:688:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	      char num[10]; /* prefs->value is a byte, so we're over
data/gnupg1-1.4.23/g10/import.c:691:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      sprintf(num,"%u",prefs->value);
data/gnupg1-1.4.23/g10/import.c:747:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char username[(MAX_FINGERPRINT_LEN*2)+1];
data/gnupg1-1.4.23/g10/import.c:752:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(username+2*i,"%02X",*p);
data/gnupg1-1.4.23/g10/iso7816.c:147:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tagbuf[2];
data/gnupg1-1.4.23/g10/iso7816.c:177:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buffer[100];
data/gnupg1-1.4.23/g10/iso7816.c:337:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf, oldchv, oldchvlen);
data/gnupg1-1.4.23/g10/iso7816.c:338:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf+oldchvlen, newchv, newchvlen);
data/gnupg1-1.4.23/g10/iso7816.c:576:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (buf+1, data, datalen);
data/gnupg1-1.4.23/g10/iso7816.c:723:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (buffer, result, resultlen);
data/gnupg1-1.4.23/g10/iso7816.c:803:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (*result + *resultlen, buffer, bufferlen);
data/gnupg1-1.4.23/g10/keydb.c:248:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen( filename, "rb" );
data/gnupg1-1.4.23/g10/keydb.c:810:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (desc.u.fpr, fpr, MAX_FINGERPRINT_LEN);
data/gnupg1-1.4.23/g10/keydb.h:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char userid[1];
data/gnupg1-1.4.23/g10/keyedit.c:448:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      *trust_depth=atoi(p);
data/gnupg1-1.4.23/g10/keyedit.c:474:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(*regexp,"<[^>]+[@.]");
data/gnupg1-1.4.23/g10/keyedit.c:495:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(*regexp,">$");
data/gnupg1-1.4.23/g10/keyedit.c:699:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char buf[50];
data/gnupg1-1.4.23/g10/keyedit.c:797:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf (buf, "%08lX%08lX",
data/gnupg1-1.4.23/g10/keyedit.c:1648:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    arg_number = atoi(answer);
data/gnupg1-1.4.23/g10/keyedit.c:1655:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		arg_number = atoi(p);
data/gnupg1-1.4.23/g10/keyedit.c:3495:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		  char buf[50];
data/gnupg1-1.4.23/g10/keyedit.c:3500:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		  sprintf(buf,"%08lX%08lX",
data/gnupg1-1.4.23/g10/keygen.c:86:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char value[1];
data/gnupg1-1.4.23/g10/keygen.c:160:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (p, "%02X", *s);
data/gnupg1-1.4.23/g10/keygen.c:299:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dummy_string[20*4+1]; /* Enough for 20 items. */
data/gnupg1-1.4.23/g10/keygen.c:325:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat(dummy_string,"S9 ");
data/gnupg1-1.4.23/g10/keygen.c:327:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat(dummy_string,"S8 ");
data/gnupg1-1.4.23/g10/keygen.c:329:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat(dummy_string,"S7 ");
data/gnupg1-1.4.23/g10/keygen.c:331:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat(dummy_string,"S3 ");
data/gnupg1-1.4.23/g10/keygen.c:332:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(dummy_string,"S2 "); /* 3DES */
data/gnupg1-1.4.23/g10/keygen.c:342:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat(dummy_string,"S1 ");
data/gnupg1-1.4.23/g10/keygen.c:354:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat (dummy_string, "H8 ");
data/gnupg1-1.4.23/g10/keygen.c:356:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat (dummy_string,"H2 ");/* SHA-1 */
data/gnupg1-1.4.23/g10/keygen.c:359:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat (dummy_string, "H9 ");
data/gnupg1-1.4.23/g10/keygen.c:362:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat (dummy_string, "H10 ");
data/gnupg1-1.4.23/g10/keygen.c:365:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat (dummy_string, "H11 ");
data/gnupg1-1.4.23/g10/keygen.c:369:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(dummy_string,"Z2 ");
data/gnupg1-1.4.23/g10/keygen.c:372:8:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	      strcat(dummy_string,"Z3 ");
data/gnupg1-1.4.23/g10/keygen.c:375:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat(dummy_string,"Z1");
data/gnupg1-1.4.23/g10/keygen.c:500:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (sym_prefs,  sym,  (nsym_prefs=nsym));
data/gnupg1-1.4.23/g10/keygen.c:501:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (hash_prefs, hash, (nhash_prefs=nhash));
data/gnupg1-1.4.23/g10/keygen.c:502:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy (zip_prefs,  zip,  (nzip_prefs=nzip));
data/gnupg1-1.4.23/g10/keygen.c:575:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (buf, s, n);
data/gnupg1-1.4.23/g10/keygen.c:619:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf, s, n);
data/gnupg1-1.4.23/g10/keygen.c:748:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf+8, notation->name, n1 );
data/gnupg1-1.4.23/g10/keygen.c:750:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(buf+8+n1, notation->altvalue, n2 );
data/gnupg1-1.4.23/g10/keygen.c:752:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(buf+8+n1, notation->bdat, n2 );
data/gnupg1-1.4.23/g10/keygen.c:754:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(buf+8+n1, notation->value, n2 );
data/gnupg1-1.4.23/g10/keygen.c:772:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&buf[2],revkey->fpr,MAX_FINGERPRINT_LEN);
data/gnupg1-1.4.23/g10/keygen.c:1516:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      algo = *answer? atoi (answer) : 1;
data/gnupg1-1.4.23/g10/keygen.c:1631:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      nbits = *answer? atoi(answer): def;
data/gnupg1-1.4.23/g10/keygen.c:1682:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    seconds = atoi (string+8);
data/gnupg1-1.4.23/g10/keygen.c:1686:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    seconds = atoi(string) * 86400L * mult;
data/gnupg1-1.4.23/g10/keygen.c:1703:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    seconds = atoi (string+8);
data/gnupg1-1.4.23/g10/keygen.c:1894:6:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	    strcpy(p, " (INSECURE!)" );
data/gnupg1-1.4.23/g10/keygen.c:2118:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	i = atoi( r->u.value );
data/gnupg1-1.4.23/g10/keygen.c:2175:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  revkey.algid=atoi(pn);
data/gnupg1-1.4.23/g10/keygen.c:2204:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&r->u.revkey,&revkey,sizeof(struct revocation_key));
data/gnupg1-1.4.23/g10/keygen.c:2780:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( r->u.value, "%d", algo );
data/gnupg1-1.4.23/g10/keygen.c:2785:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (r->u.value, "sign");
data/gnupg1-1.4.23/g10/keygen.c:2791:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( r->u.value, "%d", algo );
data/gnupg1-1.4.23/g10/keygen.c:2796:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (r->u.value, "encrypt");
data/gnupg1-1.4.23/g10/keygen.c:2802:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( r->u.value, "%d", algo );
data/gnupg1-1.4.23/g10/keygen.c:2827:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (r->u.value, "%d", algo);
data/gnupg1-1.4.23/g10/keygen.c:2833:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf( r->u.value, "%u", nbits);
data/gnupg1-1.4.23/g10/keygen.c:2838:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy( r->u.value, "sign" );
data/gnupg1-1.4.23/g10/keygen.c:2844:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf( r->u.value, "%d", subkey_algo );
data/gnupg1-1.4.23/g10/keygen.c:2849:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy( r->u.value, "encrypt" );
data/gnupg1-1.4.23/g10/keygen.c:2857:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf( r->u.value, "%d", algo );
data/gnupg1-1.4.23/g10/keygen.c:2878:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( r->u.value, "%u", nbits);
data/gnupg1-1.4.23/g10/keygen.c:3773:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name_buffer[50];
data/gnupg1-1.4.23/g10/keygen.c:3779:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (name_buffer,"sk_%08lX%08lX.gpg",
data/gnupg1-1.4.23/g10/keygen.c:3825:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (p, "%02X", array[i]);
data/gnupg1-1.4.23/g10/keygen.c:3886:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[55], numbuf2[50];
data/gnupg1-1.4.23/g10/keygen.c:3908:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf, "%u:", rsa_n_len);
data/gnupg1-1.4.23/g10/keygen.c:3910:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, rsa_n, rsa_n_len);
data/gnupg1-1.4.23/g10/keygen.c:3913:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf, ")(1:e%u:", rsa_e_len);
data/gnupg1-1.4.23/g10/keygen.c:3915:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, rsa_e, rsa_e_len);
data/gnupg1-1.4.23/g10/keygen.c:3918:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf, ")(1:p%u:", rsa_p_len);
data/gnupg1-1.4.23/g10/keygen.c:3920:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, rsa_p, rsa_p_len);
data/gnupg1-1.4.23/g10/keygen.c:3923:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf, ")(1:q%u:", rsa_q_len);
data/gnupg1-1.4.23/g10/keygen.c:3925:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, rsa_q, rsa_q_len);
data/gnupg1-1.4.23/g10/keygen.c:3929:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf2, "%lu", (unsigned long)sk->timestamp);
data/gnupg1-1.4.23/g10/keygen.c:3930:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (numbuf, "%lu:", (unsigned long)strlen (numbuf2));
data/gnupg1-1.4.23/g10/keyid.c:187:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char keyid_str[19];
data/gnupg1-1.4.23/g10/keyid.c:192:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(keyid_str,"%08lX",(ulong)keyid[1]);
data/gnupg1-1.4.23/g10/keyid.c:197:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(keyid_str,"%08lX%08lX",(ulong)keyid[0],(ulong)keyid[1]);
data/gnupg1-1.4.23/g10/keyid.c:199:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(keyid_str,"%08lX",(ulong)keyid[1]);
data/gnupg1-1.4.23/g10/keyid.c:203:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(keyid_str,"0x%08lX",(ulong)keyid[1]);
data/gnupg1-1.4.23/g10/keyid.c:208:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(keyid_str,"0x%08lX%08lX",(ulong)keyid[0],(ulong)keyid[1]);
data/gnupg1-1.4.23/g10/keyid.c:210:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(keyid_str,"0x%08lX",(ulong)keyid[1]);
data/gnupg1-1.4.23/g10/keyid.c:457:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (buffer, "????" "-??" "-??"); /* Mark this as invalid.  */
data/gnupg1-1.4.23/g10/keyid.c:460:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buffer,"%04d-%02d-%02d",
data/gnupg1-1.4.23/g10/keyid.c:474:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/g10/keyid.c:483:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/g10/keyid.c:492:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/g10/keyid.c:501:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/g10/keyid.c:513:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/g10/keyid.c:525:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/g10/keyid.c:537:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/g10/keyid.c:550:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[10];
data/gnupg1-1.4.23/g10/keyid.c:580:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[15];
data/gnupg1-1.4.23/g10/keyid.c:581:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf, "%lu", (ulong)t);
data/gnupg1-1.4.23/g10/keyid.c:591:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[15];
data/gnupg1-1.4.23/g10/keyid.c:592:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf, "%lu", (ulong)pk->timestamp);
data/gnupg1-1.4.23/g10/keyid.c:602:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[15];
data/gnupg1-1.4.23/g10/keyid.c:603:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf, "%lu", (ulong)sk->timestamp);
data/gnupg1-1.4.23/g10/keyid.c:613:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[15];
data/gnupg1-1.4.23/g10/keyid.c:614:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf, "%lu", (ulong)sig->timestamp);
data/gnupg1-1.4.23/g10/keyid.c:626:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[15];
data/gnupg1-1.4.23/g10/keyid.c:627:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (buf, "%lu", (ulong)sig->expiredate);
data/gnupg1-1.4.23/g10/keyid.c:668:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(array, md_read(md, DIGEST_ALGO_MD5), 16 );
data/gnupg1-1.4.23/g10/keyid.c:687:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(array, dp, len );
data/gnupg1-1.4.23/g10/keyid.c:725:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(array, md_read(md, DIGEST_ALGO_MD5), 16 );
data/gnupg1-1.4.23/g10/keyid.c:746:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(array, dp, len );
data/gnupg1-1.4.23/g10/keylist.c:229:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char status[40];
data/gnupg1-1.4.23/g10/keylist.c:235:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(status,"%d %u %u ",type,flags,(unsigned int)len);
data/gnupg1-1.4.23/g10/keylist.c:698:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[(MAX_FINGERPRINT_LEN*2)+90];
data/gnupg1-1.4.23/g10/keylist.c:710:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(buf+2*j, "%02X", *p );
data/gnupg1-1.4.23/g10/keylist.c:712:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(buf+strlen(buf)," %lu %u %u %u %lu %lu %u",
data/gnupg1-1.4.23/g10/keylist.c:845:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		indent=(keystrlen()+9)-atoi(uid_trust_string_fixed(NULL,NULL));
data/gnupg1-1.4.23/g10/keyring.c:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fname[1];
data/gnupg1-1.4.23/g10/keyserver.c:295:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(keyserver->uri,"://");
data/gnupg1-1.4.23/g10/keyserver.c:451:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(dupe,p,plen);
data/gnupg1-1.4.23/g10/keyserver.c:621:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      work->type=atoi(tok);
data/gnupg1-1.4.23/g10/keyserver.c:626:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      work->size=atoi(tok);
data/gnupg1-1.4.23/g10/keyserver.c:631:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(tok)<=0)
data/gnupg1-1.4.23/g10/keyserver.c:634:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	work->createtime=atoi(tok);
data/gnupg1-1.4.23/g10/keyserver.c:639:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(tok)<=0)
data/gnupg1-1.4.23/g10/keyserver.c:643:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  work->expiretime=atoi(tok);
data/gnupg1-1.4.23/g10/keyserver.c:752:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  else if(atoi(answer)>=1 && atoi(answer)<=numdesc)
data/gnupg1-1.4.23/g10/keyserver.c:752:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  else if(atoi(answer)>=1 && atoi(answer)<=numdesc)
data/gnupg1-1.4.23/g10/keyserver.c:757:5:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if(atoi(num)>=1 && atoi(num)<=numdesc)
data/gnupg1-1.4.23/g10/keyserver.c:757:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if(atoi(num)>=1 && atoi(num)<=numdesc)
data/gnupg1-1.4.23/g10/keyserver.c:758:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  keyserver_work(KS_GET,NULL,&desc[atoi(num)-1],1,
data/gnupg1-1.4.23/g10/keyserver.c:1149:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(command,"_uri");
data/gnupg1-1.4.23/g10/keyserver.c:1576:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  if(atoi(&ptr[8])!=KEYSERVER_PROTO_VERSION)
data/gnupg1-1.4.23/g10/keyserver.c:1579:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			KEYSERVER_PROTO_VERSION,atoi(&ptr[8]));
data/gnupg1-1.4.23/g10/keyserver.c:1830:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(desc.u.fpr,fprint,fprint_len);
data/gnupg1-1.4.23/g10/keyserver.c:2282:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char srvname[MAXDNAME];
data/gnupg1-1.4.23/g10/keyserver.c:2311:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char port[7];
data/gnupg1-1.4.23/g10/keyserver.c:2331:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(keyserver->host,"keys.");
data/gnupg1-1.4.23/g10/mainproc.c:269:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dek->key, seskey + 1, dek->keylen);
data/gnupg1-1.4.23/g10/mainproc.c:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[50];
data/gnupg1-1.4.23/g10/mainproc.c:389:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%08lX%08lX %d 0",
data/gnupg1-1.4.23/g10/mainproc.c:497:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[20];
data/gnupg1-1.4.23/g10/mainproc.c:498:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf,"%08lX%08lX", (ulong)list->kid[0],
data/gnupg1-1.4.23/g10/mainproc.c:509:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[20+30];
data/gnupg1-1.4.23/g10/mainproc.c:1694:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char keyid_str[50];
data/gnupg1-1.4.23/g10/mainproc.c:1710:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (keyid_str, "%08lX%08lX [uncertain] ",
data/gnupg1-1.4.23/g10/mainproc.c:1891:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[MAX_FINGERPRINT_LEN*4+90], *bufp;
data/gnupg1-1.4.23/g10/mainproc.c:1898:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(bufp, "%02X", *p );
data/gnupg1-1.4.23/g10/mainproc.c:1926:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(bufp, "%02X", *p );
data/gnupg1-1.4.23/g10/mainproc.c:1998:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[50];
data/gnupg1-1.4.23/g10/mainproc.c:1999:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf, "%08lX%08lX %d %d %02x %lu %d",
data/gnupg1-1.4.23/g10/misc.c:374:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( marker, &a, SIZEOF_UNSIGNED_LONG );
data/gnupg1-1.4.23/g10/misc.c:375:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy( marker+SIZEOF_UNSIGNED_LONG, &b, SIZEOF_UNSIGNED_LONG );
data/gnupg1-1.4.23/g10/misc.c:539:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		  sprintf(&ret[idx],"%08lX",(ulong)sk_keyid[1]);
data/gnupg1-1.4.23/g10/misc.c:548:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		  sprintf(&ret[idx],"%08lX%08lX",
data/gnupg1-1.4.23/g10/misc.c:558:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		  sprintf(&ret[idx],"%08lX",(ulong)pk_keyid[1]);
data/gnupg1-1.4.23/g10/misc.c:567:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		  sprintf(&ret[idx],"%08lX%08lX",
data/gnupg1-1.4.23/g10/misc.c:577:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		  sprintf(&ret[idx],"%lu",get_signature_count(args->sk));
data/gnupg1-1.4.23/g10/misc.c:620:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(&ret[idx],"%02X",array[i]);
data/gnupg1-1.4.23/g10/misc.c:1202:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char path[MAX_PATH];
data/gnupg1-1.4.23/g10/misc.c:1215:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy (stpcpy (tmp, path), "\\gnupg");
data/gnupg1-1.4.23/g10/misc.c:1239:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char dir[MAX_PATH+5];
data/gnupg1-1.4.23/g10/openfile.c:387:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    src = fopen( fname, "r" );
data/gnupg1-1.4.23/g10/openfile.c:407:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dst = fopen( fname, "w" );
data/gnupg1-1.4.23/g10/packet.h:132:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char fpr[20]; /* The fingerprint as stored in the PKA RR. */
data/gnupg1-1.4.23/g10/packet.h:133:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char email[1];/* The email address from the notation data. */
data/gnupg1-1.4.23/g10/packet.h:211:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1];
data/gnupg1-1.4.23/g10/packet.h:304:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[1];
data/gnupg1-1.4.23/g10/packet.h:340:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[1];
data/gnupg1-1.4.23/g10/packet.h:346:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[1];
data/gnupg1-1.4.23/g10/parse-packet.c:586:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/gnupg1-1.4.23/g10/parse-packet.c:1824:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy(sk->protect.s2k.salt, temp, 8 );
data/gnupg1-1.4.23/g10/parse-packet.c:1937:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(sk->protect.iv, temp, sk->protect.ivlen );
data/gnupg1-1.4.23/g10/parse-packet.c:2173:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(uid->name,"[bad attribute packet of size %lu]",uid->attrib_len);
data/gnupg1-1.4.23/g10/parse-packet.c:2175:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(uid->name,"[%d attributes of size %lu]",
data/gnupg1-1.4.23/g10/parse-packet.c:2187:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(uid->name,"[%.20s image of size %lu]",
data/gnupg1-1.4.23/g10/parse-packet.c:2190:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(uid->name,"[invalid image]");
data/gnupg1-1.4.23/g10/parse-packet.c:2193:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(uid->name,"[unknown attribute of size %lu]",
data/gnupg1-1.4.23/g10/passphrase.c:135:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[1];
data/gnupg1-1.4.23/g10/passphrase.c:154:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(pw, pw2, i );
data/gnupg1-1.4.23/g10/passphrase.c:342:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  pid = atoi (p);
data/gnupg1-1.4.23/g10/passphrase.c:345:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  prot = *p? atoi (p+1) : 0;
data/gnupg1-1.4.23/g10/passphrase.c:422:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (p, "%%%02X", *s);
data/gnupg1-1.4.23/g10/passphrase.c:602:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy (line, "GET_PASSPHRASE ");
data/gnupg1-1.4.23/g10/passphrase.c:611:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (p, "%02X", fpr[i]);
data/gnupg1-1.4.23/g10/passphrase.c:736:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy (line, "CLEAR_PASSPHRASE ");
data/gnupg1-1.4.23/g10/passphrase.c:743:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy (line, "CLEAR_PASSPHRASE ");
data/gnupg1-1.4.23/g10/passphrase.c:746:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf (p, "%02X", fpr[i]);
data/gnupg1-1.4.23/g10/passphrase.c:862:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[50];
data/gnupg1-1.4.23/g10/passphrase.c:881:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf( buf, "%08lX%08lX %08lX%08lX %d 0",
data/gnupg1-1.4.23/g10/passphrase.c:889:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf( buf, "%d %d %d", cipher_algo, s2k->mode, s2k->hash_algo );
data/gnupg1-1.4.23/g10/passphrase.c:1088:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( dek->key+used, md_read(md, s2k->hash_algo), i );
data/gnupg1-1.4.23/g10/pipemode.c:75:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf+n, sesmark, sesmarklen ); n+= sesmarklen;
data/gnupg1-1.4.23/g10/pkclist.c:540:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char fpr[MAX_FINGERPRINT_LEN];
data/gnupg1-1.4.23/g10/pkclist.c:702:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf( p+2*i, "%02X", fpr[i] );
data/gnupg1-1.4.23/g10/plaintext.c:45:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
# define fopen fopen_vms
data/gnupg1-1.4.23/g10/plaintext.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char status[50];
data/gnupg1-1.4.23/g10/plaintext.c:83:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(status,"%X %lu ",(byte)pt->mode,(ulong)pt->timestamp);
data/gnupg1-1.4.23/g10/plaintext.c:89:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(status,"%lu",(ulong)pt->len);
data/gnupg1-1.4.23/g10/plaintext.c:150:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if( !(fp = fopen(fname,"wb")) ) {
data/gnupg1-1.4.23/g10/plaintext.c:167:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(fname,"wb");
data/gnupg1-1.4.23/g10/plaintext.c:609:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (pt->name, s, pt->namelen);
data/gnupg1-1.4.23/g10/progress.c:43:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[50];
data/gnupg1-1.4.23/g10/progress.c:49:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (buffer, "%.20s ? %lu %lu",
data/gnupg1-1.4.23/g10/progress.c:73:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buffer[50];
data/gnupg1-1.4.23/g10/progress.c:75:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf (buffer, "%.20s ? %lu %lu",
data/gnupg1-1.4.23/g10/pubkey-enc.c:254:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( dek->key, frame+n, dek->keylen );
data/gnupg1-1.4.23/g10/pubkey-enc.c:332:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    dek->algo = atoi(string);
data/gnupg1-1.4.23/g10/revoke.c:65:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer+1, ud, strlen(ud) );
data/gnupg1-1.4.23/g10/revoke.c:658:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		n = atoi(answer);
data/gnupg1-1.4.23/g10/seckey-cert.c:272:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char buf[50];
data/gnupg1-1.4.23/g10/seckey-cert.c:275:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(buf, "%08lX%08lX", (ulong)kid[0], (ulong)kid[1]);
data/gnupg1-1.4.23/g10/seckey-cert.c:360:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy(p, bufarr[j], narr[j] );
data/gnupg1-1.4.23/g10/seckey-cert.c:380:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (p, md_read (h, DIGEST_ALGO_SHA1), 20);
data/gnupg1-1.4.23/g10/seskey.c:129:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( frame+n, p, i );
data/gnupg1-1.4.23/g10/seskey.c:134:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( frame+n, dek->key, dek->keylen ); n += dek->keylen;
data/gnupg1-1.4.23/g10/seskey.c:171:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( frame+n, asn, asnlen ); n += asnlen;
data/gnupg1-1.4.23/g10/seskey.c:172:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( frame+n, md_read(md, algo), len ); n += len;
data/gnupg1-1.4.23/g10/sig-check.c:217:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[11];
data/gnupg1-1.4.23/g10/sig-check.c:222:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buf,"%lu",(ulong)pk->expiredate);
data/gnupg1-1.4.23/g10/sign.c:476:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100+MAX_FINGERPRINT_LEN*2];
data/gnupg1-1.4.23/g10/sign.c:479:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%c %d %d %02x %lu ",
data/gnupg1-1.4.23/g10/sign.c:486:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(p+2*i, "%02X", array[i] );
data/gnupg1-1.4.23/g10/status.c:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[50];
data/gnupg1-1.4.23/g10/status.c:71:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf ( buf, "%.20s X 100 100", (char*)ctx );
data/gnupg1-1.4.23/g10/status.c:73:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf ( buf, "%.20s %c 0 0", (char*)ctx, c );
data/gnupg1-1.4.23/g10/status.c:360:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/gnupg1-1.4.23/g10/status.c:464:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf( buf, "pv=1 pid=%d shmid=%d sz=%u lz=%u", (int)getpid(),
data/gnupg1-1.4.23/g10/status.c:507:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(string, p, n );
data/gnupg1-1.4.23/g10/status.c:566:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(string, save, i );
data/gnupg1-1.4.23/g10/tdbdump.c:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/gnupg1-1.4.23/g10/tdbdump.c:138:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    else if( !(fp = fopen( fname, "r" )) ) {
data/gnupg1-1.4.23/g10/tdbdump.c:207:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (rec.r.trust.fingerprint, fpr, 20);
data/gnupg1-1.4.23/g10/tdbio.c:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char data[TRUST_RECORD_LEN];
data/gnupg1-1.4.23/g10/tdbio.c:193:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( r->data, data, TRUST_RECORD_LEN );
data/gnupg1-1.4.23/g10/tdbio.c:208:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( r->data, data, TRUST_RECORD_LEN );
data/gnupg1-1.4.23/g10/tdbio.c:219:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( r->data, data, TRUST_RECORD_LEN );
data/gnupg1-1.4.23/g10/tdbio.c:246:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( r->data, data, TRUST_RECORD_LEN );
data/gnupg1-1.4.23/g10/tdbio.c:262:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( r->data, data, TRUST_RECORD_LEN );
data/gnupg1-1.4.23/g10/tdbio.c:296:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( r->data, data, TRUST_RECORD_LEN );
data/gnupg1-1.4.23/g10/tdbio.c:559:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp =fopen( fname, "wb" );
data/gnupg1-1.4.23/g10/tdbio.c:564:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        db_fd = open( db_name, O_RDWR | MY_O_BINARY );
data/gnupg1-1.4.23/g10/tdbio.c:602:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  db_fd = open (db_name, O_RDWR | MY_O_BINARY );
data/gnupg1-1.4.23/g10/tdbio.c:609:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      db_fd = open (db_name, O_RDONLY | MY_O_BINARY );
data/gnupg1-1.4.23/g10/tdbio.c:1256:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( rec->r.trust.fingerprint, p, 20); p+=20;
data/gnupg1-1.4.23/g10/tdbio.c:1264:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( rec->r.valid.namehash, p, 20); p+=20;
data/gnupg1-1.4.23/g10/tdbio.c:1303:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(p-1, "gpg", 3 ); p += 2;
data/gnupg1-1.4.23/g10/tdbio.c:1339:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( p, rec->r.trust.fingerprint, 20); p += 20;
data/gnupg1-1.4.23/g10/tdbio.c:1348:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( p, rec->r.valid.namehash, 20); p += 20;
data/gnupg1-1.4.23/g10/tdbio.c:1604:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (ottable[i].fpr, oldbuf+20, 20);
data/gnupg1-1.4.23/g10/tdbio.c:1631:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(rec.r.trust.fingerprint, ottable[i].fpr, 20);
data/gnupg1-1.4.23/g10/trustdb.c:1007:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (vrec.r.valid.namehash, uid->namehash, 20);
data/gnupg1-1.4.23/g10/trustdb.c:1851:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
      strcpy(new,"<[^>]+[@.]");
data/gnupg1-1.4.23/g10/trustdb.c:1881:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(new,">$");
data/gnupg1-1.4.23/g10/verify.c:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[2048];
data/gnupg1-1.4.23/include/_regex.h:551:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			      const char *__restrict __string, size_t __nmatch,
data/gnupg1-1.4.23/include/http.h:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[1];	/* buffer which holds a (modified) copy of the URI */
data/gnupg1-1.4.23/include/srv.h:44:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char target[MAXDNAME];
data/gnupg1-1.4.23/include/types.h:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char c[1];
data/gnupg1-1.4.23/include/types.h:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char d[1];
data/gnupg1-1.4.23/include/util.h:217:26:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define memmove(d, s, n) bcopy((s), (d), (n))
data/gnupg1-1.4.23/intl/bindtextdom.c:137:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (result, dirname, len);
data/gnupg1-1.4.23/intl/bindtextdom.c:175:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy (result, codeset, len);
data/gnupg1-1.4.23/intl/bindtextdom.c:209:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (new_binding->domainname, domainname, len);
data/gnupg1-1.4.23/intl/bindtextdom.c:234:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy (result, dirname, len);
data/gnupg1-1.4.23/intl/bindtextdom.c:263:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy (result, codeset, len);
data/gnupg1-1.4.23/intl/dcigettext.c:266:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char appended[ZERO];  /* used if domain != NULL */
data/gnupg1-1.4.23/intl/dcigettext.c:419:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char data[ZERO];
data/gnupg1-1.4.23/intl/dcigettext.c:794:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy (new_domainname, domainname, domainname_len + 1);
data/gnupg1-1.4.23/intl/dcigettext.c:1134:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy (charset, charsetstr, len);
data/gnupg1-1.4.23/intl/dcigettext.c:1173:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			  memcpy (tmp, outcharset, len);
data/gnupg1-1.4.23/intl/dcigettext.c:1174:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			  memcpy (tmp + len, "//TRANSLIT", 10 + 1);
data/gnupg1-1.4.23/intl/dcigettext.c:1635:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (value_copy, value, len);
data/gnupg1-1.4.23/intl/dcigettext.c:1677:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (void *) ((char *) memcpy (dest, src, n) + n);
data/gnupg1-1.4.23/intl/finddomain.c:137:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (locale, alias_value, len);
data/gnupg1-1.4.23/intl/gettextP.h:215:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char domainname[ZERO];
data/gnupg1-1.4.23/intl/l10nflist.c:213:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (cp, dirlist, dirlist_len);
data/gnupg1-1.4.23/intl/langprefs.c:174:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char data[8 + 1];
data/gnupg1-1.4.23/intl/langprefs.c:252:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[256];
data/gnupg1-1.4.23/intl/loadmsgcat.c:471:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
# define open(name, flags)	open_not_cancel_2 (name, flags)
data/gnupg1-1.4.23/intl/loadmsgcat.c:833:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (domain_file->filename, O_RDONLY | O_BINARY);
data/gnupg1-1.4.23/intl/loadmsgcat.c:1187:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					    memcpy (mem, static_segments, segsize);
data/gnupg1-1.4.23/intl/loadmsgcat.c:1196:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy (mem, sysdep_segment_values[sysdepref], n);
data/gnupg1-1.4.23/intl/localcharset.c:150:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (file_name, dir, dir_len);
data/gnupg1-1.4.23/intl/localcharset.c:153:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (file_name + dir_len + add_slash, base, base_len + 1);
data/gnupg1-1.4.23/intl/localcharset.c:171:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          fd = open (file_name,
data/gnupg1-1.4.23/intl/localcharset.c:196:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      char buf1[50+1];
data/gnupg1-1.4.23/intl/localcharset.c:197:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      char buf2[50+1];
data/gnupg1-1.4.23/intl/localcharset.c:382:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char buf[2 + 10 + 1];
data/gnupg1-1.4.23/intl/localcharset.c:408:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy (buf, dot, modifier - dot);
data/gnupg1-1.4.23/intl/localcharset.c:426:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (buf, "CP%u", GetACP ());
data/gnupg1-1.4.23/intl/localcharset.c:463:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[2 + 10 + 1];
data/gnupg1-1.4.23/intl/localcharset.c:491:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (buf, "CP%u", GetACP ());
data/gnupg1-1.4.23/intl/localcharset.c:498:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[2 + 10 + 1];
data/gnupg1-1.4.23/intl/localcharset.c:527:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (buf, dot, modifier - dot);
data/gnupg1-1.4.23/intl/localcharset.c:543:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (buf, "CP%u", cp[0]);
data/gnupg1-1.4.23/intl/localealias.c:228:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (full_fname, fname, fname_len);
data/gnupg1-1.4.23/intl/localealias.c:229:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile);
data/gnupg1-1.4.23/intl/localealias.c:235:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (relocate (full_fname), "rc");
data/gnupg1-1.4.23/intl/localealias.c:237:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (relocate (full_fname), "r");
data/gnupg1-1.4.23/intl/localealias.c:258:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[400];
data/gnupg1-1.4.23/intl/localealias.c:351:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    (const char *) memcpy (&string_space[string_space_act],
data/gnupg1-1.4.23/intl/localealias.c:356:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    (const char *) memcpy (&string_space[string_space_act],
data/gnupg1-1.4.23/intl/localename.c:1159:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/gnupg1-1.4.23/intl/localename.c:1159:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char legacy[21+1]; const char unixy[5+1]; }
data/gnupg1-1.4.23/intl/localename.c:1297:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/gnupg1-1.4.23/intl/localename.c:1297:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char langtag[7+1]; const char unixy[12+1]; }
data/gnupg1-1.4.23/intl/localename.c:1327:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/gnupg1-1.4.23/intl/localename.c:1327:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  typedef struct { const char script[4+1]; const char unixy[9+1]; }
data/gnupg1-1.4.23/intl/localename.c:1460:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char namebuf[256];
data/gnupg1-1.4.23/intl/localename.c:2517:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char lname[LC_MAX * (LOCALE_NAME_MAX_LENGTH + 1) + 1];
data/gnupg1-1.4.23/intl/localename.c:2524:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char locval[2 * LOCALE_NAME_MAX_LENGTH + 1 + 1];
data/gnupg1-1.4.23/intl/localename.c:2560:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char last_locale[1000];
data/gnupg1-1.4.23/intl/localename.c:2616:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char contents[100]; /* has variable size */
data/gnupg1-1.4.23/intl/localename.c:2647:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (new_node->contents, string, size);
data/gnupg1-1.4.23/intl/localename.c:2891:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char namebuf[256];
data/gnupg1-1.4.23/intl/log.c:89:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      last_logfile = fopen (logfilename, "a");
data/gnupg1-1.4.23/intl/os2compat.c:40:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char libintl_nl_default_dirname[MAXPATHLEN+1];
data/gnupg1-1.4.23/intl/os2compat.c:59:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_libdir, root, sl);
data/gnupg1-1.4.23/intl/os2compat.c:60:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:73:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localealiaspath, root, sl);
data/gnupg1-1.4.23/intl/os2compat.c:74:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:87:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localedir, root, sl);
data/gnupg1-1.4.23/intl/os2compat.c:88:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/gnupg1-1.4.23/intl/plural.c:1057:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/gnupg1-1.4.23/intl/plural.c:1306:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/gnupg1-1.4.23/intl/printf-parse.c:122:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (memory, a->arg, a->count * sizeof (argument));        \
data/gnupg1-1.4.23/intl/printf-parse.c:599:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE));
data/gnupg1-1.4.23/intl/printf.c:224:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (resultbuf, result, pruned_length);
data/gnupg1-1.4.23/intl/printf.c:401:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (resultbuf, result, pruned_length * sizeof (wchar_t));
data/gnupg1-1.4.23/intl/relocatable.c:134:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (memory, orig_prefix_arg, orig_prefix_len + 1);
data/gnupg1-1.4.23/intl/relocatable.c:137:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (memory, curr_prefix_arg, curr_prefix_len + 1);
data/gnupg1-1.4.23/intl/relocatable.c:219:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (q, curr_pathname, p - curr_pathname);
data/gnupg1-1.4.23/intl/relocatable.c:288:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (curr_prefix, curr_installdir, curr_prefix_len);
data/gnupg1-1.4.23/intl/relocatable.c:322:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char location[MAX_PATH];
data/gnupg1-1.4.23/intl/relocatable.c:352:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen ("/proc/self/maps", "r");
data/gnupg1-1.4.23/intl/relocatable.c:486:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (result, curr_prefix, curr_prefix_len);
data/gnupg1-1.4.23/intl/setlocale.c:640:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char llCC_buf[64];
data/gnupg1-1.4.23/intl/setlocale.c:641:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ll_buf[64];
data/gnupg1-1.4.23/intl/setlocale.c:642:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char CC_buf[64];
data/gnupg1-1.4.23/intl/setlocale.c:711:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (ll_buf, llCC_buf, underscore - llCC_buf);
data/gnupg1-1.4.23/intl/setlocale.c:714:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (CC_buf, territory_start, territory_end - territory_start);
data/gnupg1-1.4.23/intl/setlocale.c:747:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            char buf[64+64];
data/gnupg1-1.4.23/intl/setlocale.c:751:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy (buf, part1, part1_len);
data/gnupg1-1.4.23/intl/setlocale.c:753:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy (buf + part1_len + 1, part2, part2_len);
data/gnupg1-1.4.23/intl/setlocale.c:794:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char lc_messages_name[64] = "C";
data/gnupg1-1.4.23/intl/textdomain.c:99:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (new_domain, domainname, len);
data/gnupg1-1.4.23/intl/vasnprintf.c:143:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define DCHAR_CPY memcpy
data/gnupg1-1.4.23/intl/vasnprintf.c:284:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pointbuf[5];
data/gnupg1-1.4.23/intl/vasnprintf.c:285:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (pointbuf, "%#.0f", 1.0);
data/gnupg1-1.4.23/intl/vasnprintf.c:509:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/gnupg1-1.4.23/intl/vasnprintf.c:645:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/gnupg1-1.4.23/intl/vasnprintf.c:2664:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/gnupg1-1.4.23/intl/vasnprintf.c:2709:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/gnupg1-1.4.23/intl/vasnprintf.c:2759:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/gnupg1-1.4.23/intl/vasnprintf.c:2772:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy (tmpptr, cbuf, count);
data/gnupg1-1.4.23/intl/vasnprintf.c:2840:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/gnupg1-1.4.23/intl/vasnprintf.c:2853:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                          memcpy (result + length, cbuf, count);
data/gnupg1-1.4.23/intl/vasnprintf.c:2869:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/gnupg1-1.4.23/intl/vasnprintf.c:2891:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                          memcpy (result + length, cbuf, count);
data/gnupg1-1.4.23/intl/vasnprintf.c:3172:35:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                  sprintf ((char *) p, "%+d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:3178:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                  char expbuf[6 + 1];
data/gnupg1-1.4.23/intl/vasnprintf.c:3180:35:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                  sprintf (expbuf, "%+d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:3323:35:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                  sprintf ((char *) p, "%+d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:3329:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                  char expbuf[6 + 1];
data/gnupg1-1.4.23/intl/vasnprintf.c:3331:35:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                  sprintf (expbuf, "%+d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:3398:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (result + length, tmp, count * sizeof (DCHAR_T));
data/gnupg1-1.4.23/intl/vasnprintf.c:3783:37:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                    sprintf ((char *) p, "%+.2d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:3789:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                    char expbuf[6 + 1];
data/gnupg1-1.4.23/intl/vasnprintf.c:3791:37:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                    sprintf (expbuf, "%+.2d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:3964:45:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                            sprintf ((char *) p, "%+.2d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:3970:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                            char expbuf[6 + 1];
data/gnupg1-1.4.23/intl/vasnprintf.c:3972:45:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                            sprintf (expbuf, "%+.2d", exponent);
data/gnupg1-1.4.23/intl/vasnprintf.c:4262:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                      char expbuf[6 + 1];
data/gnupg1-1.4.23/intl/vasnprintf.c:4455:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                              char expbuf[6 + 1];
data/gnupg1-1.4.23/intl/vasnprintf.c:4581:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (result + length, tmp, count * sizeof (DCHAR_T));
data/gnupg1-1.4.23/intl/vasnprintf.c:4789:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T));
data/gnupg1-1.4.23/intl/vasnprintf.c:4810:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T));
data/gnupg1-1.4.23/intl/vasnprintf.c:5506:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (result + length, tmp, count * sizeof (DCHAR_T));
data/gnupg1-1.4.23/keyserver/curl-shim.c:44:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(curl->errorbuffer,"okay");
data/gnupg1-1.4.23/keyserver/curl-shim.c:48:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(curl->errorbuffer,"unsupported protocol");
data/gnupg1-1.4.23/keyserver/curl-shim.c:52:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(curl->errorbuffer,"couldn't connect");
data/gnupg1-1.4.23/keyserver/curl-shim.c:56:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(curl->errorbuffer,"write error");
data/gnupg1-1.4.23/keyserver/curl-shim.c:60:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(curl->errorbuffer,"url returned error %u",curl->status);
data/gnupg1-1.4.23/keyserver/curl-shim.c:64:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(curl->errorbuffer,"generic error");
data/gnupg1-1.4.23/keyserver/curl-shim.c:70:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(curl->errorbuffer,": ");
data/gnupg1-1.4.23/keyserver/curl-shim.c:208:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char content_len[50];
data/gnupg1-1.4.23/keyserver/curl-shim.c:217:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(content_len,"Content-Length: %u\r\n",post_len);
data/gnupg1-1.4.23/keyserver/curl-shim.c:363:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char numbuf[5];
data/gnupg1-1.4.23/keyserver/curl-shim.c:364:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(numbuf,"%%%02X",(unsigned char)str[idx]);
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:60:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char errorbuffer[CURL_ERROR_SIZE];
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:61:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char request[MAX_URL];
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:116:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[MAX_LINE];
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:151:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	output=fopen(optarg,"wb");
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:164:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      input=fopen(argv[optind],"r");
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:188:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char option[MAX_OPTION+1];
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:238:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		follow_redirects=atoi(&start[17]);
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:116:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (&addr.sin_addr, &l, sizeof l);
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:131:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&addr.sin_addr, hp->h_addr, hp->h_length);
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:365:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[MAX_LINE];
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:395:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	output=fopen(optarg,"w");
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:408:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      input=fopen(argv[optind],"r");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:73:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char errorbuffer[CURL_ERROR_SIZE];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:117:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char request[MAX_URL+15];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char keyid[17],state[6];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:120:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[MAX_LINE];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:205:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(key,"keytext=");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:209:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(request,"://");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:252:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char request[MAX_URL+92];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:275:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(request,"://");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:393:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(request,"://");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:402:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(request,"&exact=on");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:508:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(request,"://");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:518:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(request,"0x");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:523:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(request,"&exact=on");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:604:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char srvname[MAXDNAME];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:608:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(srvname,"._tcp.");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:619:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (portstr, "%hu", srvlist[srvindex].port);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:626:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char ipaddr[INET_ADDRSTRLEN+INET6_ADDRSTRLEN];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:700:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[MAX_LINE];
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:742:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	output=fopen(optarg,"w");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:755:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      input=fopen(argv[optind],"r");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:779:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char option[MAX_OPTION+1];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:227:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[16];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:236:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf,"%04d%02d%02d%02d%02d%02dZ",
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:409:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      switch(atoi(tok))
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:424:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(tok)>0)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:426:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char padded[6];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:427:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  int val=atoi(tok);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:433:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      sprintf(padded,"%05u",atoi(tok));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:433:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      sprintf(padded,"%05u",atoi(tok));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:442:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(tok)>0)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:444:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  char *stamp=epoch2ldaptime(atoi(tok));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:456:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(tok)>0)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:458:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  char *stamp=epoch2ldaptime(atoi(tok));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:515:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(tok)>0)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:517:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char padded[6];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:518:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  int val=atoi(tok);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:524:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	      sprintf(padded,"%05u",atoi(tok));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:524:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      sprintf(padded,"%05u",atoi(tok));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:600:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char keyid[17],state[6];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:819:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char keyid[17],state[6];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:837:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(dn,"pgpCertid=virtual,");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:950:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(vals[0])>0)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:951:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	fprintf(output,"%d",atoi(vals[0]));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:980:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(vals[0])==1)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1007:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char search[62];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1042:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(search,"(|(pgpcertid=%.16s)(pgpsubkeyid=%.16s))",
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1045:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(search,"(pgpcertid=%.16s)",offset);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1052:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(search,"(|(pgpcertid=%.16s)(pgpsubkeyid=%.16s))",
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1055:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(search,"(pgpcertid=%.16s)",getkey);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1061:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(search,"(pgpkeyid=%.8s)",getkey);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1175:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(buffer,"\\%02X",*string);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1193:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char search[2+12+(MAX_LINE*3)+2+15+14+1+1+20];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1208:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(search,"(&");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1210:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(search,"(pgpUserID=*");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1212:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(search,"*)");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1215:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(search,"(pgpDisabled=0)");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1218:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(search,"(pgpRevoked=0)");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1346:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(search,"(&");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1353:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(search,"pgpKeyID");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1357:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(search,"pgpCertID");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1361:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(search,"pgpUserID");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1374:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(search,"*<");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1378:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(search,"*<*");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1396:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(search,">*");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1400:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(search,"*>*");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1412:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(search,"(pgpDisabled=0)");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1415:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(search,"(pgpRevoked=0)");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1525:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		      if(atoi(vals[0])>0)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1526:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			fprintf(output,"%d",atoi(vals[0]));
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1557:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		      if(atoi(vals[0])==1)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1565:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		      if(atoi(vals[0])==1)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1692:8:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	      strcpy(object,"cn=pgpServerInfo,");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1783:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  if(atoi(vals[0])>1)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1808:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[MAX_LINE],*binddn=NULL,*bindpw=NULL;
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1839:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	output=fopen(optarg,"w");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1852:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      input=fopen(argv[optind],"r");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1875:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char optionstr[MAX_OPTION+1];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:2007:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    port=atoi(opt->port);
data/gnupg1-1.4.23/keyserver/ksutil.c:135:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char command[MAX_COMMAND+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:136:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char host[MAX_HOST+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:137:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char port[MAX_PORT+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:138:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char scheme[MAX_SCHEME+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:139:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char auth[MAX_AUTH+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:140:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[URLMAX_PATH+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:141:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char opaque[MAX_OPAQUE+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:142:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char option[MAX_OPTION+1];
data/gnupg1-1.4.23/keyserver/ksutil.c:249:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    opt->verbose=atoi(&start[8]);
data/gnupg1-1.4.23/keyserver/ksutil.c:286:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    opt->debug=atoi(&start[6]);
data/gnupg1-1.4.23/keyserver/ksutil.c:295:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    opt->timeout=atoi(&start[8]);
data/gnupg1-1.4.23/keyserver/ksutil.h:72:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[MAX_LINE];
data/gnupg1-1.4.23/keyserver/ksutil.h:130:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char armor_ctx[3];
data/gnupg1-1.4.23/mpi/mpiutil.c:354:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( p, a->d, a->nbits );
data/gnupg1-1.4.23/mpi/mpiutil.c:395:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( p, a->d, a->nbits );
data/gnupg1-1.4.23/tools/bftest.c:61:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/gnupg1-1.4.23/tools/gpgsplit.c:542:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fpout = fopen (outname, "wb");
data/gnupg1-1.4.23/tools/gpgsplit.c:771:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char header[20];
data/gnupg1-1.4.23/tools/gpgsplit.c:860:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  else if ( !(fp = fopen (fname,"rb")) ) 
data/gnupg1-1.4.23/tools/make-dns-cert.c:42:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd=open(keyfile,O_RDONLY);
data/gnupg1-1.4.23/tools/make-dns-cert.c:73:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char buffer[1024];
data/gnupg1-1.4.23/tools/mk-tdata.c:46:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  limit = argc ? atoi(argv[0]) : 0;
data/gnupg1-1.4.23/tools/mpicalc.c:227:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char strbuf[1000];
data/gnupg1-1.4.23/tools/shmtest.c:83:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( area+n+2, p, len );
data/gnupg1-1.4.23/tools/shmtest.c:106:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[200];
data/gnupg1-1.4.23/tools/shmtest.c:122:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy( p, "../g10/gpg --status-fd 1 --run-as-shm-coprocess 0");
data/gnupg1-1.4.23/tools/shmtest.c:150:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		    val = atoi(p2); /* should be atou() for some values */
data/gnupg1-1.4.23/tools/shmtest.c:152:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if( atoi(p2) != 1 )
data/gnupg1-1.4.23/util/argparse.c:142:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[1];      /* String with the long option name.  */
data/gnupg1-1.4.23/util/argparse.c:254:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[100];
data/gnupg1-1.4.23/util/argparse.c:354:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char keyword[100];
data/gnupg1-1.4.23/util/argparse.c:538:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buffer, keyword, i);
data/gnupg1-1.4.23/util/assuan-buffer.c:112:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (line, ctx->inbound.attic.line, atticlen);
data/gnupg1-1.4.23/util/assuan-buffer.c:168:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy (ctx->inbound.attic.line, endp + 1, len);
data/gnupg1-1.4.23/util/assuan-buffer.c:352:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
              sprintf (line, "%%%02X", *(unsigned char*)buffer);
data/gnupg1-1.4.23/util/assuan-client.c:186:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      rc = atoi (line);
data/gnupg1-1.4.23/util/assuan-defs.h:55:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char           sun_path[108-2-4]; /* Path name.  */
data/gnupg1-1.4.23/util/assuan-defs.h:107:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[LINELENGTH];
data/gnupg1-1.4.23/util/assuan-defs.h:112:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[LINELENGTH];
data/gnupg1-1.4.23/util/assuan-defs.h:122:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char line[LINELENGTH];
data/gnupg1-1.4.23/util/assuan-errors.c:36:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[50];
data/gnupg1-1.4.23/util/assuan-errors.c:94:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (buf, "ec=%u.%u", source, code ); 
data/gnupg1-1.4.23/util/assuan-errors.c:96:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (buf, "ec=%d", err ); 
data/gnupg1-1.4.23/util/assuan-logging.c:35:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char prefix_buffer[80];
data/gnupg1-1.4.23/util/assuan-logging.c:105:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char strerr[256];
data/gnupg1-1.4.23/util/assuan-socket.c:73:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (unaddr->sun_path, "rb");
data/gnupg1-1.4.23/util/cert.c:161:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy(*fpr,&pt[1],*fpr_len);
data/gnupg1-1.4.23/util/cert.c:169:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		  memcpy(*url,&pt[*fpr_len+1],dlen-(*fpr_len+1));
data/gnupg1-1.4.23/util/compat.c:137:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *argv[48];
data/gnupg1-1.4.23/util/dotlock.c:482:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer_space[10+1+70+1]; /* 70 is just an estimated value; node
data/gnupg1-1.4.23/util/dotlock.c:501:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ( (fd = open (h->lockname, O_RDONLY)) == -1 )
data/gnupg1-1.4.23/util/dotlock.c:544:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      || (buffer[10] = 0, pid = atoi (buffer)) == -1
data/gnupg1-1.4.23/util/dotlock.c:615:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pidstr[16];
data/gnupg1-1.4.23/util/dotlock.c:664:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fd = open (h->tname, O_WRONLY|O_CREAT|O_EXCL,
data/gnupg1-1.4.23/util/dotlock.c:976:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          fd = open (h->lockname, O_WRONLY|O_CREAT|O_EXCL,
data/gnupg1-1.4.23/util/dotlock.c:991:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          char pidstr[16];
data/gnupg1-1.4.23/util/errors.c:34:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[15];
data/gnupg1-1.4.23/util/errors.c:38:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy( buf, "Unknown error" );
data/gnupg1-1.4.23/util/errors.c:46:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[50];
data/gnupg1-1.4.23/util/errors.c:110:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      default: p = buf; sprintf(buf, "g10err=%d", err); break;
data/gnupg1-1.4.23/util/estream-printf.c:760:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[32];
data/gnupg1-1.4.23/util/estream-printf.c:792:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[100];
data/gnupg1-1.4.23/util/estream-printf.c:998:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[350];
data/gnupg1-1.4.23/util/estream-printf.c:999:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char formatstr[20];
data/gnupg1-1.4.23/util/estream-printf.c:1127:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1];
data/gnupg1-1.4.23/util/estream-printf.c:1199:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[100];
data/gnupg1-1.4.23/util/estream-printf.c:1641:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (parm->buffer + parm->used, buf, buflen);
data/gnupg1-1.4.23/util/estream-printf.c:1736:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (parm->buffer + parm->used, buf, buflen);
data/gnupg1-1.4.23/util/http.c:365:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		uri->port = atoi( p3 );
data/gnupg1-1.4.23/util/http.c:477:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( buffer, "%%%02X", *string );
data/gnupg1-1.4.23/util/http.c:602:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char portstr[35];
data/gnupg1-1.4.23/util/http.c:607:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(portstr,":%u",port);
data/gnupg1-1.4.23/util/http.c:726:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    hd->status_code = atoi( p );
data/gnupg1-1.4.23/util/http.c:851:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&addr.sin_addr,&inaddr,sizeof(inaddr));
data/gnupg1-1.4.23/util/http.c:870:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char srvname[MAXDNAME];
data/gnupg1-1.4.23/util/http.c:874:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat(srvname,"._tcp.");
data/gnupg1-1.4.23/util/http.c:900:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char portstr[6];
data/gnupg1-1.4.23/util/http.c:902:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(portstr,"%u",srvlist[srvindex].port);
data/gnupg1-1.4.23/util/http.c:974:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(&addr.sin_addr,host->h_addr_list[i],host->h_length);
data/gnupg1-1.4.23/util/iobuf.c:47:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
# define open open_vms
data/gnupg1-1.4.23/util/iobuf.c:69:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define my_fopen_ro(a,b) fopen ((a),(b))
data/gnupg1-1.4.23/util/iobuf.c:70:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define my_fopen(a,b)    fopen ((a),(b))
data/gnupg1-1.4.23/util/iobuf.c:80:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char fname[1]; /* name of the file */
data/gnupg1-1.4.23/util/iobuf.c:104:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
     char fname[1]; /* name of the file */
data/gnupg1-1.4.23/util/iobuf.c:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[1];
data/gnupg1-1.4.23/util/iobuf.c:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char fname[1]; /* name of the file */
data/gnupg1-1.4.23/util/iobuf.c:298:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return open (fname, oflag, cflag );
data/gnupg1-1.4.23/util/iobuf.c:308:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            return open( fname, oflag, cflag );
data/gnupg1-1.4.23/util/iobuf.c:795:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( a->buffer + a->buflen, buf, size );
data/gnupg1-1.4.23/util/iobuf.c:833:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		    memcpy( a->buffer, p, nbytes );
data/gnupg1-1.4.23/util/iobuf.c:921:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (buf, "?", 2);
data/gnupg1-1.4.23/util/iobuf.c:1071:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( a->d.buf, buffer, length );
data/gnupg1-1.4.23/util/iobuf.c:1099:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            return atoi (fname);
data/gnupg1-1.4.23/util/iobuf.c:1179:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(fcx->fname, "[fd %d]", fd );
data/gnupg1-1.4.23/util/iobuf.c:1202:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(scx->fname, "[sock %d]", fd );
data/gnupg1-1.4.23/util/iobuf.c:1436:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(b, a, sizeof *b );
data/gnupg1-1.4.23/util/iobuf.c:1512:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a,b, sizeof *a);
data/gnupg1-1.4.23/util/iobuf.c:1549:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a,b, sizeof *a);
data/gnupg1-1.4.23/util/iobuf.c:1589:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(a, b, sizeof *a);
data/gnupg1-1.4.23/util/iobuf.c:1654:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(a,b, sizeof *a);
data/gnupg1-1.4.23/util/iobuf.c:1697:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( newbuf, a->d.buf, a->d.len );
data/gnupg1-1.4.23/util/iobuf.c:1780:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy( buf, a->d.buf + a->d.start, size );
data/gnupg1-1.4.23/util/iobuf.c:1857:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( a->d.buf + a->d.len, buf, size );
data/gnupg1-1.4.23/util/iobuf.c:1903:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( buffer, a->d.buf, n );
data/gnupg1-1.4.23/util/logger.c:35:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char pidstring[15];
data/gnupg1-1.4.23/util/logger.c:95:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(pidstring,"[%u]", (unsigned)pid );
data/gnupg1-1.4.23/util/membuf.c:60:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (mb->buf + mb->len, buf, len);
data/gnupg1-1.4.23/util/memory.c:541:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(b, a, len );
data/gnupg1-1.4.23/util/miscutil.c:76:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    year = atoi(string);
data/gnupg1-1.4.23/util/miscutil.c:77:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    month = atoi(string+5);
data/gnupg1-1.4.23/util/miscutil.c:78:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    day = atoi(string+8);
data/gnupg1-1.4.23/util/miscutil.c:101:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[30];
data/gnupg1-1.4.23/util/miscutil.c:113:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"%uy%ud%uh%um", years, days, hours, minutes );
data/gnupg1-1.4.23/util/miscutil.c:128:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[11+5];
data/gnupg1-1.4.23/util/miscutil.c:133:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (buffer, "????" "-??" "-??");
data/gnupg1-1.4.23/util/miscutil.c:137:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer,"%04d-%02d-%02d",
data/gnupg1-1.4.23/util/miscutil.c:150:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[25+5];
data/gnupg1-1.4.23/util/miscutil.c:155:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (buffer, "????" "-??" "-??" " " "??" ":" "??" ":" "??");
data/gnupg1-1.4.23/util/miscutil.c:159:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer,"%04d-%02d-%02d %02d:%02d:%02d",
data/gnupg1-1.4.23/util/miscutil.c:223:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buffer[50];
data/gnupg1-1.4.23/util/miscutil.c:225:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char fmt[50];
data/gnupg1-1.4.23/util/miscutil.c:232:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (buffer, "????" "-??" "-??");
data/gnupg1-1.4.23/util/miscutil.c:245:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat( fmt, " %Z");
data/gnupg1-1.4.23/util/miscutil.c:384:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(d, "x%02x", *p );
data/gnupg1-1.4.23/util/mkdtemp.c:77:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(marker,"%02X",randombits[idx++]);
data/gnupg1-1.4.23/util/mkdtemp.c:85:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(marker,"%X",randombits[idx]&0xF);
data/gnupg1-1.4.23/util/pka.c:119:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char const zb32asc[32] = {'y','b','n','d','r','f','g','8',
data/gnupg1-1.4.23/util/pka.c:211:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hashbuf[20];
data/gnupg1-1.4.23/util/pka.c:245:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (fprbuf, fpr, fpr_len);
data/gnupg1-1.4.23/util/regcomp.c:407:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
              char buf[256];
data/gnupg1-1.4.23/util/regcomp.c:557:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (errbuf, msg, errbuf_size - 1);
data/gnupg1-1.4.23/util/regcomp.c:562:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (errbuf, msg, msg_size);
data/gnupg1-1.4.23/util/regcomp.c:2338:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t cmp_buf[6] = {L'\0', L'\0', L'\0', L'\0', L'\0', L'\0'};
data/gnupg1-1.4.23/util/regcomp.c:2794:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char start_name_buf[BRACKET_NAME_BUF_SIZE];
data/gnupg1-1.4.23/util/regcomp.c:2795:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char end_name_buf[BRACKET_NAME_BUF_SIZE];
data/gnupg1-1.4.23/util/regcomp.c:3076:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char char_buf[2];
data/gnupg1-1.4.23/util/regex_internal.c:320:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (pstr->mbs + byte_idx,
data/gnupg1-1.4.23/util/regex_internal.c:617:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems, src->elems, src->nelem * sizeof (int));
data/gnupg1-1.4.23/util/regex_internal.c:712:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems + id, src1->elems + i1,
data/gnupg1-1.4.23/util/regex_internal.c:718:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems + id, src2->elems + i2,
data/gnupg1-1.4.23/util/regex_internal.c:777:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems + di, src->elems + cp_from,
data/gnupg1-1.4.23/util/regex_internal.c:787:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (dest->elems + di, src->elems + si,
data/gnupg1-1.4.23/util/regex_internal.c:835:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (new_array, set->elems, sizeof (int) * (idx));
data/gnupg1-1.4.23/util/regex_internal.c:838:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (new_array + idx + 1, set->elems + idx,
data/gnupg1-1.4.23/util/regex_internal.h:38:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define __mempcpy memcpy
data/gnupg1-1.4.23/util/regex_internal.h:59:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (dest, src, sizeof (unsigned int) * BITSET_UINTS)
data/gnupg1-1.4.23/util/regexec.c:324:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (s, string1, length1);
data/gnupg1-1.4.23/util/regexec.c:325:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (s + length1, string2, length2);
data/gnupg1-1.4.23/util/regexec.c:1138:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs);
data/gnupg1-1.4.23/util/regexec.c:1153:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs);
data/gnupg1-1.4.23/util/secmem.c:250:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/zero", O_RDWR);
data/gnupg1-1.4.23/util/secmem.c:428:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a, p, size);
data/gnupg1-1.4.23/util/simple-gettext.c:86:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char d[1];
data/gnupg1-1.4.23/util/simple-gettext.c:156:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen( filename, "rb" );
data/gnupg1-1.4.23/util/simple-gettext.c:336:11:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
          strcpy (stpcpy (stpcpy (stpcpy (stpcpy ( stpcpy (fname,
data/gnupg1-1.4.23/util/srv.c:60:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char answer[2048];
data/gnupg1-1.4.23/util/srv.c:173:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy(&temp,&(*list)[j],sizeof(struct srventry));
data/gnupg1-1.4.23/util/srv.c:174:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy(&(*list)[j],&(*list)[i],sizeof(struct srventry));
data/gnupg1-1.4.23/util/srv.c:175:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy(&(*list)[i],&temp,sizeof(struct srventry));
data/gnupg1-1.4.23/util/srv.c:210:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy(&temp,&(*list)[j],sizeof(struct srventry));
data/gnupg1-1.4.23/util/srv.c:211:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy(&(*list)[j],&(*list)[i],sizeof(struct srventry));
data/gnupg1-1.4.23/util/srv.c:212:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		      memcpy(&(*list)[i],&temp,sizeof(struct srventry));
data/gnupg1-1.4.23/util/strgutil.c:563:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char codepage[30];
data/gnupg1-1.4.23/util/strgutil.c:577:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (codepage, "CP%u", cpno );
data/gnupg1-1.4.23/util/strgutil.c:613:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char codepage[30];
data/gnupg1-1.4.23/util/strgutil.c:616:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy (codepage, "iso-8859-1");
data/gnupg1-1.4.23/util/strgutil.c:630:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy (codepage, dot, mod - dot);
data/gnupg1-1.4.23/util/strgutil.c:869:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(p, "\\x%02x", *s );
data/gnupg1-1.4.23/util/strgutil.c:895:33:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                sprintf( p, "x%02x", *s );
data/gnupg1-1.4.23/util/strgutil.c:938:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(p, "\\x%02x", *s );
data/gnupg1-1.4.23/util/strgutil.c:948:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(p, "\\x%02x", encbuf[i] );
data/gnupg1-1.4.23/util/strgutil.c:951:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(p, "\\x%02x", *s );
data/gnupg1-1.4.23/util/strgutil.c:1008:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				    sprintf(p, "\\x%02x", encbuf[i] );
data/gnupg1-1.4.23/util/strgutil.c:1024:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				    sprintf(p, "\\x%02x", encbuf[i] );
data/gnupg1-1.4.23/util/strgutil.c:1222:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *argv[48];
data/gnupg1-1.4.23/util/strgutil.c:1374:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char strerr[256];
data/gnupg1-1.4.23/util/timegm.c:52:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(old_zone,"TZ=");
data/gnupg1-1.4.23/util/ttyio.c:186:33:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ttyfp = batchmode? stderr : fopen( tty_get_ttyname (), "r+");
data/gnupg1-1.4.23/zlib/trees.c:333:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *header = fopen("trees.h", "w");
data/gnupg1-1.4.23/zlib/zutil.c:16:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *z_errmsg[10] = {
data/gnupg1-1.4.23/zlib/zutil.h:40:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */
data/gnupg1-1.4.23/zlib/zutil.h:102:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
     fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
data/gnupg1-1.4.23/zlib/zutil.h:148:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#  define F_OPEN(name, mode) fopen((name), (mode))
data/gnupg1-1.4.23/zlib/zutil.h:179:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#    define zmemcpy memcpy
data/gnupg1-1.4.23/bzlib/bzlib.c:908:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   Int32 c = fgetc ( f );
data/gnupg1-1.4.23/bzlib/bzlib.c:1418:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
   strcat(mode2,"b");   /* binary mode */
data/gnupg1-1.4.23/cipher/dynload.c:66:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	el = xmalloc_clear( sizeof *el + strlen(tmp) );
data/gnupg1-1.4.23/cipher/dynload.c:71:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	el = xmalloc_clear( sizeof *el + strlen(fname) );
data/gnupg1-1.4.23/cipher/md.c:46:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    byte *(*read)( void *c );
data/gnupg1-1.4.23/cipher/md.c:67:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                         &r->init, &r->write, &r->final, &r->read );
data/gnupg1-1.4.23/cipher/md.c:358:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    return (*r->read)( &r->context.c );
data/gnupg1-1.4.23/cipher/md.c:364:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return (*r->read)( &r->context.c );
data/gnupg1-1.4.23/cipher/md.c:411:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    digest = (*r->read)( context );
data/gnupg1-1.4.23/cipher/random.c:505:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read( fd, buffer, POOLSIZE );
data/gnupg1-1.4.23/cipher/rndegd.c:73:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, (char*)buf + nread, nbytes );
data/gnupg1-1.4.23/cipher/rndegd.c:117:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( strlen(name)+1 >= sizeof addr.sun_path ) 
data/gnupg1-1.4.23/cipher/rndegd.c:124:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              + strlen( addr.sun_path ));
data/gnupg1-1.4.23/cipher/rndlinux.c:150:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    n = read(fd, buffer, nbytes );
data/gnupg1-1.4.23/cipher/rndunix.c:789:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    n = read(fd, buffer, length );
data/gnupg1-1.4.23/doc/yat2m.c:331:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  void *p = malloc (strlen (string)+1);
data/gnupg1-1.4.23/doc/yat2m.c:388:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      m = xcalloc (1, sizeof *m + strlen (name));
data/gnupg1-1.4.23/doc/yat2m.c:411:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      m = xcalloc (1, sizeof *m + strlen (macroname));
data/gnupg1-1.4.23/doc/yat2m.c:448:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      m = xcalloc (1, sizeof *m + strlen (nameandvalue));
data/gnupg1-1.4.23/doc/yat2m.c:539:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  cond = xcalloc (1, sizeof *cond + strlen (name));
data/gnupg1-1.4.23/doc/yat2m.c:645:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      n1 = strlen (lb->line);
data/gnupg1-1.4.23/doc/yat2m.c:646:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      n = n1 + 1 + strlen (line) + 1;
data/gnupg1-1.4.23/doc/yat2m.c:648:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy (lb->line+n1, "\n");
data/gnupg1-1.4.23/doc/yat2m.c:859:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    if (strlen (m->name) == len
data/gnupg1-1.4.23/doc/yat2m.c:883:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          proc_texi_buffer (fp, m->value, strlen (m->value),
data/gnupg1-1.4.23/doc/yat2m.c:1019:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  proc_texi_buffer (fp, line, strlen (line), table_level, &eol_action);
data/gnupg1-1.4.23/doc/yat2m.c:1172:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t n = strlen (line);
data/gnupg1-1.4.23/doc/yat2m.c:1233:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              if (macrovalueused + strlen (line) + 2 >= macrovaluesize)
data/gnupg1-1.4.23/doc/yat2m.c:1235:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  macrovaluesize += strlen (line) + 256;
data/gnupg1-1.4.23/doc/yat2m.c:1239:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              macrovalueused += strlen (line);
data/gnupg1-1.4.23/doc/yat2m.c:1400:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  incname = xmalloc (strlen (opt_include) + 1
data/gnupg1-1.4.23/doc/yat2m.c:1401:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                     + strlen (p) + 1);
data/gnupg1-1.4.23/doc/yat2m.c:1403:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  if ( incname[strlen (incname)-1] != '/' )
data/gnupg1-1.4.23/doc/yat2m.c:1404:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat (incname, "/");
data/gnupg1-1.4.23/g10/apdu.c:696:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      n = read (fd, buf, nleft);
data/gnupg1-1.4.23/g10/apdu.c:1538:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (nreader < (strlen (p)+1))
data/gnupg1-1.4.23/g10/apdu.c:1543:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      nreader -= strlen (p)+1;
data/gnupg1-1.4.23/g10/apdu.c:1544:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      p += strlen (p) + 1;
data/gnupg1-1.4.23/g10/apdu.c:1547:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  reader_table[slot].rdrname = xtrymalloc (strlen (portstr? portstr : list)+1);
data/gnupg1-1.4.23/g10/apdu.c:1700:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = portstr? strlen (portstr):0;
data/gnupg1-1.4.23/g10/app-openpgp.c:737:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    numbuf, (size_t)strlen(numbuf),
data/gnupg1-1.4.23/g10/app-openpgp.c:738:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    buf, (size_t)strlen (buf), NULL, 0);
data/gnupg1-1.4.23/g10/app-openpgp.c:754:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    numbuf1, (size_t)strlen(numbuf1),
data/gnupg1-1.4.23/g10/app-openpgp.c:755:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    numbuf2, (size_t)strlen(numbuf2), NULL, 0);
data/gnupg1-1.4.23/g10/app-openpgp.c:772:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    name, (size_t)strlen(name), 
data/gnupg1-1.4.23/g10/app-openpgp.c:773:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    buf, (size_t)strlen (buf),
data/gnupg1-1.4.23/g10/app-openpgp.c:853:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            serial, strlen (serial),
data/gnupg1-1.4.23/g10/app-openpgp.c:854:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            tmp, strlen (tmp),
data/gnupg1-1.4.23/g10/app-openpgp.c:875:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      send_status_info (ctrl, table[idx].name, tmp, strlen (tmp), NULL, 0);
data/gnupg1-1.4.23/g10/app-openpgp.c:881:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      send_status_info (ctrl, table[idx].name, tmp, strlen (tmp), NULL, 0);
data/gnupg1-1.4.23/g10/app-openpgp.c:891:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (serial) > 16+12)
data/gnupg1-1.4.23/g10/app-openpgp.c:916:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf (numbuf+strlen (numbuf), " %d", value[i]); 
data/gnupg1-1.4.23/g10/app-openpgp.c:918:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            numbuf, strlen (numbuf), NULL, 0);
data/gnupg1-1.4.23/g10/app-openpgp.c:926:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            numbuf, strlen (numbuf), NULL, 0);
data/gnupg1-1.4.23/g10/app-openpgp.c:1274:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  keybuf_p = keybuf + strlen (keybuf);
data/gnupg1-1.4.23/g10/app-openpgp.c:1278:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  keybuf_p += strlen (keybuf_p);
data/gnupg1-1.4.23/g10/app-openpgp.c:1282:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  keybuf_p += strlen (keybuf_p);
data/gnupg1-1.4.23/g10/app-openpgp.c:1332:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    idbuf, strlen (idbuf), 
data/gnupg1-1.4.23/g10/app-openpgp.c:1518:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t promptsize = strlen (PROMPTSTRING) + 50;
data/gnupg1-1.4.23/g10/app-openpgp.c:1567:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (*pinvalue) < minlen)
data/gnupg1-1.4.23/g10/app-openpgp.c:1577:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           *pinvalue, strlen (*pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:1616:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      rc = iso7816_verify (app->slot, 0x81, pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:1745:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (pinvalue) < minlen)
data/gnupg1-1.4.23/g10/app-openpgp.c:1753:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          rc = iso7816_verify (app->slot, 0x83, pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:1993:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (oldpinvalue) < minlen)
data/gnupg1-1.4.23/g10/app-openpgp.c:2037:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (resetcode) < minlen)
data/gnupg1-1.4.23/g10/app-openpgp.c:2074:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      buffer = xtrymalloc (strlen (resetcode) + strlen (pinvalue) + 1);
data/gnupg1-1.4.23/g10/app-openpgp.c:2074:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      buffer = xtrymalloc (strlen (resetcode) + strlen (pinvalue) + 1);
data/gnupg1-1.4.23/g10/app-openpgp.c:2081:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                    buffer, strlen (buffer));
data/gnupg1-1.4.23/g10/app-openpgp.c:2082:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          wipememory (buffer, strlen (buffer));
data/gnupg1-1.4.23/g10/app-openpgp.c:2088:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (pinvalue) < 8)
data/gnupg1-1.4.23/g10/app-openpgp.c:2095:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2100:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2103:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                          pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2111:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                              pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2114:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2119:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                              pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2128:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                          oldpinvalue, strlen (oldpinvalue),
data/gnupg1-1.4.23/g10/app-openpgp.c:2129:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                          pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2134:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      wipememory (pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2143:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      wipememory (resetcode, strlen (resetcode));
data/gnupg1-1.4.23/g10/app-openpgp.c:2148:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      wipememory (oldpinvalue, strlen (oldpinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:2902:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    numbuf, (size_t)strlen(numbuf), NULL, 0);
data/gnupg1-1.4.23/g10/app-openpgp.c:3104:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (strlen (keyidstr) < 32 || strncmp (keyidstr, "D27600012401", 12))
data/gnupg1-1.4.23/g10/app-openpgp.c:3188:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          rc = iso7816_verify (app->slot, 0x82, pinvalue, strlen (pinvalue));
data/gnupg1-1.4.23/g10/app-openpgp.c:3250:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (strlen (keyidstr) < 32 || strncmp (keyidstr, "D27600012401", 12))
data/gnupg1-1.4.23/g10/app-openpgp.c:3327:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (strlen (keyidstr) < 32 || strncmp (keyidstr, "D27600012401", 12))
data/gnupg1-1.4.23/g10/app-openpgp.c:3450:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (keyidstr) < 32 || strncmp (keyidstr, "D27600012401", 12))
data/gnupg1-1.4.23/g10/armor.c:277:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strlen(line) < 6  || strlen(line) > 60 )
data/gnupg1-1.4.23/g10/armor.c:277:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strlen(line) < 6  || strlen(line) > 60 )
data/gnupg1-1.4.23/g10/armor.c:468:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	else if( strlen(line) > 15 && !memcmp( line, "NotDashEscaped:", 15 ) )
data/gnupg1-1.4.23/g10/build-packet.c:945:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(notation->name,string,s-string);
data/gnupg1-1.4.23/g10/build-packet.c:1039:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  n->value=xmalloc(2+strlen(_("not human readable"))+2+1);
data/gnupg1-1.4.23/g10/card-util.c:143:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen (answer) != 1)
data/gnupg1-1.4.23/g10/card-util.c:267:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        print_utf8_string2 (fp, name, strlen (name), '\n');
data/gnupg1-1.4.23/g10/card-util.c:269:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tty_print_utf8_string2 (name, strlen (name), 0);
data/gnupg1-1.4.23/g10/card-util.c:297:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            print_string (fp, given, strlen (given), ':');
data/gnupg1-1.4.23/g10/card-util.c:299:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            print_utf8_string2 (fp, given, strlen (given), '\n');
data/gnupg1-1.4.23/g10/card-util.c:301:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            tty_print_utf8_string2 (given, strlen (given), 0);
data/gnupg1-1.4.23/g10/card-util.c:310:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        print_string (fp, buf, strlen (buf), ':');
data/gnupg1-1.4.23/g10/card-util.c:312:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        print_utf8_string2 (fp, buf, strlen (buf), '\n');
data/gnupg1-1.4.23/g10/card-util.c:314:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        tty_print_utf8_string2 (buf, strlen (buf), 0);
data/gnupg1-1.4.23/g10/card-util.c:386:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      || strlen (info.serialno) != 32 )
data/gnupg1-1.4.23/g10/card-util.c:425:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if (strlen (serialno)+1 > serialnobuflen)
data/gnupg1-1.4.23/g10/card-util.c:445:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        print_string (fp, info.disp_lang, strlen (info.disp_lang), ':');
data/gnupg1-1.4.23/g10/card-util.c:453:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        print_string (fp, info.pubkey_url, strlen (info.pubkey_url), ':');
data/gnupg1-1.4.23/g10/card-util.c:458:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        print_string (fp, info.login_data, strlen (info.login_data), ':');
data/gnupg1-1.4.23/g10/card-util.c:478:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen (info.private_do[i]), ':');
data/gnupg1-1.4.23/g10/card-util.c:662:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  isoname = xmalloc ( strlen (surname) + 2 + strlen (givenname) + 1);
data/gnupg1-1.4.23/g10/card-util.c:662:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  isoname = xmalloc ( strlen (surname) + 2 + strlen (givenname) + 1);
data/gnupg1-1.4.23/g10/card-util.c:670:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (isoname) > 39 )
data/gnupg1-1.4.23/g10/card-util.c:678:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  rc = agent_scd_setattr ("DISP-NAME", isoname, strlen (isoname), NULL );
data/gnupg1-1.4.23/g10/card-util.c:699:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (url) > 254 )
data/gnupg1-1.4.23/g10/card-util.c:707:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  rc = agent_scd_setattr ("PUBKEY-URL", url, strlen (url), NULL );
data/gnupg1-1.4.23/g10/card-util.c:871:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      n = strlen (data);
data/gnupg1-1.4.23/g10/card-util.c:917:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      n = strlen (data);
data/gnupg1-1.4.23/g10/card-util.c:1011:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (data) > 8 || (strlen (data) & 1))
data/gnupg1-1.4.23/g10/card-util.c:1011:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (data) > 8 || (strlen (data) & 1))
data/gnupg1-1.4.23/g10/card-util.c:1027:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  rc = agent_scd_setattr ("DISP-LANG", data, strlen (data), NULL );
data/gnupg1-1.4.23/g10/card-util.c:1151:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      || strlen (info->serialno) != 32 )
data/gnupg1-1.4.23/g10/card-util.c:1340:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  err = agent_scd_setattr ("KEY-ATTR", args, strlen (args), NULL);
data/gnupg1-1.4.23/g10/card-util.c:1726:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len=strlen(text);
data/gnupg1-1.4.23/g10/card-util.c:1887:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              char *tmp = xmalloc (strlen (serialnobuf) + 6 + 1);
data/gnupg1-1.4.23/g10/cardglue.c:159:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  valuelen = strlen (keyword);
data/gnupg1-1.4.23/g10/cardglue.c:704:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      parm->is_v2 = (strlen (parm->serialno) >= 16 
data/gnupg1-1.4.23/g10/cardglue.c:897:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            serial, strlen(serial), NULL, 0);
data/gnupg1-1.4.23/g10/cardglue.c:927:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (12 + strlen (name) > DIM(line)-1)
data/gnupg1-1.4.23/g10/cardglue.c:998:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          char *buf = xmalloc ( 10 + strlen (parm->sn) + 1);
data/gnupg1-1.4.23/g10/cardglue.c:1086:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (12 + strlen (name) > DIM(line)-1)
data/gnupg1-1.4.23/g10/cardglue.c:1206:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      buf = xmalloc ( 2 + strlen (line) + 1);
data/gnupg1-1.4.23/g10/cardglue.c:1508:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (15 + strlen (serialnobuf) > DIM(line)-1)
data/gnupg1-1.4.23/g10/ccid-driver.c:1020:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result = malloc (strlen (prefix) + n + strlen (suffix) + 1);
data/gnupg1-1.4.23/g10/ccid-driver.c:1020:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  result = malloc (strlen (prefix) + n + strlen (suffix) + 1);
data/gnupg1-1.4.23/g10/ccid-driver.c:1025:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen (prefix);
data/gnupg1-1.4.23/g10/ccid-driver.c:1058:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      rid = malloc (strlen (prefix) + 3 + 1);
data/gnupg1-1.4.23/g10/ccid-driver.c:1174:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          p = malloc ((*rid_list? strlen (*rid_list):0) + 1
data/gnupg1-1.4.23/g10/ccid-driver.c:1175:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      + strlen (rid) + 1);
data/gnupg1-1.4.23/g10/ccid-driver.c:1185:31:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                              strcat (p, "\n");
data/gnupg1-1.4.23/g10/ccid-driver.c:1394:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      rid = malloc (strlen (transports[i].name) + 30 + 10);
data/gnupg1-1.4.23/g10/ccid-driver.c:1406:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          p = malloc ((rid_list? strlen (rid_list):0) + 1 + strlen (rid) + 1);
data/gnupg1-1.4.23/g10/ccid-driver.c:1406:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          p = malloc ((rid_list? strlen (rid_list):0) + 1 + strlen (rid) + 1);
data/gnupg1-1.4.23/g10/ccid-driver.c:1422:11:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
          strcat (p, "\n");
data/gnupg1-1.4.23/g10/ccid-driver.c:1946:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      rc = read (handle->dev_fd, buffer, length);
data/gnupg1-1.4.23/g10/decrypt.c:121:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if (!*line || line[strlen(line)-1] != '\n')
data/gnupg1-1.4.23/g10/decrypt.c:125:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  line[strlen(line)-1] = '\0';
data/gnupg1-1.4.23/g10/encode.c:834:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (!*line || line[strlen(line)-1] != '\n')
data/gnupg1-1.4.23/g10/encode.c:839:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          line[strlen(line)-1] = '\0';
data/gnupg1-1.4.23/g10/encr-data.c:108:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          sprintf(buf+strlen(buf), "%02X", dek->key[i] );
data/gnupg1-1.4.23/g10/exec.c:98:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  p=xmalloc(5+strlen(path)+1);
data/gnupg1-1.4.23/g10/exec.c:138:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  int len=strlen(tmp);
data/gnupg1-1.4.23/g10/exec.c:165:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  info->tempdir=xmalloc(strlen(tmp)+strlen(DIRSEP_S)+10+1);
data/gnupg1-1.4.23/g10/exec.c:165:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  info->tempdir=xmalloc(strlen(tmp)+strlen(DIRSEP_S)+10+1);
data/gnupg1-1.4.23/g10/exec.c:180:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      info->tempfile_in=xmalloc(strlen(info->tempdir)+
data/gnupg1-1.4.23/g10/exec.c:181:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(DIRSEP_S)+strlen(namein)+1);
data/gnupg1-1.4.23/g10/exec.c:181:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(DIRSEP_S)+strlen(namein)+1);
data/gnupg1-1.4.23/g10/exec.c:186:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  info->tempfile_out=xmalloc(strlen(info->tempdir)+
data/gnupg1-1.4.23/g10/exec.c:187:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     strlen(DIRSEP_S)+strlen(nameout)+1);
data/gnupg1-1.4.23/g10/exec.c:187:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     strlen(DIRSEP_S)+strlen(nameout)+1);
data/gnupg1-1.4.23/g10/exec.c:258:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t applen=strlen(append);
data/gnupg1-1.4.23/g10/exec.c:270:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      len+=strlen(append);
data/gnupg1-1.4.23/g10/free-packet.c:207:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pka_info_t *d = xmalloc (sizeof *s + strlen (s->email));
data/gnupg1-1.4.23/g10/getkey.c:201:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *uidlen = strlen (s);
data/gnupg1-1.4.23/g10/getkey.c:2955:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *p2 = utf8_to_native( p, strlen(p), 0 );
data/gnupg1-1.4.23/g10/getkey.c:3009:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *rn = strlen(p);
data/gnupg1-1.4.23/g10/gpg.c:862:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  indent = strlen (text);
data/gnupg1-1.4.23/g10/gpg.c:896:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return xrealloc (string, strlen (string)+1);
data/gnupg1-1.4.23/g10/gpg.c:1087:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  trim_trailing_ws(name,strlen(name));
data/gnupg1-1.4.23/g10/gpg.c:1117:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  trim_trailing_ws(name,strlen(name));
data/gnupg1-1.4.23/g10/gpg.c:1169:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     && ascii_strncasecmp(opt.homedir,tmppath,strlen(opt.homedir))==0)
data/gnupg1-1.4.23/g10/gpg.c:1379:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      print_string(stdout,iter->name,strlen(iter->name),':');
data/gnupg1-1.4.23/g10/gpg.c:1384:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  print_string2(stdout,sl->d,strlen(sl->d),':',';');
data/gnupg1-1.4.23/g10/gpg.c:1398:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  print_string(stdout,VERSION,strlen(VERSION),':');
data/gnupg1-1.4.23/g10/gpg.c:1633:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len+=strlen(argv[i])+2;
data/gnupg1-1.4.23/g10/gpg.c:1641:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(str," ");
data/gnupg1-1.4.23/g10/gpg.c:1759:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *ver = &name[strlen ("gpg" EXTSEP_S "conf-")];
data/gnupg1-1.4.23/g10/gpg.c:1987:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *d, *buf = xmalloc (strlen (opt.homedir)+1);
data/gnupg1-1.4.23/g10/gpg.c:2558:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  compress_algo_string=xmalloc(strlen(pargs.r.ret_str)+2);
data/gnupg1-1.4.23/g10/gpg.c:2559:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		  strcpy(compress_algo_string,"Z");
data/gnupg1-1.4.23/g10/gpg.c:3441:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sl = xmalloc_clear( sizeof *sl + strlen(fname));
data/gnupg1-1.4.23/g10/gpg.c:3454:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    sl = xmalloc_clear( sizeof *sl + strlen(fname));
data/gnupg1-1.4.23/g10/gpg.c:3478:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		sl = xmalloc_clear( sizeof *sl + strlen(fname));
data/gnupg1-1.4.23/g10/gpg.c:4264:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(i=0;i<strlen(string);i++)
data/gnupg1-1.4.23/g10/gpg.c:4268:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(i==0 || i<strlen(string))
data/gnupg1-1.4.23/g10/gpg.c:4297:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(i=0;i<strlen(string);i++)
data/gnupg1-1.4.23/g10/gpg.c:4301:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(i==0 || i<strlen(string))
data/gnupg1-1.4.23/g10/import.c:621:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  p = buf + strlen (buf);
data/gnupg1-1.4.23/g10/import.c:649:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat (buf, " ");
data/gnupg1-1.4.23/g10/import.c:684:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  char *user=utf8_to_native(uid->name,strlen(uid->name),0);
data/gnupg1-1.4.23/g10/import.c:1507:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				      strlen(unode->pkt->pkt.user_id->name),0);
data/gnupg1-1.4.23/g10/import.c:2482:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      || strlen (serialnostr) != 32 )
data/gnupg1-1.4.23/g10/keydb.c:155:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  oldmask = umask (077);
data/gnupg1-1.4.23/g10/keydb.c:163:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
  umask (oldmask);
data/gnupg1-1.4.23/g10/keydb.c:220:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (resname) > 11) {
data/gnupg1-1.4.23/g10/keyedit.c:191:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	print_string(stdout,sig->trust_regexp,strlen(sig->trust_regexp),':');
data/gnupg1-1.4.23/g10/keyedit.c:398:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(attrib->trust_regexp)+1);
data/gnupg1-1.4.23/g10/keyedit.c:463:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(p)>0)
data/gnupg1-1.4.23/g10/keyedit.c:475:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ind=strlen(*regexp);
data/gnupg1-1.4.23/g10/keyedit.c:1465:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len=strlen(text);
data/gnupg1-1.4.23/g10/keyedit.c:1663:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    size_t l=strlen(cmds[i].name);
data/gnupg1-1.4.23/g10/keyedit.c:1664:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    size_t a=strlen(answer);
data/gnupg1-1.4.23/g10/keyedit.c:1722:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if(strlen(arg_string)==NAMEHASH_LEN*2)
data/gnupg1-1.4.23/g10/keyedit.c:2290:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tty_print_utf8_string(nd->name,strlen(nd->name));
data/gnupg1-1.4.23/g10/keyedit.c:2292:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tty_print_utf8_string(nd->value,strlen(nd->value));
data/gnupg1-1.4.23/g10/keyedit.c:2433:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tty_print_notations(5+strlen(_("Notations: ")),selfsig);
data/gnupg1-1.4.23/g10/keyedit.c:2764:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int width=14-strlen(otrust);
data/gnupg1-1.4.23/g10/keyedit.c:3953:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *user=utf8_to_native(uid->name,strlen(uid->name),0);
data/gnupg1-1.4.23/g10/keyedit.c:4063:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *user=utf8_to_native(uid->name,strlen(uid->name),0);
data/gnupg1-1.4.23/g10/keyedit.c:4183:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      char *user=utf8_to_native(uid->name,strlen(uid->name),0);
data/gnupg1-1.4.23/g10/keyedit.c:4324:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      char *user=utf8_to_native(uid->name,strlen(uid->name),0);
data/gnupg1-1.4.23/g10/keyedit.c:4516:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  assert(strlen(namehash)==NAMEHASH_LEN*2);
data/gnupg1-1.4.23/g10/keygen.c:150:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buf = xmalloc (MAX_FINGERPRINT_LEN*2+31 + strlen (handle) + 1);
data/gnupg1-1.4.23/g10/keygen.c:186:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t n = strlen(s);
data/gnupg1-1.4.23/g10/keygen.c:383:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(string))
data/gnupg1-1.4.23/g10/keygen.c:708:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    build_sig_subpkt(sig,SIGSUBPKT_PREF_KS,url,strlen(url));
data/gnupg1-1.4.23/g10/keygen.c:731:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n1=strlen(notation->name);
data/gnupg1-1.4.23/g10/keygen.c:733:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  n2=strlen(notation->altvalue);
data/gnupg1-1.4.23/g10/keygen.c:737:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  n2=strlen(notation->value);
data/gnupg1-1.4.23/g10/keygen.c:1393:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( strlen(togglers) != 8 )
data/gnupg1-1.4.23/g10/keygen.c:1436:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(answer)>1)
data/gnupg1-1.4.23/g10/keygen.c:1762:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    prompt=xmalloc(strlen(PROMPTSTRING)+strlen(def_expire)+1);
data/gnupg1-1.4.23/g10/keygen.c:1762:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    prompt=xmalloc(strlen(PROMPTSTRING)+strlen(def_expire)+1);
data/gnupg1-1.4.23/g10/keygen.c:1847:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if( strlen(aname) < 5 )
data/gnupg1-1.4.23/g10/keygen.c:1884:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uid = p = xmalloc(strlen(aname)+strlen(amail)+strlen(acomment)+12+10);
data/gnupg1-1.4.23/g10/keygen.c:1884:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uid = p = xmalloc(strlen(aname)+strlen(amail)+strlen(acomment)+12+10);
data/gnupg1-1.4.23/g10/keygen.c:1884:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uid = p = xmalloc(strlen(aname)+strlen(amail)+strlen(acomment)+12+10);
data/gnupg1-1.4.23/g10/keygen.c:1928:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if( strlen(ansstr) != 10 )
data/gnupg1-1.4.23/g10/keygen.c:1940:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if( strlen(answer) > 1 )
data/gnupg1-1.4.23/g10/keygen.c:2068:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(p);
data/gnupg1-1.4.23/g10/keygen.c:2393:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  n = (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/gnupg1-1.4.23/g10/keygen.c:2393:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  n = (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/gnupg1-1.4.23/g10/keygen.c:2393:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  n = (s1?strlen(s1):0) + (s2?strlen(s2):0) + (s3?strlen(s3):0);
data/gnupg1-1.4.23/g10/keygen.c:2458:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memset( r->u.value, 0, strlen(r->u.value) );
data/gnupg1-1.4.23/g10/keygen.c:2604:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    trim_trailing_ws( value, strlen(value) );
data/gnupg1-1.4.23/g10/keygen.c:2656:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	trim_trailing_ws( value, strlen(value) );
data/gnupg1-1.4.23/g10/keygen.c:2689:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	r = xmalloc_clear( sizeof *r + strlen( value ) );
data/gnupg1-1.4.23/g10/keygen.c:2770:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      r = xcalloc (1, sizeof *r + strlen (card_serialno) );
data/gnupg1-1.4.23/g10/keygen.c:2808:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          r = xcalloc (1, sizeof *r + strlen (backup_encryption_dir) );
data/gnupg1-1.4.23/g10/keygen.c:2903:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  r = xmalloc_clear( sizeof *r + strlen(uid) );
data/gnupg1-1.4.23/g10/keygen.c:3077:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	    oldmask = umask (077);
data/gnupg1-1.4.23/g10/keygen.c:3084:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            umask (oldmask);
data/gnupg1-1.4.23/g10/keygen.c:3495:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  para = xcalloc (1, sizeof *para + strlen (serialno) );
data/gnupg1-1.4.23/g10/keygen.c:3783:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    oldmask = umask (077);
data/gnupg1-1.4.23/g10/keygen.c:3791:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (oldmask);
data/gnupg1-1.4.23/g10/keygen.c:3831:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                      fname, strlen (fname),
data/gnupg1-1.4.23/g10/keygen.c:3930:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sprintf (numbuf, "%lu:", (unsigned long)strlen (numbuf2));
data/gnupg1-1.4.23/g10/keylist.c:367:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      print_utf8_string(fp,nd->name,strlen(nd->name));
data/gnupg1-1.4.23/g10/keylist.c:369:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      print_utf8_string(fp,nd->value,strlen(nd->value));
data/gnupg1-1.4.23/g10/keylist.c:377:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      nd->name,strlen(nd->name),0);
data/gnupg1-1.4.23/g10/keylist.c:379:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      nd->value,strlen(nd->value),50);
data/gnupg1-1.4.23/g10/keylist.c:440:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for(i=strlen(resname); i; i-- )
data/gnupg1-1.4.23/g10/keylist.c:497:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for(i = strlen(resname) + strlen(keyring_str) + 2; i; i-- )
data/gnupg1-1.4.23/g10/keylist.c:497:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for(i = strlen(resname) + strlen(keyring_str) + 2; i; i-- )
data/gnupg1-1.4.23/g10/keylist.c:517:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for(i = strlen(resname) + strlen(keyring_str) + 2; i; i-- )
data/gnupg1-1.4.23/g10/keylist.c:517:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		for(i = strlen(resname) + strlen(keyring_str) + 2; i; i-- )
data/gnupg1-1.4.23/g10/keylist.c:712:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  sprintf(buf+strlen(buf)," %lu %u %u %u %lu %lu %u",
data/gnupg1-1.4.23/g10/keylist.c:1360:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(sig->trust_regexp),':');
data/gnupg1-1.4.23/g10/keyring.c:218:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    kr = xmalloc (sizeof *kr + strlen (fname));
data/gnupg1-1.4.23/g10/keyring.c:804:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = pattern = xmalloc(strlen(name)+1);
data/gnupg1-1.4.23/g10/keyring.c:854:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    if( strlen(name)-2 == i
data/gnupg1-1.4.23/g10/keyring.c:1183:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (template) > 4
data/gnupg1-1.4.23/g10/keyring.c:1184:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      && !strcmp (template+strlen(template)-4, EXTSEP_S "gpg") )
data/gnupg1-1.4.23/g10/keyring.c:1186:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      bakfname = xmalloc (strlen (template) + 1);
data/gnupg1-1.4.23/g10/keyring.c:1188:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strcpy (bakfname+strlen(template)-4, EXTSEP_S "bak");
data/gnupg1-1.4.23/g10/keyring.c:1190:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tmpfname = xmalloc (strlen( template ) + 1 );
data/gnupg1-1.4.23/g10/keyring.c:1192:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strcpy (tmpfname+strlen(template)-4, EXTSEP_S "tmp");
data/gnupg1-1.4.23/g10/keyring.c:1196:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bakfname = xmalloc (strlen( template ) + 5);
data/gnupg1-1.4.23/g10/keyring.c:1199:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tmpfname = xmalloc (strlen( template ) + 5);
data/gnupg1-1.4.23/g10/keyring.c:1203:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bakfname = xmalloc (strlen (template) + sizeof (GNUPG_BAK_SFX) + 1);
data/gnupg1-1.4.23/g10/keyring.c:1206:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tmpfname = xmalloc (strlen (template) + sizeof (GNUPG_TMP_SFX) + 1 );
data/gnupg1-1.4.23/g10/keyring.c:1211:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    oldmask=umask(077);
data/gnupg1-1.4.23/g10/keyring.c:1219:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(oldmask);
data/gnupg1-1.4.23/g10/keyring.c:1535:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	oldmask=umask(077);
data/gnupg1-1.4.23/g10/keyring.c:1542:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(oldmask);
data/gnupg1-1.4.23/g10/keyserver.c:106:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      joined=xmalloc(strlen(option)+1+strlen(arg)+1);
data/gnupg1-1.4.23/g10/keyserver.c:106:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      joined=xmalloc(strlen(option)+1+strlen(arg)+1);
data/gnupg1-1.4.23/g10/keyserver.c:109:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(joined,"=");
data/gnupg1-1.4.23/g10/keyserver.c:293:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      keyserver->uri=xmalloc(strlen(keyserver->scheme)+3+strlen(uri)+1);
data/gnupg1-1.4.23/g10/keyserver.c:293:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      keyserver->uri=xmalloc(strlen(keyserver->scheme)+3+strlen(uri)+1);
data/gnupg1-1.4.23/g10/keyserver.c:352:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(keyserver->auth,uri,count);
data/gnupg1-1.4.23/g10/keyserver.c:379:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(keyserver->host,uri,count);
data/gnupg1-1.4.23/g10/keyserver.c:402:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(keyserver->port,uri+1,count);
data/gnupg1-1.4.23/g10/keyserver.c:580:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(i=strlen(keystring);i>0;i--)
data/gnupg1-1.4.23/g10/keyserver.c:678:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(tok)==0)
data/gnupg1-1.4.23/g10/keyserver.c:708:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(decoded)>opt.screen_columns-10)
data/gnupg1-1.4.23/g10/keyserver.c:781:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    localstr=utf8_to_native(searchstr,strlen(searchstr),0);
data/gnupg1-1.4.23/g10/keyserver.c:796:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	     && ascii_strncasecmp(" BEGIN",&line[strlen(line)-7],6)==0)
data/gnupg1-1.4.23/g10/keyserver.c:802:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  && ascii_strncasecmp(" END",&line[strlen(line)-5],4)==0)
data/gnupg1-1.4.23/g10/keyserver.c:958:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define GPGKEYS_PREFIX_LEN (strlen(GPGKEYS_CURL))
data/gnupg1-1.4.23/g10/keyserver.c:1116:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      command=xmalloc(GPGKEYS_PREFIX_LEN+strlen(scheme)+3+strlen(EXEEXT)+1);
data/gnupg1-1.4.23/g10/keyserver.c:1116:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      command=xmalloc(GPGKEYS_PREFIX_LEN+strlen(scheme)+3+strlen(EXEEXT)+1);
data/gnupg1-1.4.23/g10/keyserver.c:1123:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      command=xmalloc(strlen(libexecdir)+strlen(DIRSEP_S)+
data/gnupg1-1.4.23/g10/keyserver.c:1123:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      command=xmalloc(strlen(libexecdir)+strlen(DIRSEP_S)+
data/gnupg1-1.4.23/g10/keyserver.c:1124:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      GPGKEYS_PREFIX_LEN+strlen(scheme)+3+strlen(EXEEXT)+1);
data/gnupg1-1.4.23/g10/keyserver.c:1124:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      GPGKEYS_PREFIX_LEN+strlen(scheme)+3+strlen(EXEEXT)+1);
data/gnupg1-1.4.23/g10/keyserver.c:1131:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  end=command+strlen(command);
data/gnupg1-1.4.23/g10/keyserver.c:1161:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  command=xrealloc(command,strlen(command)+
data/gnupg1-1.4.23/g10/keyserver.c:1162:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(KEYSERVER_ARGS_KEEP)+1);
data/gnupg1-1.4.23/g10/keyserver.c:1167:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  command=xrealloc(command,strlen(command)+
data/gnupg1-1.4.23/g10/keyserver.c:1168:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    strlen(KEYSERVER_ARGS_NOKEEP)+1);
data/gnupg1-1.4.23/g10/keyserver.c:1408:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  uidstr2=utf8_to_native(uidstr1,strlen(uidstr1),-1);
data/gnupg1-1.4.23/g10/keyserver.c:1411:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  uidstrlen=strlen(uidstr3);
data/gnupg1-1.4.23/g10/keyserver.c:1510:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    strlen(searchstr)+strlen(key->d)+2);
data/gnupg1-1.4.23/g10/keyserver.c:1510:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    strlen(searchstr)+strlen(key->d)+2);
data/gnupg1-1.4.23/g10/keyserver.c:1511:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(searchstr," ");
data/gnupg1-1.4.23/g10/keyserver.c:1515:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		searchstr=xmalloc(strlen(key->d)+1);
data/gnupg1-1.4.23/g10/keyserver.c:1561:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      plen=strlen(ptr);
data/gnupg1-1.4.23/g10/keyserver.c:1585:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if(ascii_strncasecmp(&ptr[8],VERSION,strlen(VERSION))!=0)
data/gnupg1-1.4.23/g10/keyserver.c:1594:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ret = parse_key_failed_line (ptr+4, strlen (ptr+4));
data/gnupg1-1.4.23/g10/keyserver.c:2304:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      hostlen+=strlen(srvlist[i].target)+1;
data/gnupg1-1.4.23/g10/keyserver.c:2320:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(keyserver->host," ");
data/gnupg1-1.4.23/g10/keyserver.c:2329:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  hostlen+=5+strlen(domain);
data/gnupg1-1.4.23/g10/mainproc.c:643:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        log_info (_("original file name='%.*s'\n"), (int)strlen (tmp), tmp);
data/gnupg1-1.4.23/g10/mainproc.c:1137:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			   strlen(sig->trust_regexp),':');
data/gnupg1-1.4.23/g10/mainproc.c:1420:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  pka = xmalloc (sizeof *pka + strlen(nd->value));
data/gnupg1-1.4.23/g10/mainproc.c:1908:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                bufp = bufp + strlen (bufp);
data/gnupg1-1.4.23/g10/misc.c:578:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  idx+=strlen(&ret[idx]);
data/gnupg1-1.4.23/g10/misc.c:659:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(str && idx+strlen(str)<maxlen)
data/gnupg1-1.4.23/g10/misc.c:662:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    idx+=strlen(str);
data/gnupg1-1.4.23/g10/misc.c:1025:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return strlen(s);
data/gnupg1-1.4.23/g10/misc.c:1041:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(opts[i].help && maxlen<strlen(opts[i].name))
data/gnupg1-1.4.23/g10/misc.c:1042:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  maxlen=strlen(opts[i].name);
data/gnupg1-1.4.23/g10/misc.c:1047:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		 maxlen+2-(int)strlen(opts[i].name),"",_(opts[i].help));
data/gnupg1-1.4.23/g10/misc.c:1073:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      if(toklen!=strlen(opts[i].name))
data/gnupg1-1.4.23/g10/misc.c:1124:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buffer = d = xmalloc (strlen (s)+1);
data/gnupg1-1.4.23/g10/misc.c:1214:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          char *tmp = xmalloc (strlen (path) + 6 +1);
data/gnupg1-1.4.23/g10/misc.c:1295:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *buffer=xmalloc(strlen(envpath)+1+strlen(file)+1);
data/gnupg1-1.4.23/g10/misc.c:1295:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *buffer=xmalloc(strlen(envpath)+1+strlen(file)+1);
data/gnupg1-1.4.23/g10/misc.c:1303:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	  strcat(buffer,"/");
data/gnupg1-1.4.23/g10/openfile.c:114:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(iname);
data/gnupg1-1.4.23/g10/openfile.c:155:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(s) + (defname?strlen (defname):0) + 10;
data/gnupg1-1.4.23/g10/openfile.c:155:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(s) + (defname?strlen (defname):0) + 10;
data/gnupg1-1.4.23/g10/openfile.c:228:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          buf = xmalloc(strlen(iname)+4+1);
data/gnupg1-1.4.23/g10/openfile.c:231:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if ( dot && dot > buf && dot[1] && strlen(dot) <= 4
data/gnupg1-1.4.23/g10/openfile.c:250:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          buf = xmalloc(strlen(iname)+4+1);
data/gnupg1-1.4.23/g10/openfile.c:315:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen (sigfilename);
data/gnupg1-1.4.23/g10/openfile.c:385:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fname = xmalloc( strlen(datadir) + strlen(destdir) + 15 );
data/gnupg1-1.4.23/g10/openfile.c:385:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fname = xmalloc( strlen(datadir) + strlen(destdir) + 15 );
data/gnupg1-1.4.23/g10/openfile.c:400:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    oldmask=umask(077);
data/gnupg1-1.4.23/g10/openfile.c:408:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(oldmask);
data/gnupg1-1.4.23/g10/openfile.c:416:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while( (c=getc(src)) != EOF ) {
data/gnupg1-1.4.23/g10/openfile.c:461:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           && ( strlen(fname) >= strlen (defhome+1)
data/gnupg1-1.4.23/g10/openfile.c:461:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           && ( strlen(fname) >= strlen (defhome+1)
data/gnupg1-1.4.23/g10/openfile.c:462:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                && !strcmp(fname+strlen(fname)-strlen(defhome+1),
data/gnupg1-1.4.23/g10/openfile.c:462:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                && !strcmp(fname+strlen(fname)-strlen(defhome+1),
data/gnupg1-1.4.23/g10/parse-packet.c:2197:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  uid->len = strlen(uid->name);
data/gnupg1-1.4.23/g10/passphrase.c:82:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	next_pw = xmalloc_secure( strlen(s)+1 );
data/gnupg1-1.4.23/g10/passphrase.c:120:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  fd_passwd = xmalloc_secure(strlen(pass)+1);
data/gnupg1-1.4.23/g10/passphrase.c:137:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while (!(read (fd, buf, 1) != 1 || *buf == '\n' ))
data/gnupg1-1.4.23/g10/passphrase.c:160:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read( fd, pw+i, 1) != 1 || pw[i] == '\n' )
data/gnupg1-1.4.23/g10/passphrase.c:184:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  line = xmalloc (7 + strlen (name) + 1 + strlen (value) + 1);
data/gnupg1-1.4.23/g10/passphrase.c:184:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  line = xmalloc (7 + strlen (name) + 1 + strlen (value) + 1);
data/gnupg1-1.4.23/g10/passphrase.c:457:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  parm->pw = xmalloc_secure (strlen (line)/2+2);
data/gnupg1-1.4.23/g10/passphrase.c:543:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      maink = xmalloc ( strlen (KEYIDSTRING) + keystrlen() + 20 );
data/gnupg1-1.4.23/g10/passphrase.c:560:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      atext = xmalloc ( 100 + strlen (PROMPTSTRING)
data/gnupg1-1.4.23/g10/passphrase.c:561:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        + uidlen + 15 + strlen(algo_name) + keystrlen()
data/gnupg1-1.4.23/g10/passphrase.c:562:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        + strlen (timestr) + strlen (maink) );
data/gnupg1-1.4.23/g10/passphrase.c:562:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        + strlen (timestr) + strlen (maink) );
data/gnupg1-1.4.23/g10/passphrase.c:597:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      + 3*strlen (atext)
data/gnupg1-1.4.23/g10/passphrase.c:598:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      + 3*strlen (custom_prompt? custom_prompt:"")
data/gnupg1-1.4.23/g10/passphrase.c:599:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      + (cacheid? (3*strlen (cacheid)): 0)
data/gnupg1-1.4.23/g10/passphrase.c:600:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      + 3*strlen (tryagain_text)
data/gnupg1-1.4.23/g10/passphrase.c:735:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          line = xmalloc (17 + 3*strlen (cacheid) + 2);
data/gnupg1-1.4.23/g10/passphrase.c:809:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pw = xmalloc_secure (strlen(fd_passwd)+1);
data/gnupg1-1.4.23/g10/passphrase.c:978:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pw = xmalloc_secure( strlen(fd_passwd)+1 );
data/gnupg1-1.4.23/g10/passphrase.c:1038:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int pwlen = strlen(pw);
data/gnupg1-1.4.23/g10/photoid.c:102:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if(strlen(filename)==0)
data/gnupg1-1.4.23/g10/photoid.c:342:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	name=xmalloc(16+strlen(EXTSEP_S)+
data/gnupg1-1.4.23/g10/photoid.c:343:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		     strlen(image_type_to_string(args.imagetype,0))+1);
data/gnupg1-1.4.23/g10/pkclist.c:299:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strlen(ans) != 8 )
data/gnupg1-1.4.23/g10/pkclist.c:830:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                            rov->d, strlen (rov->d), -1);
data/gnupg1-1.4.23/g10/pkclist.c:873:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                            rov->d, strlen (rov->d), -1);
data/gnupg1-1.4.23/g10/pkclist.c:1089:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                            remusr->d, strlen (remusr->d),
data/gnupg1-1.4.23/g10/pkclist.c:1107:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                strlen (remusr->d),
data/gnupg1-1.4.23/g10/pkclist.c:1144:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                strlen (remusr->d),
data/gnupg1-1.4.23/g10/pkclist.c:1156:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                            strlen (remusr->d),
data/gnupg1-1.4.23/g10/plaintext.c:98:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fname = xmalloc( strlen( opt.outfile ) + 1);
data/gnupg1-1.4.23/g10/plaintext.c:183:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                  strlen(fname) )) != -1 )
data/gnupg1-1.4.23/g10/plaintext.c:607:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pt = xmalloc (sizeof *pt + strlen(s) - 1);
data/gnupg1-1.4.23/g10/plaintext.c:608:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      pt->namelen = strlen (s);
data/gnupg1-1.4.23/g10/revoke.c:60:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buflen += strlen(ud);
data/gnupg1-1.4.23/g10/revoke.c:65:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(buffer+1, ud, strlen(ud) );
data/gnupg1-1.4.23/g10/revoke.c:688:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    trim_trailing_ws( answer, strlen(answer) );
data/gnupg1-1.4.23/g10/revoke.c:696:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *p = make_printable_string( answer, strlen(answer), 0 );
data/gnupg1-1.4.23/g10/revoke.c:704:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *p = xmalloc( strlen(description) + strlen(answer) + 2 );
data/gnupg1-1.4.23/g10/revoke.c:704:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *p = xmalloc( strlen(description) + strlen(answer) + 2 );
data/gnupg1-1.4.23/g10/sig-check.c:163:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buffer = xmalloc( strlen(p) + 60 );
data/gnupg1-1.4.23/g10/sign.c:123:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 s,strlen(s));
data/gnupg1-1.4.23/g10/sign.c:146:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 s,strlen(s));
data/gnupg1-1.4.23/g10/sign.c:484:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    p = buf + strlen(buf);
data/gnupg1-1.4.23/g10/signal.c:99:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s = log_get_name(); if( s ) write(2, s, strlen(s) );
data/gnupg1-1.4.23/g10/signal.c:104:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write (2, s, strlen(s) );
data/gnupg1-1.4.23/g10/status.c:304:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                count += strlen (string);
data/gnupg1-1.4.23/g10/status.c:522:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rc = read( fd, buf, count );
data/gnupg1-1.4.23/g10/tdbdump.c:79:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for(i=9+strlen(tdbio_get_dbname()); i > 0; i-- )
data/gnupg1-1.4.23/g10/tdbdump.c:156:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(line);
data/gnupg1-1.4.23/g10/tdbio.c:553:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        oldmask=umask(077);
data/gnupg1-1.4.23/g10/tdbio.c:560:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(oldmask);
data/gnupg1-1.4.23/g10/tdbio.c:619:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    n = read (db_fd, buf, 5);
data/gnupg1-1.4.23/g10/tdbio.c:1186:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read( db_fd, readbuf, TRUST_RECORD_LEN);
data/gnupg1-1.4.23/g10/tdbio.c:1558:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read (db_fd, oldbuf, 40);
data/gnupg1-1.4.23/g10/tdbio.c:1589:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read (db_fd, oldbuf, 40);
data/gnupg1-1.4.23/g10/trustdb.c:1828:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t start=0,len=strlen(old),idx=0;
data/gnupg1-1.4.23/g10/trustdb.c:1852:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      idx=strlen(new);
data/gnupg1-1.4.23/g10/verify.c:129:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *p = xmalloc(strlen(name)+10);
data/gnupg1-1.4.23/g10/verify.c:191:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if( !*line || line[strlen(line)-1] != '\n' ) {
data/gnupg1-1.4.23/g10/verify.c:198:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    line[strlen(line)-1] = 0;
data/gnupg1-1.4.23/intl/bindtextdom.c:134:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      size_t len = strlen (dirname) + 1;
data/gnupg1-1.4.23/intl/bindtextdom.c:172:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  size_t len = strlen (codeset) + 1;
data/gnupg1-1.4.23/intl/bindtextdom.c:202:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (domainname) + 1;
data/gnupg1-1.4.23/intl/bindtextdom.c:230:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  size_t len = strlen (dirname) + 1;
data/gnupg1-1.4.23/intl/bindtextdom.c:259:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t len = strlen (codeset) + 1;
data/gnupg1-1.4.23/intl/dcigettext.c:626:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  size_t dirname_len = strlen (dirname) + 1;
data/gnupg1-1.4.23/intl/dcigettext.c:670:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  domainname_len = strlen (domainname);
data/gnupg1-1.4.23/intl/dcigettext.c:671:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  xdomainname = (char *) alloca (strlen (categoryname)
data/gnupg1-1.4.23/intl/dcigettext.c:680:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
data/gnupg1-1.4.23/intl/dcigettext.c:777:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  msgid_len = strlen (msgid1) + 1;
data/gnupg1-1.4.23/intl/dcigettext.c:781:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  size += strlen (localename) + 1;
data/gnupg1-1.4.23/intl/dcigettext.c:917:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      nls_uint32 len = strlen (msgid);
data/gnupg1-1.4.23/intl/dcigettext.c:1127:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      charsetstr += strlen ("charset=");
data/gnupg1-1.4.23/intl/dcigettext.c:1171:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  len = strlen (outcharset);
data/gnupg1-1.4.23/intl/dcigettext.c:1631:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      size_t len = strlen (value) + 1;
data/gnupg1-1.4.23/intl/eval-plural.h:86:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      case equal:
data/gnupg1-1.4.23/intl/finddomain.c:92:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen (dirname) + 1, 0, locale, NULL, NULL,
data/gnupg1-1.4.23/intl/finddomain.c:132:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (alias_value) + 1;
data/gnupg1-1.4.23/intl/finddomain.c:155:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			       strlen (dirname) + 1, mask, language, territory,
data/gnupg1-1.4.23/intl/l10nflist.c:96:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t part_len = strlen (argz);
data/gnupg1-1.4.23/intl/l10nflist.c:121:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t part_len = strlen (argz);
data/gnupg1-1.4.23/intl/l10nflist.c:195:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				  + strlen (language)
data/gnupg1-1.4.23/intl/l10nflist.c:197:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (territory) + 1 : 0)
data/gnupg1-1.4.23/intl/l10nflist.c:199:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (codeset) + 1 : 0)
data/gnupg1-1.4.23/intl/l10nflist.c:201:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (normalized_codeset) + 1 : 0)
data/gnupg1-1.4.23/intl/l10nflist.c:203:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				     ? strlen (modifier) + 1 : 0)
data/gnupg1-1.4.23/intl/l10nflist.c:204:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				  + 1 + strlen (filename) + 1);
data/gnupg1-1.4.23/intl/l10nflist.c:324:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		= _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1,
data/gnupg1-1.4.23/intl/langprefs.c:127:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          q = q2 + strlen (q2);
data/gnupg1-1.4.23/intl/langprefs.c:266:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    size += strlen (buf) + 1;
data/gnupg1-1.4.23/intl/langprefs.c:298:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            p += strlen (buf);
data/gnupg1-1.4.23/intl/loadmsgcat.c:473:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read(fd, buf, n)	read_not_cancel (fd, buf, n)
data/gnupg1-1.4.23/intl/loadmsgcat.c:881:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  long int nb = (long int) read (fd, read_ptr, to_read);
data/gnupg1-1.4.23/intl/loadmsgcat.c:1060:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      need += strlen (sysdep_segment_values[sysdepref]);
data/gnupg1-1.4.23/intl/loadmsgcat.c:1195:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					n = strlen (sysdep_segment_values[sysdepref]);
data/gnupg1-1.4.23/intl/localcharset.c:104:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getc
data/gnupg1-1.4.23/intl/localcharset.c:105:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc getc_unlocked
data/gnupg1-1.4.23/intl/localcharset.c:144:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t dir_len = strlen (dir);
data/gnupg1-1.4.23/intl/localcharset.c:145:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t base_len = strlen (base);
data/gnupg1-1.4.23/intl/localcharset.c:201:27:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                      c = getc (fp);
data/gnupg1-1.4.23/intl/localcharset.c:210:33:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            c = getc (fp);
data/gnupg1-1.4.23/intl/localcharset.c:217:27:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
                      if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
data/gnupg1-1.4.23/intl/localcharset.c:219:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      l1 = strlen (buf1);
data/gnupg1-1.4.23/intl/localcharset.c:220:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      l2 = strlen (buf2);
data/gnupg1-1.4.23/intl/localcharset.c:557:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/gnupg1-1.4.23/intl/localcharset.c:557:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/gnupg1-1.4.23/intl/localcharset.c:561:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        codeset = aliases + strlen (aliases) + 1;
data/gnupg1-1.4.23/intl/localealias.c:322:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  alias_len = strlen (alias) + 1;
data/gnupg1-1.4.23/intl/localealias.c:323:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  value_len = strlen (value) + 1;
data/gnupg1-1.4.23/intl/localename.c:1360:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (name) == 7 && name[2] == '-')
data/gnupg1-1.4.23/intl/localename.c:2530:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat (locval, "_");
data/gnupg1-1.4.23/intl/localename.c:2532:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        locval + strlen (locval), LOCALE_NAME_MAX_LENGTH))
data/gnupg1-1.4.23/intl/localename.c:2534:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         size_t locval_len = strlen (locval);
data/gnupg1-1.4.23/intl/localename.c:2570:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (lname, locale_name, sizeof (lname) - 1);
data/gnupg1-1.4.23/intl/localename.c:2640:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size = strlen (string) + 1;
data/gnupg1-1.4.23/intl/log.c:85:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      last_logfilename = (char *) malloc (strlen (logfilename) + 1);
data/gnupg1-1.4.23/intl/log.c:96:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  print_escaped (logfile, domainname, domainname + strlen (domainname));
data/gnupg1-1.4.23/intl/log.c:106:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  print_escaped (logfile, msgid1, msgid1 + strlen (msgid1));
data/gnupg1-1.4.23/intl/log.c:110:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      print_escaped (logfile, msgid2, msgid2 + strlen (msgid2));
data/gnupg1-1.4.23/intl/os2compat.c:57:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/gnupg1-1.4.23/intl/os2compat.c:58:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:60:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:71:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/gnupg1-1.4.23/intl/os2compat.c:72:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:74:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:85:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sl = strlen (root);
data/gnupg1-1.4.23/intl/os2compat.c:86:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:88:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/gnupg1-1.4.23/intl/os2compat.c:94:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (_nlos2_localedir) <= MAXPATHLEN)
data/gnupg1-1.4.23/intl/plural-exp.h:51:3:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  equal,			/* Comparison for equality.  */
data/gnupg1-1.4.23/intl/plural.c:942:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/gnupg1-1.4.23/intl/plural.c:1910:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	  lval->op = equal;
data/gnupg1-1.4.23/intl/relocatable.c:127:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      orig_prefix_len = strlen (orig_prefix_arg);
data/gnupg1-1.4.23/intl/relocatable.c:128:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      curr_prefix_len = strlen (curr_prefix_arg);
data/gnupg1-1.4.23/intl/relocatable.c:195:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix))
data/gnupg1-1.4.23/intl/relocatable.c:199:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  rel_installdir = orig_installdir + strlen (orig_installprefix);
data/gnupg1-1.4.23/intl/relocatable.c:204:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *p = curr_pathname + strlen (curr_pathname);
data/gnupg1-1.4.23/intl/relocatable.c:227:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *rp = rel_installdir + strlen (rel_installdir);
data/gnupg1-1.4.23/intl/relocatable.c:228:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const char *cp = curr_installdir + strlen (curr_installdir);
data/gnupg1-1.4.23/intl/relocatable.c:366:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              while (c = getc (fp), c != EOF && c != '\n' && c != '/')
data/gnupg1-1.4.23/intl/relocatable.c:385:22:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          while (c = getc (fp), c != EOF && c != '\n')
data/gnupg1-1.4.23/intl/relocatable.c:465:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          char *result = (char *) xmalloc (strlen (curr_prefix) + 1);
data/gnupg1-1.4.23/intl/relocatable.c:480:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
data/gnupg1-1.4.23/intl/setlocale.c:652:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (locale) < sizeof (llCC_buf))
data/gnupg1-1.4.23/intl/setlocale.c:709:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              territory_end = territory_start + strlen (territory_start);
data/gnupg1-1.4.23/intl/setlocale.c:744:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            size_t part1_len = strlen (part1);
data/gnupg1-1.4.23/intl/setlocale.c:746:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            size_t part2_len = strlen (part2) + 1;
data/gnupg1-1.4.23/intl/setlocale.c:805:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy (lc_messages_name, locale, sizeof (lc_messages_name) - 1);
data/gnupg1-1.4.23/intl/textdomain.c:96:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len = strlen (domainname) + 1;
data/gnupg1-1.4.23/intl/vasnprintf.c:229:24:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#  define local_wcslen wcslen
data/gnupg1-1.4.23/intl/vasnprintf.c:1731:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            tmp_length = strlen (arg);
data/gnupg1-1.4.23/intl/vasnprintf.c:2563:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      arg_end = arg + strlen (arg);
data/gnupg1-1.4.23/intl/vasnprintf.c:3650:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                ndigits = strlen (digits);
data/gnupg1-1.4.23/intl/vasnprintf.c:3710:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/gnupg1-1.4.23/intl/vasnprintf.c:3746:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        if (strlen (digits2) == precision + 1)
data/gnupg1-1.4.23/intl/vasnprintf.c:3846:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/gnupg1-1.4.23/intl/vasnprintf.c:3882:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        if (strlen (digits2) == precision)
data/gnupg1-1.4.23/intl/vasnprintf.c:4112:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                ndigits = strlen (digits);
data/gnupg1-1.4.23/intl/vasnprintf.c:4169:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/gnupg1-1.4.23/intl/vasnprintf.c:4204:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        if (strlen (digits2) == precision + 1)
data/gnupg1-1.4.23/intl/vasnprintf.c:4317:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/gnupg1-1.4.23/intl/vasnprintf.c:4352:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        if (strlen (digits2) == precision)
data/gnupg1-1.4.23/keyserver/curl-shim.c:68:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(str && (strlen(curl->errorbuffer)+2+strlen(str)+1)<=CURL_ERROR_SIZE)
data/gnupg1-1.4.23/keyserver/curl-shim.c:68:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(str && (strlen(curl->errorbuffer)+2+strlen(str)+1)<=CURL_ERROR_SIZE)
data/gnupg1-1.4.23/keyserver/curl-shim.c:209:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  unsigned int post_len=strlen(curl->postfields);
data/gnupg1-1.4.23/keyserver/curl-shim.c:333:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len=strlen(str);
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:226:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  if(strlen(&start[11])<MAX_PROXY)
data/gnupg1-1.4.23/keyserver/gpgkeys_curl.c:361:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  thekey[strlen(line)-1]='\0';
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:271:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (write_server (sock, name, strlen (name))
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:326:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (!strncmp((char*)line,END,strlen(END)))
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:329:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      else if(!strncmp((char*)line,BEGIN,strlen(BEGIN)))
data/gnupg1-1.4.23/keyserver/gpgkeys_finger.c:487:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  thekey[strlen(line)-1]='\0';
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:105:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t n=strlen(dest);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:137:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"KEY%*[ ]%16s%*[ ]%5s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:156:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"KEY%*[ ]%16s%*[ ]%3s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:165:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	keysize+=strlen(line);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:197:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  key=xtrymalloc(8+strlen(encoded_key)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:211:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(request,":");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:266:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(getkey)==32)
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:277:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(request,":");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:287:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  keylen = strlen(getkey);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:382:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  request=xtrymalloc(MAX_URL+60+strlen(searchkey_encoded));
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:395:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(request,":");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:497:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  request=xtrymalloc(MAX_URL+60+strlen(searchkey_encoded));
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:510:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(request,":");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:602:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(1+strlen(srvtag)+6+strlen(opt->host)+1<=MAXDNAME)
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:602:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(1+strlen(srvtag)+6+strlen(opt->host)+1<=MAXDNAME)
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:606:7:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
      strcpy(srvname,"_");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:639:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      entry=malloc (strlen(opt->host)+1
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:640:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    +strlen(portstr)+1+strlen(ipaddr)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:640:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    +strlen(portstr)+1+strlen(ipaddr)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:642:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      host=malloc (strlen(HOST_HEADER)+1+strlen(opt->host)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:642:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      host=malloc (strlen(HOST_HEADER)+1+strlen(opt->host)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:815:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  if(strlen(&start[11])<MAX_PROXY)
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:981:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      work->str[strlen(line)-1]='\0';
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:1071:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  len+=strlen(keyptr->str)+1;
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:1089:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	  strcat(searchkey," ");
data/gnupg1-1.4.23/keyserver/gpgkeys_hkp.c:1095:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	searchkey[strlen(searchkey)-1]='\0';
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:173:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(keyptr->str,key,MAX_LINE);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:379:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for(i=strlen(line);i>0;i--)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:397:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(tok)==16)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:502:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(tok)==16)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:540:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(tok)==0)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:576:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(tok)==16)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:641:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"INFO%*[ ]%16s%*[ ]%5s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:657:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(keyid)!=16)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:664:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dn=xtrymalloc(strlen("pgpCertID=")+16+1+strlen(basekeyspacedn)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:664:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dn=xtrymalloc(strlen("pgpCertID=")+16+1+strlen(basekeyspacedn)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:687:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"INFO%*[ ]%16s%*[ ]%3s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:709:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"KEY%*[ ]%16s%*[ ]%5s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:728:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"KEY%*[ ]%16s%*[ ]%3s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:737:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	keysize+=strlen(line);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:829:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dn=xtrymalloc(strlen("pgpCertid=virtual,")+strlen(basekeyspacedn)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:829:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  dn=xtrymalloc(strlen("pgpCertid=virtual,")+strlen(basekeyspacedn)+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:853:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"KEY%*[ ]%16s%*[ ]%5s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:872:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    if(sscanf(line,"KEY%*[ ]%16s%*[ ]%3s\n",keyid,state)==2
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:880:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	keysize+=strlen(line);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:960:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(vals[0])==15)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:970:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(vals[0])==15)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1025:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(getkey)==32)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1034:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(getkey)>16)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1036:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *offset=&getkey[strlen(getkey)-16];
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1047:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  else if(strlen(getkey)>8)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1169:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buffer+=strlen(buffer);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1221:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(search,")");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1325:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  search=xtrymalloc(2+1+9+1+3+strlen(searchkey)+3+1+15+14+1+1+20);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1348:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(search,"(");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1365:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(search,"=");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1370:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(search,"*");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1392:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(search,"*");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1409:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(search,")");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1418:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(search,")");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1535:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  if(vals!=NULL && strlen(vals[0])==15)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1545:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  if(vals!=NULL && strlen(vals[0])==15)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1576:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  if(vals!=NULL && strlen(vals[0])==15)
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:1688:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      object=xtrymalloc(17+strlen(context[i])+1);
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:2071:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	      work->str[strlen(line)-1]='\0';
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:2339:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  len+=strlen(keyptr->str)+1;
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:2357:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	  strcat(searchkey,"*");
data/gnupg1-1.4.23/keyserver/gpgkeys_ldap.c:2363:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	searchkey[strlen(searchkey)-1]='\0';
data/gnupg1-1.4.23/keyserver/ksutil.c:376:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if(strlen(*search)==10 && strspn(*search,HEX"x")==10)
data/gnupg1-1.4.23/keyserver/ksutil.c:381:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  else if(strlen(*search)==18 && strspn(*search,HEX"x")==18)
data/gnupg1-1.4.23/keyserver/ksutil.c:394:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(*search)==8 && strspn(*search,HEX)==8)
data/gnupg1-1.4.23/keyserver/ksutil.c:396:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      else if(strlen(*search)==16 && strspn(*search,HEX)==16)
data/gnupg1-1.4.23/mpi/mpicoder.c:217:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    nbits = strlen(str)*4;
data/gnupg1-1.4.23/tools/bftest.c:94:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cipher_setkey( hd, *argv, strlen(*argv) );
data/gnupg1-1.4.23/tools/clean-sat.c:25:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while( (c=getchar()) == '\n' )
data/gnupg1-1.4.23/tools/clean-sat.c:29:6:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c = getchar();
data/gnupg1-1.4.23/tools/gpgsplit.c:206:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name = xmalloc (strlen (opt_prefix) + 100 );
data/gnupg1-1.4.23/tools/gpgsplit.c:220:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ( (c = getc (fp)) == EOF )
data/gnupg1-1.4.23/tools/gpgsplit.c:223:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if ( (c = getc (fp)) == EOF )
data/gnupg1-1.4.23/tools/gpgsplit.c:392:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	       nread < count && (c=getc (fpin)) != EOF;
data/gnupg1-1.4.23/tools/gpgsplit.c:477:29:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	       nread < count && (c=getc (fpin)) != EOF;
data/gnupg1-1.4.23/tools/gpgsplit.c:562:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          c = getc (fpin);
data/gnupg1-1.4.23/tools/gpgsplit.c:616:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          else if ((c = getc (fpin)) == EOF ) 
data/gnupg1-1.4.23/tools/gpgsplit.c:629:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              if ((c = getc (fpin)) == EOF) 
data/gnupg1-1.4.23/tools/gpgsplit.c:655:28:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  if ((c = getc (fpin)) == EOF) 
data/gnupg1-1.4.23/tools/gpgsplit.c:678:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              c = getc (fpin);
data/gnupg1-1.4.23/tools/gpgsplit.c:692:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              if ((c = getc (fpin)) == EOF)
data/gnupg1-1.4.23/tools/gpgsplit.c:715:26:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              while ( (c=getc (fpin)) != EOF ) 
data/gnupg1-1.4.23/tools/gpgsplit.c:735:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc (fpin);
data/gnupg1-1.4.23/tools/gpgsplit.c:774:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ctb = getc (fp);
data/gnupg1-1.4.23/tools/gpgsplit.c:787:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if( (c = getc (fp)) == EOF )
data/gnupg1-1.4.23/tools/gpgsplit.c:796:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if( (c = getc (fp)) == EOF ) 
data/gnupg1-1.4.23/tools/gpgsplit.c:835:24:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              if( (c = getc (fp)) == EOF ) 
data/gnupg1-1.4.23/tools/make-dns-cert.c:75:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      err=read(fd,buffer,1024);
data/gnupg1-1.4.23/tools/make-dns-cert.c:134:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len+=strlen(url);
data/gnupg1-1.4.23/tools/mpicalc.c:248:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while( (c=getc(stdin)) != EOF ) {
data/gnupg1-1.4.23/tools/mpicalc.c:262:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    if( (c=getc(stdin)) == '+' )
data/gnupg1-1.4.23/tools/mpicalc.c:270:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    if( (c=getc(stdin)) == '-' )
data/gnupg1-1.4.23/tools/shmtest.c:82:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(p);
data/gnupg1-1.4.23/tools/shmtest.c:120:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(argv[i]) + 1;
data/gnupg1-1.4.23/tools/shmtest.c:124:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(p, " " );
data/gnupg1-1.4.23/tools/shmtest.c:134:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(buf);
data/gnupg1-1.4.23/util/argparse.c:261:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc (fp);
data/gnupg1-1.4.23/util/argparse.c:368:4:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c=getc(fp);
data/gnupg1-1.4.23/util/argparse.c:453:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    if( *p == '"' && p[strlen(p)-1]=='"') {
data/gnupg1-1.4.23/util/argparse.c:461:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  p[strlen(p)-1] = 0;
data/gnupg1-1.4.23/util/argparse.c:588:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen( keyword );
data/gnupg1-1.4.23/util/argparse.c:840:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t n = strlen(o->long_opt);
data/gnupg1-1.4.23/util/assuan-buffer.c:245:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t prefixlen = prefix? strlen (prefix):0;
data/gnupg1-1.4.23/util/assuan-buffer.c:308:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = s? (s-line) : strlen (line);
data/gnupg1-1.4.23/util/assuan-client.c:213:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memset (line, 0, strlen (line));
data/gnupg1-1.4.23/util/assuan-logging.c:65:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (prefix_buffer, text, sizeof (prefix_buffer)-1);
data/gnupg1-1.4.23/util/assuan-socket-connect.c:54:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	               + strlen ((ptr)->sun_path))
data/gnupg1-1.4.23/util/assuan-socket-connect.c:81:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read (ctx->inbound.fd, buffer, size);
data/gnupg1-1.4.23/util/assuan-socket-connect.c:127:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen (name)+1 >= sizeof srvr_addr.sun_path)
data/gnupg1-1.4.23/util/assuan-socket-connect.c:147:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (srvr_addr.sun_path, name, sizeof (srvr_addr.sun_path) - 1);
data/gnupg1-1.4.23/util/compat.c:145:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  needed = strlen (s1);
data/gnupg1-1.4.23/util/compat.c:148:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      needed += strlen (argv[argc]);
data/gnupg1-1.4.23/util/dotlock.c:516:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      res = read (fd, p, expected_len - nread);
data/gnupg1-1.4.23/util/dotlock.c:584:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lname = jnlib_malloc (strlen (tname) + 1 + 1);
data/gnupg1-1.4.23/util/dotlock.c:588:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat (lname, "x");
data/gnupg1-1.4.23/util/dotlock.c:645:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tnamelen = dirpartlen + 6 + 30 + strlen(nodename) + 10 + 1;
data/gnupg1-1.4.23/util/dotlock.c:654:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  h->nodename_len = strlen (nodename);
data/gnupg1-1.4.23/util/dotlock.c:657:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  h->nodename_off = strlen (h->tname);
data/gnupg1-1.4.23/util/dotlock.c:681:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( write (fd, nodename, strlen (nodename) ) != strlen (nodename) )
data/gnupg1-1.4.23/util/dotlock.c:681:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ( write (fd, nodename, strlen (nodename) ) != strlen (nodename) )
data/gnupg1-1.4.23/util/dotlock.c:703:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  h->lockname = jnlib_malloc (strlen (file_to_lock) + 6 );
data/gnupg1-1.4.23/util/dotlock.c:746:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  h->lockname = jnlib_malloc ( strlen (file_to_lock) + 6 );
data/gnupg1-1.4.23/util/estream-printf.c:1072:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  n = strlen (numbuf);
data/gnupg1-1.4.23/util/estream-printf.c:1161:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen (string);
data/gnupg1-1.4.23/util/estream-printf.c:1493:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (max_pos < 0 || max_pos >= strlen (format))
data/gnupg1-1.4.23/util/fileutil.c:98:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dirname, filepath, dirname_length);
data/gnupg1-1.4.23/util/fileutil.c:151:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  (*name)+=1+strlen(user);
data/gnupg1-1.4.23/util/fileutil.c:174:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen(first_part)+1;
data/gnupg1-1.4.23/util/fileutil.c:176:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n += strlen(s) + 1;
data/gnupg1-1.4.23/util/fileutil.c:184:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  n+=strlen(home);
data/gnupg1-1.4.23/util/http.c:279:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   *ret_uri = xmalloc_clear( sizeof(**ret_uri) + strlen(uri) );
data/gnupg1-1.4.23/util/http.c:307:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n = strlen( uri->buffer );
data/gnupg1-1.4.23/util/http.c:370:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if( n != strlen( uri->host ) )
data/gnupg1-1.4.23/util/http.c:389:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( n != strlen( p ) )
data/gnupg1-1.4.23/util/http.c:499:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( n != strlen( p ) )
data/gnupg1-1.4.23/util/http.c:505:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tuple->value = p + strlen(p);
data/gnupg1-1.4.23/util/http.c:554:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    x=make_radix64_string(uri->auth,strlen(uri->auth));
data/gnupg1-1.4.23/util/http.c:555:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    proxy_authstr=xmalloc(52+strlen(x));
data/gnupg1-1.4.23/util/http.c:578:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			      strlen(tempauth?tempauth:hd->uri->auth));
data/gnupg1-1.4.23/util/http.c:579:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	authstr=xmalloc(52+strlen(x));
data/gnupg1-1.4.23/util/http.c:590:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    request=xmalloc(strlen(server)*2 + strlen(p)
data/gnupg1-1.4.23/util/http.c:590:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    request=xmalloc(strlen(server)*2 + strlen(p)
data/gnupg1-1.4.23/util/http.c:591:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    + (authstr?strlen(authstr):0)
data/gnupg1-1.4.23/util/http.c:592:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    + (proxy_authstr?strlen(proxy_authstr):0) + 65);
data/gnupg1-1.4.23/util/http.c:619:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rc = write_server( hd->sock, request, strlen(request) );
data/gnupg1-1.4.23/util/http.c:624:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  rc = write_server( hd->sock, headers->d, strlen(headers->d) );
data/gnupg1-1.4.23/util/http.c:804:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while( (c=getc(fp)) != EOF )
data/gnupg1-1.4.23/util/http.c:868:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(1+strlen(srv->srvtag)+6+strlen(server)+1<=MAXDNAME)
data/gnupg1-1.4.23/util/http.c:868:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(1+strlen(srv->srvtag)+6+strlen(server)+1<=MAXDNAME)
data/gnupg1-1.4.23/util/http.c:872:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	  strcpy(srvname,"_");
data/gnupg1-1.4.23/util/http.c:889:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(srvlist->target,server,MAXDNAME);
data/gnupg1-1.4.23/util/http.c:1101:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if( strlen( r->value ) != r->valuelen )
data/gnupg1-1.4.23/util/http.c:1107:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if( strlen( r->value ) != r->valuelen )
data/gnupg1-1.4.23/util/iobuf.c:347:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    cc = xmalloc_clear (sizeof *cc + strlen (fname));
data/gnupg1-1.4.23/util/iobuf.c:508:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read ( f, buf, size );
data/gnupg1-1.4.23/util/iobuf.c:1141:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fcx = xmalloc( sizeof *fcx + strlen(fname) );
data/gnupg1-1.4.23/util/iobuf.c:1242:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fcx = xmalloc( sizeof *fcx + strlen(fname) );
data/gnupg1-1.4.23/util/iobuf.c:1278:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fcx = xmalloc( sizeof *fcx + strlen(fname) );
data/gnupg1-1.4.23/util/iobuf.c:1307:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fcx = xmalloc( sizeof *fcx + strlen(fname) );
data/gnupg1-1.4.23/util/membuf.c:68:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  put_membuf (mb, buf, strlen (buf));
data/gnupg1-1.4.23/util/memory.c:639:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t n = strlen(a);
data/gnupg1-1.4.23/util/memory.c:648:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t n = strlen (a);
data/gnupg1-1.4.23/util/miscutil.c:67:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if( strlen(string) != 10 || string[4] != '-' || string[7] != '-' )
data/gnupg1-1.4.23/util/mkdtemp.c:43:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  idx=strlen(template);
data/gnupg1-1.4.23/util/pka.c:76:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy (result, s, len);
data/gnupg1-1.4.23/util/pka.c:226:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sha1_hash_buffer (hashbuf, mbox, strlen (mbox));
data/gnupg1-1.4.23/util/regcomp.c:497:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = re_compile_internal (preg, pattern, strlen (pattern), syntax);
data/gnupg1-1.4.23/util/regcomp.c:548:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  msg_size = strlen (msg) + 1; /* Includes the null.  */
data/gnupg1-1.4.23/util/regcomp.c:694:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = re_compile_internal (&re_comp_buf, s, strlen (s), re_syntax_options);
data/gnupg1-1.4.23/util/regcomp.c:751:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (dfa->re_str, pattern, length + 1);
data/gnupg1-1.4.23/util/regcomp.c:2330:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           && strlen ((char *) start_elem->opr.name) > 1)
data/gnupg1-1.4.23/util/regcomp.c:2332:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              && strlen ((char *) end_elem->opr.name) > 1), 0))
data/gnupg1-1.4.23/util/regcomp.c:2430:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t name_len = strlen ((const char *) name);
data/gnupg1-1.4.23/util/regcomp.c:2519:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size_t sym_name_len = strlen ((char *) br_elem->opr.name);
data/gnupg1-1.4.23/util/regcomp.c:2661:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t name_len = strlen ((const char *) name);
data/gnupg1-1.4.23/util/regcomp.c:3092:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (BE (idx1 == 0 || cp < name + strlen ((const char *) name), 0))
data/gnupg1-1.4.23/util/regcomp.c:3138:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (BE (strlen ((const char *) name) != 1, 0))
data/gnupg1-1.4.23/util/regexec.c:204:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int length = strlen (string);
data/gnupg1-1.4.23/util/simple-gettext.c:272:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              langid = malloc (strlen (p)+1);
data/gnupg1-1.4.23/util/simple-gettext.c:328:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          fname = malloc (strlen (instdir) + 1 + strlen (filename) + 5
data/gnupg1-1.4.23/util/simple-gettext.c:328:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          fname = malloc (strlen (instdir) + 1 + strlen (filename) + 5
data/gnupg1-1.4.23/util/simple-gettext.c:329:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          + strlen (langid) + 3 + 1);
data/gnupg1-1.4.23/util/simple-gettext.c:399:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      plen = strlen (p);
data/gnupg1-1.4.23/util/simple-gettext.c:401:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      buflen = strlen (buf);
data/gnupg1-1.4.23/util/simple-gettext.c:449:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	u32 len = strlen (msgid);
data/gnupg1-1.4.23/util/strgutil.c:187:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sl = xmalloc( sizeof *sl + strlen(string));
data/gnupg1-1.4.23/util/strgutil.c:219:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sl = xmalloc( sizeof *sl + strlen(string));
data/gnupg1-1.4.23/util/strgutil.c:276:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      str=xmalloc(strlen(sl->d)+1);
data/gnupg1-1.4.23/util/strgutil.c:501:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            || name[strlen(name)-1] == '@'
data/gnupg1-1.4.23/util/strgutil.c:502:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            || name[strlen(name)-1] == '.'
data/gnupg1-1.4.23/util/strgutil.c:599:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/gnupg1-1.4.23/util/strgutil.c:599:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
             aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/gnupg1-1.4.23/util/strgutil.c:603:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                newset = aliases + strlen (aliases) + 1;
data/gnupg1-1.4.23/util/strgutil.c:628:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    mod = dot + strlen (dot);
data/gnupg1-1.4.23/util/strgutil.c:641:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen (newset) > 3 && !ascii_memcasecmp (newset, "iso", 3)) {
data/gnupg1-1.4.23/util/strgutil.c:784:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      inbytes = strlen (string);
data/gnupg1-1.4.23/util/strgutil.c:1229:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  needed = strlen (s1);
data/gnupg1-1.4.23/util/strgutil.c:1232:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      needed += strlen (argv[argc]);
data/gnupg1-1.4.23/util/timegm.c:49:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      old_zone=malloc(3+strlen(zone)+1);
data/gnupg1-1.4.23/util/ttyio.c:272:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        n = strlen (buf);
data/gnupg1-1.4.23/util/ttyio.c:320:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        n = strlen (buf);
data/gnupg1-1.4.23/util/ttyio.c:394:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if( max_n && (strlen( buf ) > max_n )) {
data/gnupg1-1.4.23/util/ttyio.c:544:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while( read(fileno(ttyfp), cbuf, 1) == 1 && *cbuf != '\n' ) {
data/gnupg1-1.4.23/util/ttyio.c:605:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      buf = xmalloc(line? strlen(line)+1:2);
data/gnupg1-1.4.23/util/ttyio.c:610:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (buf) > 2 )
data/gnupg1-1.4.23/util/w32reg.c:129:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            result = malloc (strlen (tmp)+1);
data/gnupg1-1.4.23/util/w32reg.c:162:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen( value ) ) != ERROR_SUCCESS ) {
data/gnupg1-1.4.23/util/w32reg.c:168:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            strlen( value ) ) != ERROR_SUCCESS ) {
data/gnupg1-1.4.23/zlib/infblock.c:212:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/gnupg1-1.4.23/zlib/infblock.c:212:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/gnupg1-1.4.23/zlib/infblock.c:213:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              (s->end - s->read) + (q - s->window))));
data/gnupg1-1.4.23/zlib/infblock.c:346:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/gnupg1-1.4.23/zlib/infblock.c:346:53:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              z->total_out + (q >= s->read ? q - s->read :
data/gnupg1-1.4.23/zlib/infblock.c:347:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              (s->end - s->read) + (q - s->window))));
data/gnupg1-1.4.23/zlib/infblock.c:356:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (s->read != s->write)
data/gnupg1-1.4.23/zlib/infcodes.c:226:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (s->read != s->write)
data/gnupg1-1.4.23/zlib/infutil.c:34:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  q = s->read;
data/gnupg1-1.4.23/zlib/infutil.h:56:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  Bytef *read;          /* window read pointer */
data/gnupg1-1.4.23/zlib/infutil.h:78:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define WAVAIL (uInt)(q<s->read?s->read-q-1:s->end-q)
data/gnupg1-1.4.23/zlib/infutil.h:80:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define WRAP {if(q==s->end&&s->read!=s->window){q=s->window;m=(uInt)WAVAIL;}}

ANALYSIS SUMMARY:

Hits = 2225
Lines analyzed = 173893 in approximately 4.80 seconds (36264 lines/second)
Physical Source Lines of Code (SLOC) = 129477
Hits@level = [0] 888 [1] 744 [2] 1049 [3]  73 [4] 357 [5]   2
Hits@level+ = [0+] 3113 [1+] 2225 [2+] 1481 [3+] 432 [4+] 359 [5+]   2
Hits/KSLOC@level+ = [0+] 24.0429 [1+] 17.1845 [2+] 11.4383 [3+] 3.3365 [4+] 2.77269 [5+] 0.0154468
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.