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/haskell-bindings-dsl-1.0.25/bindings.dsl.h
Examining data/haskell-bindings-dsl-1.0.25/bindings.cmacros.h

FINAL RESULTS:

data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:21:34:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define hsc_strict_import(dummy) printf( \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:36:6:  [4] (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).
     strcpy(buffer_w,name); \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:46:6:  [4] (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).
     strcpy(buffer_g,field); \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:55:6:  [4] (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).
     strcpy(buffer_t,name); \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:81:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    ? printf("%" PRIuMAX,(uintmax_t)(name)) \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:82:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    : printf("%" PRIdMAX,(intmax_t)(name)) \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:84:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define bc_wordptr(name) printf("%" PRIuPTR,(uintptr_t)(name)) \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:189:11:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
     else printf("%s%" PRIuMAX,sign?"Int":"Word",(uintmax_t)(8*size)); \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:253:6:  [4] (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).
     strcpy(bc_fielddata.fname[index],# name); \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:254:6:  [4] (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).
     strcpy(bc_fielddata.ftype[index],type); \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:35:6:  [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 *p, *q, buffer_w[strlen(name)+1]; \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:45:6:  [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 *p, buffer_g[strlen(field)+1]; \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:54:6:  [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 buffer_t[strlen(name)+1]; \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:227: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 fname[500][1000], ftype[500][1000];
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:35:28:  [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).
     char *p, *q, buffer_w[strlen(name)+1]; \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:45:24:  [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).
     char *p, buffer_g[strlen(field)+1]; \
data/haskell-bindings-dsl-1.0.25/bindings.dsl.h:54:20:  [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).
     char buffer_t[strlen(name)+1]; \

ANALYSIS SUMMARY:

Hits = 17
Lines analyzed = 696 in approximately 0.07 seconds (9285 lines/second)
Physical Source Lines of Code (SLOC) = 576
Hits@level = [0] 155 [1]   3 [2]   4 [3]   0 [4]  10 [5]   0
Hits@level+ = [0+] 172 [1+]  17 [2+]  14 [3+]  10 [4+]  10 [5+]   0
Hits/KSLOC@level+ = [0+] 298.611 [1+] 29.5139 [2+] 24.3056 [3+] 17.3611 [4+] 17.3611 [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.