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/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/_ra_iter_log.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/client.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/editor.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/editor.h
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/ra.h
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/repos.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/stdbool.h
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/subr.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/util.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/util.h
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/wc.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/wc.h
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/wc_adm.c
Examining data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/_ra.c

FINAL RESULTS:

data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/repos.c:825: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.
	unsigned char checksum[APR_MD5_DIGESTSIZE];
data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/util.c:39: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 errmsg[1024];
data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/util.c:303: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 buf[1024];
data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/util.c:864:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buffer, PyBytes_AsString(ret), *length);
data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/wc.c:661:7:  [2] (misc) open:
  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).
	fd = open(pristine_path, O_RDONLY);
data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/wc_adm.c:1372:14:  [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 digest[APR_MD5_DIGESTSIZE];
data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/_ra.c:1370:40:  [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).
			apr_hash_set(hash_lock_tokens, key, strlen(key), val);
data/subvertpy-0.11.0~git20191228+2423bf1/subvertpy/util.c:582:33:  [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).
		apr_hash_set(hash_props, key, strlen(key), val_string);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 15018 in approximately 0.36 seconds (41608 lines/second)
Physical Source Lines of Code (SLOC) = 12040
Hits@level = [0]   0 [1]   2 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   8 [1+]   8 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.664452 [1+] 0.664452 [2+] 0.498339 [3+]   0 [4+]   0 [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.