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/sratom-0.6.6/sratom/sratom.h
Examining data/sratom-0.6.6/src/sratom.c
Examining data/sratom-0.6.6/tests/sratom_test.c

FINAL RESULTS:

data/sratom-0.6.6/tests/sratom_test.c:37:62:  [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 SRATOM_LOG_FUNC(fmt, arg1) __attribute__((format(printf, fmt, arg1)))
data/sratom-0.6.6/tests/sratom_test.c:92:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, args);
data/sratom-0.6.6/tests/sratom_test.c:53: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(dup, str, len + 1);
data/sratom-0.6.6/src/sratom.c:278:30:  [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).
			const size_t prefix_len = strlen(prefix);
data/sratom-0.6.6/src/sratom.c:621:27:  [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).
		const size_t lang_len = strlen(prefix) + strlen(language);
data/sratom-0.6.6/src/sratom.c:621:44:  [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).
		const size_t lang_len = strlen(prefix) + strlen(language);
data/sratom-0.6.6/src/sratom.c:751:50:  [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).
			lv2_atom_forge_path(forge, (const char*)path, strlen((const char*)path));
data/sratom-0.6.6/tests/sratom_test.c:51:21:  [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).
	const size_t len = strlen(str);
data/sratom-0.6.6/tests/sratom_test.c:180:26:  [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).
	const size_t pstr_len = strlen(pstr);
data/sratom-0.6.6/tests/sratom_test.c:186:27:  [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).
	const size_t wpstr_len = strlen(wpstr);
data/sratom-0.6.6/tests/sratom_test.c:192:27:  [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).
	const size_t rpstr_len = strlen(rpstr);
data/sratom-0.6.6/tests/sratom_test.c:203:41:  [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).
	lv2_atom_forge_string(&forge, "hello", strlen("hello"));
data/sratom-0.6.6/tests/sratom_test.c:215: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).
		&forge, "value", strlen("value"),
data/sratom-0.6.6/tests/sratom_test.c:249:39:  [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).
	lv2_atom_forge_string(&forge, "foo", strlen("foo"));
data/sratom-0.6.6/tests/sratom_test.c:257:39:  [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).
	lv2_atom_forge_string(&forge, "foo", strlen("foo"));
data/sratom-0.6.6/tests/sratom_test.c:261:39:  [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).
	lv2_atom_forge_string(&forge, "bar", strlen("bar"));

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 1499 in approximately 0.05 seconds (28223 lines/second)
Physical Source Lines of Code (SLOC) = 1183
Hits@level = [0]  13 [1]  13 [2]   1 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  29 [1+]  16 [2+]   3 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 24.5139 [1+] 13.5249 [2+] 2.53593 [3+] 1.69062 [4+] 1.69062 [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.