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/gpgme1.0-1.14.0/tests/t-data.c
Examining data/gpgme1.0-1.14.0/tests/run-sign.c
Examining data/gpgme1.0-1.14.0/tests/run-support.h
Examining data/gpgme1.0-1.14.0/tests/run-identify.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-edit.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-file-name.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-mixed.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-decrypt-verify.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-decrypt.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-sign.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-sig-notation.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-sym.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-export.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-genkey.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-import.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-sign.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-encrypt.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-thread1.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-verify.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-thread-keylist.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-signers.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-cancel.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-eventloop.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-wait.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-keylist.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-support.h
Examining data/gpgme1.0-1.14.0/tests/gpg/t-keylist-sig.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-large.c
Examining data/gpgme1.0-1.14.0/tests/gpg/t-thread-keylist-verify.c
Examining data/gpgme1.0-1.14.0/tests/run-tofu.c
Examining data/gpgme1.0-1.14.0/tests/run-genkey.c
Examining data/gpgme1.0-1.14.0/tests/run-keysign.c
Examining data/gpgme1.0-1.14.0/tests/run-export.c
Examining data/gpgme1.0-1.14.0/tests/t-version.c
Examining data/gpgme1.0-1.14.0/tests/run-verify.c
Examining data/gpgme1.0-1.14.0/tests/run-keylist.c
Examining data/gpgme1.0-1.14.0/tests/run-threaded.c
Examining data/gpgme1.0-1.14.0/tests/run-encrypt.c
Examining data/gpgme1.0-1.14.0/tests/opassuan/t-command.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/cms-decrypt.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-decrypt.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-export.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-genkey.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-import.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-sign.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-encrypt.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-verify.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-keylist.c
Examining data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h
Examining data/gpgme1.0-1.14.0/tests/gpgsm/cms-keylist.c
Examining data/gpgme1.0-1.14.0/tests/run-swdb.c
Examining data/gpgme1.0-1.14.0/tests/run-import.c
Examining data/gpgme1.0-1.14.0/tests/t-engine-info.c
Examining data/gpgme1.0-1.14.0/tests/json/t-json.c
Examining data/gpgme1.0-1.14.0/tests/run-decrypt.c
Examining data/gpgme1.0-1.14.0/lang/python/helpers.h
Examining data/gpgme1.0-1.14.0/lang/python/helpers.c
Examining data/gpgme1.0-1.14.0/lang/python/private.h
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-keylist.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/run-keyformailboxjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-config.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-ownertrust.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-various.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-keylocate.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-wkspublish.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-tofuinfo.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-encrypt.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-support.h
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-remarks.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-verify.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/tests/t-support.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeexportjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/specialjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/protocol_p.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/multideletejob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmebackend.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedecryptjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmerefreshkeysjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmelistallkeysjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/changeexpiryjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/importjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/multideletejob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedecryptverifyjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmechangepasswdjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/listallkeysjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignencryptjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmechangeownertrustjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeverifydetachedjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/decryptverifyjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmekeyformailboxjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/dn.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeverifyopaquejob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgme_export.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmetofupolicyjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmebackend.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmekeylistjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeverifydetachedjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesecretkeyexportjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/signencryptjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignkeyjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedeletejob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/signjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmegpgcardjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/refreshkeysjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeexportjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/wkspublishjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmequickjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeimportjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeencryptjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmewkspublishjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/changepasswdjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeadduseridjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedecryptverifyjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/job.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgme_debug.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/hierarchicalkeylistjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/keyformailboxjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmekeygenerationjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmechangepasswdjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/cryptoconfig.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignkeyjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/cryptoconfig.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/signkeyjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/threadedjobmixin.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/encryptjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/quickjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/dn.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/protocol.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/abstractimportjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/threadedjobmixin.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/changeownertrustjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmekeylistjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignencryptjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedecryptjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeimportfromkeyserverjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmechangeownertrustjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmekeygenerationjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmegpgcardjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/decryptjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/job.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/exportjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedeletejob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/defaultkeygenerationjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmequickjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeencryptjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/verifyopaquejob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmekeyformailboxjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeimportjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmechangeexpiryjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesecretkeyexportjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeimportfromkeyserverjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmerefreshkeysjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/adduseridjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmewkspublishjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/importfromkeyserverjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/tofupolicyjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmetofupolicyjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmenewcryptoconfig.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/verifydetachedjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/downloadjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/defaultkeygenerationjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/keylistjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/keygenerationjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgme_debug.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmenewcryptoconfig.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeverifyopaquejob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/gpgcardjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedownloadjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeadduseridjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmechangeexpiryjob.h
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedownloadjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/qgpgmelistallkeysjob.cpp
Examining data/gpgme1.0-1.14.0/lang/qt/src/deletejob.h
Examining data/gpgme1.0-1.14.0/lang/cpp/tests/run-getkey.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/tests/run-verify.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/tests/run-keylist.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/defaultassuantransaction.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/engineinfo.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/data_p.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/result.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/eventloopinteractor.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/verificationresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/error.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgsetownertrusteditinteractor.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/result_p.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/encryptionresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/tofuinfo.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/context.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/callbacks.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/swdbresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/interfaces/progressprovider.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/interfaces/assuantransaction.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/interfaces/dataprovider.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/interfaces/passphraseprovider.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/exception.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/editinteractor.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/signingresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/encryptionresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/editinteractor.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/decryptionresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/util.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgadduserideditinteractor.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/configuration.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/context_p.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/key.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgmefw.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/decryptionresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/callbacks.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/trustitem.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/global.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/vfsmountresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/trustitem.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/defaultassuantransaction.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/data.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/data.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/configuration.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpggencardkeyinteractor.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgmepp_export.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgsetownertrusteditinteractor.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgadduserideditinteractor.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/context.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/scdgetinfoassuantransaction.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/keylistresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/signingresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/exception.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/verificationresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/eventloopinteractor.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/notation.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/context_vanilla.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/swdbresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/scdgetinfoassuantransaction.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgsignkeyeditinteractor.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgagentgetinfoassuantransaction.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/importresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgsetexpirytimeeditinteractor.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/importresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/tofuinfo.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/keylistresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpggencardkeyinteractor.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgagentgetinfoassuantransaction.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/keygenerationresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/keygenerationresult.h
Examining data/gpgme1.0-1.14.0/lang/cpp/src/vfsmountresult.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgsignkeyeditinteractor.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/engineinfo.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/gpgsetexpirytimeeditinteractor.cpp
Examining data/gpgme1.0-1.14.0/lang/cpp/src/key.cpp
Examining data/gpgme1.0-1.14.0/doc/mkdefsinc.c
Examining data/gpgme1.0-1.14.0/src/progress.c
Examining data/gpgme1.0-1.14.0/src/cJSON.h
Examining data/gpgme1.0-1.14.0/src/ttyname_r.c
Examining data/gpgme1.0-1.14.0/src/delete.c
Examining data/gpgme1.0-1.14.0/src/engine-g13.c
Examining data/gpgme1.0-1.14.0/src/data-mem.c
Examining data/gpgme1.0-1.14.0/src/priv-io.h
Examining data/gpgme1.0-1.14.0/src/encrypt-sign.c
Examining data/gpgme1.0-1.14.0/src/tofupolicy.c
Examining data/gpgme1.0-1.14.0/src/engine.c
Examining data/gpgme1.0-1.14.0/src/data-user.c
Examining data/gpgme1.0-1.14.0/src/trustlist.c
Examining data/gpgme1.0-1.14.0/src/wait-global.c
Examining data/gpgme1.0-1.14.0/src/engine-spawn.c
Examining data/gpgme1.0-1.14.0/src/argparse.h
Examining data/gpgme1.0-1.14.0/src/w32-util.c
Examining data/gpgme1.0-1.14.0/src/spawn.c
Examining data/gpgme1.0-1.14.0/src/queryswdb.c
Examining data/gpgme1.0-1.14.0/src/cJSON.c
Examining data/gpgme1.0-1.14.0/src/engine-uiserver.c
Examining data/gpgme1.0-1.14.0/src/sign.c
Examining data/gpgme1.0-1.14.0/src/engine-assuan.c
Examining data/gpgme1.0-1.14.0/src/engine-backend.h
Examining data/gpgme1.0-1.14.0/src/keysign.c
Examining data/gpgme1.0-1.14.0/src/debug.h
Examining data/gpgme1.0-1.14.0/src/parsetlv.h
Examining data/gpgme1.0-1.14.0/src/sig-notation.c
Examining data/gpgme1.0-1.14.0/src/keylist.c
Examining data/gpgme1.0-1.14.0/src/posix-util.c
Examining data/gpgme1.0-1.14.0/src/setenv.c
Examining data/gpgme1.0-1.14.0/src/assuan-support.c
Examining data/gpgme1.0-1.14.0/src/dirinfo.c
Examining data/gpgme1.0-1.14.0/src/util.h
Examining data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c
Examining data/gpgme1.0-1.14.0/src/w32-glib-io.c
Examining data/gpgme1.0-1.14.0/src/wait-private.c
Examining data/gpgme1.0-1.14.0/src/passwd.c
Examining data/gpgme1.0-1.14.0/src/op-support.c
Examining data/gpgme1.0-1.14.0/src/wait-user.c
Examining data/gpgme1.0-1.14.0/src/debug.c
Examining data/gpgme1.0-1.14.0/src/signers.c
Examining data/gpgme1.0-1.14.0/src/data-estream.c
Examining data/gpgme1.0-1.14.0/src/engine-gpgsm.c
Examining data/gpgme1.0-1.14.0/src/vfs-mount.c
Examining data/gpgme1.0-1.14.0/src/data.h
Examining data/gpgme1.0-1.14.0/src/mbox-util.c
Examining data/gpgme1.0-1.14.0/src/engine-gpgconf.c
Examining data/gpgme1.0-1.14.0/src/parsetlv.c
Examining data/gpgme1.0-1.14.0/src/wait.c
Examining data/gpgme1.0-1.14.0/src/getauditlog.c
Examining data/gpgme1.0-1.14.0/src/data-stream.c
Examining data/gpgme1.0-1.14.0/src/data-identify.c
Examining data/gpgme1.0-1.14.0/src/context.h
Examining data/gpgme1.0-1.14.0/src/export.c
Examining data/gpgme1.0-1.14.0/src/engine.h
Examining data/gpgme1.0-1.14.0/src/argparse.c
Examining data/gpgme1.0-1.14.0/src/status-table.c
Examining data/gpgme1.0-1.14.0/src/passphrase.c
Examining data/gpgme1.0-1.14.0/src/data.c
Examining data/gpgme1.0-1.14.0/src/gpgme-tool.c
Examining data/gpgme1.0-1.14.0/src/b64dec.c
Examining data/gpgme1.0-1.14.0/src/wait.h
Examining data/gpgme1.0-1.14.0/src/decrypt-verify.c
Examining data/gpgme1.0-1.14.0/src/posix-io.c
Examining data/gpgme1.0-1.14.0/src/trust-item.c
Examining data/gpgme1.0-1.14.0/src/stpcpy.c
Examining data/gpgme1.0-1.14.0/src/data-compat.c
Examining data/gpgme1.0-1.14.0/src/ath.h
Examining data/gpgme1.0-1.14.0/src/edit.c
Examining data/gpgme1.0-1.14.0/src/encrypt.c
Examining data/gpgme1.0-1.14.0/src/gpgconf.c
Examining data/gpgme1.0-1.14.0/src/mbox-util.h
Examining data/gpgme1.0-1.14.0/src/get-env.c
Examining data/gpgme1.0-1.14.0/src/data-fd.c
Examining data/gpgme1.0-1.14.0/src/decrypt.c
Examining data/gpgme1.0-1.14.0/src/conversion.c
Examining data/gpgme1.0-1.14.0/src/genkey.c
Examining data/gpgme1.0-1.14.0/src/opassuan.c
Examining data/gpgme1.0-1.14.0/src/sema.h
Examining data/gpgme1.0-1.14.0/src/verify.c
Examining data/gpgme1.0-1.14.0/src/ath.c
Examining data/gpgme1.0-1.14.0/src/version.c
Examining data/gpgme1.0-1.14.0/src/ops.h
Examining data/gpgme1.0-1.14.0/src/gpgme.c
Examining data/gpgme1.0-1.14.0/src/key.c
Examining data/gpgme1.0-1.14.0/src/vfs-create.c
Examining data/gpgme1.0-1.14.0/src/gpgme-json.c
Examining data/gpgme1.0-1.14.0/src/error.c
Examining data/gpgme1.0-1.14.0/src/sys-util.h
Examining data/gpgme1.0-1.14.0/src/w32-io.c
Examining data/gpgme1.0-1.14.0/src/import.c
Examining data/gpgme1.0-1.14.0/src/engine-gpg.c

