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/fastp-0.20.1+dfsg/src/adaptertrimmer.cpp Examining data/fastp-0.20.1+dfsg/src/adaptertrimmer.h Examining data/fastp-0.20.1+dfsg/src/basecorrector.cpp Examining data/fastp-0.20.1+dfsg/src/basecorrector.h Examining data/fastp-0.20.1+dfsg/src/cmdline.h Examining data/fastp-0.20.1+dfsg/src/common.h Examining data/fastp-0.20.1+dfsg/src/duplicate.cpp Examining data/fastp-0.20.1+dfsg/src/duplicate.h Examining data/fastp-0.20.1+dfsg/src/evaluator.cpp Examining data/fastp-0.20.1+dfsg/src/evaluator.h Examining data/fastp-0.20.1+dfsg/src/fastareader.cpp Examining data/fastp-0.20.1+dfsg/src/fastareader.h Examining data/fastp-0.20.1+dfsg/src/fastqreader.cpp Examining data/fastp-0.20.1+dfsg/src/fastqreader.h Examining data/fastp-0.20.1+dfsg/src/filter.cpp Examining data/fastp-0.20.1+dfsg/src/filter.h Examining data/fastp-0.20.1+dfsg/src/filterresult.cpp Examining data/fastp-0.20.1+dfsg/src/filterresult.h Examining data/fastp-0.20.1+dfsg/src/htmlreporter.cpp Examining data/fastp-0.20.1+dfsg/src/htmlreporter.h Examining data/fastp-0.20.1+dfsg/src/jsonreporter.cpp Examining data/fastp-0.20.1+dfsg/src/jsonreporter.h Examining data/fastp-0.20.1+dfsg/src/knownadapters.h Examining data/fastp-0.20.1+dfsg/src/main.cpp Examining data/fastp-0.20.1+dfsg/src/nucleotidetree.cpp Examining data/fastp-0.20.1+dfsg/src/nucleotidetree.h Examining data/fastp-0.20.1+dfsg/src/options.cpp Examining data/fastp-0.20.1+dfsg/src/options.h Examining data/fastp-0.20.1+dfsg/src/overlapanalysis.cpp Examining data/fastp-0.20.1+dfsg/src/overlapanalysis.h Examining data/fastp-0.20.1+dfsg/src/peprocessor.cpp Examining data/fastp-0.20.1+dfsg/src/peprocessor.h Examining data/fastp-0.20.1+dfsg/src/polyx.cpp Examining data/fastp-0.20.1+dfsg/src/polyx.h Examining data/fastp-0.20.1+dfsg/src/processor.cpp Examining data/fastp-0.20.1+dfsg/src/processor.h Examining data/fastp-0.20.1+dfsg/src/read.cpp Examining data/fastp-0.20.1+dfsg/src/read.h Examining data/fastp-0.20.1+dfsg/src/seprocessor.cpp Examining data/fastp-0.20.1+dfsg/src/seprocessor.h Examining data/fastp-0.20.1+dfsg/src/sequence.cpp Examining data/fastp-0.20.1+dfsg/src/sequence.h Examining data/fastp-0.20.1+dfsg/src/stats.cpp Examining data/fastp-0.20.1+dfsg/src/stats.h Examining data/fastp-0.20.1+dfsg/src/threadconfig.cpp Examining data/fastp-0.20.1+dfsg/src/threadconfig.h Examining data/fastp-0.20.1+dfsg/src/umiprocessor.cpp Examining data/fastp-0.20.1+dfsg/src/umiprocessor.h Examining data/fastp-0.20.1+dfsg/src/unittest.cpp Examining data/fastp-0.20.1+dfsg/src/unittest.h Examining data/fastp-0.20.1+dfsg/src/util.h Examining data/fastp-0.20.1+dfsg/src/writer.cpp Examining data/fastp-0.20.1+dfsg/src/writer.h Examining data/fastp-0.20.1+dfsg/src/writerthread.cpp Examining data/fastp-0.20.1+dfsg/src/writerthread.h FINAL RESULTS: data/fastp-0.20.1+dfsg/src/evaluator.cpp:324:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bases[4] = {'A', 'T', 'C', 'G'}; data/fastp-0.20.1+dfsg/src/evaluator.cpp:653: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 bases[4] = {'A', 'T', 'C', 'G'}; data/fastp-0.20.1+dfsg/src/fastareader.cpp:22:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). mFastaFileStream.open( mFastaFile.c_str(),ios::in); data/fastp-0.20.1+dfsg/src/fastqreader.cpp:59: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). mFile = fopen(mFilename.c_str(), "rb"); data/fastp-0.20.1+dfsg/src/htmlreporter.cpp:329: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). ofs.open(mOptions->htmlFile, ifstream::out); data/fastp-0.20.1+dfsg/src/htmlreporter.cpp:425:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[60] = {0}; data/fastp-0.20.1+dfsg/src/htmlreporter.cpp:426: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(date, "%d-%02d-%02d %02d:%02d:%02d", data/fastp-0.20.1+dfsg/src/jsonreporter.cpp:26: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). ofs.open(mOptions->jsonFile, ifstream::out); data/fastp-0.20.1+dfsg/src/options.cpp:459:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open(filename.c_str(), ifstream::in); data/fastp-0.20.1+dfsg/src/options.cpp:461:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[maxLine]; data/fastp-0.20.1+dfsg/src/peprocessor.cpp:521: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(mdata, mergedOutput.c_str(), mergedOutput.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:528: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(fdata, failedOut.c_str(), failedOut.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:536: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(ldata, outstr1.c_str(), outstr1.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:540: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(rdata, outstr2.c_str(), outstr2.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:545: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(ldata, singleOutput.c_str(), singleOutput.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:553: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(unpairedData1, unpairedOut1.c_str(), unpairedOut1.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:557: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(unpairedData2, unpairedOut2.c_str(), unpairedOut2.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:561: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(unpairedData, unpairedOut1.c_str(), unpairedOut1.size()); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:562: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(unpairedData + unpairedOut1.size(), unpairedOut2.c_str(), unpairedOut2.size()); data/fastp-0.20.1+dfsg/src/seprocessor.cpp:285: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(ldata, outstr.c_str(), outstr.size()); data/fastp-0.20.1+dfsg/src/seprocessor.cpp:291: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(fdata, failedOut.c_str(), failedOut.size()); data/fastp-0.20.1+dfsg/src/stats.cpp:72: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(newBuf, mCycleQ30Bases[i], sizeof(long) * mBufLen); data/fastp-0.20.1+dfsg/src/stats.cpp:78: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(newBuf, mCycleQ20Bases[i], sizeof(long) * mBufLen); data/fastp-0.20.1+dfsg/src/stats.cpp:84: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(newBuf, mCycleBaseContents[i], sizeof(long) * mBufLen); data/fastp-0.20.1+dfsg/src/stats.cpp:90: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(newBuf, mCycleBaseQual[i], sizeof(long) * mBufLen); data/fastp-0.20.1+dfsg/src/stats.cpp:96:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newBuf, mCycleTotalBase, sizeof(long)*mBufLen); data/fastp-0.20.1+dfsg/src/stats.cpp:102: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(newBuf, mCycleTotalQual, sizeof(long)*mBufLen); data/fastp-0.20.1+dfsg/src/stats.cpp:176: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 alphabets[5] = {'A', 'T', 'C', 'G', 'N'}; data/fastp-0.20.1+dfsg/src/stats.cpp:703:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char bases[4] = {'A', 'T', 'C', 'G'}; data/fastp-0.20.1+dfsg/src/stats.cpp:712:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char bases[4] = {'A', 'T', 'C', 'G'}; data/fastp-0.20.1+dfsg/src/writer.cpp:48: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). mOutStream->open(mFilename.c_str(), ifstream::out); data/fastp-0.20.1+dfsg/src/adaptertrimmer.cpp:102:20: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(mismatch > allowedMismatch) { data/fastp-0.20.1+dfsg/src/adaptertrimmer.cpp:148:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read read("@name", data/fastp-0.20.1+dfsg/src/adaptertrimmer.cpp:157:53: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). trimmed = AdapterTrimmer::trimByMultiSequences(&read, NULL, adapterList); data/fastp-0.20.1+dfsg/src/adaptertrimmer.cpp:158:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read.mSeq.mStr != "TTTTAACCCCCCCCCCCCCCCCCCCCCCCCCCCCAATTTTAAAATTTTCCCCGGGG") { data/fastp-0.20.1+dfsg/src/adaptertrimmer.cpp:159:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cerr << read.mSeq.mStr << endl; data/fastp-0.20.1+dfsg/src/cmdline.h:721:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). actual=read(value); data/fastp-0.20.1+dfsg/src/cmdline.h:767:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual T read(const std::string &s)=0; data/fastp-0.20.1+dfsg/src/cmdline.h:792:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). T read(const std::string &s){ data/fastp-0.20.1+dfsg/src/evaluator.cpp:19:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* r = reader.read(); data/fastp-0.20.1+dfsg/src/evaluator.cpp:50:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* r = reader.read(); data/fastp-0.20.1+dfsg/src/evaluator.cpp:76:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* r = reader.read(); data/fastp-0.20.1+dfsg/src/evaluator.cpp:180:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* r = reader.read(); data/fastp-0.20.1+dfsg/src/evaluator.cpp:232:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* r = reader.read(); data/fastp-0.20.1+dfsg/src/evaluator.cpp:431:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* r = reader.read(); data/fastp-0.20.1+dfsg/src/fastqreader.cpp:84:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int readed = strlen(line); data/fastp-0.20.1+dfsg/src/fastqreader.cpp:167:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* FastqReader::read(){ data/fastp-0.20.1+dfsg/src/fastqreader.cpp:261:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r1=reader1.read(); data/fastp-0.20.1+dfsg/src/fastqreader.cpp:262:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r2=reader2.read(); data/fastp-0.20.1+dfsg/src/fastqreader.cpp:299:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ReadPair* FastqReaderPair::read(){ data/fastp-0.20.1+dfsg/src/fastqreader.cpp:300:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* l = mLeft->read(); data/fastp-0.20.1+dfsg/src/fastqreader.cpp:303:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = mLeft->read(); data/fastp-0.20.1+dfsg/src/fastqreader.cpp:305:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = mRight->read(); data/fastp-0.20.1+dfsg/src/fastqreader.h:26:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* read(); data/fastp-0.20.1+dfsg/src/fastqreader.h:62:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ReadPair* read(); data/fastp-0.20.1+dfsg/src/options.cpp:465: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 readed = strlen(line); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:649:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:684:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ReadPair* read = reader.read(); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:686:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(!read || needToBreak){ data/fastp-0.20.1+dfsg/src/peprocessor.cpp:693:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read) { data/fastp-0.20.1+dfsg/src/peprocessor.cpp:694:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). delete read; data/fastp-0.20.1+dfsg/src/peprocessor.cpp:699:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). data[count] = read; data/fastp-0.20.1+dfsg/src/peprocessor.cpp:722:17: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:730:21: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/fastp-0.20.1+dfsg/src/peprocessor.cpp:773:13: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/fastp-0.20.1+dfsg/src/polyx.cpp:35:12: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(mismatch > maxMismatch || (mismatch>allowedMismatch && i>= compareReq-1) ) data/fastp-0.20.1+dfsg/src/polyx.cpp:35:39: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if(mismatch > maxMismatch || (mismatch>allowedMismatch && i>= compareReq-1) ) data/fastp-0.20.1+dfsg/src/seprocessor.cpp:353:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/fastp-0.20.1+dfsg/src/seprocessor.cpp:387:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). Read* read = reader.read(); data/fastp-0.20.1+dfsg/src/seprocessor.cpp:389:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(!read || needToBreak){ data/fastp-0.20.1+dfsg/src/seprocessor.cpp:396:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(read) { data/fastp-0.20.1+dfsg/src/seprocessor.cpp:397:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). delete read; data/fastp-0.20.1+dfsg/src/seprocessor.cpp:402:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). data[count] = read; data/fastp-0.20.1+dfsg/src/seprocessor.cpp:426:17: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100); data/fastp-0.20.1+dfsg/src/seprocessor.cpp:434:21: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/fastp-0.20.1+dfsg/src/seprocessor.cpp:477:13: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000); data/fastp-0.20.1+dfsg/src/util.h:37:13: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. return equal(starting.begin(), starting.end(), value.begin()); data/fastp-0.20.1+dfsg/src/util.h:43:10: [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. return equal(ending.rbegin(), ending.rend(), value.rbegin()); data/fastp-0.20.1+dfsg/src/writerthread.cpp:40:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100); ANALYSIS SUMMARY: Hits = 79 Lines analyzed = 10287 in approximately 0.33 seconds (30904 lines/second) Physical Source Lines of Code (SLOC) = 8371 Hits@level = [0] 8 [1] 48 [2] 31 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 87 [1+] 79 [2+] 31 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 10.393 [1+] 9.43734 [2+] 3.70326 [3+] 0 [4+] 0 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.