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/obitools-1.2.13+dfsg/distutils.ext/src/littlebigman.c Examining data/obitools-1.2.13+dfsg/distutils.ext/src/pidname.c Examining data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.ext.4.c Examining data/obitools-1.2.13+dfsg/src/obitools/align/_upperbond.ext.1.c Examining data/obitools-1.2.13+dfsg/src/obitools/align/_lcs_fast.h Examining data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.ext.3.c Examining data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.ext.2.c Examining data/obitools-1.2.13+dfsg/src/obitools/align/_sse.h Examining data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.ext.1.c Examining data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.h Examining data/obitools-1.2.13+dfsg/src/obitools/align/_upperbond.h Examining data/obitools-1.2.13+dfsg/src/obitools/word/_readindex.h Examining data/obitools-1.2.13+dfsg/src/obitools/_obitools.h FINAL RESULTS: data/obitools-1.2.13+dfsg/distutils.ext/src/littlebigman.c:13:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char caractere[4] ; data/obitools-1.2.13+dfsg/distutils.ext/src/pidname.c:10: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 pathbuf[PROC_PIDPATHINFO_MAXSIZE]; data/obitools-1.2.13+dfsg/distutils.ext/src/pidname.c:13: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). pid = (pid_t) atoi(argv[1]); data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.ext.4.c:45: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(table,&data,16); data/obitools-1.2.13+dfsg/src/obitools/align/_sse.h:882: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(&tmp,(const char *)P,16); data/obitools-1.2.13+dfsg/src/obitools/align/_upperbond.ext.1.c:45: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(table,&data,16); data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.ext.1.c:106:8: [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). lseq1=strlen(seq1); data/obitools-1.2.13+dfsg/src/obitools/align/_lcs.ext.1.c:107:8: [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). lseq2=strlen(seq2); data/obitools-1.2.13+dfsg/src/obitools/align/_lcs_fast.h:161:8: [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). lseq1=strlen(seq1); data/obitools-1.2.13+dfsg/src/obitools/align/_lcs_fast.h:162:8: [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). lseq2=strlen(seq2); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 2415 in approximately 0.10 seconds (24636 lines/second) Physical Source Lines of Code (SLOC) = 1710 Hits@level = [0] 7 [1] 4 [2] 6 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 17 [1+] 10 [2+] 6 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 9.94152 [1+] 5.84795 [2+] 3.50877 [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.