FINAL RESULTS:

data/gpgme1.0-1.14.0/doc/mkdefsinc.c:68: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/gpgme1.0-1.14.0/doc/mkdefsinc.c:92: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.
          fprintf (stderr, PGM ": stat failed for '%s': %s\n",
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:107:5:  [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, PGM ": taking date from '%s'\n", usedfile);
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:186:19:  [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, PGM ": chdir to '%s' failed: %s\n",
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:204: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.
          fprintf (stderr, PGM ": unknown option '%s'\n", *argv);
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:230: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.
          fprintf (stderr, PGM ": bad date '%s'\n", opt_date);
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:305: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, PGM ": error writing to stdout: %s\n", strerror (errno));
data/gpgme1.0-1.14.0/lang/cpp/src/gpgsignkeyeditinteractor.cpp:50: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/gpgme1.0-1.14.0/lang/cpp/src/gpgsignkeyeditinteractor.cpp:51: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 _snprintf
data/gpgme1.0-1.14.0/lang/cpp/src/gpgsignkeyeditinteractor.cpp:51:18:  [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/gpgme1.0-1.14.0/src/argparse.c:110: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, fmt, arg_ptr);
data/gpgme1.0-1.14.0/src/argparse.c:121: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, fmt, arg_ptr);
data/gpgme1.0-1.14.0/src/argparse.c:512: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/gpgme1.0-1.14.0/src/cJSON.c:237: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 (str, i > 0? "inf" : ":-inf");
data/gpgme1.0-1.14.0/src/cJSON.c:783: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 (ptr, entries[i]);
data/gpgme1.0-1.14.0/src/cJSON.c:963: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 (ptr, names[i]);
data/gpgme1.0-1.14.0/src/cJSON.c:968: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 (ptr, entries[i]);
data/gpgme1.0-1.14.0/src/dirinfo.c:168: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 (buffer + n, name);
data/gpgme1.0-1.14.0/src/engine-assuan.c:381: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 (llass->request_origin, ctx->request_origin);
data/gpgme1.0-1.14.0/src/engine-gpg.c:664: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 (gpg->request_origin, ctx->request_origin);
data/gpgme1.0-1.14.0/src/engine-gpg.c:1909: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 (argp, notation->value);
data/gpgme1.0-1.14.0/src/engine-gpg.c:1942: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 (&value[1], notation->value);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:600: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 (gpgsm->request_origin, ctx->request_origin);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1384: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 (&line[10], fpr);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1531: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 (cmd, pattern);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1870: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 (&line[15], pattern);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1875: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 (&line[9], pattern);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:2061: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, "SIGNER "), s);
data/gpgme1.0-1.14.0/src/engine-uiserver.c:1058: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 (&line[10], uid);
data/gpgme1.0-1.14.0/src/engine-uiserver.c:1253: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, "SENDER --info "), s);
data/gpgme1.0-1.14.0/src/gpgme-json.c:531: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, j_keys->valuestring);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:50: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.
# define GT_GCC_A_PRINTF(f, a)  __attribute__ ((format (printf,f,a)))
data/gpgme1.0-1.14.0/src/gpgme-tool.c:229: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, ap);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3408: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 (gpg_binary, X_OK))
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:129: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, PGM": argv[%2i] = %s\n", i, argv[i]);
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:149: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 (stderr, PGM": spawning: %s\n", arg_string);
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:158: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, PGM": dup 0x%x to stdin\n", fd_list[i].peer_name);
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:164: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, PGM": dup 0x%x to stdout\n", fd_list[i].peer_name);
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:170: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, PGM":dup 0x%x to stderr\n", fd_list[i].peer_name);
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:255: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.
          fprintf (stderr, PGM": AllowSetForegroundWindow(%d): rc=%d\n",
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:421: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, PGM": translation file does not match args\n");
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:471: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, PGM": executing `%s' failed: %s\n",
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:479:5:  [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, PGM": internal error\n");
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:484:2:  [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, PGM": failed to delete %s: ec=%ld\n",
data/gpgme1.0-1.14.0/src/keylist.c:684: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 (subkey->_keyid, field[4]);
data/gpgme1.0-1.14.0/src/keylist.c:781: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 (subkey->_keyid, field[4]);
data/gpgme1.0-1.14.0/src/keylist.c:960: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 (keysig->_keyid, field[4]);
data/gpgme1.0-1.14.0/src/posix-io.c:660:4:  [4] (shell) execv:
  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.
	  execv (path, (char *const *) argv);
data/gpgme1.0-1.14.0/src/posix-util.c:100: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, pgm);
data/gpgme1.0-1.14.0/src/posix-util.c:101: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 (fname, X_OK))
data/gpgme1.0-1.14.0/src/posix-util.c:194: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.
  return access (path, mode);
