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/tripwire-2.4.3.7/src/buildnum.h
Examining data/tripwire-2.4.3.7/src/core/archive.cpp
Examining data/tripwire-2.4.3.7/src/core/archive.h
Examining data/tripwire-2.4.3.7/src/core/charutil.cpp
Examining data/tripwire-2.4.3.7/src/core/charutil.h
Examining data/tripwire-2.4.3.7/src/core/cmdlineparser.cpp
Examining data/tripwire-2.4.3.7/src/core/cmdlineparser.h
Examining data/tripwire-2.4.3.7/src/core/codeconvert.cpp
Examining data/tripwire-2.4.3.7/src/core/codeconvert.h
Examining data/tripwire-2.4.3.7/src/core/core.cpp
Examining data/tripwire-2.4.3.7/src/core/core.h
Examining data/tripwire-2.4.3.7/src/core/coreerrors.cpp
Examining data/tripwire-2.4.3.7/src/core/coreerrors.h
Examining data/tripwire-2.4.3.7/src/core/corestrings.cpp
Examining data/tripwire-2.4.3.7/src/core/corestrings.h
Examining data/tripwire-2.4.3.7/src/core/crc32.cpp
Examining data/tripwire-2.4.3.7/src/core/crc32.h
Examining data/tripwire-2.4.3.7/src/core/debug.cpp
Examining data/tripwire-2.4.3.7/src/core/debug.h
Examining data/tripwire-2.4.3.7/src/core/displayencoder.cpp
Examining data/tripwire-2.4.3.7/src/core/displayencoder.h
Examining data/tripwire-2.4.3.7/src/core/displayutil.cpp
Examining data/tripwire-2.4.3.7/src/core/displayutil.h
Examining data/tripwire-2.4.3.7/src/core/epoch.cpp
Examining data/tripwire-2.4.3.7/src/core/epoch.h
Examining data/tripwire-2.4.3.7/src/core/error.cpp
Examining data/tripwire-2.4.3.7/src/core/error.h
Examining data/tripwire-2.4.3.7/src/core/errorbucket.h
Examining data/tripwire-2.4.3.7/src/core/errorbucketimpl.cpp
Examining data/tripwire-2.4.3.7/src/core/errorbucketimpl.h
Examining data/tripwire-2.4.3.7/src/core/errorgeneral.h
Examining data/tripwire-2.4.3.7/src/core/errortable.cpp
Examining data/tripwire-2.4.3.7/src/core/errortable.h
Examining data/tripwire-2.4.3.7/src/core/errorutil.cpp
Examining data/tripwire-2.4.3.7/src/core/errorutil.h
Examining data/tripwire-2.4.3.7/src/core/file.h
Examining data/tripwire-2.4.3.7/src/core/file_unix.cpp
Examining data/tripwire-2.4.3.7/src/core/fileerror.cpp
Examining data/tripwire-2.4.3.7/src/core/fileerror.h
Examining data/tripwire-2.4.3.7/src/core/fileheader.cpp
Examining data/tripwire-2.4.3.7/src/core/fileheader.h
Examining data/tripwire-2.4.3.7/src/core/fixedfilebuf.h
Examining data/tripwire-2.4.3.7/src/core/fsservices.cpp
Examining data/tripwire-2.4.3.7/src/core/fsservices.h
Examining data/tripwire-2.4.3.7/src/core/growheap.cpp
Examining data/tripwire-2.4.3.7/src/core/growheap.h
Examining data/tripwire-2.4.3.7/src/core/hashtable.cpp
Examining data/tripwire-2.4.3.7/src/core/hashtable.h
Examining data/tripwire-2.4.3.7/src/core/haval.cpp
Examining data/tripwire-2.4.3.7/src/core/haval.h
Examining data/tripwire-2.4.3.7/src/core/md5.cpp
Examining data/tripwire-2.4.3.7/src/core/md5.h
Examining data/tripwire-2.4.3.7/src/core/msystem.cpp
Examining data/tripwire-2.4.3.7/src/core/msystem.h
Examining data/tripwire-2.4.3.7/src/core/ntdbs.h
Examining data/tripwire-2.4.3.7/src/core/ntmbs.cpp
Examining data/tripwire-2.4.3.7/src/core/ntmbs.h
Examining data/tripwire-2.4.3.7/src/core/package.h
Examining data/tripwire-2.4.3.7/src/core/platform.h
Examining data/tripwire-2.4.3.7/src/core/refcountobj.cpp
Examining data/tripwire-2.4.3.7/src/core/refcountobj.h
Examining data/tripwire-2.4.3.7/src/core/resources.h
Examining data/tripwire-2.4.3.7/src/core/serializable.cpp
Examining data/tripwire-2.4.3.7/src/core/serializable.h
Examining data/tripwire-2.4.3.7/src/core/serializer.cpp
Examining data/tripwire-2.4.3.7/src/core/serializer.h
Examining data/tripwire-2.4.3.7/src/core/serializerimpl.cpp
Examining data/tripwire-2.4.3.7/src/core/serializerimpl.h
Examining data/tripwire-2.4.3.7/src/core/serializerutil.cpp
Examining data/tripwire-2.4.3.7/src/core/serializerutil.h
Examining data/tripwire-2.4.3.7/src/core/serstring.cpp
Examining data/tripwire-2.4.3.7/src/core/serstring.h
Examining data/tripwire-2.4.3.7/src/core/sha.cpp
Examining data/tripwire-2.4.3.7/src/core/sha.h
Examining data/tripwire-2.4.3.7/src/core/srefcountobj.cpp
Examining data/tripwire-2.4.3.7/src/core/srefcountobj.h
Examining data/tripwire-2.4.3.7/src/core/srefcounttbl.cpp
Examining data/tripwire-2.4.3.7/src/core/srefcounttbl.h
Examining data/tripwire-2.4.3.7/src/core/stdcore.cpp
Examining data/tripwire-2.4.3.7/src/core/stdcore.h
Examining data/tripwire-2.4.3.7/src/core/stringutil.cpp
Examining data/tripwire-2.4.3.7/src/core/stringutil.h
Examining data/tripwire-2.4.3.7/src/core/tasktimer.h
Examining data/tripwire-2.4.3.7/src/core/tchar.h
Examining data/tripwire-2.4.3.7/src/core/timeconvert.cpp
Examining data/tripwire-2.4.3.7/src/core/timeconvert.h
Examining data/tripwire-2.4.3.7/src/core/tw_signal.cpp
Examining data/tripwire-2.4.3.7/src/core/tw_signal.h
Examining data/tripwire-2.4.3.7/src/core/twlimits.cpp
Examining data/tripwire-2.4.3.7/src/core/twlimits.h
Examining data/tripwire-2.4.3.7/src/core/twlocale.cpp
Examining data/tripwire-2.4.3.7/src/core/twlocale.h
Examining data/tripwire-2.4.3.7/src/core/twstringslang.h
Examining data/tripwire-2.4.3.7/src/core/typed.h
Examining data/tripwire-2.4.3.7/src/core/types.h
Examining data/tripwire-2.4.3.7/src/core/unixexcept.cpp
Examining data/tripwire-2.4.3.7/src/core/unixexcept.h
Examining data/tripwire-2.4.3.7/src/core/unixfsservices.cpp
Examining data/tripwire-2.4.3.7/src/core/unixfsservices.h
Examining data/tripwire-2.4.3.7/src/core/upperbound.h
Examining data/tripwire-2.4.3.7/src/core/usernotify.cpp
Examining data/tripwire-2.4.3.7/src/core/usernotify.h
Examining data/tripwire-2.4.3.7/src/core/usernotifystdout.cpp
Examining data/tripwire-2.4.3.7/src/core/usernotifystdout.h
Examining data/tripwire-2.4.3.7/src/core/userstringmem.cpp
Examining data/tripwire-2.4.3.7/src/core/userstringmem.h
Examining data/tripwire-2.4.3.7/src/core/wchar16.cpp
Examining data/tripwire-2.4.3.7/src/core/wchar16.h
Examining data/tripwire-2.4.3.7/src/cryptlib/algebra.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/algebra.h
Examining data/tripwire-2.4.3.7/src/cryptlib/asn.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/asn.h
Examining data/tripwire-2.4.3.7/src/cryptlib/config.h
Examining data/tripwire-2.4.3.7/src/cryptlib/cryptlib.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/cryptlib.h
Examining data/tripwire-2.4.3.7/src/cryptlib/des.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/des.h
Examining data/tripwire-2.4.3.7/src/cryptlib/dessp.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/elgamal.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/elgamal.h
Examining data/tripwire-2.4.3.7/src/cryptlib/eprecomp.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/eprecomp.h
Examining data/tripwire-2.4.3.7/src/cryptlib/filters.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/filters.h
Examining data/tripwire-2.4.3.7/src/cryptlib/forkjoin.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/forkjoin.h
Examining data/tripwire-2.4.3.7/src/cryptlib/integer.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/integer.h
Examining data/tripwire-2.4.3.7/src/cryptlib/iterhash.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/iterhash.h
Examining data/tripwire-2.4.3.7/src/cryptlib/misc.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/misc.h
Examining data/tripwire-2.4.3.7/src/cryptlib/modarith.h
Examining data/tripwire-2.4.3.7/src/cryptlib/nbtheory.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/nbtheory.h
Examining data/tripwire-2.4.3.7/src/cryptlib/pch.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/pch.h
Examining data/tripwire-2.4.3.7/src/cryptlib/queue.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/queue.h
Examining data/tripwire-2.4.3.7/src/cryptlib/rng.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/rng.h
Examining data/tripwire-2.4.3.7/src/cryptlib/sha.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/sha.h
Examining data/tripwire-2.4.3.7/src/cryptlib/smartptr.h
Examining data/tripwire-2.4.3.7/src/cryptlib/words.h
Examining data/tripwire-2.4.3.7/src/cryptlib/zbits.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/zbits.h
Examining data/tripwire-2.4.3.7/src/cryptlib/zdeflate.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/zdeflate.h
Examining data/tripwire-2.4.3.7/src/cryptlib/zinflate.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/zinflate.h
Examining data/tripwire-2.4.3.7/src/cryptlib/ztrees.cpp
Examining data/tripwire-2.4.3.7/src/cryptlib/ztrees.h
Examining data/tripwire-2.4.3.7/src/db/block.h
Examining data/tripwire-2.4.3.7/src/db/blockfile.cpp
Examining data/tripwire-2.4.3.7/src/db/blockfile.h
Examining data/tripwire-2.4.3.7/src/db/blockrecordarray.cpp
Examining data/tripwire-2.4.3.7/src/db/blockrecordarray.h
Examining data/tripwire-2.4.3.7/src/db/blockrecordfile.cpp
Examining data/tripwire-2.4.3.7/src/db/blockrecordfile.h
Examining data/tripwire-2.4.3.7/src/db/db.cpp
Examining data/tripwire-2.4.3.7/src/db/db.h
Examining data/tripwire-2.4.3.7/src/db/dberrors.cpp
Examining data/tripwire-2.4.3.7/src/db/dberrors.h
Examining data/tripwire-2.4.3.7/src/db/hierdatabase.cpp
Examining data/tripwire-2.4.3.7/src/db/hierdatabase.h
Examining data/tripwire-2.4.3.7/src/db/hierdbnode.h
Examining data/tripwire-2.4.3.7/src/db/hierdbpath.cpp
Examining data/tripwire-2.4.3.7/src/db/hierdbpath.h
Examining data/tripwire-2.4.3.7/src/db/stddb.cpp
Examining data/tripwire-2.4.3.7/src/db/stddb.h
Examining data/tripwire-2.4.3.7/src/fco/fco.cpp
Examining data/tripwire-2.4.3.7/src/fco/fco.h
Examining data/tripwire-2.4.3.7/src/fco/fcocompare.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcocompare.h
Examining data/tripwire-2.4.3.7/src/fco/fcodatasource.h
Examining data/tripwire-2.4.3.7/src/fco/fcodatasourceiter.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcodatasourceiter.h
Examining data/tripwire-2.4.3.7/src/fco/fcodatasourceiterimpl.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcodatasourceiterimpl.h
Examining data/tripwire-2.4.3.7/src/fco/fcoerrors.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcoerrors.h
Examining data/tripwire-2.4.3.7/src/fco/fcogenre.h
Examining data/tripwire-2.4.3.7/src/fco/fconame.cpp
Examining data/tripwire-2.4.3.7/src/fco/fconame.h
Examining data/tripwire-2.4.3.7/src/fco/fconameinfo.h
Examining data/tripwire-2.4.3.7/src/fco/fconametbl.cpp
Examining data/tripwire-2.4.3.7/src/fco/fconametbl.h
Examining data/tripwire-2.4.3.7/src/fco/fconametranslator.h
Examining data/tripwire-2.4.3.7/src/fco/fcoprop.h
Examining data/tripwire-2.4.3.7/src/fco/fcopropcalc.h
Examining data/tripwire-2.4.3.7/src/fco/fcopropdisplayer.h
Examining data/tripwire-2.4.3.7/src/fco/fcopropimpl.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcopropimpl.h
Examining data/tripwire-2.4.3.7/src/fco/fcopropset.h
Examining data/tripwire-2.4.3.7/src/fco/fcopropvector.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcopropvector.h
Examining data/tripwire-2.4.3.7/src/fco/fcosetimpl.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcosetimpl.h
Examining data/tripwire-2.4.3.7/src/fco/fcosetws.h
Examining data/tripwire-2.4.3.7/src/fco/fcospec.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcospec.h
Examining data/tripwire-2.4.3.7/src/fco/fcospecattr.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcospecattr.h
Examining data/tripwire-2.4.3.7/src/fco/fcospechelper.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcospechelper.h
Examining data/tripwire-2.4.3.7/src/fco/fcospecimpl.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcospecimpl.h
Examining data/tripwire-2.4.3.7/src/fco/fcospeclist.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcospeclist.h
Examining data/tripwire-2.4.3.7/src/fco/fcospecutil.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcospecutil.h
Examining data/tripwire-2.4.3.7/src/fco/fcostrings.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcostrings.h
Examining data/tripwire-2.4.3.7/src/fco/fcoundefprop.cpp
Examining data/tripwire-2.4.3.7/src/fco/fcoundefprop.h
Examining data/tripwire-2.4.3.7/src/fco/fcovisitor.h
Examining data/tripwire-2.4.3.7/src/fco/genreinfo.cpp
Examining data/tripwire-2.4.3.7/src/fco/genreinfo.h
Examining data/tripwire-2.4.3.7/src/fco/genrespeclist.cpp
Examining data/tripwire-2.4.3.7/src/fco/genrespeclist.h
Examining data/tripwire-2.4.3.7/src/fco/genreswitcher.cpp
Examining data/tripwire-2.4.3.7/src/fco/genreswitcher.h
Examining data/tripwire-2.4.3.7/src/fco/iterproxy.h
Examining data/tripwire-2.4.3.7/src/fco/parsergenreutil.h
Examining data/tripwire-2.4.3.7/src/fco/propset.h
Examining data/tripwire-2.4.3.7/src/fco/signature.cpp
Examining data/tripwire-2.4.3.7/src/fco/signature.h
Examining data/tripwire-2.4.3.7/src/fco/stdfco.cpp
Examining data/tripwire-2.4.3.7/src/fco/stdfco.h
Examining data/tripwire-2.4.3.7/src/fco/twfactory.cpp
Examining data/tripwire-2.4.3.7/src/fco/twfactory.h
Examining data/tripwire-2.4.3.7/src/fs/fs.cpp
Examining data/tripwire-2.4.3.7/src/fs/fs.h
Examining data/tripwire-2.4.3.7/src/fs/fsdatasourceiter.cpp
Examining data/tripwire-2.4.3.7/src/fs/fsdatasourceiter.h
Examining data/tripwire-2.4.3.7/src/fs/fserrors.cpp
Examining data/tripwire-2.4.3.7/src/fs/fserrors.h
Examining data/tripwire-2.4.3.7/src/fs/fsfactory.cpp
Examining data/tripwire-2.4.3.7/src/fs/fsfactory.h
Examining data/tripwire-2.4.3.7/src/fs/fsnametranslator.cpp
Examining data/tripwire-2.4.3.7/src/fs/fsnametranslator.h
Examining data/tripwire-2.4.3.7/src/fs/fsobject.cpp
Examining data/tripwire-2.4.3.7/src/fs/fsobject.h
Examining data/tripwire-2.4.3.7/src/fs/fsparserutil.cpp
Examining data/tripwire-2.4.3.7/src/fs/fsparserutil.h
Examining data/tripwire-2.4.3.7/src/fs/fspropcalc.cpp
Examining data/tripwire-2.4.3.7/src/fs/fspropcalc.h
Examining data/tripwire-2.4.3.7/src/fs/fspropdisplayer.cpp
Examining data/tripwire-2.4.3.7/src/fs/fspropdisplayer.h
Examining data/tripwire-2.4.3.7/src/fs/fspropset.cpp
Examining data/tripwire-2.4.3.7/src/fs/fspropset.h
Examining data/tripwire-2.4.3.7/src/fs/fsstrings.cpp
Examining data/tripwire-2.4.3.7/src/fs/fsstrings.h
Examining data/tripwire-2.4.3.7/src/fs/fsvisitor.cpp
Examining data/tripwire-2.4.3.7/src/fs/fsvisitor.h
Examining data/tripwire-2.4.3.7/src/fs/stdfs.cpp
Examining data/tripwire-2.4.3.7/src/fs/stdfs.h
Examining data/tripwire-2.4.3.7/src/parser/lexyacc_header.h
Examining data/tripwire-2.4.3.7/src/siggen/siggen.cpp
Examining data/tripwire-2.4.3.7/src/siggen/siggen.h
Examining data/tripwire-2.4.3.7/src/siggen/siggencmdline.cpp
Examining data/tripwire-2.4.3.7/src/siggen/siggencmdline.h
Examining data/tripwire-2.4.3.7/src/siggen/siggenmain.cpp
Examining data/tripwire-2.4.3.7/src/siggen/siggenstrings.cpp
Examining data/tripwire-2.4.3.7/src/siggen/siggenstrings.h
Examining data/tripwire-2.4.3.7/src/siggen/stdsiggen.cpp
Examining data/tripwire-2.4.3.7/src/siggen/stdsiggen.h
Examining data/tripwire-2.4.3.7/src/tripwire/generatedb.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/generatedb.h
Examining data/tripwire-2.4.3.7/src/tripwire/generatedb_t.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/integritycheck.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/integritycheck.h
Examining data/tripwire-2.4.3.7/src/tripwire/integritycheck_t.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/mailmessage.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/mailmessage.h
Examining data/tripwire-2.4.3.7/src/tripwire/pipedmailmessage.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/policyupdate.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/policyupdate.h
Examining data/tripwire-2.4.3.7/src/tripwire/resource.h
Examining data/tripwire-2.4.3.7/src/tripwire/smtpmailmessage.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/stdtripwire.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/stdtripwire.h
Examining data/tripwire-2.4.3.7/src/tripwire/syslog_trip.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/syslog_trip.h
Examining data/tripwire-2.4.3.7/src/tripwire/tripwire.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/tripwire.h
Examining data/tripwire-2.4.3.7/src/tripwire/tripwireerrors.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/tripwireerrors.h
Examining data/tripwire-2.4.3.7/src/tripwire/tripwiremain.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/tripwiremsg.h
Examining data/tripwire-2.4.3.7/src/tripwire/tripwirestrings.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/tripwirestrings.h
Examining data/tripwire-2.4.3.7/src/tripwire/tripwireutil.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/tripwireutil.h
Examining data/tripwire-2.4.3.7/src/tripwire/twcmdline.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/twcmdline.h
Examining data/tripwire-2.4.3.7/src/tripwire/twcmdlineutil.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/twcmdlineutil.h
Examining data/tripwire-2.4.3.7/src/tripwire/updatedb.cpp
Examining data/tripwire-2.4.3.7/src/tripwire/updatedb.h
Examining data/tripwire-2.4.3.7/src/tw/configfile.cpp
Examining data/tripwire-2.4.3.7/src/tw/configfile.h
Examining data/tripwire-2.4.3.7/src/tw/dbdatasource.cpp
Examining data/tripwire-2.4.3.7/src/tw/dbdatasource.h
Examining data/tripwire-2.4.3.7/src/tw/dbdebug.cpp
Examining data/tripwire-2.4.3.7/src/tw/dbdebug.h
Examining data/tripwire-2.4.3.7/src/tw/dbexplore.cpp
Examining data/tripwire-2.4.3.7/src/tw/dbexplore.h
Examining data/tripwire-2.4.3.7/src/tw/fcodatabasefile.cpp
Examining data/tripwire-2.4.3.7/src/tw/fcodatabasefile.h
Examining data/tripwire-2.4.3.7/src/tw/fcodatabaseutil.cpp
Examining data/tripwire-2.4.3.7/src/tw/fcodatabaseutil.h
Examining data/tripwire-2.4.3.7/src/tw/fcoreport.cpp
Examining data/tripwire-2.4.3.7/src/tw/fcoreport.h
Examining data/tripwire-2.4.3.7/src/tw/fcoreportutil.cpp
Examining data/tripwire-2.4.3.7/src/tw/fcoreportutil.h
Examining data/tripwire-2.4.3.7/src/tw/filemanipulator.cpp
Examining data/tripwire-2.4.3.7/src/tw/filemanipulator.h
Examining data/tripwire-2.4.3.7/src/tw/headerinfo.cpp
Examining data/tripwire-2.4.3.7/src/tw/headerinfo.h
Examining data/tripwire-2.4.3.7/src/tw/policyfile.cpp
Examining data/tripwire-2.4.3.7/src/tw/policyfile.h
Examining data/tripwire-2.4.3.7/src/tw/stdtw.cpp
Examining data/tripwire-2.4.3.7/src/tw/stdtw.h
Examining data/tripwire-2.4.3.7/src/tw/systeminfo.cpp
Examining data/tripwire-2.4.3.7/src/tw/systeminfo.h
Examining data/tripwire-2.4.3.7/src/tw/textdbviewer.cpp
Examining data/tripwire-2.4.3.7/src/tw/textdbviewer.h
Examining data/tripwire-2.4.3.7/src/tw/textreportviewer.cpp
Examining data/tripwire-2.4.3.7/src/tw/textreportviewer.h
Examining data/tripwire-2.4.3.7/src/tw/tw.cpp
Examining data/tripwire-2.4.3.7/src/tw/tw.h
Examining data/tripwire-2.4.3.7/src/tw/twerrors.cpp
Examining data/tripwire-2.4.3.7/src/tw/twerrors.h
Examining data/tripwire-2.4.3.7/src/tw/twinit.cpp
Examining data/tripwire-2.4.3.7/src/tw/twinit.h
Examining data/tripwire-2.4.3.7/src/tw/twstrings.cpp
Examining data/tripwire-2.4.3.7/src/tw/twstrings.h
Examining data/tripwire-2.4.3.7/src/tw/twutil.cpp
Examining data/tripwire-2.4.3.7/src/tw/twutil.h
Examining data/tripwire-2.4.3.7/src/twadmin/keygeneration.cpp
Examining data/tripwire-2.4.3.7/src/twadmin/keygeneration.h
Examining data/tripwire-2.4.3.7/src/twadmin/resource.h
Examining data/tripwire-2.4.3.7/src/twadmin/stdtwadmin.cpp
Examining data/tripwire-2.4.3.7/src/twadmin/stdtwadmin.h
Examining data/tripwire-2.4.3.7/src/twadmin/twadmin.cpp
Examining data/tripwire-2.4.3.7/src/twadmin/twadmin.h
Examining data/tripwire-2.4.3.7/src/twadmin/twadmincl.cpp
Examining data/tripwire-2.4.3.7/src/twadmin/twadmincl.h
Examining data/tripwire-2.4.3.7/src/twadmin/twadminerrors.cpp
Examining data/tripwire-2.4.3.7/src/twadmin/twadminerrors.h
Examining data/tripwire-2.4.3.7/src/twadmin/twadminmain.cpp
Examining data/tripwire-2.4.3.7/src/twadmin/twadminstrings.cpp
Examining data/tripwire-2.4.3.7/src/twadmin/twadminstrings.h
Examining data/tripwire-2.4.3.7/src/twcrypto/bytequeue.cpp
Examining data/tripwire-2.4.3.7/src/twcrypto/bytequeue.h
Examining data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp
Examining data/tripwire-2.4.3.7/src/twcrypto/crypto.h
Examining data/tripwire-2.4.3.7/src/twcrypto/cryptoarchive.cpp
Examining data/tripwire-2.4.3.7/src/twcrypto/cryptoarchive.h
Examining data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp
Examining data/tripwire-2.4.3.7/src/twcrypto/keyfile.h
Examining data/tripwire-2.4.3.7/src/twcrypto/stdtwcrypto.cpp
Examining data/tripwire-2.4.3.7/src/twcrypto/stdtwcrypto.h
Examining data/tripwire-2.4.3.7/src/twcrypto/twcrypto.cpp
Examining data/tripwire-2.4.3.7/src/twcrypto/twcrypto.h
Examining data/tripwire-2.4.3.7/src/twcrypto/twcryptoerrors.cpp
Examining data/tripwire-2.4.3.7/src/twcrypto/twcryptoerrors.h
Examining data/tripwire-2.4.3.7/src/twparser/genreparseinfo.cpp
Examining data/tripwire-2.4.3.7/src/twparser/genreparseinfo.h
Examining data/tripwire-2.4.3.7/src/twparser/parserhelper.cpp
Examining data/tripwire-2.4.3.7/src/twparser/parserhelper.h
Examining data/tripwire-2.4.3.7/src/twparser/parserobjects.cpp
Examining data/tripwire-2.4.3.7/src/twparser/parserobjects.h
Examining data/tripwire-2.4.3.7/src/twparser/policyparser.cpp
Examining data/tripwire-2.4.3.7/src/twparser/policyparser.h
Examining data/tripwire-2.4.3.7/src/twparser/stdtwparser.cpp
Examining data/tripwire-2.4.3.7/src/twparser/stdtwparser.h
Examining data/tripwire-2.4.3.7/src/twparser/twparser.cpp
Examining data/tripwire-2.4.3.7/src/twparser/twparser.h
Examining data/tripwire-2.4.3.7/src/twparser/twparsererrors.cpp
Examining data/tripwire-2.4.3.7/src/twparser/twparsererrors.h
Examining data/tripwire-2.4.3.7/src/twparser/twparserstrings.cpp
Examining data/tripwire-2.4.3.7/src/twparser/twparserstrings.h
Examining data/tripwire-2.4.3.7/src/twparser/yylex.cpp
Examining data/tripwire-2.4.3.7/src/twparser/yylex.h
Examining data/tripwire-2.4.3.7/src/twparser/yyparse.cpp
Examining data/tripwire-2.4.3.7/src/twparser/yyparse.h
Examining data/tripwire-2.4.3.7/src/twprint/resource.h
Examining data/tripwire-2.4.3.7/src/twprint/stdtwprint.cpp
Examining data/tripwire-2.4.3.7/src/twprint/stdtwprint.h
Examining data/tripwire-2.4.3.7/src/twprint/twprint.cpp
Examining data/tripwire-2.4.3.7/src/twprint/twprint.h
Examining data/tripwire-2.4.3.7/src/twprint/twprintcmdline.cpp
Examining data/tripwire-2.4.3.7/src/twprint/twprintcmdline.h
Examining data/tripwire-2.4.3.7/src/twprint/twprinterrors.cpp
Examining data/tripwire-2.4.3.7/src/twprint/twprinterrors.h
Examining data/tripwire-2.4.3.7/src/twprint/twprintmain.cpp
Examining data/tripwire-2.4.3.7/src/twprint/twprintstrings.cpp
Examining data/tripwire-2.4.3.7/src/twprint/twprintstrings.h
Examining data/tripwire-2.4.3.7/src/twtest/archive_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/blockfile_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/blockrecordarray_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/charutil_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/cmdlineparser_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/codeconvert_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/configfile_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/cryptoarchive_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/dbdatasource_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/debug_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/displayencoder_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/error_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/errorbucketimpl_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcocompare_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcodatabasefile_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fconame_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fconametbl_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fconametranslator_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcopropimpl_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcopropvector_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcoreport_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcosetimpl_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcospec_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcospecattr_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcospechelper_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcospeclist_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fcospecutil_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/file_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fileheader_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fileutil_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fsdatasourceiter_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fsobject_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fspropcalc_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fspropdisplayer_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fspropset_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/fsspec_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/genre_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/genrespeclist_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/genreswitcher_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/growheap_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/hashtable_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/hierdatabase_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/keyfile_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/platform_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/policyparser_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/refcountobj_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/resources_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/serializer_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/serializerimpl_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/signature_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/srefcountobj_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/stdtest.cpp
Examining data/tripwire-2.4.3.7/src/twtest/stdtest.h
Examining data/tripwire-2.4.3.7/src/twtest/stringencoder_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/stringutil_t.h
Examining data/tripwire-2.4.3.7/src/twtest/tasktimer_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/tchar_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/test.cpp
Examining data/tripwire-2.4.3.7/src/twtest/test.h
Examining data/tripwire-2.4.3.7/src/twtest/textreportviewer_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/twlocale_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/twutil_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/types_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/unixfsservices_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/usernotifystdout_t.cpp
Examining data/tripwire-2.4.3.7/src/twtest/wchar16_t.cpp
Examining data/tripwire-2.4.3.7/src/util/fileutil.cpp
Examining data/tripwire-2.4.3.7/src/util/fileutil.h
Examining data/tripwire-2.4.3.7/src/util/miscutil.h
Examining data/tripwire-2.4.3.7/src/util/stdutil.cpp
Examining data/tripwire-2.4.3.7/src/util/stdutil.h
Examining data/tripwire-2.4.3.7/src/util/stringencoder.cpp
Examining data/tripwire-2.4.3.7/src/util/stringencoder.h
Examining data/tripwire-2.4.3.7/src/util/util.cpp
Examining data/tripwire-2.4.3.7/src/util/util.h
Examining data/tripwire-2.4.3.7/src/util/utilerrors.cpp
Examining data/tripwire-2.4.3.7/src/util/utilerrors.h
Examining data/tripwire-2.4.3.7/src/util/utilstrings.cpp
Examining data/tripwire-2.4.3.7/src/util/utilstrings.h

