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/cysignals-1.10.2+ds/src/setjmp_bench.c Examining data/cysignals-1.10.2+ds/src/cysignals/macros.h Examining data/cysignals-1.10.2+ds/src/cysignals/implementation.c Examining data/cysignals-1.10.2+ds/src/cysignals/tests_helper.c Examining data/cysignals-1.10.2+ds/src/cysignals/implementation_cygwin.c Examining data/cysignals-1.10.2+ds/src/cysignals/pxi_warning.h Examining data/cysignals-1.10.2+ds/src/cysignals/struct_signals.h FINAL RESULTS: data/cysignals-1.10.2+ds/src/cysignals/implementation.c:558:9: [4] (shell) execvp: 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. execvp(path, argv); data/cysignals-1.10.2+ds/src/cysignals/implementation.c:573:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("CYSIGNALS_CRASH_QUIET")) goto dienow; data/cysignals-1.10.2+ds/src/cysignals/implementation.c:588:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("CYSIGNALS_CRASH_NDEBUG") == NULL) data/cysignals-1.10.2+ds/src/cysignals/implementation.c:300: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 stack_guard[2048]; data/cysignals-1.10.2+ds/src/cysignals/implementation.c:414: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 buf[320]; data/cysignals-1.10.2+ds/src/cysignals/implementation.c:432: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. static char alt_stack[MINSIGSTKSZ + 5120 + BACKTRACELEN * sizeof(void*)]; data/cysignals-1.10.2+ds/src/cysignals/implementation.c:546: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 path[1024]; data/cysignals-1.10.2+ds/src/cysignals/implementation.c:547: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 pid_str[32]; data/cysignals-1.10.2+ds/src/setjmp_bench.c:23:24: [2] (integer) atol: 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 (argc >= 2) N = atol(argv[1]); data/cysignals-1.10.2+ds/src/cysignals/tests_helper.c:64:5: [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 * ms); ANALYSIS SUMMARY: Hits = 10 Lines analyzed = 1326 in approximately 0.21 seconds (6208 lines/second) Physical Source Lines of Code (SLOC) = 718 Hits@level = [0] 16 [1] 1 [2] 6 [3] 2 [4] 1 [5] 0 Hits@level+ = [0+] 26 [1+] 10 [2+] 9 [3+] 3 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 36.2117 [1+] 13.9276 [2+] 12.5348 [3+] 4.17827 [4+] 1.39276 [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.