data/gpgme1.0-1.14.0/src/trustlist.c:102: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 (item->keyid, p);
data/gpgme1.0-1.14.0/src/util.h:93: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/gpgme1.0-1.14.0/src/util.h:94: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 gpgrt_snprintf
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:142: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 (buf, srcdir);
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:144: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 (buf, fname);
data/gpgme1.0-1.14.0/tests/gpgsm/cms-keylist.c:120: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, PGM ": key listing unexpectedly truncated\n");
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:102: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 (buf, srcdir);
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:104: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 (buf, fname);
data/gpgme1.0-1.14.0/tests/run-decrypt.c:206: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, PGM ": can't open `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:226: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.
          fprintf (stderr, PGM ": error requesting exported session key: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:237: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.
          fprintf (stderr, PGM ": error setting overriding session key: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:248: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.
          fprintf (stderr, PGM ": error setting request_origin: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:259: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.
          fprintf (stderr, PGM ": error setting no-symkey-cache: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:270: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.
          fprintf (stderr, PGM ": error setting ignore-mdc-error: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:279: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, PGM ": error allocating data object: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:287: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, PGM ": error allocating data object: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:304: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.
          fprintf (stderr, PGM ": getting diagnostics failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-decrypt.c:318: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, PGM ": decrypt failed: %s\n", gpgme_strerror (err));
data/gpgme1.0-1.14.0/tests/run-encrypt.c:259: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.
          fprintf (stderr, PGM ": error setting no-symkey-cache:  %s\n",
data/gpgme1.0-1.14.0/tests/run-encrypt.c:275: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, PGM ": error reading `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-encrypt.c:283: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, PGM ": error seeking `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-encrypt.c:290: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, PGM ": error seeking `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-encrypt.c:309: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 (stderr, PGM ": error setting size-hint for `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-encrypt.c:325: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, PGM ": encrypting failed: %s\n", gpg_strerror (err));
data/gpgme1.0-1.14.0/tests/run-export.c:187: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.
              fprintf (stderr, PGM": too many keys"
data/gpgme1.0-1.14.0/tests/run-export.c:201: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.
          fprintf (stderr, PGM ": key listing unexpectedly truncated\n");
data/gpgme1.0-1.14.0/tests/run-genkey.c:85: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 (buffer, string);
data/gpgme1.0-1.14.0/tests/run-genkey.c:145: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, PGM ": invalid value '%s'\n", string);
data/gpgme1.0-1.14.0/tests/run-genkey.c:167: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, PGM": strtokenize failed: %s\n", gpg_strerror (err));
data/gpgme1.0-1.14.0/tests/run-genkey.c:188: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.
          fprintf (stderr, PGM": invalid value '%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-genkey.c:383: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.
          fprintf (stderr, PGM ": error getting secret key for '%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-genkey.c:393: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.
              fprintf (stderr, PGM ": gpgme_op_createsubkey failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-genkey.c:403: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.
              fprintf (stderr, PGM ": gpgme_op_adduid failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-genkey.c:413: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.
              fprintf (stderr, PGM ": gpgme_op_revuid failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-genkey.c:423: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.
              fprintf (stderr, PGM ": gpgme_op_set_uid_flag failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-genkey.c:435: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.
          fprintf (stderr, PGM ": gpgme_op_createkey failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-genkey.c:446: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.
          fprintf (stderr, PGM": gpgme_op_genkey_result returned NULL\n");
data/gpgme1.0-1.14.0/tests/run-genkey.c:456: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 (stderr, PGM": generated key has unexpected fingerprint\n");
data/gpgme1.0-1.14.0/tests/run-genkey.c:458: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 (stderr, PGM": primary key was not generated\n");
data/gpgme1.0-1.14.0/tests/run-genkey.c:460: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 (stderr, PGM": sub key was not generated\n");
data/gpgme1.0-1.14.0/tests/run-genkey.c:462: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 (stderr, PGM": uid was not generated\n");
data/gpgme1.0-1.14.0/tests/run-identify.c:115: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.
          fprintf (stderr, PGM ": error reading '%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-import.c:133: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.
          fprintf (stderr, PGM ": no import result returned\n");
data/gpgme1.0-1.14.0/tests/run-keylist.c:383: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.
              fprintf (stderr, PGM": too many keys in import mode"
data/gpgme1.0-1.14.0/tests/run-keylist.c:401: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, PGM ": key listing unexpectedly truncated\n");
data/gpgme1.0-1.14.0/tests/run-keylist.c:414: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.
          fprintf (stderr, PGM ": no import result returned\n");
data/gpgme1.0-1.14.0/tests/run-keysign.c:63: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, PGM ": invalid value '%s'\n", string);
data/gpgme1.0-1.14.0/tests/run-keysign.c:194: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.
          fprintf (stderr, PGM ": error getting signer key '%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-keysign.c:201: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.
          fprintf (stderr, PGM ": error adding signer key: %s\n",
data/gpgme1.0-1.14.0/tests/run-keysign.c:212: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, PGM ": error getting key for '%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-keysign.c:226: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.
          fprintf (stderr, PGM ": malloc failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-keysign.c:233: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 (userid_buffer, argv[i]);
data/gpgme1.0-1.14.0/tests/run-keysign.c:253: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, PGM ": gpgme_op_adduid failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-sign.c:185: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, PGM ": ignoring --key in UI-server mode\n");
data/gpgme1.0-1.14.0/tests/run-sign.c:207: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.
          fprintf (stderr, PGM ": get key '%s' failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-sign.c:227: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.
          fprintf (stderr, PGM ": error setting include-key-block:  %s\n",
data/gpgme1.0-1.14.0/tests/run-sign.c:236: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, PGM ": error reading `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-sign.c:250: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, PGM ": signing failed: %s\n", gpg_strerror (err));
data/gpgme1.0-1.14.0/tests/run-support.h:42: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.
          fprintf (stderr, PGM": file %s line %d: <%s> %s\n",	\
data/gpgme1.0-1.14.0/tests/run-support.h:116: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 (buf, srcdir);
data/gpgme1.0-1.14.0/tests/run-support.h:118: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 (buf, fname);
data/gpgme1.0-1.14.0/tests/run-swdb.c:120: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, PGM ": error querying swdb: %s\n", gpg_strerror (err));
data/gpgme1.0-1.14.0/tests/run-swdb.c:127: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, PGM ": error querying swdb: %s\n", "no result");
data/gpgme1.0-1.14.0/tests/run-threaded.c:93:5:  [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 (format "\n", ##__VA_ARGS__); \
data/gpgme1.0-1.14.0/tests/run-threaded.c:107:5:  [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 (format "\n", ##__VA_ARGS__); \
data/gpgme1.0-1.14.0/tests/run-tofu.c:69: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, PGM ": invalid policy value '%s'\n", string);
data/gpgme1.0-1.14.0/tests/run-tofu.c:155: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, PGM ": gpgme_get_ctx_flag failed "
data/gpgme1.0-1.14.0/tests/run-tofu.c:162: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, PGM ": gpgme_get_ctx_flag failed (wrong false)\n");
data/gpgme1.0-1.14.0/tests/run-tofu.c:172: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.
          fprintf (stderr, PGM ": gpgme_get_ctx_flag fauled (wrong true)\n");
data/gpgme1.0-1.14.0/tests/run-tofu.c:180: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, PGM ": error getting key '%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-tofu.c:192: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.
          fprintf (stderr, PGM ": gpgme_op_tofu_polciy failed: %s\n",
data/gpgme1.0-1.14.0/tests/run-verify.c:343: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.
          fprintf (stderr, PGM ": can't open `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-verify.c:353: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.
              fprintf (stderr, PGM ": can't open `%s': %s\n",
data/gpgme1.0-1.14.0/tests/run-verify.c:375: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.
              fprintf (stderr, PGM ": gpgme_get_ctx_flag failed for '%s'\n",
data/gpgme1.0-1.14.0/tests/run-verify.c:387: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.
              fprintf (stderr, PGM ": gpgme_get_ctx_flag failed for '%s'\n",
data/gpgme1.0-1.14.0/tests/run-verify.c:402: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.
          fprintf (stderr, PGM ": error allocating data object: %s\n",
data/gpgme1.0-1.14.0/tests/run-verify.c:411: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.
              fprintf (stderr, PGM ": error allocating data object: %s\n",
data/gpgme1.0-1.14.0/tests/run-verify.c:423: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.
          fprintf (stderr, PGM ": verify failed: %s\n", gpgme_strerror (err));
data/gpgme1.0-1.14.0/tests/t-engine-info.c:87: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.
              fprintf (stderr, PGM ": not enough arguments for option\n");
data/gpgme1.0-1.14.0/tests/t-engine-info.c:92: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.
              fprintf (stderr, PGM ": gpgme_set_global_flag failed\n");
data/gpgme1.0-1.14.0/tests/t-engine-info.c:100: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.
          fprintf (stderr, PGM ": unknown option '%s'\n", *argv);
data/gpgme1.0-1.14.0/tests/t-engine-info.c:107: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, PGM ": unexpected arguments\n");
data/gpgme1.0-1.14.0/lang/cpp/src/editinteractor.cpp:181:29:  [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 *debug_env = getenv("GPGMEPP_INTERACTOR_DEBUG");
data/gpgme1.0-1.14.0/src/get-env.c:96:15:  [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.
  env_value = getenv (name);
data/gpgme1.0-1.14.0/src/gpgme-json.c:3896:23:  [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 ("GPGME_JSON_DEBUG");
data/gpgme1.0-1.14.0/src/gpgme-json.c:3914: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.
      const char *home = getenv ("HOME");
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:243: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.
          handle = LoadLibrary ("user32.dll");
data/gpgme1.0-1.14.0/src/posix-util.c:122:15:  [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.
  orig_path = getenv ("PATH");
data/gpgme1.0-1.14.0/src/w32-util.c:108: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/gpgme1.0-1.14.0/tests/gpg/t-decrypt-verify.c:116: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.
  agent_info = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-decrypt.c:57: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.
  agent_info = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-edit.c:133: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.
  agent_info = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-sign.c:107: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.
  agent_info = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-sym.c:56: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.
  p = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-file-name.c:55: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.
  agent_info = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-sig-notation.c:162: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.
  agent_info = getenv ("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-sign.c:102: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.
  agent_info = getenv ("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-signers.c:114: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.
  agent_info = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:134: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 *srcdir = getenv ("srcdir");
data/gpgme1.0-1.14.0/tests/gpg/t-thread1.c:100: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.
  agent_info = getenv("GPG_AGENT_INFO");
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:94: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 *srcdir = getenv ("srcdir");
data/gpgme1.0-1.14.0/tests/json/t-json.c:384:28:  [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 *top_srcdir = getenv ("top_srcdir");
data/gpgme1.0-1.14.0/tests/json/t-json.c:464:28:  [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 *gpgme_json = getenv ("gpgme_json");
data/gpgme1.0-1.14.0/tests/run-support.h:104: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 *srcdir = getenv ("srcdir");
data/gpgme1.0-1.14.0/tests/run-threaded.c:661: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 (1 /* Somewhat deterministic results */);
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:248: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).
      switch (atoi (opt_date+5))
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:266: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).
                atoi (opt_date+8), &monthoff, month, atoi (opt_date));
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:266:54:  [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 (opt_date+8), &monthoff, month, atoi (opt_date));
data/gpgme1.0-1.14.0/lang/cpp/src/context.cpp: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 buffer[ 1024 ];
data/gpgme1.0-1.14.0/lang/cpp/src/data.cpp:268: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[4096];
data/gpgme1.0-1.14.0/lang/cpp/src/editinteractor.cpp:190: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).
        debug = std::fopen(debug_env, "a+");
data/gpgme1.0-1.14.0/lang/cpp/src/exception.cpp:53: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 error_string[128];
data/gpgme1.0-1.14.0/lang/cpp/src/key.cpp:948: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/gpgme1.0-1.14.0/lang/cpp/tests/run-verify.cpp:116: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).
            repeats = atoi (*argv);
data/gpgme1.0-1.14.0/lang/cpp/tests/run-verify.cpp:136: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).
        std::FILE *fp_sig = fopen (argv[0], "rb");
data/gpgme1.0-1.14.0/lang/cpp/tests/run-verify.cpp:145: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).
            fp_msg = fopen (argv[1], "rb");
data/gpgme1.0-1.14.0/lang/python/helpers.c:846: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, PyBytes_AsString(retval), PyBytes_Size(retval));
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.cpp:85: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, mArray.data() + mOff, amount);
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.cpp:110: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(mArray.data() + mOff, buffer, bufSize);
data/gpgme1.0-1.14.0/lang/qt/src/dn.cpp:164: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(p, string, n);
data/gpgme1.0-1.14.0/lang/qt/src/dn.cpp:169: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.
        if (!strcasecmp((char *)p, oidmap[i].oid)) {
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedecryptjob.cpp:100: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).
    if (!buffer->open(QIODevice::ReadOnly)) {
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmedecryptverifyjob.cpp:108: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).
    if (!buffer->open(QIODevice::ReadOnly)) {
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeencryptjob.cpp:118: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).
    if (!buffer->open(QIODevice::ReadOnly)) {
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesecretkeyexportjob.cpp: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(mKeyData.data() + oldlen, line.toLatin1(), line.length());
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignencryptjob.cpp:123: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).
    if (!buffer->open(QIODevice::ReadOnly)) {
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmesignjob.cpp:129: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).
    if (!buffer->open(QIODevice::ReadOnly)) {
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmeverifyopaquejob.cpp:99: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).
    if (!buffer->open(QIODevice::ReadOnly)) {
data/gpgme1.0-1.14.0/lang/qt/src/threadedjobmixin.cpp:61:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    int n = MultiByteToWideChar(src_encoding, 0, data, -1, NULL, 0);
data/gpgme1.0-1.14.0/lang/qt/src/threadedjobmixin.cpp:68:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    n = MultiByteToWideChar(src_encoding, 0, data, -1, result, n);
data/gpgme1.0-1.14.0/lang/qt/src/threadedjobmixin.cpp:184:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        m_patterns = new const char *[ m_list.size() + 1 ];
data/gpgme1.0-1.14.0/lang/qt/tests/t-encrypt.cpp:151: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).
        inptr->open(QIODevice::ReadOnly);
data/gpgme1.0-1.14.0/lang/qt/tests/t-encrypt.cpp:153: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).
        outptr->open(QIODevice::WriteOnly);
data/gpgme1.0-1.14.0/lang/qt/tests/t-encrypt.cpp:295:27:  [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).
        QVERIFY(agentConf.open(QIODevice::WriteOnly));
data/gpgme1.0-1.14.0/lang/qt/tests/t-encrypt.cpp:324:27:  [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).
        QVERIFY(agentConf.open(QIODevice::WriteOnly));
data/gpgme1.0-1.14.0/lang/qt/tests/t-keylocate.cpp:67: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).
        QVERIFY(conf.open(QIODevice::WriteOnly));
data/gpgme1.0-1.14.0/lang/qt/tests/t-remarks.cpp:505: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).
        QVERIFY(conf.open(QIODevice::WriteOnly));
data/gpgme1.0-1.14.0/lang/qt/tests/t-tofuinfo.cpp:517: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).
        QVERIFY(conf.open(QIODevice::WriteOnly));
data/gpgme1.0-1.14.0/lang/qt/tests/t-tofuinfo.cpp:521:27:  [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).
        QVERIFY(agentConf.open(QIODevice::WriteOnly));
data/gpgme1.0-1.14.0/lang/qt/tests/t-various.cpp:108: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/gpgme1.0-1.14.0/lang/qt/tests/t-wkspublish.cpp:273:27:  [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).
        QVERIFY(agentConf.open(QIODevice::WriteOnly));
data/gpgme1.0-1.14.0/src/argparse.c:275: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/gpgme1.0-1.14.0/src/argparse.c:458: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/gpgme1.0-1.14.0/src/argparse.c:567: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 keyword[100];
data/gpgme1.0-1.14.0/src/argparse.c:815: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(buffer, keyword, i);
data/gpgme1.0-1.14.0/src/argparse.c:1241: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 tmp[2];
data/gpgme1.0-1.14.0/src/b64dec.c:33: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.
static unsigned char const asctobin[128] =
data/gpgme1.0-1.14.0/src/cJSON.c:227: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 (str, "%d", item->valueint);
data/gpgme1.0-1.14.0/src/cJSON.c:235:13:  [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 (str, "nan");
data/gpgme1.0-1.14.0/src/cJSON.c:239: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 (str, "%.0f", d);
data/gpgme1.0-1.14.0/src/cJSON.c:241: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 (str, "%e", d);
data/gpgme1.0-1.14.0/src/cJSON.c:243: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 (str, "%f", d);
data/gpgme1.0-1.14.0/src/cJSON.c:295: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.
static const unsigned char firstByteMark[7] =
data/gpgme1.0-1.14.0/src/cJSON.c:480: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 (ptr2, "u%04x", token);
data/gpgme1.0-1.14.0/src/cJSON.c:739: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 (out, "[]");
data/gpgme1.0-1.14.0/src/cJSON.c:1033: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 (ref, item, sizeof (cJSON));
data/gpgme1.0-1.14.0/src/conversion.c:49: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[16];
data/gpgme1.0-1.14.0/src/data-compat.c:58: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).
    stream = fopen (fname, "rb");
data/gpgme1.0-1.14.0/src/data-mem.c:51: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, src + dh->data.mem.offset, amt);
data/gpgme1.0-1.14.0/src/data-mem.c:73: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_buffer, dh->data.mem.orig_buffer, dh->data.mem.length);
data/gpgme1.0-1.14.0/src/data-mem.c:104: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 (dh->data.mem.buffer + dh->data.mem.offset, buffer, size);
data/gpgme1.0-1.14.0/src/data-mem.c:210: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 (bufcpy, buffer, size);
data/gpgme1.0-1.14.0/src/data-mem.c:270: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 (str, dh->data.mem.orig_buffer, len);
data/gpgme1.0-1.14.0/src/data.c:573: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[BUFFER_SIZE];
data/gpgme1.0-1.14.0/src/data.h:88: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 pending[BUFFER_SIZE];
data/gpgme1.0-1.14.0/src/debug.c:157: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).
	  debug_level = atoi (e);
data/gpgme1.0-1.14.0/src/debug.c:178: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 (p, s1, s2 - s1);
data/gpgme1.0-1.14.0/src/debug.c:181: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 (p,"a");
data/gpgme1.0-1.14.0/src/debug.c:410: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 str[51];
data/gpgme1.0-1.14.0/src/debug.c:442: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 str[48+4+1];
data/gpgme1.0-1.14.0/src/decrypt.c:167: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 *field[3];
data/gpgme1.0-1.14.0/src/decrypt.c:181: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).
  err = nfields < 2 ? 0 : atoi (field[1]);
data/gpgme1.0-1.14.0/src/decrypt.c:303: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 *field[3];
data/gpgme1.0-1.14.0/src/decrypt.c:320: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).
  mdc     = atoi (field[0]);
data/gpgme1.0-1.14.0/src/decrypt.c:321: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).
  algostr = _gpgme_cipher_algo_name (atoi (field[1]), protocol);
data/gpgme1.0-1.14.0/src/decrypt.c:322: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).
  aead_algo    = nfields < 3? 0 : atoi (field[2]);
data/gpgme1.0-1.14.0/src/delete.c:95: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).
      err = atoi (which);
data/gpgme1.0-1.14.0/src/dirinfo.c:188: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 linebuf[1024] = {0};
data/gpgme1.0-1.14.0/src/dirinfo.c:190: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 * argv[3];
data/gpgme1.0-1.14.0/src/engine-assuan.c:100: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_origin[10];  /* Copy from the CTX.  */
data/gpgme1.0-1.14.0/src/engine-assuan.c:292: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 dft_ttyname[64];
data/gpgme1.0-1.14.0/src/engine-assuan.c:379: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 (llass->request_origin, "xxx"); /* Too long  - force error */
data/gpgme1.0-1.14.0/src/engine-assuan.c:615: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).
	    err = atoi (line+4);
data/gpgme1.0-1.14.0/src/engine-g13.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 server_fd_str[15]; /* Same as SERVER_FD but as a string.  We
data/gpgme1.0-1.14.0/src/engine-g13.c:222: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[5];
data/gpgme1.0-1.14.0/src/engine-g13.c:224: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 dft_ttyname[64];
data/gpgme1.0-1.14.0/src/engine-g13.c:449: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).
	err = atoi (&line[4]);
data/gpgme1.0-1.14.0/src/engine-g13.c:498: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).
	    err = atoi (&line[4]);
data/gpgme1.0-1.14.0/src/engine-gpg.c:62: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 arg[1];     /* Used if data above is not used.  */
data/gpgme1.0-1.14.0/src/engine-gpg.c:143: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_origin[10];
data/gpgme1.0-1.14.0/src/engine-gpg.c:245: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->arg, prefix, prefixlen);
data/gpgme1.0-1.14.0/src/engine-gpg.c:246: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->arg + prefixlen, arg, arglen);
data/gpgme1.0-1.14.0/src/engine-gpg.c:478: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 dft_ttyname[64];
data/gpgme1.0-1.14.0/src/engine-gpg.c:554: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/gpgme1.0-1.14.0/src/engine-gpg.c:662: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 (gpg->request_origin, "xxx"); /* Too long  - force error */
data/gpgme1.0-1.14.0/src/engine-gpg.c:1288: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 emptystring[1] = {0};
data/gpgme1.0-1.14.0/src/engine-gpg.c:1666: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[50];  /* Large enough for even 2^128 in base-10.  */
data/gpgme1.0-1.14.0/src/engine-gpg.c:1903: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 (argp, notation->name, notation->name_len);
data/gpgme1.0-1.14.0/src/engine-gpg.c:2036: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 (tmpstr, userid, useridlen);
data/gpgme1.0-1.14.0/src/engine-gpg.c:2443: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 tmpbuf[5*4+1];
data/gpgme1.0-1.14.0/src/engine-gpg.c:2459: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 tmpbuf[8+20];
data/gpgme1.0-1.14.0/src/engine-gpg.c:2668: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[MYBUFLEN+1];  /* Buffer with one byte extra space.  */
data/gpgme1.0-1.14.0/src/engine-gpg.c:2842: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 *field[NR_FIELDS];
data/gpgme1.0-1.14.0/src/engine-gpg.c:3178: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 tmpbuf[8+20];
data/gpgme1.0-1.14.0/src/engine-gpg.c:3390: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[MYBUFLEN];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:230: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 *argv[6];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:351: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 *field[NR_FIELDS];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:478: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 *field[NR_FIELDS];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:711: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[BUFLEN];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:713: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 *argv[7];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:843: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/gpgme1.0-1.14.0/src/engine-gpgconf.c:943: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[16];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:1049: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 *field[9];
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:1133: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 *argv[7];
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:62: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 server_fd_str[15]; /* Same as SERVER_FD but as a string.  We
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:110: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_origin[10];
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:271: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[7];
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:278: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 dft_ttyname[64];
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:598: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 (gpgsm->request_origin, "xxx"); /* Too long  - force error */
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:695:34:  [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).
          err = cb_err? cb_err : atoi (&line[4]);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:776: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[COMMANDLINELEN];
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:912: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).
	    err = atoi (&line[4]);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:927: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 emptystring[1] = {0};
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1303: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 (line, "DELKEYS ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1358: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 (line, "RECIPIENT ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1522: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 (cmd, "EXPORT ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1525: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 (cmd, "--secret ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1527:9:  [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 (cmd, "--raw ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1529:9:  [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 (cmd, "--pkcs12 ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1585: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 (line, "EXPORT ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1588: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 (line, "--secret ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1590:9:  [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 (line, "--raw ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1592:9:  [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 (line, "--pkcs12 ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1869: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, "LISTSECRETKEYS ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1874: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, "LISTKEYS ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1961: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, "LISTSECRETKEYS ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1966: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, "LISTKEYS ");
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:2059: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 buf[100];
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:2155: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[BUFFER_SIZE];
data/gpgme1.0-1.14.0/src/engine-uiserver.c:64: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 server_fd_str[15]; /* Same as SERVER_FD but as a string.  We
data/gpgme1.0-1.14.0/src/engine-uiserver.c:250: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 dft_ttyname[64];
data/gpgme1.0-1.14.0/src/engine-uiserver.c:502: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).
	err = atoi (&line[4]);
data/gpgme1.0-1.14.0/src/engine-uiserver.c:547: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[COMMANDLINELEN];
data/gpgme1.0-1.14.0/src/engine-uiserver.c:671: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).
	    err = atoi (&line[4]);
data/gpgme1.0-1.14.0/src/engine-uiserver.c:686: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 emptystring[1] = {0};
data/gpgme1.0-1.14.0/src/engine-uiserver.c:1031: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 (line, "RECIPIENT ");
data/gpgme1.0-1.14.0/src/engine-uiserver.c:1251: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 buf[100];
data/gpgme1.0-1.14.0/src/export.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).
  *r_err = atoi (which);
data/gpgme1.0-1.14.0/src/genkey.c:118: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).
  *r_err = atoi (which);
data/gpgme1.0-1.14.0/src/gpgme-json.c:3899: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).
      if (s && atoi (s) > 0)
data/gpgme1.0-1.14.0/src/gpgme-tool.c:140: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/gpgme1.0-1.14.0/src/gpgme-tool.c:312: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 *tag[MAX_TAGS];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:331: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 spaces[state->indent + 1];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:499: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:500: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 msg[1024];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:515: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:516: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 msg[80];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:531: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:532: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 msg[80];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:570: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:584: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:614: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:632: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:667: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 code[20];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1076: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[100];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1267: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/gpgme1.0-1.14.0/src/gpgme-tool.c:1444: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 *modes[NR_KEYLIST_MODES + 1];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1483: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[100];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1486: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, "default");
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1903: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).
      *fs = fopen (fn, out ? "wb" : "rb");
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2166: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).
	include_certs = atoi (line);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2629: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 *fprs[2] = { line, NULL };
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2674: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 *pattern[2];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2772: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[512];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2846: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 *pattern[MAX_CMD_KEYLIST_PATTERN+1];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3071: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[100];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3073: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).
  err = atoi (line);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3084: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[100];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3086: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).
  algo = atoi (line);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3096: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[100];
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3098: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).
  algo = atoi (line);
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:280: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[BUFFER_MAX + 1];
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:288: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 (trans_file, O_RDONLY);
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:412: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[25];
data/gpgme1.0-1.14.0/src/gpgme.c:509: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).
  abool = (value && *value)? !!atoi (value) : 0;
data/gpgme1.0-1.14.0/src/gpgme.c:1236: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[40];
data/gpgme1.0-1.14.0/src/key.c:228: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 (dst, src, src_len + 1);
data/gpgme1.0-1.14.0/src/key.c:491: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 const char *const strings[8] =
data/gpgme1.0-1.14.0/src/keylist.c:383: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).
  switch (atoi (string))
data/gpgme1.0-1.14.0/src/keylist.c:453: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 (nfield < 8 || atoi(field[1]) != 1)
data/gpgme1.0-1.14.0/src/keylist.c:559: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 *field[NR_FIELDS];
data/gpgme1.0-1.14.0/src/keylist.c:667: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 i = atoi (field[2]);
data/gpgme1.0-1.14.0/src/keylist.c:676: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 i = atoi (field[3]);
data/gpgme1.0-1.14.0/src/keylist.c:765: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 i = atoi (field[2]);
data/gpgme1.0-1.14.0/src/keylist.c:774: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 i = atoi (field[3]);
data/gpgme1.0-1.14.0/src/keylist.c:953: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 i = atoi (field[3]);
data/gpgme1.0-1.14.0/src/keylist.c:997: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 type = atoi (field[1]);
data/gpgme1.0-1.14.0/src/keylist.c:1000: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 flags = atoi (field[2]);
data/gpgme1.0-1.14.0/src/keylist.c:1003: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).
	  int len = atoi (field[3]);
data/gpgme1.0-1.14.0/src/keysign.c:80: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).
  *r_err = atoi (which);
data/gpgme1.0-1.14.0/src/op-support.c:342: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_fpr, args, n);
data/gpgme1.0-1.14.0/src/op-support.c:432: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).
  return atoi (which);
data/gpgme1.0-1.14.0/src/passwd.c:65: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).
  err = atoi (which);
data/gpgme1.0-1.14.0/src/posix-io.c:87: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 dir_buf[DIR_BUF_SIZE];
data/gpgme1.0-1.14.0/src/posix-io.c:93: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).
  dir_fd = open ("/proc/self/fd", O_RDONLY | O_DIRECTORY);
data/gpgme1.0-1.14.0/src/posix-io.c:369: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 dir_buf[DIR_BUF_SIZE];
data/gpgme1.0-1.14.0/src/posix-io.c:375: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).
    dir_fd = open ("/proc/self/fd", O_RDONLY | O_DIRECTORY);
data/gpgme1.0-1.14.0/src/posix-io.c:633:13:  [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_RDWR);
data/gpgme1.0-1.14.0/src/progress.c:73: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).
		  current = atoi (p);
data/gpgme1.0-1.14.0/src/progress.c:78: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).
		      total = atoi (p);
data/gpgme1.0-1.14.0/src/setenv.c:163: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 new_value[namelen + 1 + vallen];
data/gpgme1.0-1.14.0/src/setenv.c:171: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 (new_value, name, namelen);
data/gpgme1.0-1.14.0/src/setenv.c:173: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 (&new_value[namelen + 1], value, vallen);
data/gpgme1.0-1.14.0/src/setenv.c:189: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 (new_environ[size], new_value, namelen + 1 + vallen);
data/gpgme1.0-1.14.0/src/setenv.c:191: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 (new_environ[size], name, namelen);
data/gpgme1.0-1.14.0/src/setenv.c:193: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 (&new_environ[size][namelen + 1], value, vallen);
data/gpgme1.0-1.14.0/src/setenv.c:203: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 ((char *) new_environ, (char *) __environ,
data/gpgme1.0-1.14.0/src/setenv.c:221: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 new_value[namelen + 1 + vallen];
data/gpgme1.0-1.14.0/src/setenv.c:229: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 (new_value, name, namelen);
data/gpgme1.0-1.14.0/src/setenv.c:231: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 (&new_value[namelen + 1], value, vallen);
data/gpgme1.0-1.14.0/src/setenv.c:246: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 (np, new_value, namelen + 1 + vallen);
data/gpgme1.0-1.14.0/src/setenv.c:248: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 (np, name, namelen);
data/gpgme1.0-1.14.0/src/setenv.c:250: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 (&np[namelen + 1], value, vallen);
data/gpgme1.0-1.14.0/src/sig-notation.c:98: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 (notation->name, name, name_len);
data/gpgme1.0-1.14.0/src/sig-notation.c:114: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 (notation->value, value, value_len);
data/gpgme1.0-1.14.0/src/sig-notation.c:192: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.
#define RFC2440_GET_WORD(chr) ((((int)((unsigned char *)(chr))[0]) << 8) \
data/gpgme1.0-1.14.0/src/sig-notation.c:193:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			       + ((int)((unsigned char *)(chr))[1]))
data/gpgme1.0-1.14.0/src/spawn.c:41: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 *tmp_argv[2];
data/gpgme1.0-1.14.0/src/tofupolicy.c:69: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).
  *r_err = atoi (which);
data/gpgme1.0-1.14.0/src/trustlist.c:98: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).
	  item->level = atoi (p);
data/gpgme1.0-1.14.0/src/ttyname_r.c:50: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 largebuf[512];
data/gpgme1.0-1.14.0/src/ttyname_r.c:64: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, largebuf, namelen);
data/gpgme1.0-1.14.0/src/util.h: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 radbuf[4];
data/gpgme1.0-1.14.0/src/verify.c:552: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 *field[2];
data/gpgme1.0-1.14.0/src/verify.c:570: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).
      if (atoi (field[0]))
data/gpgme1.0-1.14.0/src/verify.c:575: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).
      if (atoi (field[1]))
data/gpgme1.0-1.14.0/src/verify.c:659: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).
      sig->validity_reason = atoi (args);
data/gpgme1.0-1.14.0/src/verify.c:771: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 *field[8];
data/gpgme1.0-1.14.0/src/verify.c:908: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).
  err = atoi (which);
data/gpgme1.0-1.14.0/src/version.c:304: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[LINELENGTH] = "";
data/gpgme1.0-1.14.0/src/version.c:364: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 (mark, s, len);
data/gpgme1.0-1.14.0/src/w32-glib-io.c:642: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 (&args[3], &argv[1], i * sizeof (*args));
data/gpgme1.0-1.14.0/src/w32-glib-io.c:731: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[BUFFER_MAX + 1];
data/gpgme1.0-1.14.0/src/w32-glib-io.c:737: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, "~1 \n");
data/gpgme1.0-1.14.0/src/w32-io.c:92: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[READBUF_SIZE];
data/gpgme1.0-1.14.0/src/w32-io.c:114: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[WRITEBUF_SIZE];
data/gpgme1.0-1.14.0/src/w32-io.c:722: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, ctx->buffer + ctx->readpos, nread);
data/gpgme1.0-1.14.0/src/w32-io.c:1063: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->buffer, buffer, count);
data/gpgme1.0-1.14.0/src/w32-io.c:1423: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 (&args[3], &argv[1], i * sizeof (*args));
data/gpgme1.0-1.14.0/src/w32-io.c:1555: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[BUFFER_MAX + 1];
data/gpgme1.0-1.14.0/src/w32-util.c:182:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  n = MultiByteToWideChar (CP_UTF8, 0, string, -1, NULL, 0);
data/gpgme1.0-1.14.0/src/w32-util.c:190:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  n = MultiByteToWideChar (CP_UTF8, 0, string, -1, result, n);
data/gpgme1.0-1.14.0/src/w32-util.c:454:3:  [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 path[MAX_PATH];
data/gpgme1.0-1.14.0/src/w32-util.c:689: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).
  *value = atoi (tmp);
data/gpgme1.0-1.14.0/src/w32-util.c:775: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 (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
data/gpgme1.0-1.14.0/src/w32-util.c:794: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 tmp[MAX_PATH + 2];
data/gpgme1.0-1.14.0/src/w32-util.c:803: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 (tmp,"c:\\windows\\temp");
data/gpgme1.0-1.14.0/src/wait-global.c:284: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 (&fdt.fds[i], li->ctx->fdt.fds,
data/gpgme1.0-1.14.0/tests/gpg/t-edit.c: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 buf[100];
data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-large.c:99: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).
    nbytes = atoi (argv[1]);
data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c:42: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[80];
data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c:345: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.
    const char *values[2] = { "hkp://foo.bar", "hkps://bar.foo" };
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:92: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[BUF_SIZE + 1];
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:52: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[BUF_SIZE + 1];
data/gpgme1.0-1.14.0/tests/json/t-json.c:379: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[3];
data/gpgme1.0-1.14.0/tests/run-decrypt.c:202: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).
  fp_in = fopen (argv[0], "rb");
data/gpgme1.0-1.14.0/tests/run-encrypt.c:127: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 *keyargs[10];
data/gpgme1.0-1.14.0/tests/run-encrypt.c:295: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 numbuf[50];
data/gpgme1.0-1.14.0/tests/run-keylist.c:74: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[25+5];
data/gpgme1.0-1.14.0/tests/run-support.h:62: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[BUF_SIZE + 1];
data/gpgme1.0-1.14.0/tests/run-swdb.c:46: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[25+5];
data/gpgme1.0-1.14.0/tests/run-threaded.c:301:24:  [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 *f_stream = fopen (fname, "rb");
data/gpgme1.0-1.14.0/tests/run-threaded.c:312: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).
      int fd = open (fname, O_RDONLY);
data/gpgme1.0-1.14.0/tests/run-threaded.c:561: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 *f = fopen (fname, "rb");
data/gpgme1.0-1.14.0/tests/run-threaded.c:704: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).
          threads = atoi (*argv);
data/gpgme1.0-1.14.0/tests/run-threaded.c:718: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).
          data_type = atoi (*argv);
data/gpgme1.0-1.14.0/tests/run-threaded.c:732: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).
          repeats = atoi (*argv);
data/gpgme1.0-1.14.0/tests/run-verify.c:46: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[25+5];
data/gpgme1.0-1.14.0/tests/run-verify.c:301: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).
            repeats = atoi (*argv);
data/gpgme1.0-1.14.0/tests/run-verify.c:339: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_sig = fopen (argv[0], "rb");
data/gpgme1.0-1.14.0/tests/run-verify.c:349: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).
          fp_msg = fopen (argv[1], "rb");
data/gpgme1.0-1.14.0/tests/t-data.c:88: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, text, amount);
data/gpgme1.0-1.14.0/tests/t-data.c:97: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[1024];
data/gpgme1.0-1.14.0/tests/t-data.c:121: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[1024];
data/gpgme1.0-1.14.0/tests/t-data.c:144: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[1024];
data/gpgme1.0-1.14.0/tests/t-data.c:246: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).
	    FILE *fp = fopen (longer_text_filename, "rb");
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:67: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).
  p = xmalloc (strlen (string)+1);
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:214: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).
      if (*opt_date == '2' && strlen (opt_date) >= 10
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:263: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 (opt_date) + strlen (month) + 2 + 1;
data/gpgme1.0-1.14.0/doc/mkdefsinc.c:263: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).
      n = strlen (opt_date) + strlen (month) + 2 + 1;
data/gpgme1.0-1.14.0/lang/cpp/src/callbacks.cpp:84: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).
            size_t passphrase_length = std::strlen(passphrase);
data/gpgme1.0-1.14.0/lang/cpp/src/callbacks.cpp:98: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).
        wipememory(passphrase, std::strlen(passphrase));
data/gpgme1.0-1.14.0/lang/cpp/src/callbacks.cpp:113:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return (gpgme_ssize_t)provider->read(buf, buflen);
data/gpgme1.0-1.14.0/lang/cpp/src/data.cpp:220:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t GpgME::Data::read(void *buffer, size_t length)
data/gpgme1.0-1.14.0/lang/cpp/src/data.cpp:271:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((nread = read (buf, 4096)) > 0)
data/gpgme1.0-1.14.0/lang/cpp/src/data.h:109:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read(void *buffer, size_t length);
data/gpgme1.0-1.14.0/lang/cpp/src/editinteractor.cpp:121: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).
                        const ssize_t len = std::strlen(result);
data/gpgme1.0-1.14.0/lang/cpp/src/interfaces/dataprovider.h:47:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual ssize_t read(void   *buffer, size_t bufSize) = 0;
data/gpgme1.0-1.14.0/lang/cpp/src/key.cpp:276: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).
    const int len = strlen(key->subkeys->keyid);
data/gpgme1.0-1.14.0/lang/python/helpers.c:372: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).
    PyTuple_SetItem(args, 0, PyUnicode_DecodeUTF8(uid_hint, strlen (uid_hint),
data/gpgme1.0-1.14.0/lang/python/helpers.c:387: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 (passphrase_info),
data/gpgme1.0-1.14.0/lang/python/helpers.c:528: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).
  PyTuple_SetItem(args, 0, PyUnicode_DecodeUTF8(what, strlen (what),
data/gpgme1.0-1.14.0/lang/python/helpers.c:621:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    PyTuple_SetItem(pyargs, 0, PyUnicode_DecodeUTF8(keyword, strlen (keyword),
data/gpgme1.0-1.14.0/lang/python/helpers.c:628: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).
  PyTuple_SetItem(pyargs, 1, PyUnicode_DecodeUTF8(args, strlen (args),
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.cpp:68:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t QByteArrayDataProvider::read(void *buffer, size_t bufSize)
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.cpp:202:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return io->read(buffer, maxSize);
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.cpp:205:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ssize_t QIODeviceDataProvider::read(void *buffer, size_t bufSize)
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.cpp:219:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                           : mIO->read(static_cast<char *>(buffer), bufSize);
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.h:58:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read(void *buffer, size_t bufSize) override;
data/gpgme1.0-1.14.0/lang/qt/src/dataprovider.h:83:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read(void *buffer, size_t bufSize) override;
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmerefreshkeysjob.cpp:104: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("gpgsm") + 1 + strlen("-k") + 1 +
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmerefreshkeysjob.cpp:104: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).
        strlen("gpgsm") + 1 + strlen("-k") + 1 +
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmerefreshkeysjob.cpp:105: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("--with-validation") + 1 + strlen("--force-crl-refresh") + 1 +
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmerefreshkeysjob.cpp:105: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).
        strlen("--with-validation") + 1 + strlen("--force-crl-refresh") + 1 +
data/gpgme1.0-1.14.0/lang/qt/src/qgpgmerefreshkeysjob.cpp:106: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("--enable-crl-checks") + 1;
data/gpgme1.0-1.14.0/lang/qt/tests/t-various.cpp:109:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        data.read(buf, 20);
data/gpgme1.0-1.14.0/src/argparse.c:318: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).
          count += strlen (s);
data/gpgme1.0-1.14.0/src/argparse.c:465:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc (fp);
data/gpgme1.0-1.14.0/src/argparse.c:581:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc (fp);
data/gpgme1.0-1.14.0/src/argparse.c:697: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).
                          if (*p && p[strlen(p)-1] == '\"' )
data/gpgme1.0-1.14.0/src/argparse.c:698: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).
                            p[strlen(p)-1] = 0;
data/gpgme1.0-1.14.0/src/argparse.c:875: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/gpgme1.0-1.14.0/src/argparse.c:1205: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).
  size_t n = strlen (o->long_opt);
data/gpgme1.0-1.14.0/src/argparse.c:1250: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 (*s && s[strlen(s)] != '\n')
data/gpgme1.0-1.14.0/src/argparse.c:1440: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 (*p && p[strlen(p)] != '\n')
data/gpgme1.0-1.14.0/src/argparse.c:1451: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).
          if (*p && p[strlen(p)] != '\n')
data/gpgme1.0-1.14.0/src/ath.c:81:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read (fd, buf, nbytes);
data/gpgme1.0-1.14.0/src/cJSON.c:131: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).
          wipememory (c->valuestring, strlen (c->valuestring));
data/gpgme1.0-1.14.0/src/cJSON.c:136: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).
          wipememory (c->string, strlen (c->string));
data/gpgme1.0-1.14.0/src/cJSON.c:754: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 (ret) + 2 + (fmt ? 1 : 0);
data/gpgme1.0-1.14.0/src/cJSON.c:784: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).
      ptr += strlen (entries[i]);
data/gpgme1.0-1.14.0/src/cJSON.c:925: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 (ret) + strlen (str) + 2 + (fmt ? 2 + depth : 0);
data/gpgme1.0-1.14.0/src/cJSON.c:925: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).
	len += strlen (ret) + strlen (str) + 2 + (fmt ? 2 + depth : 0);
data/gpgme1.0-1.14.0/src/cJSON.c:964: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).
      ptr += strlen (names[i]);
data/gpgme1.0-1.14.0/src/cJSON.c:969: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).
      ptr += strlen (entries[i]);
data/gpgme1.0-1.14.0/src/conversion.c:56: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/gpgme1.0-1.14.0/src/conversion.c:59: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/gpgme1.0-1.14.0/src/conversion.c:143: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 (len < strlen (src) + 1)
data/gpgme1.0-1.14.0/src/conversion.c:152: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).
      dest = malloc (strlen (src) + 1);
data/gpgme1.0-1.14.0/src/conversion.c:248: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 (len < strlen (src) + 1)
data/gpgme1.0-1.14.0/src/conversion.c:257: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).
      dest = malloc (strlen (src) + 1);
data/gpgme1.0-1.14.0/src/conversion.c:490: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 (timestamp) >= 15 && timestamp[8] == 'T')
data/gpgme1.0-1.14.0/src/data-fd.c:39:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read (dh->data.fd, buffer, size);
data/gpgme1.0-1.14.0/src/data-identify.c:292: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).
  if (_gpgme_b64dec_proc (&state, string, strlen (string), &nbytes))
data/gpgme1.0-1.14.0/src/data-user.c:37:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!dh->data.user.cbs->read)
data/gpgme1.0-1.14.0/src/data-user.c:43:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return (*dh->data.user.cbs->read) (dh->data.user.handle, buffer, size);
data/gpgme1.0-1.14.0/src/data.c:363:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (!dh->cbs->read)
data/gpgme1.0-1.14.0/src/data.c:375:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        res = (*dh->cbs->read) (dh, buffer, size);
data/gpgme1.0-1.14.0/src/data.h:66:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  gpgme_data_read_cb read;
data/gpgme1.0-1.14.0/src/debug.c:174: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).
		    s2 = s1 + strlen (s1);
data/gpgme1.0-1.14.0/src/debug.c:310: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).
  else if (userinfo && *userinfo && userinfo[strlen (userinfo) - 1] != '\n')
data/gpgme1.0-1.14.0/src/debug.c:383: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).
           (*string && string[strlen (string)-1] != '\n')? "\n":"");
data/gpgme1.0-1.14.0/src/dirinfo.c:125: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 (_gpgme_decode_percent_string (value, &value, strlen (value)+1, 0))
data/gpgme1.0-1.14.0/src/dirinfo.c:164: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).
              buffer = malloc (n + strlen (name) + 1);
data/gpgme1.0-1.14.0/src/dirinfo.c:167:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy (buffer, dirinfo.agent_socket, n);
data/gpgme1.0-1.14.0/src/dirinfo.c:430: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).
  for (s = name + strlen (name) -1; s >= name; s--)
data/gpgme1.0-1.14.0/src/engine-assuan.c:378: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 (ctx->request_origin) + 1 > sizeof llass->request_origin)
data/gpgme1.0-1.14.0/src/engine-gpg.c:231: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/gpgme1.0-1.14.0/src/engine-gpg.c:273: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).
  return _add_arg (gpg, NULL, arg, strlen (arg), front, NULL);
data/gpgme1.0-1.14.0/src/engine-gpg.c:279: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).
  return _add_arg (gpg, NULL, arg, strlen (arg), 0, locp);
data/gpgme1.0-1.14.0/src/engine-gpg.c:285: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).
  return _add_arg (gpg, NULL, arg, strlen (arg), 0, NULL);
data/gpgme1.0-1.14.0/src/engine-gpg.c:291: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).
  return _add_arg (gpg, prefix, arg, strlen (arg), 0, NULL);
data/gpgme1.0-1.14.0/src/engine-gpg.c:661: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 (ctx->request_origin) + 1 > sizeof gpg->request_origin)
data/gpgme1.0-1.14.0/src/engine-gpg.c:677: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 (ctx->trust_model && strlen (ctx->trust_model))
data/gpgme1.0-1.14.0/src/engine-gpg.c:1725: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 (override_session_key));
data/gpgme1.0-1.14.0/src/engine-gpg.c:1729: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).
                                         strlen (override_session_key), 1);
data/gpgme1.0-1.14.0/src/engine-gpg.c:2111: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 (string);
data/gpgme1.0-1.14.0/src/engine-gpg.c:2889: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 (field[1]);
data/gpgme1.0-1.14.0/src/engine-gpg.c:2930: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).
	char *uid = malloc (2 * strlen (field[1]) + 1);
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:854: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).
	  amt = gpgme_data_write (conf, buf, strlen (buf));
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:860: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).
	  amt = gpgme_data_write (conf, buf, strlen (buf));
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:947: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).
	  amt = gpgme_data_write (conf, option->name, strlen (option->name));
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:958: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).
	  amt = gpgme_data_write (conf, buf, strlen (buf));
data/gpgme1.0-1.14.0/src/engine-gpgconf.c:1005: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).
  int len = strlen(data->what);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:597: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 (ctx->request_origin) + 1 > sizeof gpgsm->request_origin)
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1371: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).
      newlen = 11 + strlen (fpr);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1426: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 (string);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1518: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).
  cmd = malloc (7 + 9 + 9 + strlen (pattern) + 1);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1594: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).
  linep = &line[strlen (line)];
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1736: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).
            buflen += strlen (keyarray[idx]->subkeys->fpr) + 1;
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:1864: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 = malloc (15 + strlen (pattern) + 1);
data/gpgme1.0-1.14.0/src/engine-gpgsm.c:2057: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 (s && strlen (s) < 80)
data/gpgme1.0-1.14.0/src/engine-uiserver.c:1044: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).
      newlen = 11 + strlen (uid);
data/gpgme1.0-1.14.0/src/engine-uiserver.c:1100: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 (string);
data/gpgme1.0-1.14.0/src/engine-uiserver.c:1249: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 (s && strlen (s) < 80)
data/gpgme1.0-1.14.0/src/genkey.c:228: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).
    endtag = content + strlen (content);
data/gpgme1.0-1.14.0/src/genkey.c:291: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).
  TRACE_LOGBUF (parms, parms? strlen (parms):0);
data/gpgme1.0-1.14.0/src/genkey.c:312: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).
  TRACE_LOGBUF (parms, parms? strlen (parms):0);
data/gpgme1.0-1.14.0/src/gpgme-json.c:503: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).
      length += strlen (j_keys->valuestring);
data/gpgme1.0-1.14.0/src/gpgme-json.c:519: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).
          length += strlen (j_item->valuestring);
data/gpgme1.0-1.14.0/src/gpgme-json.c:660: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 (json->valuestring);
data/gpgme1.0-1.14.0/src/gpgme-json.c:1432: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).
                                     strlen (j_data->valuestring), 0);
data/gpgme1.0-1.14.0/src/gpgme-json.c:1558: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).
  pending_data.length = strlen (data);
data/gpgme1.0-1.14.0/src/gpgme-json.c:3525: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).
              buffer = malloc (strlen (msg)+1);
data/gpgme1.0-1.14.0/src/gpgme-json.c:3665: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 ((n = strlen (response)) && response[n-1] != '\n')
data/gpgme1.0-1.14.0/src/gpgme-json.c:3758: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).
      nresponse = strlen (response);
data/gpgme1.0-1.14.0/src/gpgme-json.c:3903: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).
          if (s1 && strlen (s1) > 2)
data/gpgme1.0-1.14.0/src/gpgme-tool.c:149: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).
  put_membuf (mb, string, strlen (string));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:270: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).
  int n = strlen (name);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:364: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).
  (*cb) (hook, name, strlen (name));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:382: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).
      (*cb) (hook, attr, strlen (attr));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:384: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).
      (*cb) (hook, attr_val, strlen (attr_val));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:421: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).
      data_len = strlen (data);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:426: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).
            put_membuf (&mb, r, strlen (r));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:459: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).
  (*cb) (hook, buf, strlen (buf));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:482: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 (state->tag[state->next_tag]));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1734: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).
  gt_write_data (gt, xml_preamble1, strlen (xml_preamble1));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1736: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).
  gt_write_data (gt, xml_preamble2, strlen (xml_preamble2));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:1762: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).
  gt_write_data (gt, xml_end, strlen (xml_end));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2017: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).
      return assuan_send_data (ctx, version, strlen (version));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2820: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).
  if (!strncasecmp (line, optstr, strlen (optstr)))
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2823: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).
      line += strlen (optstr);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2850: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).
  if (!strncasecmp (line, optstr, strlen (optstr)))
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2853: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).
      line += strlen (optstr);
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2875: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).
  gt_write_data (gt, xml_preamble1, strlen (xml_preamble1));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2877: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).
  gt_write_data (gt, xml_preamble2, strlen (xml_preamble2));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:2952: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).
  gt_write_data (gt, xml_end, strlen (xml_end));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3076: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).
  return assuan_send_data (ctx, buf, strlen (buf));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3088: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).
  return assuan_send_data (ctx, buf, strlen (buf));
data/gpgme1.0-1.14.0/src/gpgme-tool.c:3100: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).
  return assuan_send_data (ctx, buf, strlen (buf));
data/gpgme1.0-1.14.0/src/gpgme-w32spawn.c:293:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  res = read (fd, line, BUFFER_MAX);
data/gpgme1.0-1.14.0/src/gpgme.c:1174: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).
  err = _gpgme_sig_notation_create (&notation, name, name ? strlen (name) : 0,
data/gpgme1.0-1.14.0/src/gpgme.c:1175: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).
				    value, value ? strlen (value) : 0, flags);
data/gpgme1.0-1.14.0/src/key.c:191: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 (*src == '<' && src[strlen (src) - 1] == '>')
data/gpgme1.0-1.14.0/src/key.c:212: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 src_len = strlen (src);
data/gpgme1.0-1.14.0/src/key.c:230: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).
  dst += strlen (dst) + 1;
data/gpgme1.0-1.14.0/src/key.c:261: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).
  int src_len = src ? strlen (src) : 0;
data/gpgme1.0-1.14.0/src/key.c:286: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).
      dst += strlen (dst) + 1;
data/gpgme1.0-1.14.0/src/keylist.c:683: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 (fields >= 5 && strlen (field[4]) <= DIM(subkey->_keyid) - 1)
data/gpgme1.0-1.14.0/src/keylist.c:780: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 (fields >= 5 && strlen (field[4]) == DIM(subkey->_keyid) - 1)
data/gpgme1.0-1.14.0/src/keylist.c:959: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 (fields >= 5 && strlen (field[4]) == DIM(keysig->_keyid) - 1)
data/gpgme1.0-1.14.0/src/keylist.c:1284: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 (fpr) < 8)	/* We have at least a key ID.  */
data/gpgme1.0-1.14.0/src/mbox-util.c:186: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).
  return name? is_valid_mailbox_mem (name, strlen (name)) : 0;
data/gpgme1.0-1.14.0/src/mbox-util.c:213: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/gpgme1.0-1.14.0/src/posix-util.c:89: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 = malloc (strlen (path_str) + 1 + strlen (pgm) + 1);
data/gpgme1.0-1.14.0/src/posix-util.c:89: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).
  fname = malloc (strlen (path_str) + 1 + strlen (pgm) + 1);
data/gpgme1.0-1.14.0/src/setenv.c:121: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).
  const size_t namelen = strlen (name);
data/gpgme1.0-1.14.0/src/setenv.c:122: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).
  const size_t vallen = value != NULL ? strlen (value) + 1 : 0;
data/gpgme1.0-1.14.0/src/setenv.c:289: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 (name);
data/gpgme1.0-1.14.0/src/sig-notation.c:162: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).
  if (len > strlen (data))
data/gpgme1.0-1.14.0/src/sig-notation.c:253: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).
      value_len = strlen (value);
data/gpgme1.0-1.14.0/src/trustlist.c:101: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 (p) == DIM(item->keyid) - 1)
data/gpgme1.0-1.14.0/src/ttyname_r.c:60: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).
            namelen = strlen (largebuf) + 1;
data/gpgme1.0-1.14.0/src/ttyname_r.c:80: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).
        namelen = strlen (name) + 1;
data/gpgme1.0-1.14.0/src/ttyname_r.c:106: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).
        namelen = strlen (name) + 1;
data/gpgme1.0-1.14.0/src/ttyname_r.c:132:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (buf, tty, buflen);
data/gpgme1.0-1.14.0/src/ttyname_r.c:134: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).
  return (strlen (tty) >= buflen) ? ERANGE : 0;
data/gpgme1.0-1.14.0/src/verify.c:528: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).
	  notation->name_len = strlen (notation->name);
data/gpgme1.0-1.14.0/src/verify.c:546: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).
	  notation->value_len = strlen (notation->value);
data/gpgme1.0-1.14.0/src/verify.c:583: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 len = strlen (args) + 1;
data/gpgme1.0-1.14.0/src/verify.c:606: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).
	  int cur_len = strlen (notation->value);
data/gpgme1.0-1.14.0/src/verify.c:607: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).
	  dest = realloc (notation->value, len + strlen (notation->value));
data/gpgme1.0-1.14.0/src/verify.c:618: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).
      notation->value_len += strlen (dest);
