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/liblrdf-0.6.1/examples/add_test.c
Examining data/liblrdf-0.6.1/examples/dumpstatements.c
Examining data/liblrdf-0.6.1/examples/export_test.c
Examining data/liblrdf-0.6.1/examples/instances_test.c
Examining data/liblrdf-0.6.1/examples/multi_test.c
Examining data/liblrdf-0.6.1/examples/remove_test.c
Examining data/liblrdf-0.6.1/examples/scale_test.c
Examining data/liblrdf-0.6.1/examples/setting_test.c
Examining data/liblrdf-0.6.1/examples/showdefaults.c
Examining data/liblrdf-0.6.1/examples/showtaxonomy.c
Examining data/liblrdf-0.6.1/examples/subclass_test.c
Examining data/liblrdf-0.6.1/lrdf.h
Examining data/liblrdf-0.6.1/lrdf_types.h
Examining data/liblrdf-0.6.1/src/ladspa.h
Examining data/liblrdf-0.6.1/src/lrdf.c
Examining data/liblrdf-0.6.1/src/lrdf_multi.c
Examining data/liblrdf-0.6.1/src/md5.c
Examining data/liblrdf-0.6.1/src/md5.h

FINAL RESULTS:

data/liblrdf-0.6.1/examples/showtaxonomy.c:53:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(newbase, "%s/%s", base, label);
data/liblrdf-0.6.1/src/lrdf.c:771:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(port_uri, 127, LADSPA_BASE "%ld.%ld", id, port);
data/liblrdf-0.6.1/src/lrdf.c:830:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(dc_uri, 128, DC_BASE "%s", element);
data/liblrdf-0.6.1/examples/showdefaults.c:30:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	uid = atoi(argv[1]);
data/liblrdf-0.6.1/src/lrdf.c:258:5:  [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 tmps[128], tmpp[128], tmpo[128];
data/liblrdf-0.6.1/src/lrdf.c:383:17:  [2] (misc) fopen:
  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).
    if (!(out = fopen(outfile, "w"))) {
data/liblrdf-0.6.1/src/lrdf.c:637:5:  [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 plugin_uri[64];
data/liblrdf-0.6.1/src/lrdf.c:666:5:  [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 plugin_uri[64];
data/liblrdf-0.6.1/src/lrdf.c:736:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    list[pvcount].pid = atoi(pos + 1);
data/liblrdf-0.6.1/src/lrdf.c:761:5:  [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 port_uri[128];
data/liblrdf-0.6.1/src/lrdf.c:828:5:  [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 dc_uri[128];
data/liblrdf-0.6.1/src/lrdf.c:1084:9:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atol(pos + 1);
data/liblrdf-0.6.1/src/lrdf.c:1293:5:  [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 plugin_uri[64];
data/liblrdf-0.6.1/src/lrdf.c:1310: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 value_uri[64];
data/liblrdf-0.6.1/src/lrdf.c:1311: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 port_uri[64];
data/liblrdf-0.6.1/src/lrdf.c:1312: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 value_lit[64];
data/liblrdf-0.6.1/src/md5.c:227:4:  [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(&ctx->buffer[used], data, size);
data/liblrdf-0.6.1/src/md5.c:231:3:  [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(&ctx->buffer[used], data, available);
data/liblrdf-0.6.1/src/md5.c:242: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(ctx->buffer, data, size);
data/liblrdf-0.6.1/src/md5.h:42: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 buffer[64];
data/liblrdf-0.6.1/examples/showtaxonomy.c:52: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).
			newbase = malloc(strlen(base) + strlen(label) + 2);
data/liblrdf-0.6.1/examples/showtaxonomy.c:52:36:  [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).
			newbase = malloc(strlen(base) + strlen(label) + 2);
data/liblrdf-0.6.1/src/lrdf.c:66: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).
    MD5_Update(&ctx, str, strlen(str));

ANALYSIS SUMMARY:

Hits = 23
Lines analyzed = 3254 in approximately 0.12 seconds (27509 lines/second)
Physical Source Lines of Code (SLOC) = 2001
Hits@level = [0]  80 [1]   3 [2]  17 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+] 103 [1+]  23 [2+]  20 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 51.4743 [1+] 11.4943 [2+] 9.995 [3+] 1.49925 [4+] 1.49925 [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.