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/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbackupctl/bbackupctl.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbackupd/bbackupd.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbackupobjdump/bbackupobjdump.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbackupquery/bbackupquery.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbstoreaccounts/bbstoreaccounts.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbstored/bbstored.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/bin/s3simulator/s3simulator.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/infrastructure/buildenv-testmain-template.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientCryptoKeys.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientCryptoKeys.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientMakeExcludeList.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientMakeExcludeList.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientRestore.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientRestore.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupDaemonConfigVerify.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupDaemonConfigVerify.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackgroundTask.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupAccountControl.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupAccountControl.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupCommands.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupConstants.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupProtocol.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccountDatabase.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccountDatabase.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccounts.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccounts.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck2.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheckData.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreConfigVerify.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreConfigVerify.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreConstants.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreContext.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreContext.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreDirectory.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreDirectory.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreException.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFile.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFile.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileCmbDiff.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileCmbIdx.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileCombine.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileCryptVar.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileCryptVar.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileDiff.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileEncodeStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileEncodeStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileRevDiff.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileWire.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilename.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilename.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilenameClear.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilenameClear.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreInfo.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreInfo.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreObjectMagic.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreRefCountDatabase.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreRefCountDatabase.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/HousekeepStoreAccount.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/HousekeepStoreAccount.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/RunStatusProvider.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/StoreStructure.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/StoreStructure.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/StoreTestUtils.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/StoreTestUtils.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientContext.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientContext.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientDeleteList.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientDeleteList.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientDirectoryRecord.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientDirectoryRecord.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientInodeToIDMap.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientInodeToIDMap.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemon.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemon.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemonInterface.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/Win32BackupService.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/Win32BackupService.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/Win32ServiceFunctions.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/Win32ServiceFunctions.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BackupQueries.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BackupQueries.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BoxBackupCompareParams.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/CommandCompletion.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbstored/BBStoreDHousekeeping.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbstored/BackupStoreDaemon.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbstored/BackupStoreDaemon.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Archive.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BannerText.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BannerText.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BeginStructPackForWire.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Box.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxConfig-MSVC.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxException.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxException.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxPlatform.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTime.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTime.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTimeToText.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTimeToText.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTimeToUnix.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedWriteStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedWriteStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/CollectInBufferStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/CollectInBufferStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/CommonException.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Configuration.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Configuration.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Conversion.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ConversionString.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Database.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugAssertFailed.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugMemLeakFinder.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugPrintf.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/EndStructPackForWire.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ExcludeList.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ExcludeList.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FdGetLine.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FdGetLine.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileModificationTime.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileModificationTime.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/GetLine.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/GetLine.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Guards.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/IOStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/IOStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/IOStreamGetLine.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/IOStreamGetLine.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/InvisibleTempFileStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/InvisibleTempFileStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Logging.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/MainHelper.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/MemBlockStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/MemBlockStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/MemLeakFindOff.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/MemLeakFindOn.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/MemLeakFinder.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/NamedLock.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/NamedLock.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/PartialReadStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/PartialReadStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/PathUtils.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/PathUtils.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/RateLimitingStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/RateLimitingStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ReadGatherStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ReadGatherStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ReadLoggingStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ReadLoggingStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/SelfFlushingStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/StreamableMemBlock.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/StreamableMemBlock.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Timer.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Timer.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/UnixUser.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/UnixUser.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Utils.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Utils.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/WaitForEvent.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/WaitForEvent.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ZeroStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ZeroStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Logging.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/compress/Compress.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/compress/CompressException.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/compress/CompressStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/compress/CompressStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherAES.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherAES.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherBlowfish.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherBlowfish.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherContext.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherContext.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherDescription.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherDescription.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherException.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CryptoUtils.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CryptoUtils.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/MD5Digest.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/MD5Digest.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/Random.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/Random.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/RollingChecksum.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/RollingChecksum.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPQueryDecoder.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPQueryDecoder.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPRequest.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPRequest.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPResponse.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPResponse.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPServer.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPServer.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/S3Client.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/S3Client.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/S3Simulator.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/S3Simulator.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/cdecode.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/cdecode.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/cencode.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/cencode.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/decode.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/encode.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/intercept/intercept.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/intercept/intercept.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileController.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileController.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileException.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileUtil.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileUtil.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileWrite.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileWrite.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Daemon.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Daemon.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Message.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Message.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/OverlappedIO.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolWire.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SSLLib.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SSLLib.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerControl.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerControl.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerTLS.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Socket.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Socket.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SocketListen.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SocketStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SocketStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SocketStreamTLS.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SocketStreamTLS.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/TLSContext.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/TLSContext.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/TcpNice.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/TcpNice.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/WinNamedPipeListener.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/WinNamedPipeStream.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/WinNamedPipeStream.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/box_getopt.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/bsd_getopt.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu_winver.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/messages.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtsv.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptsv.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hovel.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hovel.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vista.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vista.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltsv.c
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/difftestfiles.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp
Parsing failed to find end of parameter list; semicolon terminated it in ("ID %I64d, completely different: %s\n",
#else
					printf("ID %lld, completely different: %s\n", 
#endif
						test_files[f].IDOnServer,
						test_files[f].IsCompletelyDifferent?"yes":"no");			
				
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/TestCommands.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/TestContext.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/TestContext.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/compress/testcompress.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testfiles/bfdlink.h
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/s3store/tests3store.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp
Examining data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/timezone.cpp

FINAL RESULTS:

data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:520:23:  [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 linkedToSize = ::readlink(Filename.c_str(), linkedTo, PATH_MAX);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:837:10:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
				if(::chown(Filename.c_str(), ntohl(pattr->UID), ntohl(pattr->GID)) != 0)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:909:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if(::chmod(Filename.c_str(), mode & (S_IRWXU | S_IRWXG | S_IRWXO |
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemon.cpp:191:3:  [5] (misc) SetSecurityDescriptorDacl:
  Never create NULL ACLs; an attacker can set it to Everyone (Deny All
  Access), which would even forbid administrator access (CWE-732).
		SetSecurityDescriptorDacl(&SecurityDesc, TRUE, NULL, FALSE);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemon.cpp:191:3:  [5] (misc) SetSecurityDescriptorDacl:
  Never create NULL ACLs; an attacker can set it to Everyone (Deny All
  Access), which would even forbid administrator access (CWE-732).
		SetSecurityDescriptorDacl(&SecurityDesc, TRUE, NULL, FALSE);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h:130:12:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
inline int chown(const char * Filename, uint32_t uid, uint32_t gid)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h:360:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#define chmod(file,     mode)    emu_chmod  (file,     mode)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:311: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 p1l = ::readlink(f1, p1, PATH_MAX);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:312: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 p2l = ::readlink(f2, p2, PATH_MAX);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2146:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		TEST_THAT(chmod(SYM_DIR, 0) == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2159:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		TEST_THAT(chmod(SYM_DIR, 0755) == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2290:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				TEST_THAT(chmod("testfiles/TestDir1/x1",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2319:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				TEST_THAT(chmod("testfiles/TestDir1/x1",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2321:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				TEST_THAT(chmod("testfiles/restore1/x1",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2323:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				TEST_THAT(chmod("testfiles/restore-test/Test1/x1",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3134:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			::chmod("testfiles/TestDir1/sub23/dhsfdss/blf.h", 0415);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3155:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
				TEST_THAT(chmod("testfiles/TestDir1/sub23/rand.h",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3314:16:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			TEST_THAT(::chmod("testfiles/TestDir1/sub23"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3316:16:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			TEST_THAT(::chmod("testfiles/TestDir1"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3401:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		TEST_THAT(::chmod("testfiles/TestDir1/df9834.dsf", 0423) == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3587:14:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			TEST_THAT(chmod("testfiles/TestDir1/chsh", 0755) == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:412:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		TEST_THAT(chmod("testfiles/testrequests.pl", 0) == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:425:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		TEST_THAT(chmod("testfiles/testrequests.pl", 0755) == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp:41:6:  [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.
	r = vsnprintf(text, sizeof(text), format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccounts.cpp:161:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	::snprintf(accid, sizeof(accid) - 1, "%08x" DIRECTORY_SEPARATOR, ID);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccounts.cpp:439:8:  [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.
		if(::system(cmd.c_str()) != 0)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck.cpp:499:6:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			::snprintf(leaf, sizeof(leaf),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemon.cpp:3166: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 returnCode = ::system(script.c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BackupQueries.cpp:134:18:  [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 result = ::system(rCommand.mCmdElements[1].c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugPrintf.cpp:32:10:  [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.
	int r = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugPrintf.cpp:50:7:  [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.
		r = vsnprintf(text, sizeof(text), format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:200:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	TEST_THAT_THROWONFAIL(system(
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:211:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	TEST_THAT_THROWONFAIL(system("touch testfiles/accounts.txt") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:317:11:  [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.
	return ::system(ConvertPaths(rCommandLine).c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:438:14:  [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.
	TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:446:14:  [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.
	TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:455:14:  [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.
	TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:464:14:  [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.
	TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:472:14:  [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.
	TEST_THAT(::system(BBACKUPCTL " -q -c testfiles/bbackupd.conf "
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPServer.cpp:164:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			::sprintf(exceptionCode, "%s (%d/%d)", e.what(),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Daemon.cpp:937:4:  [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(title, sizeof(title), format, args);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.cpp:98:5:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		::execv(args[0], args);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.cpp:142:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(commandLineCopy, rCommandLine.c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp:860:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		::fprintf(GetLogToFile(),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp:892:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		::fprintf(GetLogToFile(),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1480:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
void syslog(int loglevel, const char *frmt, ...)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1518:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	int len = vsnprintf(buffer, sizeof(buffer)-1, sixfour.c_str(), args);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h:202:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf _vsnprintf
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h:205:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h:205:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h:265:6:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
void syslog  (int loglevel, const char *fmt, ...);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:96:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:639:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        tlen = sprintf(tbuf, cbuf, va_arg(ap, int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:643:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        tlen = sprintf(tbuf, cbuf, va_arg(ap, unsigned int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:647:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        tlen = sprintf(tbuf, cbuf, va_arg(ap, double));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1633:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        len += sprintf(buf + len, cbuf, num);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1638:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        len += sprintf(buf + len, cbuf, unum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1643:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        len += sprintf(buf + len, cbuf, dnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2574:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, "=?%s?%c?", encname, base ? 'B' : 'Q');
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2576:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, "%s?=", enc);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2607:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      wp += sprintf(wp, "%s", dec);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3066:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(date, "%04d-%02d-%02dT%02d:%02d:%02d%s", year, mon, day, hour, min, sec, tzone);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3335:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "fatal error: %s\n", message);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:302:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:726:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(spbuf, "[%08d/%08o/%08u/%08x/%08X/%08.3e/%08.3E/%08.3f/%08.3g/%08.3G/%c/%s/%%]",
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:289:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:86:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s%c%s", name, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:102:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s%c%04d", name, MYPATHCHR, i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:112:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s%c%s", name, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:125:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s%c%04d%c%s", name, MYPATHCHR, i + 1, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:131:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s%c%04d%c%s", name, MYPATHCHR, i + 1, MYPATHCHR, CR_LOBDIR);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:137:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s%c%04d", name, MYPATHCHR, i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:159:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s%c%04d%c%s", name, MYPATHCHR, i + 1, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:512:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c0001%c%s", name, MYPATHCHR, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:514:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c0001", name, MYPATHCHR);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:519:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s", name, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:541:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s", name, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:549:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s%c%04d%c%s", name, MYPATHCHR, i, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:561:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%s", name, CR_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:565:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s%c%04d%c%s", name, MYPATHCHR, i, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:582:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s%c%04d%c%s", name, MYPATHCHR, j, MYPATHCHR, CR_LOBDIR);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:590:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s%s", name, CR_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:615:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s%c%04d", name, MYPATHCHR, i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:676:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ipath, "%s%c%04d", name, MYPATHCHR, i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:678:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(opath, "%s%c%04d%s", curia->name, MYPATHCHR, i + 1, CR_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:710:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s", name, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:719:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%04d%c%s", name, MYPATHCHR, tnum + 1, MYPATHCHR, CR_DPNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:997:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(wp, "%s%c%04d%c%s%c",
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1010:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  wp += sprintf(path, "%s", prefix);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1059:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(elem, "%s%c%s", path, MYPATHCHR, dp->d_name);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1133:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(elem, "%s%c%s", path, MYPATHCHR, dp->d_name);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:798:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(name, "%s%s", depot->name, DP_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1088:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tname, "%s%s", name, DP_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1442:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(iobuf, "* dpecodeset: %s:%d: [%d] %s\n", file, line, ecode, dperrmsg(ecode));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:272:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c:159:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:431:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(expr, "%s*", name);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:433:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(expr, "%s%c*", name, MYPATHCHR);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:459:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dir->de.d_name, "%s", dir->data.cFileName);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:464:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(dir->de.d_name, "%s", dir->data.cFileName);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:973:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(docsname, "%s%c%s", name, MYPATHCHR, OD_DOCSNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:974:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(indexname, "%s%c%s", name, MYPATHCHR, OD_INDEXNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:975:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(rdocsname, "%s%c%s", name, MYPATHCHR, OD_RDOCSNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:987:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s%c%s", name, MYPATHCHR, file);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1574:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(docsname, "%s%c%s", name, MYPATHCHR, OD_DOCSNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1575:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(indexname, "%s%c%s", name, MYPATHCHR, OD_INDEXNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1576:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(rdocsname, "%s%c%s", name, MYPATHCHR, OD_RDOCSNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:202:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  plen = sprintf(path, "%s", dir);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:308:3:  [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.
  vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:320:3:  [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.
  vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:361:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s", name, PATHCHR, MTDBNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:415:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s", name, PATHCHR, MTDBNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:468:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s%s", dir, file);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:470:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(path, "%s%c%s", dir, PATHCHR, file);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:581:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    wp += sprintf(wp, "%s", enc);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:761:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%c%s", name, PATHCHR, SCDBNAME);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:627:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      ssiz += sprintf(sbuf + ssiz, "<<%s>>", asis);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:629:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      ssiz += sprintf(sbuf + ssiz, "%s", asis);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:656:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          ssiz += sprintf(sbuf + ssiz, "<<%s>>", asis);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:658:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          ssiz += sprintf(sbuf + ssiz, "%s", asis);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:223:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:104:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:113:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:146:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(name, "%s-%04d", myargs->name, myargs->id);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c:59:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%s", name, RL_DIRFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c:62:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%s", name, RL_DATAFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c:144:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1268:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%s", name, VL_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1359:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%s", name, VL_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1399:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "%s%s", kbuf, VL_TMPFSUF);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:326:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  rv = vprintf(format, ap);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:247:5:  [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.
		::system(cmd);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:338:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(last_diff, combined_file);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1381:3:  [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.
		system("dir testfiles\\0_0\\backup\\01234567");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1392:3:  [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.
		system("dir testfiles\\0_0\\backup\\01234567");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1424:3:  [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.
		system("dir testfiles\\0_0\\backup\\01234567");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1443:3:  [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.
		system("dir testfiles\\0_0\\backup\\01234567");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1471:3:  [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.
		system("dir testfiles\\0_0\\backup\\01234567");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1483:3:  [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.
		system("dir testfiles\\0_0\\backup\\01234567");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1489:18:  [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.
		TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:2588:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:2599:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:2632:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:2661:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:2774:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:2824:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:3108:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:3114:17:  [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.
	TEST_THAT_OR(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:79:4:  [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.
	::system(BBSTOREACCOUNTS " -c testfiles/bbstored.conf check 01234567"); \
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:80:4:  [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.
	::system(BBSTOREACCOUNTS " -c testfiles/bbstored.conf check 01234567 fix");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:466:26:  [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.
	TEST_THAT_ABORTONFAIL(::system(BBSTOREACCOUNTS 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:472:26:  [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.
	TEST_THAT_ABORTONFAIL(::system(PERL_EXECUTABLE 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:660:26:  [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.
	TEST_THAT_ABORTONFAIL(::system(BBACKUPQUERY " -Wwarning "
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:678:25:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			TEST_EQUAL_LINE(3, ::sscanf(line, "%x %s %s", &id, flags, name),
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:709:14:  [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.
	TEST_THAT(::system(PERL_EXECUTABLE 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:813:15:  [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.
		TEST_THAT(::system(PERL_EXECUTABLE
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:901:14:  [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.
	TEST_THAT(::system(PERL_EXECUTABLE
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:961:14:  [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.
	TEST_THAT(::system(PERL_EXECUTABLE
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:978:14:  [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.
	TEST_THAT(::system(PERL_EXECUTABLE
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:992:14:  [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.
	TEST_THAT(::system(PERL_EXECUTABLE 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:1007:14:  [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.
	TEST_THAT(::system(PERL_EXECUTABLE 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:319:26:  [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.
	TEST_THAT_ABORTONFAIL(::system(BBSTOREACCOUNTS
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:343:17:  [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.
	TEST_LINE_OR(::system(cmd.c_str()) == 0, cmd, return false);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:357:17:  [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.
	TEST_LINE_OR(::system(cmd.c_str()) == 0, cmd, return false);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:986:22:  [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 returnValue = ::system(cmd.c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1026:22:  [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 returnValue = ::system(cmd.c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1631:15:  [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.
		TEST_THAT(::system("rd /s/q testfiles\\TestDir1\\spacetest\\d7") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1633:15:  [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.
		TEST_THAT(::system("rm -rf testfiles/TestDir1/spacetest/d7") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1747:14:  [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.
	TEST_THAT(::system("rd /s/q testfiles\\TestDir1\\spacetest\\d7") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1749:14:  [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.
	TEST_THAT(::system("rm -rf testfiles/TestDir1/spacetest/d7") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1943:27:  [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.
		TEST_THAT_ABORTONFAIL(::system(BBSTOREACCOUNTS " -c "
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2067:15:  [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.
		TEST_THAT(::system("rm -f testfiles/notifyran.store-full.*") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2150:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			int returnValue = ::system(BBACKUPQUERY " "
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2287:17:  [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.
				TEST_THAT(::system("attrib +r testfiles\\TestDir1\\x1")
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2312:17:  [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.
				TEST_THAT(::system("attrib -r testfiles\\TestDir1\\x1")
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2314:17:  [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.
				TEST_THAT(::system("attrib -r testfiles\\restore1\\x1")
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2316:17:  [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.
				TEST_THAT(::system("attrib -r testfiles\\restore-test\\"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3152:17:  [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.
				TEST_THAT(::system("attrib -r "
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3353:31:  [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 compareReturnValue = ::system("perl testfiles/"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3373:27:  [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.
			compareReturnValue = ::system("perl testfiles/"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3393:15:  [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.
		TEST_THAT(::system("rd /s/q testfiles\\TestDir1\\x1") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3395:15:  [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.
		TEST_THAT(::system("rm -r testfiles/TestDir1/x1") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3399:17:  [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.
		TEST_EQUAL(0, system("attrib +r testfiles\\TestDir1\\df9834.dsf"));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3516:23:  [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 exit_status = ::system("attrib +r "
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3523:19:  [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.
		exit_status = ::system("attrib -r "
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3885:14:  [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.
	TEST_THAT(::system("rd /s/q testfiles\\TestDir1\\x1") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3887:14:  [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.
	TEST_THAT(::system("rm -r testfiles/TestDir1/x1") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4124:14:  [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.
	TEST_RETURN(system(cmd.c_str()), 0)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4140:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4145:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4149:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4153:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4157:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4161:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4164:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4167:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4170:14:  [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.
	TEST_RETURN(system(cmd.c_str()), 0)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4173:22:  [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.
	TEST_RETURN_COMMAND(system(cmd.c_str()), 0, cmd)
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:122:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			rResponse.Write(t, ::sprintf(t, "COOKIE:%s=%s<br>\n", i->first.c_str(), i->second.c_str()));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:148:12:  [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.
	TEST_THAT(system("rm -rf *.memleaks") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:157:14:  [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.
	TEST_THAT(::system("perl testfiles/testrequests.pl") == 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:218:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe1fn, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:220:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe1fnRename, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:224:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe2fn, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:227:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe2fnRename, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:244:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(filenamepart, "%s.rf", filename);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:265:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe1munge, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:270:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe2munge, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:377:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(writefnPre, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:381:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(writefn, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:410:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe1fn, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:414:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(stripe2fn, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:420:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(parityfn, "testfiles" DIRECTORY_SEPARATOR "%d_%d"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:97:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(#name " "); \
data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbackupctl/bbackupctl.cpp:86:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while((c = getopt(argc, (char * const *)argv, options.c_str())) != -1)
data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbackupquery/bbackupquery.cpp:243:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while((c = getopt(argc, (char * const *)argv, options.c_str())) != -1)
data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbstoreaccounts/bbstoreaccounts.cpp:95:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while((c = getopt(argc, (char * const *)argv, "c:W:m")) != -1)
data/boxbackup-0.13~~git20200326.g8e8b63c/infrastructure/buildenv-testmain-template.cpp:279:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, options.c_str(), longopts, NULL))
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Daemon.cpp:289:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while((c = getopt(argc, (char * const *)argv, 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.cpp:144:16:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	BOOL result = CreateProcess(NULL, 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.cpp:144:16:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	BOOL result = CreateProcess(NULL, 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerControl.cpp:284:17:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	DWORD result = CreateProcess
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerControl.cpp:284:17:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
	DWORD result = CreateProcess
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/bsd_getopt.h:86:6:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int	 getopt_long(int, char * const *, const char *,
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/bsd_getopt.h:92:6:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int	 getopt(int, char * const *, const char *);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:316: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.
		posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:506:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt(int nargc, char * const *nargv, const char *options)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:525:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(int nargc, char * const *nargv, const char *options,
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:324:16:  [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.
  if(cnt == 0) srand(time(NULL));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:85: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:70: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:305:16:  [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.
  if(cnt == 0) srand(time(NULL));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:84: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:68: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:288:16:  [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.
  if(cnt == 0) srand(time(NULL));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:157:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&mmcsec);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:173:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&mmcsec);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:196:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&mmcsec);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:88: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:69: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:239:16:  [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.
  if(cnt == 0) srand(time(NULL));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:73: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:75:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(NULL));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:82: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:71: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.
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:342:16:  [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.
  if(cnt == 0) srand(time(NULL));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/difftestfiles.cpp:110:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(seed);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:184:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(seed);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:698:17:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		RaidFileWrite random(discSetNum, 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:700:3:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		random.Open();
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:701:3:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		random.Write("test", 4);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:702:3:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		random.Commit(true);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:96:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(seed);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:52:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(seed);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:590:7:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	R250 random(619);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:593:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		data[l] = random.next() & 0xff;
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:946:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		R250 random(715);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:949:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			dataonemoreblock[l] = random.next() & 0xff;
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:20:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* exename = getenv("WINDIR");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:279:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	assert(getopt(test_argc, test_argv, opts) == 'q');
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:280:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	assert(getopt(test_argc, test_argv, opts) == 'w');
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:281:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	assert(getopt(test_argc, test_argv, opts) == 'c');
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:283:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	assert(getopt(test_argc, test_argv, opts) == 'c');
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:285:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	assert(getopt(test_argc, test_argv, opts) == '?');
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:287:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	assert(getopt(test_argc, test_argv, opts) == 'l');
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:289:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	assert(getopt(test_argc, test_argv, opts) == -1);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:312:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	lstat(getenv("WINDIR"), &ourfs);
data/boxbackup-0.13~~git20200326.g8e8b63c/bin/bbackupquery/bbackupquery.cpp:259:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			logFile = ::fopen(optarg, "w");
data/boxbackup-0.13~~git20200326.g8e8b63c/infrastructure/buildenv-testmain-template.cpp:161:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buffer[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientCryptoKeys.cpp:34: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.
	unsigned char KeyMaterial[BACKUPCRYPTOKEYS_FILE_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupClientRestore.cpp:161:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char n[PATH_MAX];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp:94:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char depends[128];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp:100:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			depends_l += ::sprintf(depends + depends_l, " depNew(%I64x)", (*i)->GetDependsNewer());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp:102:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			depends_l += ::sprintf(depends + depends_l, " depNew(%llx)", (long long)((*i)->GetDependsNewer()));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp:108:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			depends_l += ::sprintf(depends + depends_l, " depOld(%I64x)", (*i)->GetDependsOlder());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupclient/BackupStoreObjectDump.cpp:110:19:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			depends_l += ::sprintf(depends + depends_l, " depOld(%llx)", (long long)((*i)->GetDependsOlder()));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:519:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char linkedTo[PATH_MAX+4];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:532: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.
	std::memcpy(buffer+oldSize, linkedTo, linkedToSize);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:601: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.
				std::memcpy(buffer+xattrSize, &keyLength, sizeof(uint16_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:603: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.
				std::memcpy(buffer+xattrSize, attrKey.c_str(), attrKey.size()+1);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:646: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.
				std::memcpy(buffer+valueSizeOffset, &valueLength, sizeof(uint32_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:651: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.
			std::memcpy(buffer+xattrBlockSizeOffset, &xattrBlockLength, sizeof(uint32_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:999: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.
	std::memcpy(&xattrBlockLength, buffer+xattrOffset, sizeof(uint32_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:1013:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		std::memcpy(&keyLength, buffer+xattrOffset, sizeof(uint16_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:1021:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		std::memcpy(&valueLength, buffer+xattrOffset, sizeof(uint32_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:1148:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(block + 1, iv, ivSize);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:1178:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(sAttributeHashSecret, pSecret, SecretLength);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccountDatabase.cpp:236: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 file = ::open(pImpl->mFilename.c_str(), O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccountDatabase.cpp:249:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char line[256];	// more than enough for a couple of integers in string form
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccounts.cpp:160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char accid[64];	// big enough!
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreAccounts.cpp:355:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char response[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck.cpp:498:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char leaf[8];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck2.cpp:358:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck2.cpp:449:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreContext.cpp:171:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char msg[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFile.cpp:657:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFile.cpp:1042:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			::memcpy(output, mpClearData + mPositionInCurrentBlock, s);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFile.cpp:1335:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(rOutput.mpBuffer + outOffset, iv, ivLen);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFile.cpp:1877:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(buffer, mpBuffer, (NewSize > mBufferSize)?mBufferSize:NewSize);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileCmbIdx.cpp:233: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(pBuffer, &mHeader, sizeof(mHeader));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileDiff.cpp:284:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileDiff.cpp:1043: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 b[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFileEncodeStream.cpp:470:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				::memcpy(buffer, mEncodedBuffer.mpBuffer + mPositionInCurrentBlock, s);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilename.cpp:111:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hdr[2];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilename.cpp:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hdr[2];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilename.cpp:168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreFilename.cpp:266:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hdr[2];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientContext.cpp:160:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			mpExtendedLogFileHandle = fopen(
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemon.cpp:143:4:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			wchar_t buf[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupDaemon.cpp:2434:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	mountPointsFile = ::fopen("/etc/mnttab", "r");
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/Win32ServiceFunctions.cpp:45:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/Win32ServiceFunctions.cpp:233:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[MAX_PATH];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BackupQueries.cpp:539:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char displayflags[16];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BackupQueries.cpp:928:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char wd[PATH_MAX];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Archive.h:205:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTimeToText.cpp:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[128];	// more than enough space
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTimeToText.cpp:53:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%04d-%02d-%02dT%02d:%02d:%02d", time->tm_year + 1900,
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BoxTimeToText.cpp:68:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str, "%04d-%02d-%02dT%02d:%02d:%02d", time.tm_year + 1900,
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedStream.cpp:63:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pBuffer, mBuffer + mBufferPosition, sizeToReturn);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedStream.h:19:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mBuffer[4096];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedWriteStream.cpp:79:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(mBuffer + mBufferPosition, pBuffer,
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/BufferedWriteStream.h:19:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mBuffer[4096];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/CollectInBufferStream.cpp:72:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(pBuffer, ((char*)mBuffer) + mReadPosition, NBytes);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/CollectInBufferStream.cpp:130:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(((char*)mBuffer) + mBytesInBuffer, pBuffer, NBytes);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ConversionString.cpp:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[64];	// size more than enough
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ConversionString.cpp:126:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	::sprintf(text, "%d", (int)From);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugMemLeakFinder.cpp:563:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = ::fopen(filename, "a");
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugMemLeakFinder.cpp:585:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char atexit_filename[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugMemLeakFinder.cpp:586:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char atexit_markertext[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugMemLeakFinder.cpp:597:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[PATH_MAX];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugPrintf.cpp:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char text[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/ExcludeList.cpp:200:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char buf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileStream.cpp:31: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).
	: mOSFileHandle(::open(rFilename.c_str(), flags, mode)),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileStream.cpp:52: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).
	: mOSFileHandle(::open(pFilename, flags, mode)),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileStream.cpp:440:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf1[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileStream.cpp:441:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf2[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/GetLine.h:57:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mBuffer[GETLINE_BUFFER_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Guards.h:36:21:  [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).
		: mOSFileHandle(::open(rFilename.c_str(), flags, mode))
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/IOStream.cpp:240:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/MemBlockStream.cpp:155:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(pBuffer, mpBuffer + mReadPosition, NBytes);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/NamedLock.cpp:113:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = ::open(rFilename.c_str(), flags, mode);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/StreamableMemBlock.cpp:49:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(mpBuffer, pBuffer, Size);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/StreamableMemBlock.cpp:81:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(mpBuffer, rToCopy.mpBuffer, mSize);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/StreamableMemBlock.cpp:97:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	::memcpy(mpBuffer, pBuffer, Size);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:379:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(pidFile, "r");
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:420:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *f = fopen(filename, "r");
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Test.cpp:421:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char linebuf[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Utils.cpp:139:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/Utils.cpp:344:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char bar[17];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherContext.cpp:374:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char temp[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CipherContext.cpp:386:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				::memcpy(Buffer, temp, outLength);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/crypto/CryptoUtils.cpp:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errname[256];		// SSL docs say at least 120 bytes
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPQueryDecoder.h:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mEscaped[4];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPRequest.cpp:225:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char code[4] = {0,0,0,0};
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPRequest.cpp:343:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[4096];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPRequest.cpp:384:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPResponse.cpp:164:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char len[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPResponse.cpp:165:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			::sprintf(len, "%d", OmitContent?(0):(GetSize()));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPResponse.cpp:401:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[4096];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPServer.cpp:163:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char exceptionCode[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/S3Client.cpp:161: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.
	unsigned char digest_buffer[EVP_MAX_MD_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/S3Simulator.cpp:148:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char digest_buffer[EVP_MAX_MD_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/intercept/intercept.cpp:242:2:  [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).
	open(const char *path, int flags, ...)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/intercept/intercept.cpp:310: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).
	return open(path, flags, mode);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:604: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).
	mParityHandle = ::open(parityFilename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1044:24:  [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 osFileHandle = ::open(writeFilename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1084:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			stripe1 = ::open(stripe1Filename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1091:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			stripe2 = ::open(stripe2Filename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1226: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).
				stripe1 = ::open(stripe1Filename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1236: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).
				stripe2 = ::open(stripe2Filename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1244: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).
			parity = ::open(parityFilename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileWrite.cpp:169: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).
	mOSFileHandle = ::open(mTempFilename.c_str(), 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Daemon.cpp:575:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char pid[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Daemon.cpp:603: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).
			int devnull = ::open(PLATFORM_DEV_NULL, O_RDWR, 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Daemon.cpp:936:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char title[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.cpp:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *args[MAX_ARGUMENTS + 4];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/LocalProcessStream.cpp:78:15:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	switch(pid = vfork())
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp:407:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&nvalue, mpBuffer + mReadOffset, sizeof(int64_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp:431:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&nvalue, mpBuffer + mReadOffset, sizeof(int32_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp:542:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mpBuffer + mWriteOffset, &nvalue, sizeof(int64_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp:565:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mpBuffer + mWriteOffset, &nvalue, sizeof(int32_t));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolWire.h:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mIdent[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerControl.cpp:237:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int pid = atoi(line.c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ServerStream.h:187:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
								port = ::atol(c[2].c_str());
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SocketStreamTLS.cpp:480:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char commonName[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/WinNamedPipeStream.cpp:393:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pBuffer, mReadBuffer, BytesToCopy);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:134:12:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	int len = MultiByteToWideChar
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:173:8:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	len = MultiByteToWideChar
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:447:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char wd[PATH_MAX];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1112:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char tempbuff[MAX_PATH];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1483:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.h:325:2:  [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 f_mntonname[MAX_PATH];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:170:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char **) nargv)[pos] = nargv[cstart];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:172:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			((char **)nargv)[cstart] = swap;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:42:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((signed char *)(CB_buf))[0] = 0; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:50: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.
          ((signed char *)(CB_buf))[(CB_len)] = -_CB_rem - 1; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:52: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.
          ((signed char *)(CB_buf))[(CB_len)] = _CB_rem; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:66: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.
      CB_num = ((signed char *)(CB_buf))[0]; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:70:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        if(((signed char *)(CB_buf))[_CB_i] >= 0){ \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:71:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          CB_num += ((signed char *)(CB_buf))[_CB_i] * _CB_base; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:74:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        CB_num += _CB_base * (((signed char *)(CB_buf))[_CB_i] + 1) * -1; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:151:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p, ptr, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:192: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(swap, bp + i * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:195: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(bp + j * size, bp + (j - 1) * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:197: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(bp + j * size, swap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:216: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(swap, bp + i * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:219: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(bp + j * size, bp + (j - step) * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:221: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(bp + j * size, swap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:248: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(swap, bp + mybot * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:249: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(bp + mybot * size, bp + i * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:250: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(bp + i * size, swap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:256: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(swap, bp, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:257: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(bp, bp + top * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:258: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(bp + top * size, swap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:265: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(swap, bp + mybot * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:266: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(bp + mybot * size, bp + i * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:267: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(bp + i * size, swap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:368:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  signed char tbl[0x100];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:402:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tbl[0x100];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:421:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    idx = ((unsigned char *)haystack)[i];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:576: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(datum->dptr + datum->dsize, ptr, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:616:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *tmp, cbuf[CB_NUMBUFSIZ], tbuf[CB_NUMBUFSIZ*2];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:676:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            tlen = sprintf(tbuf, "%%%02X", c);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:781: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(list->array[index].dptr, ptr, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:815: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(list->array[index].dptr, ptr, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:877: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(list->array[index].dptr, ptr, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:919:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, vnumbuf[CB_VNUMBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:926:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, vnumbuf, vnumsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:932: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 + bsiz, vnumbuf, vnumsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:934: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 + bsiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1049: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(dbuf + ksiz + psiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1059: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(dbuf, kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1062: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(dbuf + ksiz + psiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1123: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(dbuf + ksiz + psiz + datum->vsiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1136: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(dbuf, kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1139: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(dbuf + ksiz + psiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1395:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, vnumbuf[CB_VNUMBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1402:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, vnumbuf, vnumsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1409: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 + bsiz, vnumbuf, vnumsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1411: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 + bsiz, kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1415: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 + bsiz, vnumbuf, vnumsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1417: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 + bsiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1551: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(base, ptr, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1559: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(heap->swap, base + pidx * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1560: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(base + pidx * size, base + cidx * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1561: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(base + cidx * size, heap->swap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1565: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(base + size * heap->num, ptr, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1570: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(heap->swap, base + cidx * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1571: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(base + cidx * size, base + pidx * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1572: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(base + pidx * size, heap->swap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1605:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, cbuf[CB_SPBUFSIZ], *str;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1623:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if(atoi(cbuf + 1) > CB_SPMAXWIDTH - 16){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1624:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(cbuf, "(err)");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1649:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf + len, str, slen);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1693:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf + wi, val, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1750:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char iobuf[CB_IOBUFSIZ], *buf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1754:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((fd = open(name, O_RDONLY, 0)) == -1) return NULL;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1766: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 + size, iobuf, rv);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1785:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((fd = open(name, O_WRONLY | O_CREAT | O_TRUNC, CB_FILEMODE)) == -1) return FALSE;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1987:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *tmp, *wp, *enc, numbuf[CB_NUMBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2057:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
     (num = atoi(vbuf)) != port && num > 1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2058:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(numbuf, ":%d", num);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2160: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.
    c = ((unsigned char *)ptr)[i];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2165:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "%%%02X", c);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2336:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      wp += sprintf(wp, "=%02X", rp[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2588:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  if(enp) sprintf(enp, "US-ASCII");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2597: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(enp, pv, ep - pv);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3054:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[CB_DATEBUFSIZ], tzone[CB_DATEBUFSIZ], *rv;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3062:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tzone, "-%02d:%02d", jl / 60, jl % 60);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3064:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(tzone, "+%02d:%02d", jl / 60, jl % 60);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3074:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char date[CB_DATEBUFSIZ], *wp, *rv;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3080:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 0: wp += sprintf(wp, "Sun, "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3081:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 1: wp += sprintf(wp, "Mon, "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3082:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 2: wp += sprintf(wp, "Tue, "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3083:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 3: wp += sprintf(wp, "Wed, "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3084:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 4: wp += sprintf(wp, "Thu, "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3085:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 5: wp += sprintf(wp, "Fri, "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3086:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 6: wp += sprintf(wp, "Sat, "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3088:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "%02d ", day);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3090:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 1: wp += sprintf(wp, "Jan "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3091:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 2: wp += sprintf(wp, "Feb "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3092:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 3: wp += sprintf(wp, "Mar "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3093:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 4: wp += sprintf(wp, "Apr "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3094:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 5: wp += sprintf(wp, "May "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3095:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 6: wp += sprintf(wp, "Jun "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3096:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 7: wp += sprintf(wp, "Jul "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3097:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 8: wp += sprintf(wp, "Aug "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3098:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 9: wp += sprintf(wp, "Sep "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3099:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 10: wp += sprintf(wp, "Oct "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3100:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 11: wp += sprintf(wp, "Nov "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3101:18:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  case 12: wp += sprintf(wp, "Dec "); break;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3103:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  wp += sprintf(wp, "%04d %02d:%02d:%02d ", year, hour, min, sec);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3105:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wp += sprintf(wp, "GMT");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3108:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wp += sprintf(wp, "-%02d%02d", jl / 60, jl % 60);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3110:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wp += sprintf(wp, "+%02d%02d", jl / 60, jl % 60);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3146:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if((pv[0] == 's' || pv[0] == 'S') && ((signed char *)pv)[1] >= '\0' && pv[1] <= ' ')
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3148:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if((pv[0] == 'm' || pv[0] == 'M') && ((signed char *)pv)[1] >= '\0' && pv[1] <= ' ')
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3150:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if((pv[0] == 'h' || pv[0] == 'H') && ((signed char *)pv)[1] >= '\0' && pv[1] <= ' ')
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3152:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  if((pv[0] == 'd' || pv[0] == 'D') && ((signed char *)pv)[1] >= '\0' && pv[1] <= ' ')
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3155:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ts.tm_year = atoi(str) - 1900;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3158: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).
      ts.tm_mon = atoi(rp) - 1;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3161:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ts.tm_mday = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3164:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          ts.tm_hour = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3167:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ts.tm_min = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3171:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ts.tm_sec = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3176:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ts.tm_sec -= (atoi(pv + 1) * 3600 + atoi(pv + 4) * 60) * (pv[0] == '+' ? 1 : -1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3176:49:  [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).
            ts.tm_sec -= (atoi(pv + 1) * 3600 + atoi(pv + 4) * 60) * (pv[0] == '+' ? 1 : -1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3184:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    ts.tm_year = atoi(str) - 1900;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3187: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).
      ts.tm_mon = atoi(rp) - 1;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3190:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ts.tm_mday = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3193:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          ts.tm_hour = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3196:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ts.tm_min = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3200:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ts.tm_sec = atoi(rp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3205:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            ts.tm_sec -= (atoi(pv + 1) * 3600 + atoi(pv + 4) * 60) * (pv[0] == '+' ? 1 : -1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3205:49:  [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).
            ts.tm_sec -= (atoi(pv + 1) * 3600 + atoi(pv + 4) * 60) * (pv[0] == '+' ? 1 : -1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3217:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  ts.tm_mday = atoi(crp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3252:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  ts.tm_year = atoi(crp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3263:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      ts.tm_hour = atoi(crp + 0);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3264: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).
      ts.tm_min = atoi(crp + 3);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3265: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).
      ts.tm_sec = atoi(crp + 6);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3330:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[CB_MSGBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3471: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(pswap, bp + (nmemb / 2) * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3479: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(vswap, bp + top * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3480: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(bp + top * size, bp + bottom * size, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3481: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(bp + bottom * size, vswap, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.h:1316: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((CB_res), (CB_ptr), (CB_size)); \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.h:1365: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((CB_datum)->dptr + (CB_datum)->dsize, (CB_ptr), (CB_size)); \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.h:1471: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((CB_list)->array[_CB_index].dptr, (CB_ptr), (CB_size)); \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:254:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        cols = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:321:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        cols = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:378:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *code, *expr, *file, *buf, *res, renc[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:399:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        pnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:553:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            if(((unsigned char *)cell)[k] >= 0x20) putchar(cell[k]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:670:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            if(((unsigned char *)elem)[j] < 0x20 || elem[j] == '%'){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:1051:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buf[2], *tmp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:135:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:163:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:191:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:223:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:225: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).
  if(bstr) bnum = atoi(bstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:256:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:258:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if(mstr) max = atoi(mstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:282:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:332:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:342:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % rnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:386:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *text, buf[RECBUFSIZ], *std, *kmp, *bm;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:424:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], *tmp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:430:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:466:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:472:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:488:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:556:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], *tmp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:560:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%d", myrand() % rnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:601:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%d", myrand() % rnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:642:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char kbuf[RECBUFSIZ], vbuf[RECBUFSIZ], *sbuf, spbuf[1024], *tmp, *orig, renc[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:660: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(tmp, "abc", 3);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:671: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(tmp, "123", 3);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:682:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(vbuf, "%d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:704:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(kbuf, "%X", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:705:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(vbuf, "[%d]", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:813:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(spbuf, "My name is \xca\xbf\xce\xd3\xb4\xb4\xcd\xba.\n\n<Love & Peace!>\n");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:824:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(spbuf, "My name is \xca\xbf\xce\xd3\xb4\xb4\xcd\xba.\n\n<Love & Peace!>\n");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:835:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(spbuf, "My name is \xca\xbf\xce\xd3\xb4\xb4\xcd\xba.\n\n<Love & Peace!>\n");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:846:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(spbuf, "\"He says...\r\n\"\"What PROGRAM are they watching?\"\"\"");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:857:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(spbuf, "&lt;Nuts&amp;Milk&gt; is &quot;very&quot; surfin&apos;!");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:903:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(kbuf, "%08d", j);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:909:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(kbuf, "%08d", j);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:85:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:151:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, mbuf[3];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:175:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  num = atoi(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:197:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:200:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        dnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:378:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        start = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:381:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:458:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:576:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:579:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        dnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:669:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    printf("%s%02X", i > 0 ? " " : "", ((const unsigned char *)obj)[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:70:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:141:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:142:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  bnum = atoi(bstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:143:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  dnum = atoi(dstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:221:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:222:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  bnum = atoi(bstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:223:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  dnum = atoi(dstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:224:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  pnum = atoi(pstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:225:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  align = atoi(astr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:226:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  fbpsiz = atoi(fstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:277:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:314:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:327:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:364:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], vbuf[RECBUFSIZ], *val;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:381:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:429:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], *rbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:445:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % pnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:492:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], wbuf[RECBUFSIZ], *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:510:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:520:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:536:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:546:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:547:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wlen = sprintf(wbuf, "%024d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:557:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:558:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wlen = sprintf(wbuf, "========================");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:568:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:584:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:594:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:606:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:607:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wlen = sprintf(wbuf, "========================");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:617:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:640:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:668:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:678:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%o", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:695:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%o", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:739:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], vbuf[RECBUFSIZ], *val;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:753:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % rnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:803:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtest.c:818:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtsv.c:94:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtsv.c:97:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        dnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[CR_PATHBUFSIZ], *tname;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:505:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[CR_PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:533:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[CR_PATHBUFSIZ], *kbuf, *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:604:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[CR_PATHBUFSIZ], *kbuf, *vbuf, *pbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:616:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((fds[i] = open(path, O_RDWR | O_CREAT | O_TRUNC, CR_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:626:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        psiz += sprintf(pbuf + psiz, "%X\n%X\n", ksiz, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:627: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(pbuf + psiz, kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:630: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(pbuf + psiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:662:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ipath[CR_PATHBUFSIZ], opath[CR_PATHBUFSIZ], *kbuf, *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:706:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[CR_PATHBUFSIZ], *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:749:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(path, mode, CR_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:802:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(path, O_RDONLY, CR_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:849:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(path, curia->wmode ? O_RDWR: O_RDONLY, CR_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:964:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, str, len + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:993:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char prefix[CR_PATHBUFSIZ], *wp, *path;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1002:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wp += sprintf(wp, "%02X%c", hash % 0x100, MYPATHCHR);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1012:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wp += sprintf(wp, "%02X", ((unsigned char *)kbuf)[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1012:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wp += sprintf(wp, "%02X", ((unsigned char *)kbuf)[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1022:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char elem[CR_PATHBUFSIZ], *wp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1029:42:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    if((wp != elem || dp == path)) wp += sprintf(wp, "%c", MYPATHCHR);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1030: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(wp, path, len);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1045:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char elem[CR_PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1082:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char elem[CR_PATHBUFSIZ], numbuf[3], *rp, *kbuf, *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1107:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if((fd = open(path, O_RDONLY, CR_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:51: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(&(DP_res), (DP_kbuf), sizeof(int)); \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:80:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (DP_res) = (DP_res) * 29 + ((const unsigned char *)(DP_kbuf))[_DP_i]; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:173:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[DP_HEADSIZ], *map, c, *tname;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:184:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, mode, DP_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:213:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(hbuf, DP_MAGICNUMB, strlen(DP_MAGICNUMB));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:215: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(hbuf, DP_MAGICNUML, strlen(DP_MAGICNUML));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:217:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(hbuf + DP_LIBVEROFF, "%d", _QDBM_LIBVER / 100);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:220: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(hbuf + DP_BNUMOFF, &bnum, sizeof(int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:222: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(hbuf + DP_RNUMOFF, &rnum, sizeof(int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:224: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(hbuf + DP_FSIZOFF, &fsiz, sizeof(int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:349:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_ENTBUFSIZ], *tval, *swap;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:414: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(tval, ebuf + (DP_RHNUM * sizeof(int) + head[DP_RHIKSIZ]), head[DP_RHIVSIZ]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:428:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(tval + head[DP_RHIVSIZ], vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:500:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_ENTBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:534:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_ENTBUFSIZ], *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:568: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(vbuf, ebuf + (DP_RHNUM * sizeof(int) + head[DP_RHIKSIZ] + start), vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:590:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_ENTBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:615: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(vbuf, ebuf + (DP_RHNUM * sizeof(int) + head[DP_RHIKSIZ] + start), vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:629:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_ENTBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:666:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_ENTBUFSIZ], *kbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:688: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(kbuf, ebuf + (DP_RHNUM * sizeof(int)), head[DP_RHIKSIZ]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:783:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_ENTBUFSIZ], *kbufs[DP_OPTRUNIT], *vbufs[DP_OPTRUNIT];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:830: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(kbufs[unum], ebuf + (DP_RHNUM * sizeof(int)), head[DP_RHIKSIZ]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:837: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(vbufs[unum], ebuf + (DP_RHNUM * sizeof(int) + head[DP_RHIKSIZ]),
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1063:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char dbhead[DP_HEADSIZ], *tname, *kbuf, *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1072:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, O_RDWR, DP_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1155:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, O_RDWR | O_CREAT | O_TRUNC, DP_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1164:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        psiz += sprintf(pbuf + psiz, "%X\n%X\n", ksiz, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1165: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(pbuf + psiz, kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1168: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(pbuf + psiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1196:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char mbuf[DP_IOBUFSIZ], *rbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1208:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, O_RDONLY, DP_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1277:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char hbuf[DP_HEADSIZ], *map, *vbuf, *tkbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1282:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, O_RDONLY, DP_FILEMODE)) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1436:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char iobuf[DP_IOBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1511: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(&flags, depot->map + DP_FLAGSOFF, sizeof(int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1523: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(depot->map + DP_FLAGSOFF, &flags, sizeof(int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1537:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[sizeof(int)];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1552:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf, str, len + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1693:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char iobuf[DP_IOBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1806: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(head, ebuf, DP_RHNUM * sizeof(int));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1927:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char stkey[DP_STKBUFSIZ], *tkey;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1995:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_WRTBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2013: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(ebuf, head, sizeof(head));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2014: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(ebuf + sizeof(head), kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2015: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(ebuf + sizeof(head) + ksiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2073:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char ebuf[DP_WRTBUFSIZ], *hbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2087: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(ebuf, head, sizeof(head));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2088: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(ebuf + sizeof(head), kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2089: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(ebuf + sizeof(head) + ksiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2097: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(hbuf, head, sizeof(head));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2098: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(hbuf + sizeof(head), kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:2099: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(hbuf + sizeof(head) + ksiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:84:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:150:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, mbuf[3];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:174:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  num = atoi(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:195:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:364:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        start = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:367:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:444:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:561:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:651:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    printf("%s%02X", i > 0 ? " " : "", ((const unsigned char *)obj)[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:68:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:132:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:133:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  bnum = atoi(bstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:205:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:206:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  bnum = atoi(bstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:207:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  pnum = atoi(pstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:208:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  align = atoi(astr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:209:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  fbpsiz= atoi(fstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:260:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:297:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:309:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:338:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], vbuf[RECBUFSIZ], *val;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:351:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:391:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], *rbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:407:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % pnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:455:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], wbuf[RECBUFSIZ], *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:473:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:483:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:499:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:509:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:510:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wlen = sprintf(wbuf, "%024d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:520:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:521:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wlen = sprintf(wbuf, "========================");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:531:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:547:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:557:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:569:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:570:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    wlen = sprintf(wbuf, "========================");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:580:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:603:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:631:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:641:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%o", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:658:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%o", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:702:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], vbuf[RECBUFSIZ], *val;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:716:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % rnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:766:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptest.c:781:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptsv.c:92:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hovel.c:106:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(name, flags, mode)) == -1 || close(fd) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hovel.c:236:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if((fd = open(name, flags, mode)) == -1 || close(fd) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:109:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, mbuf[3];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:143:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        bnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:145:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        dnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:395:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    printf("%s%02X", i > 0 ? " " : "", ((const unsigned char *)obj)[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c:116:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c:147:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c:177:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c:195:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c:227:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvtest.c:245:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:33:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pbuf[DOSPATHBUFSIZ], *p;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:95: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(val, initval, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:115: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(val, initval, size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:424:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char expr[8192];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:482:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[4096], *rp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:485:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open("/proc/meminfo", O_RDONLY, 00644)) == -1) return TRUE;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:554:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char obuf[ZLIBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:596: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 + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:616:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:629:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char obuf[ZLIBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:667: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 + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:687:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:737:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char wrkmem[LZO1X_1_MEM_COMPRESS];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:819:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, *swap, obuf[BZIPBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:848: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 + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:868:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:879:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, *swap, obuf[BZIPBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:907: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 + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:927:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(buf + bsiz, obuf, osiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:1065:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char obuf[ICONVCHECKSIZ], *wp, *rp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.h:231: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).
#undef open
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.h:234:3:  [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).
  open(pathname, flags, mode) \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.h:235:3:  [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).
  open(pathname, flags | O_BINARY, mode)
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.h:476:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char d_name[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:126:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[OD_NUMBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:133:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(numbuf, "%d", odeum->dmax);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:135:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(numbuf, "%d", odeum->dnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:573:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[OD_NUMBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:584:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(numbuf, "%d", odeum->dmax);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:589:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(numbuf, "%d", odeum->dnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:775:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *word, *kbuf, *vbuf, *dbuf, otmsg[OD_OTCBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:776:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *wpunit[OD_MIWUNIT], *vpunit[OD_MIWUNIT];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:824:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(otmsg, "merging the inverted index (%d/%d)", i + 1, num);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:863:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf(otmsg, "... (%d/%d)", tnum + 1, crrnum(ecuria));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:885:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(otmsg, "... (%d/%d)", tnum + 1, crrnum(curia));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:897:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(otmsg, "merging the document database (%d/%d)", i + 1, num);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:943:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(otmsg, "... (%d/%d)", tnum + 1, crrnum(ecuria));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:966:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char docsname[OD_PATHBUFSIZ], indexname[OD_PATHBUFSIZ], rdocsname[OD_PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:967:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[OD_PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1085:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char numbuf[OD_NUMBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1124:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    nbsiz = sprintf(numbuf, "%d", owords[i].num);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1314:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char aword[OD_MAXWORDLEN+1], *wp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1540:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char docsname[OD_PATHBUFSIZ], indexname[OD_PATHBUFSIZ], rdocsname[OD_PATHBUFSIZ], *tmp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1621:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      dmax = atoi(tmp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1625:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      dnum = atoi(tmp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1667:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char otmsg[OD_OTCBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1680:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(otmsg, "... (%d/%d)", i + 1, rnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1698:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char otmsg[OD_OTCBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1703:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(otmsg, "flushing frequent words: min=%d asiz=%d rnum=%d)",
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1720:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(otmsg, "... (done): min=%d asiz=%d rnum=%d)",
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1735:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char otmsg[OD_OTCBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1740:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(otmsg, "flushing rare words: ratio=%.2f asiz=%d rnum=%d)",
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1756:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(otmsg, "... (done): ratio=%.2f asiz=%d rnum=%d)",
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1770:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *tmp, otmsg[OD_OTCBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1792:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(otmsg, "... (%d/%d)", i + 1, rnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1825:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *kbuf, *vbuf, otmsg[OD_OTCBBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1866:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(otmsg, "... (%d/%d)", tnum + 1, rnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.h:60:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char statechars[256];                  /* state of single byte characters */
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:166:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *name, *dir, *lfile, *tsuf, *hsuf, path[PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:182:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        wmax = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:329:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:332:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf, "%04d/%02d/%02d %02d:%02d:%02d",
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:345:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *line, path[PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:350:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(!(ifp = fopen(lfile, "rb"))){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:408:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:451:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:571:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[PATHBUFSIZ], *wp, *enc;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:574:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(str, "%c", PATHCHR);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:707:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char kbuf[8], vbuf[8];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:722:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    ksiz = sprintf(kbuf, "&#%d;", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:723:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    vsiz = sprintf(vbuf, "%c", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:740:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    ksiz = sprintf(kbuf, "&#%d;", i + 160);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:754:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[PATHBUFSIZ], *mbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:88:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:228:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        wmax = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:284:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(expr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:323:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    id = atoi(expr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:333:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *name, *srchwords[MAXSRCHWORDS];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:349:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:634:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  ssiz += sprintf(sbuf + ssiz, " ...");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:662:15:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      ssiz += sprintf(sbuf + ssiz, " ...");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:812:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *normal, numbuf[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:851:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(numbuf, "%d", hnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:69:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:121:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ibnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:123:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        idnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:125:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        cbnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:127:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        csiz = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:144:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  dnum = atoi(dstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:145:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  wnum = atoi(wstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:146:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  pnum = atoi(pstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:211:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  dnum = atoi(dstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:247:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[DOCBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:249:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf, "%08d", id);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:255:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", myrand() % pnum);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:312:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[DOCBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:326:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:360:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[DOCBUFSIZ], *normal;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:371:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:384:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:417:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:430:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:440:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:478:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:491:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:501:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", myrand() % 1000 + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:587:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[DOCBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:609:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "%08d", myrand() % (dnum + 500) + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odtest.c:660:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:73:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:78:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((rnum = atoi(argv[2])) < 1) usage();
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:79:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((tnum = atoi(argv[3])) < 1) usage();
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:142:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[PATHBUFSIZ], buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:158:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%d", myrand() % i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:183:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%d", myrand() % i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:208:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%d", myrand() % i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/qmttest.c:231:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%d", myrand() % i + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[RL_PATHBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c:60:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((dfd = open(path, flags, mode)) == -1) return NULL;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c:63:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((fd = open(path, flags, mode)) == -1 || close(fd) == -1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c:103:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, mbuf[3];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c:338:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    printf("%s%02X", i > 0 ? " " : "", ((const unsigned char *)obj)[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c:106:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c:132:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c:162:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c:172:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rltest.c:215:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:51:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      ((signed char *)(VL_buf))[0] = 0; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:59: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.
          ((signed char *)(VL_buf))[(VL_len)] = -_VL_rem - 1; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:61: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.
          ((signed char *)(VL_buf))[(VL_len)] = _VL_rem; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:75:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      (VL_num) = ((signed char *)(VL_buf))[0]; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:79:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        if(((signed char *)(VL_buf))[_VL_i] >= 0){ \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:80:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          (VL_num) += ((signed char *)(VL_buf))[_VL_i] * _VL_base; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:83:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        (VL_num) += _VL_base * (((signed char *)(VL_buf))[_VL_i] + 1) * -1; \
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:560: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(rbuf, CB_DATUMPTR(recp->first), rsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:565: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(rbuf + rsiz, vbuf, vsiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1256:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[VL_PATHBUFSIZ], *kbuf, *vbuf, *zbuf, *rp, *tkbuf, *tvbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1356:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[VL_PATHBUFSIZ], *kbuf, *vbuf, *nkey;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1366:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      ki = sprintf(nkey, "%X\t", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1367: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(nkey + ki, kbuf, ksiz);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1387:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[VL_PATHBUFSIZ], *kbuf, *vbuf, *rp;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1830:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if(((unsigned char *)aptr)[i] != ((unsigned char *)bptr)[i])
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1830:49:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    if(((unsigned char *)aptr)[i] != ((unsigned char *)bptr)[i])
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1831: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.
      return ((unsigned char *)aptr)[i] - ((unsigned char *)bptr)[i];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1831:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      return ((unsigned char *)aptr)[i] - ((unsigned char *)bptr)[i];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1971:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char vnumbuf[VL_VNUMBUFSIZ], *zbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:2063:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char wbuf[VL_PAGEBUFSIZ], *buf, *rp, *kbuf, *vbuf, *zbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:2388:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char vnumbuf[VL_VNUMBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:2424:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char wbuf[VL_PAGEBUFSIZ], *buf, *rp, *kbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:82:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:144:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *buf, mbuf[3];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:168:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  num = atoi(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:434:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        max = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:638:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    printf("%s%02X", i > 0 ? " " : "", ((const unsigned char *)obj)[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:71:53:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  if((env = getenv("QDBMDBGFD")) != NULL) dpdbgfd = atoi(env);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:135: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).
        lrecmax = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:137: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).
        nidxmax = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:139:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        lcnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:141:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ncnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:144:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        fbp = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:157:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:223: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).
        lrecmax = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:225: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).
        nidxmax = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:227:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        lcnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:229:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ncnum = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:232:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        fbp = atoi(argv[i]);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:247:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:248:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  pnum = atoi(pstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:314:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  rnum = atoi(rstr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:352:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:376:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:407:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], *val;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:436:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:476:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ];
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:499:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%08d", vi);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:528:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[RECBUFSIZ], *vbuf, *kbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:545:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:555:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:577:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:587:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:598:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:615:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:626:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:650:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:672:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:746:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % 100 + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:757:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % 100 + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:881:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % 1000 + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:894:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % 1000 + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:911:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % 1000 + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:977:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % 1000 + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:1038:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      len = sprintf(buf, "%08d", j);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:1130:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:1138:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:1158:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", i);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:1243:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[32], *kbuf, *vbuf;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltest.c:1257:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    len = sprintf(buf, "%08d", myrand() % rnum + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/difftestfiles.cpp:285:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char n1[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/difftestfiles.cpp:286:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char n2[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/difftestfiles.cpp:287:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(n1, "testfiles/f%d", l + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/difftestfiles.cpp:288:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(n2, "testfiles/f%d", l);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:47:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer1[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer2[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:86:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0600);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:173:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char from_encoded[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:174:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(from_encoded, "testfiles/f%d.encoded", from);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char from_orig[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:180:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(from_orig, "testfiles/f%d", from);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:181:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char to_encoded[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:182:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(to_encoded, "testfiles/f%d.encoded", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:183:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char to_diff[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:184:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(to_diff, "testfiles/f%d.diff", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:185:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char to_orig[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:186:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(to_orig, "testfiles/f%d", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:187:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rev_diff[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:188:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(rev_diff, "testfiles/f%d.revdiff", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:189:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char from_rebuild[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:190:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(from_rebuild, "testfiles/f%d.rebuilt", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:191:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char from_rebuild_dec[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:192:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(from_rebuild_dec, "testfiles/f%d.rebuilt_dec", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char to_testdec[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:219:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(to_testdec, "testfiles/f%d.testdec", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:239:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char src[256], dst[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:240:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(src, "testfiles\\f%d.diff", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:241:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(dst, "testfiles\\f%d.encoded", to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:245:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char cmd[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:246:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(cmd, "cp testfiles/f%d.diff testfiles/f%d.encoded", to, to);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:265:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char from_orig[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:266:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(from_orig, "testfiles/f%d", from);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:324:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char combined_file[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:325:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char last_diff[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:326:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(last_diff, "testfiles/f%d.diff", version1 + 1);	// ie from version1 to version1 + 1
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:331:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char next_diff[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:332:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(next_diff, "testfiles/f%d.diff", v);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:335:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(combined_file, "testfiles/comb%d_%d.cmbdiff", version1, v);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:342:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char orig_enc[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:343:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(orig_enc, "testfiles/f%d.encoded", version1);	
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:344:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char combined_out[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:345:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(combined_out, "testfiles/comb%d_%d.out", version1, version2);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:355:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char combined_out_dec[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:356:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(combined_out_dec, "testfiles/comb%d_%d_s%d.dec", version1, version2, serial);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:357:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char to_orig[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupdiff/testbackupdiff.cpp:358:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(to_orig, "testfiles/f%d", version2);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:727:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer1[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:728:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer2[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:747:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:768:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer1[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:769:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer2[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:1456:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char insert[13] = "INSERTINSERT";
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:2842:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char line[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:130:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:666:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *f = ::fopen("testfiles/initial-listing.txt", "r");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:668:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char line[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:670:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char flags[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:671:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:153:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer1[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:154:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer2[2048];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:190:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char fnp[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:191:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(fnp, "testfiles/%d.test", f - 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:193:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char fnt[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:194:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(fnt, "testfiles/%d.test", f);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:397:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char filename[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:398:8:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
					::sprintf(filename, "testfiles/%d.test", f);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:559: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 filename[64], filename_fetched[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:560:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				::sprintf(filename, "testfiles/%d.test", f);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorepatch/testbackupstorepatch.cpp:561:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				::sprintf(filename_fetched, "testfiles/%d.test.fetched", f);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/TestCommands.cpp:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[125];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:55:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(c.GetKeyValue("TestFile").c_str(), "w");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char data[LARGE_DATA_BLOCK_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char data[LARGE_DATA_BLOCK_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:363:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:376:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char data[LARGE_DATA_BLOCK_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:389:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:927: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[1663];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:244:27:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		xattrTestDataHandle = ::fopen("testfiles/test3.tgz", "rb");	// largest test file
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:252:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char data[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:310:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char p1[PATH_MAX], p2[PATH_MAX];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:517:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("testfiles/test1_n", "w");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:519:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("testfiles/test2_n", "w");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:588:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *f = fopen("testfiles/test1_nx", "w");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:847:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char stat_hook_filename[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1046:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(filename.c_str(), O_CREAT | O_WRONLY, 0755);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1541: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).
		int fd = open("testfiles/TestDir1/x1/dsfdsfs98.fd", O_WRONLY);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:1544:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[4000];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2008: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).
		int fd = open(new_file, O_CREAT | O_EXCL | O_WRONLY, 0700);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2111:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE* fp = fopen(SYM_DIR DIRECTORY_SEPARATOR "a"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2118:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[PATH_MAX];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2139:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(SYM_DIR DIRECTORY_SEPARATOR "a"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2383:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char cwdbuf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2583:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			int fd = open(sync_control_file, 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2603: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).
			fd = open(new_test_file,
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2697:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *f = ::fopen("testfiles/TestDir1/f45.df", "a");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2764: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 fd1 = open("testfiles/TestDir1/force-upload", 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2808: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 fd1 = open("testfiles/notifyscript.tag", 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2851: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 fd1 = open("testfiles/TestDir1/force-upload", 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2883: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 fd1 = open("testfiles/notifyscript.tag", 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3030:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd1 = open("testfiles/TestDir1/untracked-1", 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3032:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd2 = open("testfiles/TestDir1/untracked-2",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3065: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).
		fd1 = open("testfiles/TestDir1/tracked-1",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3067: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).
		fd2 = open("testfiles/TestDir1/tracked-2",
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3071:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3159:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *f = fopen("testfiles/TestDir1/sub23/rand.h", 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3293:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				int fd = ::open("testfiles/TestDir1"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3344:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				FILE *f = ::fopen("testfiles/TestDir1/continousupdate", "w+");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3364:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				FILE *f = ::fopen("testfiles/TestDir1/"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3650:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *f = fopen("testfiles/TestDir1/sub23/"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:3748:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *f = ::fopen("testfiles/TestDir1/fileaftermarker", "w");
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:4106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:183:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[8];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:455:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *file2 = fopen("testfiles" DIRECTORY_SEPARATOR 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:459:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ll[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:509:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *file2 = fopen("testfiles" DIRECTORY_SEPARATOR 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:512:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ll[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:773:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf1[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:72:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf1_de[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:78:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf1_de2[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:84:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf2[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:97:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf2_de[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char iv2[BLOCKSIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:123: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(iv2, ivGen, ivLen);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:125:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf3[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:129:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char iv3[BLOCKSIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:134: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(iv3, ivGen3, ivLen3);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:138:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf4[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:148:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf3_de[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:167:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf4[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:187:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf4b[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:195:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf4_de[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:215:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf4[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:232:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf4b[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:240:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf4_de[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/crypto/testcrypto.cpp:281:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char key[16], iv[BACKUPCRYPTOKEYS_FILENAME_IV_LENGTH];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:111:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char l[32];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:112:24:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		rResponse.Write(l, ::sprintf(l, "%d", rRequest.GetContentLength()));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/httpserver/testhttpserver.cpp:121:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char t[512];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char testbuff[(RAID_BLOCK_SIZE * 3) + 128];	// bigger than the max request above!
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:217:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char stripe1fn[256], stripe1fnRename[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:223:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char stripe2fn[256], stripe2fnRename[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:242:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char mungefilename[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:243:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char filenamepart[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:264:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char stripe1munge[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:269:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char stripe2munge[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:376:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char writefnPre[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:380:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char writefn[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:409:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char stripe1fn[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:413:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char stripe2fn[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:419:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char parityfn[256];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:457:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char testblock[1024];	// compiler bug? This can't go in the block below without corrupting stripe2fn...
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:461:21:  [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).
			TEST_THAT((f = ::open(stripe1fn, O_RDONLY | O_BINARY, 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:469:21:  [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).
			TEST_THAT((f = ::open(stripe2fn, O_RDONLY | O_BINARY, 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:563:19:  [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).
	TEST_THAT((f = ::open("testfiles" DIRECTORY_SEPARATOR "0_2" 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:589:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[TEST_DATA_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:595:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data2[57];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:674:19:  [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).
	TEST_THAT((f = ::open("testfiles" DIRECTORY_SEPARATOR "0_2"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:677:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[sizeof(data)];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:705:19:  [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).
	TEST_THAT((f = ::open("testfiles" DIRECTORY_SEPARATOR "0_2"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:715:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[sizeof(data)];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:759:19:  [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).
	TEST_THAT((f = ::open("testfiles" DIRECTORY_SEPARATOR "0_2"
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:769:19:  [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).
	TEST_THAT((f = ::open("testfiles" DIRECTORY_SEPARATOR "0_2" 
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:945:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char dataonemoreblock[TEST_DATA_SIZE + RAID_BLOCK_SIZE];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:963:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char fn[64];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:964:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(fn, "testN%d", s);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:46:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char namebuf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/testlibwin32.cpp:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char domainbuf[1024];
data/boxbackup-0.13~~git20200326.g8e8b63c/test/win32/timezone.cpp:18:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char testfile[80];
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupClientFileAttributes.cpp:826: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).
		xattrOffset += std::strlen(reinterpret_cast<char*>(pattr+1))+1;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck.cpp:628:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				std::auto_ptr<RaidFileRead> read(
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/backupstore/BackupStoreCheck.cpp:634:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read.reset();
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientDirectoryRecord.cpp:625: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).
	currentStateChecksum.Add(en->d_name, strlen(en->d_name));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientInodeToIDMap.cpp:134:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int ret = dpput(mpDepot, version_key, strlen(version_key),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupd/BackupClientInodeToIDMap.cpp:146:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int ret = dpgetwb(mpDepot, version_key, strlen(version_key), 0,
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BackupQueries.cpp:605:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(listRootDecoded.c_str()), &n_chars, NULL);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/BackupQueries.cpp:1628:26:  [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.
			hasDifferentAttribs, !equal, modifiedAfterLastSync,
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/bbackupquery/CommandCompletion.cpp:278:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				for(int k = strlen(rl_line_buffer); k >= 0; k--)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugMemLeakFinder.cpp:600:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	::strncpy(atexit_filename, abs_filename.c_str(),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/DebugMemLeakFinder.cpp:602:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	::strncpy(atexit_markertext, markertext, sizeof(atexit_markertext)-1);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FdGetLine.cpp:100:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes = ::read(mFileHandle, mBuffer, sizeof(mBuffer));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FdGetLine.cpp:103:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = ::read(mFileHandle, mBuffer, sizeof(mBuffer));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/FileStream.cpp:209:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int r = ::read(mOSFileHandle, pBuffer, NBytes);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/PartialReadStream.cpp:77:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ASSERT(read <= mBytesLeft);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/PartialReadStream.cpp:80:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	mBytesLeft -= read;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/common/PartialReadStream.cpp:83:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/HTTPResponse.cpp:560: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).
	Write(RedirectTo, ::strlen(RedirectTo));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/decode.h:61:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				istream_in.read((char*)code, N);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/httpserver/encode.h:66:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				istream_in.read(plaintext, N);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/intercept/intercept.cpp:350:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read(int d, void *buf, size_t nbytes)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:132:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int bytesRead = ::read(mOSFileHandle, pBuffer, NBytes);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:707:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int r1 = ::read((mStripe1Handle != -1)?stripe:mParityHandle, mRecoveryBuffer, mBlockSize);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:708:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int r2 = ::read((mStripe1Handle != -1)?mParityHandle:stripe, mRecoveryBuffer + mBlockSize, mBlockSize);				
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1277:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if(::read(parity, &parityLastData, sizeof(parityLastData)) != sizeof(parityLastData))
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileRead.cpp:1357:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
							if(::read(stripe1, &stripe1LastData, btr) != btr)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/raidfile/RaidFileWrite.cpp:537:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while((bytesRead = ::read(writeFile, buffer, bufferSize)) > 0)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.cpp:104:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	::strncpy(hsSend.mIdent, GetProtocolIdentString(), sizeof(hsSend.mIdent));
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.h:101:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void Read(bool &rOut) {int8_t read; Read(read); rOut = (read == true);}
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Protocol.h:101:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void Read(bool &rOut) {int8_t read; Read(read); rOut = (read == true);}
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:67:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while(read < NBytes)
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:74:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int toRead = (NBytes - read);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:84:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			int r = mrSource.Read(((uint8_t*)pBuffer) + read, toRead, Timeout);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:90:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				return read;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:102:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				return read;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:114:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					"returning with " << read << " bytes "
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:116:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				return read;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:125:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					read << " bytes read this time");
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:126:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				return read;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/ProtocolUncertainStream.cpp:151:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read;
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/Socket.cpp:98:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			::strncpy(addr.sa_unix.sun_path, rName.c_str(),
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/server/SocketStream.cpp:271:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int r = ::read(mSocketHandle, pBuffer, NBytes);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1669:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pBuffer, pUtf8, BufSize - 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1932:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pBuffer, pUtf8, BufferSize);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1935: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).
	return strlen(pBuffer);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/emu.cpp:1944:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int result = read(filedes, vector[i].iov_base, 
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:200: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).
		current_argv_len = strlen(current_argv);
data/boxbackup-0.13~~git20200326.g8e8b63c/lib/win32/getopt_long.cpp:208:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(long_options[i].name) == current_argv_len) {
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:149:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:338:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  slen = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:339:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  klen = strlen(key);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:351:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  slen = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:352:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  klen = strlen(key);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:370:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  nlen = strlen(needle);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:383:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  hlen = strlen(haystack);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:405:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  nlen = strlen(needle);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:416:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ep = haystack + strlen(haystack) - nlen;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:548:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ptr) CB_DATUMCAT(datum, ptr, (size >= 0 ? size : strlen(ptr)));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:571:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:774:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:804:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:840:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:873:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:894:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:908:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1011:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1012:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(vsiz < 0) vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1085:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1086:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(vsiz < 0) vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1161:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1248:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1280:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1464:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1647:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        slen = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1721:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1761:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((rv = read(fd, iobuf, CB_IOBUFSIZ)) > 0){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1783:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1818: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).
  list = cbsplit(tmp, strlen(tmp), "\n");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1839:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CB_LISTPUSH(list, dp->d_name, strlen(dp->d_name));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1873:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tail = name[0] != '\0' && name[strlen(name)-1] == MYPATHCHR;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:1898: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).
  CB_MEMDUP(tmp, str, strlen(str));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2027:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2034:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2040:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2050:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2059:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CB_DATUMCAT(rbuf, numbuf, strlen(numbuf));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2097:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      CB_MEMDUP(tmp, vbuf, strlen(vbuf));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2101:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2117:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2124:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2130:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2141:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CB_DATUMCAT(rbuf, enc, strlen(enc));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2156:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2177: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).
  CB_MEMDUP(buf, str, strlen(str));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2230:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2270:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2328:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2352: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).
  CB_MALLOC(buf, strlen(str) + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2398:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2534:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2536:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((blen = strlen(boundary)) < 1) return list;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2571:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2572:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  CB_MALLOC(buf, len * 3 + strlen(encname) + 16);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2589: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).
  CB_MALLOC(buf, strlen(str) + 1);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2675:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    CB_LISTPUSH(uelist, tmp, strlen(tmp));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2688: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).
  CB_MALLOC(buf, strlen(str) * 2 + 3);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2706:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:2998: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).
    CB_MEMDUP(res, ptr, size < 0 ? strlen(ptr) : size);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3059:5:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    sprintf(tzone, "Z");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3067: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).
  CB_MEMDUP(rv, date, strlen(date));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3112: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).
  CB_MEMDUP(rv, date, strlen(date));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3138:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3175:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if((*pv == '+' || *pv == '-') && strlen(pv) >= 6 && pv[3] == ':')
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3204:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if((*pv == '+' || *pv == '-') && strlen(pv) >= 6 && pv[3] == ':')
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3261: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).
    clen = strlen(crp);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cabin.c:3336:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    write(2, buf, strlen(buf));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:139:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  for(i = 0; (c = getchar()) != EOF; i++){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:189:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(base);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:192:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(expr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:269:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(expr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:336:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(expr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbcodec.c:423:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(expr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:816:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(osiz != strlen(spbuf) || strcmp(orig, spbuf)){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:827:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(osiz != strlen(spbuf) || strcmp(orig, spbuf)){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/cbtest.c:838:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(osiz != strlen(spbuf) || strcmp(orig, spbuf) || strcmp(renc, "ISO-8859-1")){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crmgr.c:153:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/crtsv.c:153:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = getchar()) != EOF){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:66:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(name) > CR_NAMEMAX){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:223:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:242:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:252:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:262:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:272:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:709:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:734:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:735:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(vsiz < 0) vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:780:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:800:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:847:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:864:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:962:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1005: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(!(path = malloc(strlen(prefix) + ksiz * 2 + 1))){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/curia.c:1184:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  for(i = 0; i < size && (bs = read(fd, lbuf + i, size - i)) != 0; i += bs){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:213:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memcpy(hbuf, DP_MAGICNUMB, strlen(DP_MAGICNUMB));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:215:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      memcpy(hbuf, DP_MAGICNUML, strlen(DP_MAGICNUML));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:256:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     ((dpbigendian() ? memcmp(hbuf, DP_MAGICNUMB, strlen(DP_MAGICNUMB)) != 0 :
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:257:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       memcmp(hbuf, DP_MAGICNUML, strlen(DP_MAGICNUML)) != 0) ||
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:359:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:360:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(vsiz < 0) vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:510:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:540:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:596:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:635:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:793: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(!(name = malloc(strlen(depot->name) + strlen(DP_TMPFSUF) + 1))){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:793:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(!(name = malloc(strlen(depot->name) + strlen(DP_TMPFSUF) + 1))){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1084:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(!(tname = malloc(strlen(name) + strlen(DP_TMPFSUF) + 1))){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1084:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(!(tname = malloc(strlen(name) + strlen(DP_TMPFSUF) + 1))){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1281:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1297:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(dpbigendian() ? memcmp(hbuf, DP_MAGICNUMB, strlen(DP_MAGICNUMB)) != 0 :
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1298:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     memcmp(hbuf, DP_MAGICNUML, strlen(DP_MAGICNUML)) != 0){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1393:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1403:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1443:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dpwrite(dpdbgfd, iobuf, strlen(iobuf));
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1550:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/depot.c:1657:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  for(i = 0; i < size && (bs = read(fd, lbuf + i, size - i)) != 0; i += bs){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dpmgr.c:152:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/dptsv.c:148:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = getchar()) != EOF){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:111:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:205: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).
    ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:213: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).
    vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:261: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).
    ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/hvmgr.c:310: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).
    ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:250:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((rv = read(fd, wp + rlen, length - rlen)) > 0){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:429:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(name);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:487:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if((bsiz = read(fd, buf, sizeof(buf) - 1)) > 0){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:556:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:698:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:744:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:821:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:979:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/myconf.c:1020:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(size < 0) size = strlen(ptr);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1548:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(name) > OD_NAMEMAX){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1904:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((rv = strlen(bp->word) - strlen(ap->word)) != 0) return rv;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odeum.c:1904:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if((rv = strlen(bp->word) - strlen(ap->word)) != 0) return rv;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:274:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = fgetc(ifp)) != EOF){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odidx.c:529:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(!(title = oddocgetattr(doc, "title")) || strlen(title) < 1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:158:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  for(i = 0; (c = getchar()) != EOF; i++){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:625:24:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
    if(!first) ssiz += sprintf(sbuf + ssiz, " ");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:654:17:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        ssiz += sprintf(sbuf + ssiz, " ");
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/odmgr.c:832:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(normal) < 1){
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c:51:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(name) > RL_NAMEMAX) return NULL;
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/relic.c:247:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c:105:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c:182: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).
    ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c:190: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).
    vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c:235: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).
    ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/rlmgr.c:281: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).
    ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:293:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:294:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(vsiz < 0) vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:376:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:413:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:435:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:455:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:482:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:499:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:516:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:549:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:743:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:862:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(vsiz < 0) vsiz = strlen(vbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/villa.c:1525:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(ksiz < 0) ksiz = strlen(kbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:146:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(str);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:458:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      tsiz = strlen(tbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vlmgr.c:462:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      bsiz = strlen(bbuf);
data/boxbackup-0.13~~git20200326.g8e8b63c/qdbm/vltsv.c:145:14:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((c = getchar()) != EOF){
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstore/testbackupstore.cpp:3090:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	MemBlockStream extra_data(extra_string, strlen(extra_string));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:124: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).
	int rubbish_len = ::strlen(rubbish);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/backupstorefix/testbackupstorefix.cpp:514: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).
		fs.Write(more, strlen(more));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/basicserver/testbasicserver.cpp:342:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			conns[c]->Write(tosend[q], strlen(tosend[q]));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:151: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).
				int xattrNameSize = strlen(xattrName);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2016:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(control_string)) ==
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2017: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).
			(int)strlen(control_string));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2593:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(control_string)) ==
data/boxbackup-0.13~~git20200326.g8e8b63c/test/bbackupd/testbbackupd.cpp:2594:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(int)strlen(control_string));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:464:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int e = strlen(ll);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/common/testcommon.cpp:517:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int e = strlen(ll);
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:463:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			TEST_THAT(sizeof(testblock) == ::read(f, testblock, sizeof(testblock)));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:471:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			TEST_THAT(sizeof(testblock) == ::read(f, testblock, sizeof(testblock)));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:678:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int bytes_read = ::read(f, buffer, sizeof(buffer));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:693:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes_read = ::read(f, buffer, sizeof(buffer));
data/boxbackup-0.13~~git20200326.g8e8b63c/test/raidfile/testraidfile.cpp:700:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	TEST_THAT(::read(f, buffer, sizeof(buffer)) == 0);

ANALYSIS SUMMARY:

Hits = 1355
Lines analyzed = 119269 in approximately 2.67 seconds (44719 lines/second)
Physical Source Lines of Code (SLOC) = 80434
Hits@level = [0] 693 [1] 230 [2] 858 [3]  53 [4] 191 [5]  23
Hits@level+ = [0+] 2048 [1+] 1355 [2+] 1125 [3+] 267 [4+] 214 [5+]  23
Hits/KSLOC@level+ = [0+] 25.4619 [1+] 16.8461 [2+] 13.9866 [3+] 3.31949 [4+] 2.66057 [5+] 0.285949
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.