data/gpgme1.0-1.14.0/src/w32-glib-io.c:739: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 (line, "\n");
data/gpgme1.0-1.14.0/src/w32-glib-io.c:743: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 (line) - 1;
data/gpgme1.0-1.14.0/src/w32-glib-io.c:753: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 (line);
data/gpgme1.0-1.14.0/src/w32-io.c:1563: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 (line, "\n");
data/gpgme1.0-1.14.0/src/w32-io.c:1567: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 (line) - 1;
data/gpgme1.0-1.14.0/src/w32-io.c:1577: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 (line);
data/gpgme1.0-1.14.0/src/w32-util.c:531: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).
              && override_inst_dir[strlen (override_inst_dir)-1] == '\\')
data/gpgme1.0-1.14.0/src/w32-util.c:532: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).
            override_inst_dir[strlen (override_inst_dir)-1] = 0;
data/gpgme1.0-1.14.0/src/w32-util.c:738: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 (tmpl);
data/gpgme1.0-1.14.0/src/w32-util.c:806: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 len = strlen(tmp);
data/gpgme1.0-1.14.0/tests/gpg/t-cancel.c:196:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep (100000);
data/gpgme1.0-1.14.0/tests/gpg/t-edit.c:106: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).
      gpgme_io_writen (fd, result, strlen (result));
