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/dvbtune-0.5.ds/dvb_defaults.h Examining data/dvbtune-0.5.ds/tune.h Examining data/dvbtune-0.5.ds/tune.c Examining data/dvbtune-0.5.ds/xml2vdr.c Examining data/dvbtune-0.5.ds/dvbtune.c FINAL RESULTS: data/dvbtune-0.5.ds/xml2vdr.c:178:14: [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(ca_systems[n_ca++],attrs[i+1]); data/dvbtune-0.5.ds/xml2vdr.c:189:19: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(lang[n_apids-1],attrs[i+1]); data/dvbtune-0.5.ds/dvbtune.c:152: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 xmlify_result[10]; data/dvbtune-0.5.ds/dvbtune.c:155:15: [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. case '&': strcpy(xmlify_result,"&"); data/dvbtune-0.5.ds/dvbtune.c:157:15: [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. case '<': strcpy(xmlify_result,"<"); data/dvbtune-0.5.ds/dvbtune.c:159:15: [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. case '>': strcpy(xmlify_result,">"); data/dvbtune-0.5.ds/dvbtune.c:161:16: [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. case '\"': strcpy(xmlify_result,"""); data/dvbtune-0.5.ds/dvbtune.c:440:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[128]; data/dvbtune-0.5.ds/dvbtune.c:552:14: [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(tmp,"%x",freq); data/dvbtune-0.5.ds/dvbtune.c:553:31: [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). transponder.freq=atoi(tmp)*10; data/dvbtune-0.5.ds/dvbtune.c:569:14: [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(tmp,"%x",sr); data/dvbtune-0.5.ds/dvbtune.c:570:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). transponder.srate=atoi(tmp)*100; data/dvbtune-0.5.ds/dvbtune.c:703:5: [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(fname,"w"); data/dvbtune-0.5.ds/dvbtune.c:715: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[4096]; data/dvbtune-0.5.ds/dvbtune.c:719: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_nit = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:787: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[4096]; data/dvbtune-0.5.ds/dvbtune.c:797: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_pmt = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:878: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[4096]; data/dvbtune-0.5.ds/dvbtune.c:884: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_pat = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:944: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[4096]; data/dvbtune-0.5.ds/dvbtune.c:949: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_sdt = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1177: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). freq=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1184: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). dpid=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1187: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). card=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1196: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). vpid=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1199: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). pnr=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1203: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). apid=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1206: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). ttpid=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1222: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). srate=atoi(argv[i])*1000UL; data/dvbtune-0.5.ds/dvbtune.c:1225: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). switch(atoi(argv[i])) { data/dvbtune-0.5.ds/dvbtune.c:1237: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). switch(atoi(argv[i])) { data/dvbtune-0.5.ds/dvbtune.c:1248: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). switch(atoi(argv[i])) { data/dvbtune-0.5.ds/dvbtune.c:1257: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). switch(atoi(argv[i])) { data/dvbtune-0.5.ds/dvbtune.c:1285: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). diseqc=atoi(argv[i]); data/dvbtune-0.5.ds/dvbtune.c:1292:6: [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(argv[i])==0) data/dvbtune-0.5.ds/dvbtune.c:1298: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). if (atoi(argv[i])==0) data/dvbtune-0.5.ds/dvbtune.c:1300: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). else if (atoi(argv[i])==1) data/dvbtune-0.5.ds/dvbtune.c:1320: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_dvr = open(dvrdev[card],O_RDONLY|O_NONBLOCK)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1326: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). if((fd_frontend = open(frontenddev[card],O_RDWR)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1335: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((fd_sec = open(secdev[card],O_RDWR)) < 0) { data/dvbtune-0.5.ds/dvbtune.c:1342: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). if((fd_demuxrec = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1348: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). if((fd_demuxv = open(demuxdev[card],O_RDWR)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1354: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). if((fd_demuxa = open(demuxdev[card],O_RDWR)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1360: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). if((fd_demuxtt = open(demuxdev[card],O_RDWR)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1366: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). if((fd_demuxd = open(demuxdev[card],O_RDWR)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1372: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). if((fd_demuxsi = open(demuxdev[card],O_RDWR|O_NONBLOCK)) < 0){ data/dvbtune-0.5.ds/dvbtune.c:1433: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 devnamen[80]; data/dvbtune-0.5.ds/dvbtune.c:1442: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(devnamen,"/dev/dvb/adapter%d/net0",dev); data/dvbtune-0.5.ds/dvbtune.c:1444: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(devnamen,"/dev/ost/net%d",dev); data/dvbtune-0.5.ds/dvbtune.c:1447: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). if((fdn = open(devnamen,O_RDWR|O_NONBLOCK)) < 0) { data/dvbtune-0.5.ds/dvbtune.c:1464:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fd_frontend = open(frontenddev[card],O_RDONLY)) < 0){ data/dvbtune-0.5.ds/xml2vdr.c:53: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 service_name[256]; data/dvbtune-0.5.ds/xml2vdr.c:54: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 provider_name[256]; data/dvbtune-0.5.ds/xml2vdr.c:61: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 ca_systems[256][256]; data/dvbtune-0.5.ds/xml2vdr.c:65: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 lang[256][4]; data/dvbtune-0.5.ds/xml2vdr.c:66: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 tmp[32]; data/dvbtune-0.5.ds/xml2vdr.c:124: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). freq=atoi(attrs[i+1])/1000; data/dvbtune-0.5.ds/xml2vdr.c:126:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). srate=atoi(attrs[i+1])/1000; data/dvbtune-0.5.ds/xml2vdr.c:138:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pnr=atoi(attrs[i+1]); data/dvbtune-0.5.ds/xml2vdr.c:148:28: [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). streamtype=atoi(attrs[i+1]); data/dvbtune-0.5.ds/xml2vdr.c:150:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). pid=atoi(attrs[i+1]); data/dvbtune-0.5.ds/xml2vdr.c:201:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). canal_radio_id=atoi(attrs[i+1]); data/dvbtune-0.5.ds/xml2vdr.c:218: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). type=atoi(attrs[i+1]); data/dvbtune-0.5.ds/xml2vdr.c:237:30: [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. if (service_name[0]==0) strcpy(service_name,"no name"); data/dvbtune-0.5.ds/dvbtune.c:744:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd_nit,buf,3)==3) { data/dvbtune-0.5.ds/dvbtune.c:746:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd_nit,buf+3,seclen); data/dvbtune-0.5.ds/dvbtune.c:823:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd_pmt,buf,3)==3) { data/dvbtune-0.5.ds/dvbtune.c:825:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd_pmt,buf+3,seclen); data/dvbtune-0.5.ds/dvbtune.c:909:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd_pat,buf,3)==3) { data/dvbtune-0.5.ds/dvbtune.c:911:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd_pat,buf+3,seclen); data/dvbtune-0.5.ds/dvbtune.c:978:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd_sdt,buf,3)==3) { data/dvbtune-0.5.ds/dvbtune.c:980:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd_sdt,buf+3,seclen); data/dvbtune-0.5.ds/tune.c:182:4: [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(15 * 1000); data/dvbtune-0.5.ds/tune.c:184:4: [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(cmd->wait * 1000); data/dvbtune-0.5.ds/tune.c:185:4: [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(15 * 1000); data/dvbtune-0.5.ds/tune.c:187:4: [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(15 * 1000); data/dvbtune-0.5.ds/tune.c:590:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(100000); data/dvbtune-0.5.ds/xml2vdr.c:177:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(attrs[i+1])>0) { data/dvbtune-0.5.ds/xml2vdr.c:188:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(attrs[i+1])>0) { ANALYSIS SUMMARY: Hits = 79 Lines analyzed = 2624 in approximately 0.56 seconds (4670 lines/second) Physical Source Lines of Code (SLOC) = 2114 Hits@level = [0] 233 [1] 15 [2] 62 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 312 [1+] 79 [2+] 64 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 147.588 [1+] 37.3699 [2+] 30.2744 [3+] 0.946074 [4+] 0.946074 [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.