FINAL RESULTS:

data/tripwire-2.4.3.7/src/fs/fspropcalc.cpp:89:15:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int rtn = readlink(strName.c_str(), buf, size);
data/tripwire-2.4.3.7/src/twtest/twutil_t.cpp:66:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(tmpDir.c_str(), 0700);
data/tripwire-2.4.3.7/src/twtest/twutil_t.cpp:69:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(tmpFN.c_str(), 0777);
data/tripwire-2.4.3.7/src/twtest/twutil_t.cpp:98:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(tmpFN.c_str(), 0400);
data/tripwire-2.4.3.7/src/twtest/twutil_t.cpp:102:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(tmpFN.c_str(), 0666);
data/tripwire-2.4.3.7/src/util/fileutil.cpp:267:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(dest_path.c_str(), srcStat.st_mode);
data/tripwire-2.4.3.7/src/util/fileutil.cpp:268:5:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    chown(dest_path.c_str(), srcStat.st_uid, srcStat.st_gid);
data/tripwire-2.4.3.7/src/core/debug.cpp:104:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(out, 2048, format, args);
data/tripwire-2.4.3.7/src/core/debug.cpp:309:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(buf, 2048, lpOutputString, args);
data/tripwire-2.4.3.7/src/core/tchar.h:87:13:  [4] (format) _ftprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define _ftprintf fprintf
data/tripwire-2.4.3.7/src/core/tchar.h:87:23:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define _ftprintf fprintf
data/tripwire-2.4.3.7/src/core/tchar.h:88:13:  [4] (buffer) _stprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#    define _stprintf sprintf
data/tripwire-2.4.3.7/src/core/tchar.h:88:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#    define _stprintf sprintf
data/tripwire-2.4.3.7/src/core/tchar.h:93:13:  [4] (format) _vtprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define _vtprintf vprintf
data/tripwire-2.4.3.7/src/core/tchar.h:93:23:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define _vtprintf vprintf
data/tripwire-2.4.3.7/src/core/tchar.h:94:13:  [4] (format) _vftprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define _vftprintf vfprintf
data/tripwire-2.4.3.7/src/core/tchar.h:94:24:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define _vftprintf vfprintf
data/tripwire-2.4.3.7/src/core/tchar.h:99:13:  [4] (buffer) _tcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
#    define _tcscpy strcpy
data/tripwire-2.4.3.7/src/core/tchar.h:99:21:  [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).
#    define _tcscpy strcpy
data/tripwire-2.4.3.7/src/core/tchar.h:101:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#    define _taccess access
data/tripwire-2.4.3.7/src/core/tchar.h:109:13:  [4] (buffer) _tcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
#    define _tcscat strcat
data/tripwire-2.4.3.7/src/core/tchar.h:109:21:  [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).
#    define _tcscat strcat
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:287:23:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    pchTempFileName = mktemp(szTemplate);
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:716:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(strNewName.c_str(), F_OK) == 0 && remove(strNewName.c_str()) != 0)
data/tripwire-2.4.3.7/src/core/usernotifystdout.cpp:47:9:  [4] (format) _vtprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        _vtprintf(format, args);
data/tripwire-2.4.3.7/src/core/usernotifystdout.cpp:52:9:  [4] (format) _vftprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        _vftprintf(stderr, format, args);
data/tripwire-2.4.3.7/src/tripwire/pipedmailmessage.cpp:157:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    mpFile = popen(mstrSendMailExePath.c_str(), _T("w"));
data/tripwire-2.4.3.7/src/tripwire/twcmdline.cpp:293:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(temp_directory.c_str(), F_OK) != 0)
data/tripwire-2.4.3.7/src/tw/textreportviewer.cpp:717:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int systemRet = system((char*)((editor + _T(' ') + strFilename).c_str()));
data/tripwire-2.4.3.7/src/twparser/yylex.cpp:496:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define YY_DEBUG(fmt,a1,a2) fprintf(stderr,fmt,a1,a2)
data/tripwire-2.4.3.7/src/twparser/yylex.cpp:637:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vfprintf(yyout, fmt, va);
data/tripwire-2.4.3.7/src/twparser/yylex.cpp:642:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vfprintf(stderr, fmt, va);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:62:16:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        memset(crypt, 0, COUNT + 1024);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:115:16:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        memset(crypt, 0, COUNT + 1024);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:218:16:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        memset(crypt, 0, COUNT + 1024);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:285:16:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        memset(crypt, 0, COUNT + 1024);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:318:16:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        memset(crypt, 0, COUNT + 1024);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:382:13:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
            crypt[4] = '\x42';