data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-mixed.c:57: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).
  err = gpgme_data_new_from_mem (&in, text, strlen (text), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-encrypt-sym.c:60: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).
  err = gpgme_data_new_from_mem (&plain, text, strlen (text), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-genkey.c:107: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 (result->fpr && strlen (result->fpr) != 40)
data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c:43: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).
  int len = str ? strlen (str) : 0;
data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c:150: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).
		      spaces (opt->name, 9 + strlen (opt->argname) + strlen (more)));
data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c:150: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).
		      spaces (opt->name, 9 + strlen (opt->argname) + strlen (more)));
data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c:155: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).
		      spaces (opt->name, 7 + strlen (opt->argname) + strlen (more)));
data/gpgme1.0-1.14.0/tests/gpg/t-gpgconf.c:155: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).
		      spaces (opt->name, 7 + strlen (opt->argname) + strlen (more)));
data/gpgme1.0-1.14.0/tests/gpg/t-sig-notation.c:86: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 (expected_notations[i].name))
data/gpgme1.0-1.14.0/tests/gpg/t-sig-notation.c:91: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).
	       && r->value_len == strlen (expected_notations[i].value)
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:111: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 passlen = strlen (pass);
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:139: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).
  buf = malloc (strlen(srcdir) + strlen(fname) + 2);
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:139: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 = malloc (strlen(srcdir) + strlen(fname) + 2);
data/gpgme1.0-1.14.0/tests/gpg/t-support.h:143: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 (buf, "/");
data/gpgme1.0-1.14.0/tests/gpg/t-thread-keylist-verify.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).
  err = gpgme_data_new_from_mem (&text, test_text1, strlen (test_text1), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-thread-keylist-verify.c:90: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).
  err = gpgme_data_new_from_mem (&sig, test_sig1, strlen (test_sig1), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:129: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 (sig->fpr) == 16 && strlen (fpr) == 40
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:129: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).
      if (strlen (sig->fpr) == 16 && strlen (fpr) == 40
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:174: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 (expected_notations[i].name))
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:179: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).
		   && r->value_len == strlen (expected_notations[i].value))
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:243: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).
  err = gpgme_data_new_from_mem (&text, test_text1, strlen (test_text1), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:245: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).
  err = gpgme_data_new_from_mem (&sig, test_sig1, strlen (test_sig1), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:255:54:  [1] (buffer) strlen:
  Does not handle 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 = gpgme_data_new_from_mem (&text, test_text1f, strlen (test_text1f), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:268: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).
  err = gpgme_data_new_from_mem (&text, test_text1, strlen (test_text1), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:271: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 (test_sig1_plus_unknown_key), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:287: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).
  err = gpgme_data_new_from_mem (&sig, test_sig2, strlen (test_sig2), 0);
data/gpgme1.0-1.14.0/tests/gpg/t-verify.c:302: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 (double_plaintext_sig), 0);
data/gpgme1.0-1.14.0/tests/gpgsm/t-decrypt.c:67: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).
  err = gpgme_data_new_from_mem (&in, test_cip1, strlen (test_cip1), 0);
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:71: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 passlen = strlen (pass);
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:99: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).
  buf = malloc (strlen(srcdir) + strlen(fname) + 2);
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:99: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 = malloc (strlen(srcdir) + strlen(fname) + 2);
data/gpgme1.0-1.14.0/tests/gpgsm/t-support.h:103: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 (buf, "/");
data/gpgme1.0-1.14.0/tests/gpgsm/t-verify.c:152: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).
  err = gpgme_data_new_from_mem (&text, test_text1, strlen (test_text1), 0);
