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/libhomfly-1.02r6/lib/bound.c
Examining data/libhomfly-1.02r6/lib/bound.h
Examining data/libhomfly-1.02r6/lib/control.c
Examining data/libhomfly-1.02r6/lib/control.h
Examining data/libhomfly-1.02r6/lib/dllink.c
Examining data/libhomfly-1.02r6/lib/dllink.h
Examining data/libhomfly-1.02r6/lib/homfly.c
Examining data/libhomfly-1.02r6/lib/homfly.h
Examining data/libhomfly-1.02r6/lib/knot.c
Examining data/libhomfly-1.02r6/lib/knot.h
Examining data/libhomfly-1.02r6/lib/model.c
Examining data/libhomfly-1.02r6/lib/model.h
Examining data/libhomfly-1.02r6/lib/order.c
Examining data/libhomfly-1.02r6/lib/order.h
Examining data/libhomfly-1.02r6/lib/poly.c
Examining data/libhomfly-1.02r6/lib/poly.h
Examining data/libhomfly-1.02r6/lib/standard.h
Examining data/libhomfly-1.02r6/test/homfly.h
Examining data/libhomfly-1.02r6/test/test_example.c

FINAL RESULTS:

data/libhomfly-1.02r6/lib/poly.c:75:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(bp+offs, __VA_ARGS__, &pos);\
data/libhomfly-1.02r6/lib/knot.c:75: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       name[20];
data/libhomfly-1.02r6/lib/model.c:249: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    mem2[BIGMODEL];
data/libhomfly-1.02r6/lib/model.c:561: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   mem[BIGMODEL];
data/libhomfly-1.02r6/lib/model.c:562: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   extra[2*sizeof(node)];
data/libhomfly-1.02r6/test/test_example.c:27: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 name[BUFFER_SIZE];
data/libhomfly-1.02r6/test/test_example.c:28: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 input[BUFFER_SIZE];
data/libhomfly-1.02r6/test/test_example.c:29: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 test[BUFFER_SIZE];
data/libhomfly-1.02r6/test/test_example.c:40:9:  [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(argv[1], "r");
data/libhomfly-1.02r6/test/test_example.c:62:14:  [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).
        name[strlen(name)-1] = '\0';
data/libhomfly-1.02r6/test/test_example.c:63:15:  [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).
        input[strlen(input)-1] = '\0';
data/libhomfly-1.02r6/test/test_example.c:64:14:  [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).
        test[strlen(test)-1] = '\0';

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 2604 in approximately 0.21 seconds (12314 lines/second)
Physical Source Lines of Code (SLOC) = 1740
Hits@level = [0]  14 [1]   3 [2]   8 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  26 [1+]  12 [2+]   9 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 14.9425 [1+] 6.89655 [2+] 5.17241 [3+] 0.574713 [4+] 0.574713 [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.