data/tripwire-2.4.3.7/src/twtest/fsspec_t.cpp:96:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 == access("/etc", F_OK))
data/tripwire-2.4.3.7/src/twtest/policyparser_t.cpp:78:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 == access(pol_path.c_str(), F_OK))
data/tripwire-2.4.3.7/src/twtest/unixfsservices_t.cpp:183:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (-1 == access("/bin/sh", F_OK))
data/tripwire-2.4.3.7/src/core/msystem.cpp:208: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.
char *getenv();             /* get variable from environment */
data/tripwire-2.4.3.7/src/core/msystem.cpp:415:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        q = getenv(env);
data/tripwire-2.4.3.7/src/core/tchar.h:100:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#    define _tgetenv getenv
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:951:25:  [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.
    TCHAR* pszPathVar = getenv("PATH");
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:1297:9:  [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(t);
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:1299:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(time(NULL) ^ mask);
data/tripwire-2.4.3.7/src/core/archive.cpp:377: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(pDest, mpMemory + mReadHead, count);
data/tripwire-2.4.3.7/src/core/archive.cpp:391: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(mpMemory + mReadHead, pDest, count);
data/tripwire-2.4.3.7/src/core/archive.cpp:420:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pNewMem, mpMemory, mLogicalSize);
data/tripwire-2.4.3.7/src/core/archive.cpp:441:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pNewMem, mpMemory, len);
data/tripwire-2.4.3.7/src/core/archive.cpp:541:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pDest, mpMemory + mReadHead, count);
data/tripwire-2.4.3.7/src/core/archive.cpp:556: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(mpMemory + mReadHead, pDest, count);
data/tripwire-2.4.3.7/src/core/codeconvert.cpp:479: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 aBuffer[MB_LEN_MAX];
data/tripwire-2.4.3.7/src/core/debug.cpp:60: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(mLabel, label, cnt);
data/tripwire-2.4.3.7/src/core/debug.cpp:101: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   out[2048];
data/tripwire-2.4.3.7/src/core/debug.cpp:283: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).
        logfile.open(filename, std::ios_base::out | std::ios_base::ate | std::ios_base::app);