data/gpgme1.0-1.14.0/tests/gpgsm/t-verify.c:154: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).
  err = gpgme_data_new_from_mem (&sig, test_sig1, strlen (test_sig1), 0);
data/gpgme1.0-1.14.0/tests/gpgsm/t-verify.c:168:54:  [1] (buffer) strlen:
  Does not handle 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 = gpgme_data_new_from_mem (&text, test_text1f, strlen (test_text1f), 0);
data/gpgme1.0-1.14.0/tests/run-genkey.c:72: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 (string) + 1;
data/gpgme1.0-1.14.0/tests/run-genkey.c:97: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).
  for (px = p + strlen (p) - 1; px >= p && (*px == ' ' || *px == '\t'); px--)
data/gpgme1.0-1.14.0/tests/run-genkey.c:141: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).
  else if (strspn (string, "01234567890") == strlen (string))
data/gpgme1.0-1.14.0/tests/run-genkey.c:455: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 (result->fpr && strlen (result->fpr) < 40)
data/gpgme1.0-1.14.0/tests/run-keysign.c:59: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).
  else if (strspn (string, "01234567890") == strlen (string))
data/gpgme1.0-1.14.0/tests/run-keysign.c:221: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).
        n += strlen (argv[1]) + 1;
data/gpgme1.0-1.14.0/tests/run-keysign.c:234: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 (userid_buffer, "\n");
data/gpgme1.0-1.14.0/tests/run-support.h:81: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 passlen = strlen (pass);
data/gpgme1.0-1.14.0/tests/run-support.h:109: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).
  buf = malloc (strlen(srcdir) + strlen(fname) + 2);
