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/golang-openldap-0.2/_docs/include/lber.h
Examining data/golang-openldap-0.2/_docs/include/lber_types.h
Examining data/golang-openldap-0.2/_docs/include/ldap-search.c
Examining data/golang-openldap-0.2/_docs/include/ldap.h
Examining data/golang-openldap-0.2/_docs/include/ldap_cdefs.h
Examining data/golang-openldap-0.2/_docs/include/ldap_features.h
Examining data/golang-openldap-0.2/_docs/include/ldap_schema.h
Examining data/golang-openldap-0.2/_docs/include/ldap_utf8.h
Examining data/golang-openldap-0.2/_docs/include/ldif.h
Examining data/golang-openldap-0.2/_docs/include/slapi-plugin.h
Examining data/golang-openldap-0.2/_docs/ldap-sample.c

FINAL RESULTS:

data/golang-openldap-0.2/_docs/include/slapi-plugin.h:90:97:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int slapi_access_allowed( Slapi_PBlock *pb, Slapi_Entry *e, char *attr, struct berval *val, int access );
data/golang-openldap-0.2/_docs/include/slapi-plugin.h:425:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int access,
data/golang-openldap-0.2/_docs/include/ldap-search.c:10: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    *attrs[ 2 ];
data/golang-openldap-0.2/_docs/include/ldap-search.c:96:25:  [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[ BUFSIZ ];

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 5389 in approximately 0.19 seconds (27911 lines/second)
Physical Source Lines of Code (SLOC) = 3635
Hits@level = [0]  13 [1]   0 [2]   2 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  17 [1+]   4 [2+]   4 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 4.67675 [1+] 1.10041 [2+] 1.10041 [3+] 0.550206 [4+] 0.550206 [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.