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/dvbcut-0.7.3/import/byteswap.h Examining data/dvbcut-0.7.3/import/stdlib.cpp Examining data/dvbcut-0.7.3/import/stdlib.h Examining data/dvbcut-0.7.3/import/sys/mman.h Examining data/dvbcut-0.7.3/src/avframe.cpp Examining data/dvbcut-0.7.3/src/avframe.h Examining data/dvbcut-0.7.3/src/buffer.cpp Examining data/dvbcut-0.7.3/src/buffer.h Examining data/dvbcut-0.7.3/src/busyindicator.h Examining data/dvbcut-0.7.3/src/defines.h Examining data/dvbcut-0.7.3/src/differenceimageprovider.cpp Examining data/dvbcut-0.7.3/src/differenceimageprovider.h Examining data/dvbcut-0.7.3/src/dvbcut.cpp Examining data/dvbcut-0.7.3/src/dvbcut.h Examining data/dvbcut-0.7.3/src/eventlistitem.cpp Examining data/dvbcut-0.7.3/src/eventlistitem.h Examining data/dvbcut-0.7.3/src/exception.cpp Examining data/dvbcut-0.7.3/src/exception.h Examining data/dvbcut-0.7.3/src/exportdialog.cpp Examining data/dvbcut-0.7.3/src/exportdialog.h Examining data/dvbcut-0.7.3/src/imageprovider.cpp Examining data/dvbcut-0.7.3/src/imageprovider.h Examining data/dvbcut-0.7.3/src/index.cpp Examining data/dvbcut-0.7.3/src/index.h Examining data/dvbcut-0.7.3/src/lavfmuxer.cpp Examining data/dvbcut-0.7.3/src/lavfmuxer.h Examining data/dvbcut-0.7.3/src/logoutput.cpp Examining data/dvbcut-0.7.3/src/logoutput.h Examining data/dvbcut-0.7.3/src/main.cpp Examining data/dvbcut-0.7.3/src/mpegmuxer.cpp Examining data/dvbcut-0.7.3/src/mpegmuxer.h Examining data/dvbcut-0.7.3/src/mpgfile.cpp Examining data/dvbcut-0.7.3/src/mpgfile.h Examining data/dvbcut-0.7.3/src/mplayererrorbase.cpp Examining data/dvbcut-0.7.3/src/mplayererrorbase.h Examining data/dvbcut-0.7.3/src/muxer.h Examining data/dvbcut-0.7.3/src/playaudio.cpp Examining data/dvbcut-0.7.3/src/playaudio.h Examining data/dvbcut-0.7.3/src/port.h Examining data/dvbcut-0.7.3/src/progressstatusbar.cpp Examining data/dvbcut-0.7.3/src/progressstatusbar.h Examining data/dvbcut-0.7.3/src/progresswindow.cpp Examining data/dvbcut-0.7.3/src/progresswindow.h Examining data/dvbcut-0.7.3/src/psfile.cpp Examining data/dvbcut-0.7.3/src/psfile.h Examining data/dvbcut-0.7.3/src/pts.cpp Examining data/dvbcut-0.7.3/src/pts.h Examining data/dvbcut-0.7.3/src/settings.cpp Examining data/dvbcut-0.7.3/src/settings.h Examining data/dvbcut-0.7.3/src/stream.h Examining data/dvbcut-0.7.3/src/streamdata.cpp Examining data/dvbcut-0.7.3/src/streamdata.h Examining data/dvbcut-0.7.3/src/streamhandle.h Examining data/dvbcut-0.7.3/src/tsfile.cpp Examining data/dvbcut-0.7.3/src/tsfile.h Examining data/dvbcut-0.7.3/src/types.h FINAL RESULTS: data/dvbcut-0.7.3/import/stdlib.cpp:5:8: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf(*s,fmt,va); data/dvbcut-0.7.3/import/stdlib.cpp:10: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(resolved,path); return resolved; data/dvbcut-0.7.3/src/dvbcut.cpp:679: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. int irc = system(which.c_str()); data/dvbcut-0.7.3/src/dvbcut.cpp:699:7: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("/bin/sh", "sh", "-c", expcmd.c_str()+pos, (char *)0); data/dvbcut-0.7.3/src/dvbcut.cpp:823: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. int irc = system(which.c_str()); data/dvbcut-0.7.3/src/dvbcut.cpp:831: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. int irc = system(expcmd.c_str()); data/dvbcut-0.7.3/src/dvbcut.cpp:995:48: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. statusBar()->showMessage(QString().sprintf("%d. Scene change @ %d, DIST=%f\n",chapters+1,inpic,dist)); data/dvbcut-0.7.3/src/dvbcut.cpp:1329:36: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. arguments << "-wid" << QString().sprintf("0x%x",int(ui->imagedisplay->winId())); data/dvbcut-0.7.3/src/dvbcut.cpp:1331:41: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. arguments << "-geometry" << QString().sprintf("%dx%d+0+0",int(ui->imagedisplay->width()),int(ui->imagedisplay->height())); data/dvbcut-0.7.3/src/dvbcut.cpp:1334:38: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. arguments << "-aid" << QString().sprintf("0x%x", int(mpg->mplayeraudioid(currentaudiotrack))); data/dvbcut-0.7.3/src/dvbcut.cpp:2454:20: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return QString().sprintf("%02d:%02d:%02d.%03d", data/dvbcut-0.7.3/src/dvbcut.cpp:2692:29: [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. QString locale = QLocale::system().name(); data/dvbcut-0.7.3/src/eventlistitem.cpp:71:28: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. return label + QString().sprintf("<br>%02d:%02d:%02d.%03d<br>%d (%c)", data/dvbcut-0.7.3/src/main.cpp:200:29: [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. QString locale = QLocale::system().name(); data/dvbcut-0.7.3/import/stdlib.cpp:8:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *realpath (const char *path, char *resolved) data/dvbcut-0.7.3/import/stdlib.h:8:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *realpath (const char *path, char *resolved); data/dvbcut-0.7.3/src/dvbcut.cpp:2431:16: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char *rp = realpath(filename.c_str(), NULL); data/dvbcut-0.7.3/src/avframe.cpp:113: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. int headerlen=sprintf((char *) rgbbuffer, "P6\n%d %d\n255\n", w, h); data/dvbcut-0.7.3/src/buffer.cpp:79:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d, (u_int8_t *) olddata + readpos, inbytes()); data/dvbcut-0.7.3/src/buffer.cpp:103: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((u_int8_t *) d + writepos, data, len); data/dvbcut-0.7.3/src/buffer.cpp:115: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(data, (u_int8_t *) d + readpos, len); data/dvbcut-0.7.3/src/buffer.cpp:168: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). inbuffer::open(std::string filename, std::string *errmsg) { data/dvbcut-0.7.3/src/buffer.cpp:171:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = ::open(filename.c_str(), O_RDONLY | O_BINARY); data/dvbcut-0.7.3/src/buffer.cpp:177: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). if (!open(fd, errmsg, true, filename)) { data/dvbcut-0.7.3/src/buffer.cpp:186: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). inbuffer::open(int fd, std::string *errmsg, bool closeme, std::string filename) { data/dvbcut-0.7.3/src/buffer.cpp:499: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 outbuffer::open(const char* filename) data/dvbcut-0.7.3/src/buffer.cpp:502: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). return fd=::open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666); data/dvbcut-0.7.3/src/buffer.h:169: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). bool open(int fd, std::string *errmsg = 0, bool closeme = false, std::string filename=""); data/dvbcut-0.7.3/src/buffer.h:170: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). bool open(std::string filename, std::string *errmsg = 0); data/dvbcut-0.7.3/src/buffer.h:209:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open(const char *filename); data/dvbcut-0.7.3/src/dvbcut.cpp:255: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(); data/dvbcut-0.7.3/src/dvbcut.cpp:304: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 (!outfile.open(QIODevice::WriteOnly)) { data/dvbcut-0.7.3/src/dvbcut.cpp:625: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 chapter[16]; data/dvbcut-0.7.3/src/dvbcut.cpp:637:16: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. nchar+=sprintf(chapter,"%02d:%02d:%02d.%03d", data/dvbcut-0.7.3/src/dvbcut.cpp:1806: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(settings().recentfiles[(unsigned)id].first, settings().recentfiles[(unsigned)id].second); data/dvbcut-0.7.3/src/dvbcut.cpp:1812: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). void dvbcut::open(std::list<std::string> filenames, std::string idxfilename, std::string expfilename) data/dvbcut-0.7.3/src/dvbcut.cpp:1927: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 (infile.open(QIODevice::ReadOnly)) { data/dvbcut-0.7.3/src/dvbcut.cpp:1928:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[512]; data/dvbcut-0.7.3/src/dvbcut.cpp:2025:39: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). while (it != filenames.end() && buf.open(*it, &errormessage)) data/dvbcut-0.7.3/src/dvbcut.cpp:2029: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). mpg = mpgfile::open(buf, &errormessage); data/dvbcut-0.7.3/src/dvbcut.h:153: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). void open(std::list<std::string> filenames=std::list<std::string>(), data/dvbcut-0.7.3/src/index.cpp:88: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). if ((fd=::open(savefilename,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,0666))<0) { data/dvbcut-0.7.3/src/index.cpp:470:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = ::open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0666); data/dvbcut-0.7.3/src/index.cpp:489: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(filename,O_RDONLY|O_BINARY,0666); data/dvbcut-0.7.3/src/main.cpp:113: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). exportformat = atoi(argv[++i]); data/dvbcut-0.7.3/src/main.cpp:115: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). int bofeof = atoi(argv[++i]); data/dvbcut-0.7.3/src/main.cpp:150: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). okay = buf.open(STDIN_FILENO, &errormessage); data/dvbcut-0.7.3/src/main.cpp:158: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). okay = buf.open(*it, &errormessage); data/dvbcut-0.7.3/src/main.cpp:166:29: [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). mpgfile *mpg = mpgfile::open(buf, &errormessage); data/dvbcut-0.7.3/src/main.cpp:226: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). main->open(filenames,idxfilename,expfilename); data/dvbcut-0.7.3/src/main.cpp:252:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). piclist.push_back(atoi(cutlist[j].c_str())); // integers are treated as frame numbers! data/dvbcut-0.7.3/src/main.cpp:277: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). main->open(filenames,idxfilename,expfilename); data/dvbcut-0.7.3/src/mpegmuxer.cpp: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). fd = atoi(filename+5); data/dvbcut-0.7.3/src/mpegmuxer.cpp:144:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd=::open(filename,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,0666); data/dvbcut-0.7.3/src/mpegmuxer.cpp:400:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->getpayload(),data,p->getpayloadlen()); data/dvbcut-0.7.3/src/mpegmuxer.cpp:619: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(data,a->getdata(),copy); data/dvbcut-0.7.3/src/mpegmuxer.cpp:658: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(data,_data,size); data/dvbcut-0.7.3/src/mpgfile.cpp:63: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). mpgfile::open(inbuffer &b, std::string *errormessage) { data/dvbcut-0.7.3/src/mpgfile.cpp:248: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 number[16]; data/dvbcut-0.7.3/src/mpgfile.cpp:871:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). pFile = fopen(filename.c_str() , "rb"); data/dvbcut-0.7.3/src/mpgfile.h:62: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). static mpgfile *open(inbuffer &b, std::string *errormessage = 0); data/dvbcut-0.7.3/src/pts.cpp:78:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sub=atoi(t.substr(pos+1).c_str())%90; data/dvbcut-0.7.3/src/pts.cpp:82: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). min=atoi(tokens.back().c_str()); data/dvbcut-0.7.3/src/pts.cpp:90: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). hour=atoi(tokens.back().c_str()); data/dvbcut-0.7.3/src/tsfile.cpp:41:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *model[7]={"???","TF4000","TF5000","TF5010","TF5000c","TF5010c","TF7700"}; data/dvbcut-0.7.3/src/tsfile.cpp:484: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(tbl + size, payload + n, amount); data/dvbcut-0.7.3/import/sys/mman.h:86:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(__fd,d,__len); data/dvbcut-0.7.3/src/buffer.cpp:127:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int r = read(fd, (u_int8_t *) d + writepos, size - writepos); data/dvbcut-0.7.3/src/buffer.cpp:296:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t n = ::read(i->fd, (char*)d, size); data/dvbcut-0.7.3/src/buffer.cpp:316:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t n = ::read(i->fd, (char*)d + writepos, len); data/dvbcut-0.7.3/src/buffer.cpp:458:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t n = ::read(i->fd, (char*)d + writepos, len); data/dvbcut-0.7.3/src/index.cpp:509:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int rd=::read(fd,data+len,size-len); data/dvbcut-0.7.3/src/lavfmuxer.cpp:52:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(avfc->filename, filename, sizeof(avfc->filename)); data/dvbcut-0.7.3/src/main.cpp:97:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t n = strlen(argv[i]); data/dvbcut-0.7.3/src/main.cpp:121: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(strlen(pch)) ANALYSIS SUMMARY: Hits = 75 Lines analyzed = 12150 in approximately 0.35 seconds (34916 lines/second) Physical Source Lines of Code (SLOC) = 9174 Hits@level = [0] 80 [1] 9 [2] 49 [3] 3 [4] 14 [5] 0 Hits@level+ = [0+] 155 [1+] 75 [2+] 66 [3+] 17 [4+] 14 [5+] 0 Hits/KSLOC@level+ = [0+] 16.8956 [1+] 8.17528 [2+] 7.19424 [3+] 1.85306 [4+] 1.52605 [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.