data/gpgme1.0-1.14.0/tests/run-support.h:109: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 = malloc (strlen(srcdir) + strlen(fname) + 2);
data/gpgme1.0-1.14.0/tests/run-support.h:117: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 (buf, "/");
data/gpgme1.0-1.14.0/tests/run-verify.c:172: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 (strlen (nt->name) != nt->name_len)
data/gpgme1.0-1.14.0/tests/run-verify.c:185: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 ((nt->value?strlen (nt->value):0) != nt->value_len)
data/gpgme1.0-1.14.0/tests/t-data.c:67: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).
  unsigned int amount = strlen (text) - off;
data/gpgme1.0-1.14.0/tests/t-data.c:98:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read;
data/gpgme1.0-1.14.0/tests/t-data.c:102:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read != strlen (text) || strncmp (buffer, text, strlen (text)))
data/gpgme1.0-1.14.0/tests/t-data.c:102: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 (read != strlen (text) || strncmp (buffer, text, strlen (text)))
data/gpgme1.0-1.14.0/tests/t-data.c:102: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).
  if (read != strlen (text) || strncmp (buffer, text, strlen (text)))
data/gpgme1.0-1.14.0/tests/t-data.c:110:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read)
data/gpgme1.0-1.14.0/tests/t-data.c:122:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  size_t read;
data/gpgme1.0-1.14.0/tests/t-data.c:127:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read > 0)
data/gpgme1.0-1.14.0/tests/t-data.c:147: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).
  amt = gpgme_data_write (data, text, strlen (text));