data/tripwire-2.4.3.7/src/core/debug.cpp:305: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[2048];
data/tripwire-2.4.3.7/src/core/debug.h:152: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                 mLabel[MAX_LABEL];
data/tripwire-2.4.3.7/src/core/errorutil.cpp:54:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR buf[256];
data/tripwire-2.4.3.7/src/core/fileheader.cpp:70: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(mID, pszId, N * sizeof(char));
data/tripwire-2.4.3.7/src/core/fileheader.cpp:77: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(mID, rhs.mID, mIDLen * sizeof(char));
data/tripwire-2.4.3.7/src/core/fileheader.cpp:126: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(mBaggage.GetMap(), rhs.mBaggage.GetMap(), static_cast<size_t>(rhs.mBaggage.Length()));
data/tripwire-2.4.3.7/src/core/fileheader.h:77: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 mID[MAXBYTES];
data/tripwire-2.4.3.7/src/core/fileheader.h:92: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(mID, rhs.mID, MAXBYTES);
data/tripwire-2.4.3.7/src/core/haval.cpp:281:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void haval_string (char *string, uint8 fingerprint[FPTLEN >> 3])
data/tripwire-2.4.3.7/src/core/haval.cpp:299: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).
    if ((file = fopen (file_name, "rb")) == NULL)
