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/dejagnu-1.6.2/stub-loader.c Examining data/dejagnu-1.6.2/testsuite/libdejagnu/unit.cc Examining data/dejagnu-1.6.2/dejagnu.h Examining data/dejagnu-1.6.2/testglue.c FINAL RESULTS: data/dejagnu-1.6.2/dejagnu.h:69:3: [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 (buffer, sizeof (buffer), fmt, ap); data/dejagnu-1.6.2/dejagnu.h:82:3: [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 (buffer, sizeof (buffer), fmt, ap); data/dejagnu-1.6.2/dejagnu.h:95:3: [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 (buffer, sizeof (buffer), fmt, ap); data/dejagnu-1.6.2/dejagnu.h:108:3: [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 (buffer, sizeof (buffer), fmt, ap); data/dejagnu-1.6.2/dejagnu.h:121:3: [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 (buffer, sizeof (buffer), fmt, ap); data/dejagnu-1.6.2/dejagnu.h:134:3: [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 (buffer, sizeof (buffer), fmt, ap); data/dejagnu-1.6.2/dejagnu.h:146:3: [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 (buffer, sizeof (buffer), fmt, ap); data/dejagnu-1.6.2/dejagnu.h:45: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 buffer[512]; data/dejagnu-1.6.2/testglue.c:88: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[30]; data/dejagnu-1.6.2/testglue.c:94: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 (buf, "\n*** EXIT code "); data/dejagnu-1.6.2/testglue.c:108: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[30]; data/dejagnu-1.6.2/testglue.c:114:7: [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 (buf, "\n*** EXIT code "); data/dejagnu-1.6.2/testglue.c:95: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). ptr = write_int (code, buf + strlen(buf)); data/dejagnu-1.6.2/testglue.c:115: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). ptr = write_int (code, buf + strlen(buf)); ANALYSIS SUMMARY: Hits = 14 Lines analyzed = 645 in approximately 0.09 seconds (7487 lines/second) Physical Source Lines of Code (SLOC) = 491 Hits@level = [0] 13 [1] 2 [2] 5 [3] 0 [4] 7 [5] 0 Hits@level+ = [0+] 27 [1+] 14 [2+] 12 [3+] 7 [4+] 7 [5+] 0 Hits/KSLOC@level+ = [0+] 54.9898 [1+] 28.5132 [2+] 24.4399 [3+] 14.2566 [4+] 14.2566 [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.