data/gpgme1.0-1.14.0/tests/t-data.c:148: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 (amt != strlen (text))
data/gpgme1.0-1.14.0/tests/t-data.c:159: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 (amt != strlen (text2) || strncmp (buffer, text2, strlen (text2)))
data/gpgme1.0-1.14.0/tests/t-data.c:159:60:  [1] (buffer) strlen:
  Does not handle 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 (amt != strlen (text2) || strncmp (buffer, text2, strlen (text2)))
data/gpgme1.0-1.14.0/tests/t-data.c:206: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).
	  err = gpgme_data_new_from_mem (&data, text, strlen (text), 0);
data/gpgme1.0-1.14.0/tests/t-data.c:209: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).
	  err = gpgme_data_new_from_mem (&data, text, strlen (text), 1);
data/gpgme1.0-1.14.0/tests/t-data.c:232: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 (text), strlen (text));
data/gpgme1.0-1.14.0/tests/t-data.c:232: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 (text), strlen (text));
data/gpgme1.0-1.14.0/tests/t-data.c:236: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 (text), strlen (text));
data/gpgme1.0-1.14.0/tests/t-data.c:236: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 (text), strlen (text));
data/gpgme1.0-1.14.0/tests/t-data.c:254: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 (text), strlen (text));
data/gpgme1.0-1.14.0/tests/t-data.c:254: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 (text), strlen (text));

ANALYSIS SUMMARY:

Hits = 684
Lines analyzed = 94285 in approximately 2.68 seconds (35172 lines/second)
Physical Source Lines of Code (SLOC) = 66519
Hits@level = [0] 670 [1] 247 [2] 281 [3]  23 [4] 133 [5]   0
Hits@level+ = [0+] 1354 [1+] 684 [2+] 437 [3+] 156 [4+] 133 [5+]   0
Hits/KSLOC@level+ = [0+] 20.3551 [1+] 10.2828 [2+] 6.56955 [3+] 2.34519 [4+] 1.99943 [5+]   0
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.