data/tripwire-2.4.3.7/src/core/haval.cpp:377: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 (((uint8 *)state->block)+rmd_len, str, fill_len);
data/tripwire-2.4.3.7/src/core/haval.cpp:380: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 ((uint8 *)state->block, str+i, 128);
data/tripwire-2.4.3.7/src/core/haval.cpp:387: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 (((uint8 *)state->block)+rmd_len, str+i, str_len-i);
data/tripwire-2.4.3.7/src/core/haval.cpp:393: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 ((char*) &state->remainder[rmd_len], (char*) str, fill_len);
data/tripwire-2.4.3.7/src/core/haval.cpp:397: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 ((char *) state->remainder, (char *) str+i, 128);
data/tripwire-2.4.3.7/src/core/haval.cpp:406: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 ((char *) &state->remainder[rmd_len], (char *) str+i, str_len-i);
data/tripwire-2.4.3.7/src/core/msystem.cpp:633: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 *argv[5];            /* argument list */
data/tripwire-2.4.3.7/src/core/msystem.cpp:686: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 *argv[5];            /* argument list */
data/tripwire-2.4.3.7/src/core/msystem.cpp:773: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 *argv[5];            /* argument list */
data/tripwire-2.4.3.7/src/core/msystem.cpp:887:17:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
 #define fork() vfork()
