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/cthreadpool-0.0+git20170424/thpool.c
Examining data/cthreadpool-0.0+git20170424/thpool.h
Examining data/cthreadpool-0.0+git20170424/tests/src/nonzero_heap_stack.c
Examining data/cthreadpool-0.0+git20170424/tests/src/wait.c
Examining data/cthreadpool-0.0+git20170424/tests/src/pause_resume.c
Examining data/cthreadpool-0.0+git20170424/tests/src/conc_increment.c
Examining data/cthreadpool-0.0+git20170424/tests/src/api.c
Examining data/cthreadpool-0.0+git20170424/tests/src/no_work.c
Examining data/cthreadpool-0.0+git20170424/tests/ext_bugs/memleak.c
Examining data/cthreadpool-0.0+git20170424/example.c

FINAL RESULTS:

data/cthreadpool-0.0+git20170424/thpool.c:32:18:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err(str) fprintf(stderr, str)
data/cthreadpool-0.0+git20170424/tests/src/nonzero_heap_stack.c:17: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[40096];
data/cthreadpool-0.0+git20170424/thpool.c:320: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 thread_name[128] = {0};
data/cthreadpool-0.0+git20170424/thpool.c:321:2:  [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(thread_name, "thread-pool-%d", thread_p->id);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 1089 in approximately 0.05 seconds (21013 lines/second)
Physical Source Lines of Code (SLOC) = 566
Hits@level = [0]   7 [1]   0 [2]   3 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  11 [1+]   4 [2+]   4 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 19.4346 [1+] 7.06714 [2+] 7.06714 [3+] 1.76678 [4+] 1.76678 [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.