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/iddawc-0.9.6/examples/facebook_example.c
Examining data/iddawc-0.9.6/examples/github_example.c
Examining data/iddawc-0.9.6/examples/gitlab_example.c
Examining data/iddawc-0.9.6/examples/glewlwyd_oidc_id_token_code.c
Examining data/iddawc-0.9.6/examples/google_example.c
Examining data/iddawc-0.9.6/examples/microsoft_example.c
Examining data/iddawc-0.9.6/include/iddawc.h
Examining data/iddawc-0.9.6/src/iddawc.c
Examining data/iddawc-0.9.6/test/core.c
Examining data/iddawc-0.9.6/test/flow.c
Examining data/iddawc-0.9.6/test/id_token.c
Examining data/iddawc-0.9.6/test/implicit.c
Examining data/iddawc-0.9.6/test/introspection.c
Examining data/iddawc-0.9.6/test/load_config.c
Examining data/iddawc-0.9.6/test/load_userinfo.c
Examining data/iddawc-0.9.6/test/registration.c
Examining data/iddawc-0.9.6/test/revocation.c
Examining data/iddawc-0.9.6/test/token.c

FINAL RESULTS:

data/iddawc-0.9.6/examples/facebook_example.c:35: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 redirect_to[4097] = {0};
data/iddawc-0.9.6/examples/github_example.c:36: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 redirect_to[4097] = {0};
data/iddawc-0.9.6/examples/gitlab_example.c:36: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 redirect_to[4097] = {0};
data/iddawc-0.9.6/examples/glewlwyd_oidc_id_token_code.c:35: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 redirect_to[4097] = {0}, * id_token_payload;
data/iddawc-0.9.6/examples/google_example.c:34: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 redirect_to[4097] = {0};
data/iddawc-0.9.6/examples/microsoft_example.c:36: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 redirect_to[4097] = {0};
data/iddawc-0.9.6/src/iddawc.c:44: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.
  unsigned char x[1];
data/iddawc-0.9.6/src/iddawc.c:74:10:  [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 result[32] = {0};
data/iddawc-0.9.6/src/iddawc.c:1014:11:  [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 value[i_value+1];
data/iddawc-0.9.6/src/iddawc.c:1026:11:  [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 value[i_value+1];
data/iddawc-0.9.6/src/iddawc.c:1038:11:  [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 value[i_value+1];
data/iddawc-0.9.6/src/iddawc.c:2318: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.
  unsigned char hash[128], hash_encoded[128] = {0};
data/iddawc-0.9.6/examples/facebook_example.c:60: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).
  redirect_to[strlen(redirect_to)-1] = '\0';
data/iddawc-0.9.6/examples/github_example.c:62: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).
  redirect_to[strlen(redirect_to)-1] = '\0';
data/iddawc-0.9.6/examples/gitlab_example.c:62: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).
  redirect_to[strlen(redirect_to)-1] = '\0';
data/iddawc-0.9.6/examples/glewlwyd_oidc_id_token_code.c:66: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).
  redirect_to[strlen(redirect_to)-1] = '\0';
data/iddawc-0.9.6/examples/google_example.c:65: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).
  redirect_to[strlen(redirect_to)-1] = '\0';
data/iddawc-0.9.6/examples/microsoft_example.c:67: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).
  redirect_to[strlen(redirect_to)-1] = '\0';

ANALYSIS SUMMARY:

Hits = 18
Lines analyzed = 10060 in approximately 0.38 seconds (26658 lines/second)
Physical Source Lines of Code (SLOC) = 8629
Hits@level = [0]   6 [1]   6 [2]  12 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  24 [1+]  18 [2+]  12 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.78132 [1+] 2.08599 [2+] 1.39066 [3+]   0 [4+]   0 [5+]   0
Dot directories skipped = 2 (--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.