data/tripwire-2.4.3.7/src/core/sha.cpp:273: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( (char *) shsInfo->data, (char *) buffer, SHS_BLOCKSIZE );
data/tripwire-2.4.3.7/src/core/sha.cpp:284: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( (char *) shsInfo->data, (char *) buffer, count );
data/tripwire-2.4.3.7/src/core/tchar.h:90:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
#    define _ttoi atoi
data/tripwire-2.4.3.7/src/core/tchar.h:95:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#    define _topen open
data/tripwire-2.4.3.7/src/core/tchar.h:97:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#    define _tfopen fopen
data/tripwire-2.4.3.7/src/core/twlocale.cpp:303:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR achTimeBuf[256];
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:203:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int dfd = open(strFilename.c_str(), O_RDONLY | O_DIRECTORY | O_NOATIME);
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:254:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR pathname[iFSServices::TW_MAX_PATH];
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:268: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  szTemplate[iFSServices::TW_MAX_PATH];
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:275:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    if ((fd = mkstemp(szTemplate)) == -1)
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:429: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[256];
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:608:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szPerm[12]; //10 permission bits plus the NULL
data/tripwire-2.4.3.7/src/core/wchar16.cpp:108: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(mpData->pString, pStr, len * sizeof(WCHAR16));
data/tripwire-2.4.3.7/src/core/wchar16.cpp:267: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(pString, rhs.pString, newlen * sizeof(WCHAR16));
data/tripwire-2.4.3.7/src/core/wchar16.cpp:300: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(newString, pString, newlen * sizeof(WCHAR16));
data/tripwire-2.4.3.7/src/core/wchar16.cpp:307: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(newString, pString, length * sizeof(WCHAR16));
data/tripwire-2.4.3.7/src/core/wchar16.cpp:328: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(this->pString, rhs.pString, newlen * sizeof(WCHAR16));
data/tripwire-2.4.3.7/src/cryptlib/elgamal.cpp:62: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(block+modulusLen-2-plainTextLength, plainText, plainTextLength);
data/tripwire-2.4.3.7/src/cryptlib/integer.cpp:1423: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(output+i, buf, bc);
data/tripwire-2.4.3.7/src/cryptlib/iterhash.h:56:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy((byte *)data.ptr+num, input, blockSize-num);
data/tripwire-2.4.3.7/src/cryptlib/iterhash.h:65:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy((byte *)data.ptr+num, input, len);
data/tripwire-2.4.3.7/src/cryptlib/iterhash.h:77:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data, input, blockSize);
data/tripwire-2.4.3.7/src/cryptlib/iterhash.h:91: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(data, input, len);
data/tripwire-2.4.3.7/src/cryptlib/misc.h:147:48:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        : size(size) {ptr = SecAlloc(T, size); memcpy(ptr, t, size*sizeof(T));}
data/tripwire-2.4.3.7/src/cryptlib/misc.h:190: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(ptr, t.ptr, size*sizeof(T));
data/tripwire-2.4.3.7/src/cryptlib/misc.h:232:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newPtr, ptr, size*sizeof(T));
data/tripwire-2.4.3.7/src/cryptlib/misc.h:244:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(newPtr, ptr, size*sizeof(T));
data/tripwire-2.4.3.7/src/cryptlib/queue.cpp:29:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        {memcpy(target, buf+head, tail-head);}
data/tripwire-2.4.3.7/src/cryptlib/queue.cpp:63:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf+tail, inString, l);
data/tripwire-2.4.3.7/src/cryptlib/queue.cpp:80: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(outString, buf+head, l);
data/tripwire-2.4.3.7/src/cryptlib/sha.cpp:44: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(hash, digest, DIGESTSIZE);
data/tripwire-2.4.3.7/src/cryptlib/sha.cpp:116:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( eData, data, DATASIZE );
data/tripwire-2.4.3.7/src/cryptlib/sha.h:17:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(out, in, byteCount);
data/tripwire-2.4.3.7/src/cryptlib/zdeflate.cpp:366: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(window, window+(unsigned int)WSIZE, WSIZE);
data/tripwire-2.4.3.7/src/cryptlib/zdeflate.cpp:385: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((byte*)window+strstart+lookahead, buffer, more);
data/tripwire-2.4.3.7/src/cryptlib/zinflate.cpp:529: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(slide + w, slide + d, e);
data/tripwire-2.4.3.7/src/db/blockfile.cpp:242: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 emptyBlock[BLOCK_SIZE];
data/tripwire-2.4.3.7/src/db/blockrecordarray.cpp:310: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(util_OffsetToAddr(pBlock, pIndex->GetOffset()), pData, dataSize);
data/tripwire-2.4.3.7/src/fco/signature.cpp:209: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((char*)larray, (char*)pl, numlongs * sizeof(uint32));
data/tripwire-2.4.3.7/src/fco/signature.cpp:329:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[100];
data/tripwire-2.4.3.7/src/fco/signature.cpp:422:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[100];
data/tripwire-2.4.3.7/src/fco/signature.cpp:523:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(mMD5Info.digest, md5_digest, MD5_DIGEST_LENGTH);
data/tripwire-2.4.3.7/src/fco/signature.cpp:535: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[24];
data/tripwire-2.4.3.7/src/fco/signature.cpp:550:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR stringBuffer[128];
data/tripwire-2.4.3.7/src/fco/signature.cpp:551:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR sigStringOut[129];
data/tripwire-2.4.3.7/src/fco/signature.cpp:594: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(md5_digest, &(static_cast<const cMD5Signature*>(rhs)->md5_digest), SIG_BYTE_SIZE);
data/tripwire-2.4.3.7/src/fco/signature.cpp:662:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    buf[100];
data/tripwire-2.4.3.7/src/fco/signature.cpp:675:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR stringBuffer[128];
data/tripwire-2.4.3.7/src/fco/signature.cpp:676:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR sigStringOut[129];
data/tripwire-2.4.3.7/src/fco/signature.cpp:737:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/tripwire-2.4.3.7/src/fco/signature.cpp:752:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR stringBuffer[128];
data/tripwire-2.4.3.7/src/fco/signature.cpp:753:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR sigStringOut[129];
data/tripwire-2.4.3.7/src/fco/signature.cpp:843: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[24];
data/tripwire-2.4.3.7/src/fco/signature.cpp:856:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR stringBuffer[128];
data/tripwire-2.4.3.7/src/fco/signature.cpp:857:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR sigStringOut[129];
data/tripwire-2.4.3.7/src/fco/signature.cpp:875: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(&mSignature, &(static_cast<const cHAVALSignature*>(rhs)->mSignature), SIG_BYTE_SIZE);
data/tripwire-2.4.3.7/src/fs/fspropcalc.cpp:85:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd  = open(strName.c_str(), (O_PATH | O_NOFOLLOW | O_NOATIME));
data/tripwire-2.4.3.7/src/tripwire/generatedb_t.cpp:66: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).
        in.open("c:/tmp/pol.pol");
data/tripwire-2.4.3.7/src/tripwire/integritycheck_t.cpp:69: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).
        in.open("c:/tmp/pol.pol");
data/tripwire-2.4.3.7/src/tripwire/mailmessage.cpp:144:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char                buf[cBufSize];
data/tripwire-2.4.3.7/src/tripwire/mailmessage.cpp:229:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR      szDate[1024];
data/tripwire-2.4.3.7/src/tripwire/smtpmailmessage.cpp:323: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 sLocalHost[256]; // It's alright for this to be a fixed buffer, since
data/tripwire-2.4.3.7/src/tripwire/smtpmailmessage.cpp:478:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR sRecvString[bufsize + 1]; // This string is and should be unicode
data/tripwire-2.4.3.7/src/tripwire/smtpmailmessage.cpp:479: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 sTempString[bufsize + 1];  // This string is not, and should not be unicode
data/tripwire-2.4.3.7/src/tripwire/twcmdlineutil.cpp:121: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).
    in.open(cStringUtil::TstrToStr(fileName).c_str());
data/tripwire-2.4.3.7/src/tw/dbexplore.cpp:74:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR          buf[1024];
data/tripwire-2.4.3.7/src/tw/textdbviewer.cpp:150: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).
        fileOut.open(strFilename.c_str());
data/tripwire-2.4.3.7/src/tw/textreportviewer.cpp:1720: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).
    in.open(cStringUtil::TstrToStr(strFile).c_str());
data/tripwire-2.4.3.7/src/tw/textreportviewer.cpp:1735: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).
    int fd = open(narrowFilename.c_str(), O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 00600);
data/tripwire-2.4.3.7/src/tw/textreportviewer.cpp:1741:9:  [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).
    out.open(narrowFilename.c_str());
data/tripwire-2.4.3.7/src/tw/textreportviewer.cpp:1877:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szDate[256];
data/tripwire-2.4.3.7/src/tw/textreportviewer.h:278: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                    mCurrentChar[6];
data/tripwire-2.4.3.7/src/tw/twutil.cpp:945: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[MAX_STRING];
data/tripwire-2.4.3.7/src/twadmin/twadmincl.cpp:2070: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(passphraseCopyOld, passphraseOld.data(), passphraseLenOld);
data/tripwire-2.4.3.7/src/twadmin/twadmincl.cpp:2071: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(passphraseCopy, passphrase.data(), passphraseLen);
data/tripwire-2.4.3.7/src/twcrypto/bytequeue.cpp:74: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(target, buf + head, tail - head);
data/tripwire-2.4.3.7/src/twcrypto/bytequeue.cpp:113:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(buf + tail, inString, l);
data/tripwire-2.4.3.7/src/twcrypto/bytequeue.cpp:130: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(outString, buf + head, l);
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:70: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(pOut, &i32, sizeof(i32));           \
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:351: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(pOut, &i16, sizeof(i16));
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:370: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(pOut, &i32, sizeof(i32));           \
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:471: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(pOut, &i16, sizeof(i16));
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:810:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pOut, &i16, sizeof(i16));
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:814: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(pOut, &i32, sizeof(i32));
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:935: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(pOut, &i16, sizeof(i16));
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:939: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(pOut, &i32, sizeof(i32));
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:1227: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(mKey, localKey, KEYLEN);
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:1240: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(mKey, localKey, KEYLEN);
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:1256: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).
        rng_device = open(device_name, O_RDONLY | O_NONBLOCK);
data/tripwire-2.4.3.7/src/twcrypto/crypto.h:383: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(pDataStream, mKey, KEYLEN);
data/tripwire-2.4.3.7/src/twcrypto/crypto.h:422: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(pDataStream, mKey, KEYLEN);
data/tripwire-2.4.3.7/src/twcrypto/cryptoarchive.cpp:302: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(mpBuffer + mBufferUsed, (int8*)inString + i, bytesToCopy);
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:305: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(mpPrivateKeyMem, pMem + sizeof(int16), mPrivateKeyMemLen);
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:321: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(pMem, &i32, sizeof(i32));
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:325: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(pMem, &i32, sizeof(i32));
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:331: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(pMem, &i16, sizeof(i16));
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:340: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(pMem, &i16, sizeof(i16));
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:343: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(pMem, mpPrivateKeyMem, mPrivateKeyMemLen);
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:392: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(mpPrivateKeyMem + cHashedKey128::GetWriteLen(), &i16, sizeof(i16));
data/tripwire-2.4.3.7/src/twcrypto/keyfile.cpp:474: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(plainPrivateKeyMem, mpPrivateKeyMem, mPrivateKeyMemLen);
data/tripwire-2.4.3.7/src/twparser/policyparser.cpp:80:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR          sz[2];
data/tripwire-2.4.3.7/src/twparser/yylex.cpp:860:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static unsigned char bits [8] = {
data/tripwire-2.4.3.7/src/twparser/yyparse.cpp:1351:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char yyReadBuf[YYMAX_READ+1];
data/tripwire-2.4.3.7/src/twparser/yyparse.cpp:1354:25:  [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).
     && (yyStatesFile = fopen(YYStatesFile, "r")) == (FILE *) 0)
data/tripwire-2.4.3.7/src/twtest/blockfile_t.cpp:64: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(pB->GetData(), str1, sizeof(str1));
data/tripwire-2.4.3.7/src/twtest/blockfile_t.cpp:75:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pB->GetData(), str2, sizeof(str2));
data/tripwire-2.4.3.7/src/twtest/blockfile_t.cpp:96: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(pB->GetData(), str3, sizeof(str3));
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:55: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(source, "I love the smell of the sheep.", 31);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:71: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[32];
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:81:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf, source + i, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:98:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:124: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[BUFSIZE];
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:144: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 crypt2[COUNT + BUFSIZE];
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:145: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 dest2[COUNT];
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:154:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf, source + i, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:169:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf, source + i, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:191:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:207:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest2 + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:228:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf, source + i, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:245:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:263:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:294: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[BUFSIZE];
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:330:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(buf, source + i, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:349:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:369:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(dest + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/crypto_t.cpp:393:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dest + i, buf, COUNT - i);
data/tripwire-2.4.3.7/src/twtest/cryptoarchive_t.cpp:53: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(chunk, "1234567", 7);
data/tripwire-2.4.3.7/src/twtest/cryptoarchive_t.cpp:191: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(chunk, "1234567", 7);
data/tripwire-2.4.3.7/src/twtest/fcocompare_t.cpp:112:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fstr.open(filename.c_str());
data/tripwire-2.4.3.7/src/twtest/fileheader_t.cpp:124: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[6];
data/tripwire-2.4.3.7/src/twtest/keyfile_t.cpp:64: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 plaintext[9000];
data/tripwire-2.4.3.7/src/twtest/keyfile_t.cpp:65:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ciphertext[9000];
data/tripwire-2.4.3.7/src/twtest/keyfile_t.cpp:86:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char        recovered_text[9000];
data/tripwire-2.4.3.7/src/twtest/keyfile_t.cpp:106: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        recovered_text[9000];
data/tripwire-2.4.3.7/src/twtest/keyfile_t.cpp:126: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        recovered_text[9000];
data/tripwire-2.4.3.7/src/twtest/policyparser_t.cpp:82: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).
    in.open(pol_path.c_str());
data/tripwire-2.4.3.7/src/twtest/tchar_t.cpp:101:9:  [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).
    out.open(inputfile.c_str(), std::ios_base::out);
data/tripwire-2.4.3.7/src/twtest/tchar_t.cpp:106:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    from.open(inputfile.c_str(), std::ios_base::in);
data/tripwire-2.4.3.7/src/twtest/textreportviewer_t.cpp:448:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char ach[6];
data/tripwire-2.4.3.7/src/core/debug.cpp:56: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).
    int cnt = strlen(label);
data/tripwire-2.4.3.7/src/core/debug.cpp:66:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mLabel, rhs.mLabel, MAX_LABEL);
data/tripwire-2.4.3.7/src/core/debug.cpp:107: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).
    ASSERT(strlen(out) < 1024);
data/tripwire-2.4.3.7/src/core/error.cpp:46:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    crcUpdate(crc, (const uint8*)name, strlen(name));
data/tripwire-2.4.3.7/src/core/file_unix.cpp:355:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iBytesRead = read(mpData->m_fd, buffer, nBytes);
data/tripwire-2.4.3.7/src/core/fileheader.cpp:65:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t N = ::strlen(pszId);
data/tripwire-2.4.3.7/src/core/hashtable.h:97:38:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *pcbKeyLen = sizeof(TCHAR) * _tcslen(obj);
data/tripwire-2.4.3.7/src/core/haval.cpp:284: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).
  unsigned int  len = strlen (string);
data/tripwire-2.4.3.7/src/core/msystem.cpp:235:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t p_size = (strlen(str)+1)*sizeof(char);
data/tripwire-2.4.3.7/src/core/msystem.cpp:238:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            (void) strncpy(p, str, p_size);
data/tripwire-2.4.3.7/src/core/msystem.cpp:423:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t p_size = strlen(env) + strlen(q) + 2;
data/tripwire-2.4.3.7/src/core/msystem.cpp:423: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).
        size_t p_size = strlen(env) + strlen(q) + 2;
data/tripwire-2.4.3.7/src/core/msystem.cpp:430:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            (void) strncpy(p, env, p_size);
data/tripwire-2.4.3.7/src/core/msystem.cpp:431:20:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
            (void) strncat(p, "=", p_size);
data/tripwire-2.4.3.7/src/core/msystem.cpp:432:20:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            (void) strncat(p, q, p_size);
data/tripwire-2.4.3.7/src/core/msystem.cpp:611: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).
                if (strncmp(envp[i], "SHELL=", strlen("SHELL=")) == 0)
data/tripwire-2.4.3.7/src/core/msystem.cpp:944:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void) umask(mask);
data/tripwire-2.4.3.7/src/core/serializerimpl.cpp:63: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).
    int          nBytes  = ::strlen((const char*)pszType);
data/tripwire-2.4.3.7/src/core/tchar.h:108:13:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#    define _tcslen strlen
data/tripwire-2.4.3.7/src/core/tchar.h:108:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#    define _tcslen strlen
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:271:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(szTemplate, strName.c_str(), iFSServices::TW_MAX_PATH);
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:290:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (pchTempFileName == NULL || strlen(pchTempFileName) == 0)
data/tripwire-2.4.3.7/src/core/unixfsservices.cpp:609:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(szPerm, _T("----------"), 11);
data/tripwire-2.4.3.7/src/cryptlib/integer.cpp:1291: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).
    unsigned length = strlen(str);
data/tripwire-2.4.3.7/src/cryptlib/integer.cpp:1539:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        in.read(&c, 1);
data/tripwire-2.4.3.7/src/fco/fconametbl.cpp:114:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(mpString, newStr.c_str(), alloc_size);
data/tripwire-2.4.3.7/src/fco/signature.cpp:558:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(sigStringOut, stringBuffer, 128);
data/tripwire-2.4.3.7/src/fco/signature.cpp:683:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(sigStringOut, stringBuffer, 128);
data/tripwire-2.4.3.7/src/fco/signature.cpp:759:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(sigStringOut, stringBuffer, 128);
data/tripwire-2.4.3.7/src/fco/signature.cpp:863:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(sigStringOut, stringBuffer, 128);
data/tripwire-2.4.3.7/src/tripwire/smtpmailmessage.cpp:92:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(myname.nodename) < (unsigned int)namelen)
data/tripwire-2.4.3.7/src/tripwire/smtpmailmessage.cpp:94:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(name, myname.nodename, namelen);
data/tripwire-2.4.3.7/src/tripwire/smtpmailmessage.cpp:104:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(name, "localhost", namelen);
data/tripwire-2.4.3.7/src/tripwire/tripwiremain.cpp:174: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).
            memset((char*)argv[i], 0, strlen(argv[i]) * sizeof(TCHAR));
data/tripwire-2.4.3.7/src/tw/twutil.cpp:949:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(0, buf, MAX_STRING);
data/tripwire-2.4.3.7/src/twadmin/keygeneration.cpp:76:56:  [1] (buffer) _tcslen:
  Does not handle 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 (pGK->doneFlag != false || pGK->keyPath == 0 || _tcslen(pGK->keyPath) == 0)
data/tripwire-2.4.3.7/src/twadmin/twadminmain.cpp:135: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).
            memset((char*)argv[i], 0, strlen(argv[i]) * sizeof(TCHAR));
data/tripwire-2.4.3.7/src/twcrypto/crypto.cpp:1260:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int bytes_read = read(rng_device, destbuf, len);
data/tripwire-2.4.3.7/src/twparser/yylex.h:128:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return getc(yyin);
data/tripwire-2.4.3.7/src/twparser/yyparse.cpp:1399:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        full:   (void) strncpy(buf, " ...\n", len);
data/tripwire-2.4.3.7/src/twparser/yyparse.cpp:1427: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 ((i = strlen(cp)) + buf > endp)
data/tripwire-2.4.3.7/src/twparser/yyparse.cpp:1429:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            (void) strncpy(buf, cp, len);
data/tripwire-2.4.3.7/src/twprint/twprintmain.cpp:160: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).
            memset((char*)argv[i], 0, strlen(argv[i]) * sizeof(char));
data/tripwire-2.4.3.7/src/twtest/codeconvert_t.cpp:78:38:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    std::pair<IterT, IterT> p = std::mismatch(first, last, x);
data/tripwire-2.4.3.7/src/twtest/stringutil_t.h:80:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    TEST(std::equal(a.begin(), a.end(), NTDBS1));
data/tripwire-2.4.3.7/src/twtest/stringutil_t.h:85:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    TEST(std::equal(a.begin(), a.end(), NTDBS1));
data/tripwire-2.4.3.7/src/twtest/stringutil_t.h:86:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    TEST(std::equal(b.begin(), b.end(), NTDBS1));
data/tripwire-2.4.3.7/src/twtest/stringutil_t.h:123:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    TEST(std::equal(x.begin(), x.end(), ref.begin()));

ANALYSIS SUMMARY:

Hits = 264
Lines analyzed = 104343 in approximately 2.25 seconds (46455 lines/second)
Physical Source Lines of Code (SLOC) = 57921
Hits@level = [0]  39 [1]  48 [2] 169 [3]   6 [4]  34 [5]   7
Hits@level+ = [0+] 303 [1+] 264 [2+] 216 [3+]  47 [4+]  41 [5+]   7
Hits/KSLOC@level+ = [0+] 5.23126 [1+] 4.55793 [2+] 3.72922 [3+] 0.81145 [4+] 0.707861 [5+] 0.120854
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.