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/raptor2-2.0.14/tests/empty.c
Examining data/raptor2-2.0.14/docs/rdfserialize.c
Examining data/raptor2-2.0.14/docs/rdfcat.c
Examining data/raptor2-2.0.14/docs/rdfprint.c
Examining data/raptor2-2.0.14/scripts/build-formats.c
Examining data/raptor2-2.0.14/librdfa/strtok_r.h
Examining data/raptor2-2.0.14/librdfa/rdfa.c
Examining data/raptor2-2.0.14/librdfa/rdfa_utils.c
Examining data/raptor2-2.0.14/librdfa/lists.c
Examining data/raptor2-2.0.14/librdfa/strtok_r.c
Examining data/raptor2-2.0.14/librdfa/config.h
Examining data/raptor2-2.0.14/librdfa/namespace.c
Examining data/raptor2-2.0.14/librdfa/rdfa_utils.h
Examining data/raptor2-2.0.14/librdfa/curie.c
Examining data/raptor2-2.0.14/librdfa/triple.c
Examining data/raptor2-2.0.14/librdfa/rdfa.h
Examining data/raptor2-2.0.14/librdfa/subject.c
Examining data/raptor2-2.0.14/librdfa/context.c
Examining data/raptor2-2.0.14/librdfa/language.c
Examining data/raptor2-2.0.14/librdfa/iri.c
Examining data/raptor2-2.0.14/src/raptor_www_libfetch.c
Examining data/raptor2-2.0.14/src/raptor_general.c
Examining data/raptor2-2.0.14/src/raptor_json_writer.c
Examining data/raptor2-2.0.14/src/raptor_option.c
Examining data/raptor2-2.0.14/src/raptor_serialize_rdfxml.c
Examining data/raptor2-2.0.14/src/raptor_turtle_writer.c
Examining data/raptor2-2.0.14/src/raptor_serialize_rdfxmla.c
Examining data/raptor2-2.0.14/src/raptor_namespace.c
Examining data/raptor2-2.0.14/src/raptor_log.c
Examining data/raptor2-2.0.14/src/raptor_permute_test.c
Examining data/raptor2-2.0.14/src/raptor_www_libxml.c
Examining data/raptor2-2.0.14/src/raptor_xml.c
Examining data/raptor2-2.0.14/src/raptor_win32.c
Examining data/raptor2-2.0.14/src/raptor.h
Examining data/raptor2-2.0.14/src/raptor_statement.c
Examining data/raptor2-2.0.14/src/raptor_www_test.c
Examining data/raptor2-2.0.14/src/raptor_rss.h
Examining data/raptor2-2.0.14/src/raptor_guess.c
Examining data/raptor2-2.0.14/src/turtle_parser.c
Examining data/raptor2-2.0.14/src/raptor_set.c
Examining data/raptor2-2.0.14/src/parsedate.c
Examining data/raptor2-2.0.14/src/turtle_parser.h
Examining data/raptor2-2.0.14/src/raptor_locator.c
Examining data/raptor2-2.0.14/src/raptor_grddl.c
Examining data/raptor2-2.0.14/src/ntriples_parse.c
Examining data/raptor2-2.0.14/src/raptor_www.c
Examining data/raptor2-2.0.14/src/raptor_syntax_description.c
Examining data/raptor2-2.0.14/src/raptor_rdfxml.c
Examining data/raptor2-2.0.14/src/raptor_iostream.c
Examining data/raptor2-2.0.14/src/raptor_concepts.c
Examining data/raptor2-2.0.14/src/raptor_serialize.c
Examining data/raptor2-2.0.14/src/raptor_librdfa.c
Examining data/raptor2-2.0.14/src/raptor_rss_common.c
Examining data/raptor2-2.0.14/src/raptor_internal.h
Examining data/raptor2-2.0.14/src/raptor_stringbuffer.c
Examining data/raptor2-2.0.14/src/raptor_parse.c
Examining data/raptor2-2.0.14/src/raptor_serialize_html.c
Examining data/raptor2-2.0.14/src/raptor_nfc_test.c
Examining data/raptor2-2.0.14/src/raptor_serialize_json.c
Examining data/raptor2-2.0.14/src/raptor_serialize_turtle.c
Examining data/raptor2-2.0.14/src/raptor_serialize_dot.c
Examining data/raptor2-2.0.14/src/raptor_serialize_rss.c
Examining data/raptor2-2.0.14/src/raptor_rfc2396.c
Examining data/raptor2-2.0.14/src/raptor_term.c
Examining data/raptor2-2.0.14/src/raptor_libxml.c
Examining data/raptor2-2.0.14/src/raptor_serialize_ntriples.c
Examining data/raptor2-2.0.14/src/raptor_uri.c
Examining data/raptor2-2.0.14/src/raptor_qname.c
Examining data/raptor2-2.0.14/src/raptor_www_curl.c
Examining data/raptor2-2.0.14/src/turtle_common.h
Examining data/raptor2-2.0.14/src/raptor_rss.c
Examining data/raptor2-2.0.14/src/raptor_sequence.c
Examining data/raptor2-2.0.14/src/strcasecmp.c
Examining data/raptor2-2.0.14/src/raptor_memstr.c
Examining data/raptor2-2.0.14/src/turtle_lexer.c
Examining data/raptor2-2.0.14/src/raptor_nfc_icu.c
Examining data/raptor2-2.0.14/src/raptor_escaped.c
Examining data/raptor2-2.0.14/src/turtle_common.c
Examining data/raptor2-2.0.14/src/raptor_abbrev.c
Examining data/raptor2-2.0.14/src/turtle_lexer.h
Examining data/raptor2-2.0.14/src/raptor_ntriples.c
Examining data/raptor2-2.0.14/src/raptor_json.c
Examining data/raptor2-2.0.14/src/raptor_sax2.c
Examining data/raptor2-2.0.14/src/snprintf.c
Examining data/raptor2-2.0.14/src/raptor_unicode.c
Examining data/raptor2-2.0.14/src/raptor_avltree.c
Examining data/raptor2-2.0.14/src/raptor_xml_writer.c
Examining data/raptor2-2.0.14/examples/raptor_abort.c
Examining data/raptor2-2.0.14/examples/rdfserialize.c
Examining data/raptor2-2.0.14/examples/rdfcat.c
Examining data/raptor2-2.0.14/examples/grapper.c
Examining data/raptor2-2.0.14/examples/rdfguess.c
Examining data/raptor2-2.0.14/examples/rdfcount.c
Examining data/raptor2-2.0.14/examples/rdfprint.c
Examining data/raptor2-2.0.14/utils/getopt.c
Examining data/raptor2-2.0.14/utils/rapper.c
Examining data/raptor2-2.0.14/utils/raptor_getopt.h
Examining data/raptor2-2.0.14/utils/rdfdiff.c

FINAL RESULTS:

data/raptor2-2.0.14/examples/grapper.c:301:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy((char*)state->url, (const char*)url);
data/raptor2-2.0.14/examples/grapper.c:1303:9:  [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.
    if(!access(argv[1], R_OK)) {
data/raptor2-2.0.14/examples/rdfguess.c:29:8:  [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.
    if(access(filename, R_OK)) {
data/raptor2-2.0.14/librdfa/curie.c:225:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(src, rval);
data/raptor2-2.0.14/librdfa/curie.c:332:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(dptr, sptr);
data/raptor2-2.0.14/librdfa/curie.c:392:10:  [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(msg, 1024, FORMAT_1, uri);
data/raptor2-2.0.14/librdfa/curie.c:418:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(working_copy, uri);/*rdfa_replace_string(working_copy, uri);*/
data/raptor2-2.0.14/librdfa/curie.c:498:15:  [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(msg, 1024, FORMAT_2, prefix);
data/raptor2-2.0.14/librdfa/namespace.c:125:7:  [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(msg, 1024, FORMAT_1);
data/raptor2-2.0.14/librdfa/rdfa.c:620:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
         sprintf(literal_text, " %s=\"%s\"", attr, value);
data/raptor2-2.0.14/librdfa/rdfa.c:1034:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(buffer, "</%s>", name);
data/raptor2-2.0.14/librdfa/rdfa.c:1233:4:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
   vsprintf(error, msg, args);
data/raptor2-2.0.14/src/parsedate.c:813:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/raptor2-2.0.14/src/raptor_internal.h:86:32:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_DEBUG1(msg) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__); } while(0)
data/raptor2-2.0.14/src/raptor_internal.h:87:38:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_DEBUG2(msg, arg1) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1);} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:88:44:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_DEBUG3(msg, arg1, arg2) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1, arg2);} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:89:50:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_DEBUG4(msg, arg1, arg2, arg3) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1, arg2, arg3);} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:90:56:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_DEBUG5(msg, arg1, arg2, arg3, arg4) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1, arg2, arg3, arg4);} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:91:62:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_DEBUG6(msg, arg1, arg2, arg3, arg4, arg5) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1, arg2, arg3, arg4, arg5);} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:172:32:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_FATAL1(msg) do {fprintf(stderr, "%s:%d:%s: fatal error: " msg, __FILE__, __LINE__ , __func__); abort();} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:173:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_FATAL2(msg,arg) do {fprintf(stderr, "%s:%d:%s: fatal error: " msg, __FILE__, __LINE__ , __func__, arg); abort();} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:174:42:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_FATAL3(msg,arg1,arg2) do {fprintf(stderr, "%s:%d:%s: fatal error: " msg, __FILE__, __LINE__ , __func__, arg1, arg2); abort();} while(0)
data/raptor2-2.0.14/src/raptor_internal.h:175:47:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define RAPTOR_FATAL4(msg,arg1,arg2,arg3) do {fprintf(stderr, "%s:%d:%s: fatal error: " msg, __FILE__, __LINE__ , __func__, arg1, arg2, arg3); abort();} while(0)
data/raptor2-2.0.14/src/raptor_log.c:95:5:  [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, message, arguments);
data/raptor2-2.0.14/src/raptor_ntriples.c:294:15:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
          n = sscanf((const char*)p, ((ulen == 4) ? "%04lx" : "%08lx"), &unichar);
data/raptor2-2.0.14/src/raptor_uri.c:1681:13:  [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.
  exists = (access(path, R_OK) < 0) ? -1 : 1;
data/raptor2-2.0.14/src/raptor_uri.c:1994:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf((char*)uri_buffer, "file://%s/foo", dir);
data/raptor2-2.0.14/src/snprintf.c:61:7:  [4] (format) vsnprintf:
  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.
  r = vsnprintf(buf, buf ? 5 : 0, s, args);
data/raptor2-2.0.14/src/snprintf.c:84:11:  [4] (format) vsnprintf:
  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.
    len = vsnprintf(buffer, size, format, arguments);                  \
data/raptor2-2.0.14/src/snprintf.c:101:15:  [4] (format) vsnprintf:
  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.
        len = vsnprintf(tmp_buffer, size, format, args_copy);           \
data/raptor2-2.0.14/src/snprintf.c:127:13:  [4] (format) vsnprintf:
  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.
      len = vsnprintf(buffer, size, format, arguments);                 \
data/raptor2-2.0.14/src/turtle_common.c:132:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        n = sscanf((const char*)s, ((ulen == 4) ? "%04lx" : "%08lx"), &unichar);
data/raptor2-2.0.14/src/turtle_common.c:262:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        n = sscanf((const char*)s, ((ulen == 4) ? "%04lx" : "%08lx"), &unichar);
data/raptor2-2.0.14/src/turtle_lexer.c:3109:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "STRING_LITERAL(%s)", lval->string);
data/raptor2-2.0.14/src/turtle_lexer.c:3113:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "URI_LITERAL(%s)", 
data/raptor2-2.0.14/src/turtle_lexer.c:3118:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "BLANK_LITERAL(%s)", lval->string);
data/raptor2-2.0.14/src/turtle_lexer.c:3122:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "QNAME_LITERAL(%s)", 
data/raptor2-2.0.14/src/turtle_lexer.c:3127:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "INTEGER_LITERAL(%s)", lval->string);
data/raptor2-2.0.14/src/turtle_lexer.c:3131:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "FLOATING_LITERAL(%s)", lval->string);
data/raptor2-2.0.14/src/turtle_lexer.c:3135:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "IDENTIFIER(%s)", 
data/raptor2-2.0.14/src/turtle_lexer.c:3140:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "LANGTAG(%s)", 
data/raptor2-2.0.14/src/turtle_lexer.c:3145:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer, "DECIMAL_LITERAL(%s)", lval->string);
data/raptor2-2.0.14/src/turtle_parser.c:762:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/raptor2-2.0.14/utils/rapper.c:638:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, title_format_string, raptor_version_string);
data/raptor2-2.0.14/utils/rapper.c:657:5:  [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.
    printf(title_format_string, raptor_version_string);
data/raptor2-2.0.14/utils/rapper.c:744:14:  [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.
  } else if(!access((const char*)uri_string, R_OK)) {
data/raptor2-2.0.14/utils/rdfdiff.c:184:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((char*)file->name, (const char*)name);
data/raptor2-2.0.14/utils/rdfdiff.c:241:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy((char*)blank->blank_id, (const char*)blank_id);
data/raptor2-2.0.14/utils/rdfdiff.c:792:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr, title_format_string, raptor_version_string);
data/raptor2-2.0.14/utils/rdfdiff.c:804:5:  [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.
    printf(title_format_string, raptor_version_string);
data/raptor2-2.0.14/utils/rdfdiff.c:820:7:  [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.
  if(!access((const char *)from_string, R_OK)) {
data/raptor2-2.0.14/utils/rdfdiff.c:831:7:  [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.
  if(!access((const char *)to_string, R_OK)) {
data/raptor2-2.0.14/utils/getopt.c:68:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (int argc, char * const argv[], const char *optstring)
data/raptor2-2.0.14/utils/rapper.c:359:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    c = getopt_long (argc, argv, GETOPT_STRING, long_options, &option_index);
data/raptor2-2.0.14/utils/rapper.c:361:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    c = getopt (argc, argv, GETOPT_STRING);
data/raptor2-2.0.14/utils/raptor_getopt.h:13:5:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt(int argc, char * const argv[], const char *optstring);
data/raptor2-2.0.14/utils/rdfdiff.c:747:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    c = getopt_long (argc, argv, GETOPT_STRING, long_options, &option_index);
data/raptor2-2.0.14/utils/rdfdiff.c:749:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    c = getopt (argc, argv, GETOPT_STRING);
data/raptor2-2.0.14/examples/grapper.c:196: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 buf[TC_BUF_LEN+1];
data/raptor2-2.0.14/examples/grapper.c:200:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf, "Triples");
data/raptor2-2.0.14/examples/grapper.c:238: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 buf[EC_BUF_LEN+1];
data/raptor2-2.0.14/examples/grapper.c:244:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf, "Errors");
data/raptor2-2.0.14/examples/grapper.c:271:57:  [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.
grapper_model_add_triple(grapper_state *state, unsigned char *nodes[3])  
data/raptor2-2.0.14/examples/rdfguess.c:16: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 *buffer[READ_BUFFER_SIZE];
data/raptor2-2.0.14/librdfa/curie.c:391: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.
         char msg[1024];
data/raptor2-2.0.14/librdfa/curie.c:497:15:  [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 msg[1024];
data/raptor2-2.0.14/librdfa/namespace.c:124:7:  [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 msg[1024];
data/raptor2-2.0.14/librdfa/rdfa.c:979: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(buffer, s, len);
data/raptor2-2.0.14/librdfa/rdfa.c:1226:4:  [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 error[1024];
data/raptor2-2.0.14/librdfa/rdfa_utils.c:43: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(rval, prefix, prefix_size);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:44: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(rval+prefix_size, suffix, suffix_size + 1);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:55: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(rval + *string_size, suffix, suffix_size + 1);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:91:7:  [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(offset, token, token_length);
data/raptor2-2.0.14/librdfa/subject.c:43:4:  [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 buffer[64];
data/raptor2-2.0.14/librdfa/subject.c:46:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
   sprintf(buffer, "_:bnode%i", (int)context->bnode_count++);
data/raptor2-2.0.14/librdfa/triple.c:225:7:  [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 buffer[32];
data/raptor2-2.0.14/src/ntriples_parse.c:396:7:  [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, ntriples_parser->line, ntriples_parser->line_length);
data/raptor2-2.0.14/src/ntriples_parse.c:409:5:  [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(ptr, s, len);
data/raptor2-2.0.14/src/ntriples_parse.c:532:5:  [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, 
data/raptor2-2.0.14/src/parsedate.c:161:65:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy)
data/raptor2-2.0.14/src/parsedate.c:162:10:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define bcopy(from, to, len) memcpy ((to), (from), (len))
data/raptor2-2.0.14/src/parsedate.c:162:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
# define bcopy(from, to, len) memcpy ((to), (from), (len))
data/raptor2-2.0.14/src/parsedate.c:1060: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/raptor2-2.0.14/src/parsedate.c:1253: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 yymsgbuf[128];
data/raptor2-2.0.14/src/parsedate.c:2718: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 buff[20];
data/raptor2-2.0.14/src/raptor_abbrev.c:597: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(ns_uri_string, (const char*)uri_string, ns_uri_string_len);
data/raptor2-2.0.14/src/raptor_abbrev.c:610: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 prefix[2 + MAX_ASCII_INT_SIZE + 1];
data/raptor2-2.0.14/src/raptor_avltree.c:1613: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.
  const char *items[ITEM_COUNT+1] = { "ron", "amy", "jen", "bij", "jib", "daj", "jim", "def", NULL };
data/raptor2-2.0.14/src/raptor_avltree.c:1615: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.
  const char *delete_items[DELETE_COUNT+1] = { "jen", "jim", NULL };
data/raptor2-2.0.14/src/raptor_avltree.c:1617: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.
  const char *results[RESULT_COUNT+1] = { "amy", "bij", "daj", "def", "jib", "ron", NULL};
data/raptor2-2.0.14/src/raptor_general.c:312: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(buffer, prefix, prefix_length);
data/raptor2-2.0.14/src/raptor_general.c:385:5:  [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(prefix_copy, prefix, length+1);
data/raptor2-2.0.14/src/raptor_grddl.c:201:5:  [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(nmsg, PREFIX, PREFIX_LENGTH);
data/raptor2-2.0.14/src/raptor_grddl.c:202:5:  [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(nmsg + PREFIX_LENGTH, msg, msg_len + 1);
data/raptor2-2.0.14/src/raptor_grddl.c:725: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(quoted_base_uri + 1, (const char*)base_uri_string, base_uri_len);
data/raptor2-2.0.14/src/raptor_grddl.c:750:5:  [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(sheet->method, "html", 5);
data/raptor2-2.0.14/src/raptor_grddl.c:770:7:  [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(sheet->mediaType, "text/plain",11);
data/raptor2-2.0.14/src/raptor_grddl.c:773:7:  [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(sheet->mediaType, "application/xml",16);
data/raptor2-2.0.14/src/raptor_grddl.c:776:7:  [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(sheet->mediaType, "text/html",10);
data/raptor2-2.0.14/src/raptor_grddl.c:789:5:  [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(sheet->mediaType, "application/rdf+xml",20);
data/raptor2-2.0.14/src/raptor_grddl.c:1156:7:  [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, uri_string, list_len + 1);
data/raptor2-2.0.14/src/raptor_grddl.c:1231: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(grddl_parser->content_type, content_type, len + 1);
data/raptor2-2.0.14/src/raptor_grddl.c:1951:5:  [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(grddl_parser->content_type, content_type, len + 1);
data/raptor2-2.0.14/src/raptor_guess.c:106:5:  [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(guess_parser->content_type, content_type, len);
data/raptor2-2.0.14/src/raptor_internal.h:535: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 buffer[RAPTOR_READ_BUFFER_SIZE + 1];
data/raptor2-2.0.14/src/raptor_internal.h:972: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 error_buffer[CURL_ERROR_SIZE];
data/raptor2-2.0.14/src/raptor_internal.h:983: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 buffer[RAPTOR_WWW_BUFFER_SIZE + 1];
data/raptor2-2.0.14/src/raptor_iostream.c:290:12:  [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).
  handle = fopen(filename, "wb");
data/raptor2-2.0.14/src/raptor_iostream.c:591:12:  [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).
  handle = fopen(filename, "rb");
data/raptor2-2.0.14/src/raptor_iostream.c:874: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 buf[20];
data/raptor2-2.0.14/src/raptor_iostream.c:1038: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(ptr, (char*)con->string + con->offset, blen);
data/raptor2-2.0.14/src/raptor_iostream.c:1357: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 buffer[READ_BUFFER_SIZE];
data/raptor2-2.0.14/src/raptor_iostream.c:1419: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 buffer[READ_BUFFER_SIZE];
data/raptor2-2.0.14/src/raptor_iostream.c:1478: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 buffer[READ_BUFFER_SIZE];
data/raptor2-2.0.14/src/raptor_iostream.c:1528: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 buffer[READ_BUFFER_SIZE];
data/raptor2-2.0.14/src/raptor_iostream.c:1590:12:  [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).
  handle = fopen((const char*)OUT_FILENAME, "wb");
data/raptor2-2.0.14/src/raptor_iostream.c:1614:12:  [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).
  handle = fopen((const char*)IN_FILENAME, "wb");
data/raptor2-2.0.14/src/raptor_iostream.c:1627:14:  [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).
    handle = fopen((const char*)IN_FILENAME, "rb");
data/raptor2-2.0.14/src/raptor_json.c:140: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(cstr, str, len);
data/raptor2-2.0.14/src/raptor_libxml.c:376:5:  [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(nmsg, xml_warning_prefix, prefix_length); /* Do not copy NUL */
data/raptor2-2.0.14/src/raptor_libxml.c:377:5:  [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(nmsg + prefix_length, msg, msg_len + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_libxml.c:428:5:  [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(nmsg, prefix, prefix_length); /* Do not copy NUL */
data/raptor2-2.0.14/src/raptor_libxml.c:429:5:  [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(nmsg + prefix_length, msg, msg_len + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_libxml.c:481:5:  [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(nmsg, prefix, prefix_length); /* Do not copy NUL */
data/raptor2-2.0.14/src/raptor_libxml.c:482:5:  [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(nmsg + prefix_length, msg, msg_len + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_libxml.c:540:5:  [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(nmsg, xml_validation_warning_prefix, prefix_length); /* Do not copy NUL */
data/raptor2-2.0.14/src/raptor_libxml.c:541:5:  [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(nmsg + prefix_length, msg, msg_len + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_locator.c:138: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(buffer, label_str, label_len);
data/raptor2-2.0.14/src/raptor_locator.c:140: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(buffer, value_str, value_len);
data/raptor2-2.0.14/src/raptor_locator.c:149:7:  [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, COLUMN_STR, COLUMN_STR_LEN);
data/raptor2-2.0.14/src/raptor_namespace.c:564:40:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    ns->prefix = (const unsigned char*)memcpy(p, prefix, prefix_length + 1);
data/raptor2-2.0.14/src/raptor_namespace.c:797: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(p, "xmlns", 5);
data/raptor2-2.0.14/src/raptor_namespace.c:802:5:  [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(p, ns->prefix, ns->prefix_length);
data/raptor2-2.0.14/src/raptor_namespace.c:924:5:  [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(*prefix, t, string - t);
data/raptor2-2.0.14/src/raptor_namespace.c:949:5:  [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(*uri_string, t, string - t);
data/raptor2-2.0.14/src/raptor_nfc_test.c:162:8:  [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).
  fh = fopen(filename, "r");
data/raptor2-2.0.14/src/raptor_nfc_test.c:175: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 buffer[LINE_BUFFER_SIZE];
data/raptor2-2.0.14/src/raptor_nfc_test.c:177: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 column2[UNISTR_SIZE];
data/raptor2-2.0.14/src/raptor_nfc_test.c:178: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 column4[UNISTR_SIZE];
data/raptor2-2.0.14/src/raptor_option.c:553:11:  [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(to->options[i].string, string, len + 1);
data/raptor2-2.0.14/src/raptor_option.c:695:17:  [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).
      integer = atoi((const char*)string);
data/raptor2-2.0.14/src/raptor_option.c:711:7:  [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(string_copy, string, len);
data/raptor2-2.0.14/src/raptor_parse.c:581:10:  [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).
    fh = fopen(filename, "r");
data/raptor2-2.0.14/src/raptor_parse.c:1480:5:  [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(p, type_q->mime_type, type_q->mime_type_len);
data/raptor2-2.0.14/src/raptor_parse.c:1495: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(p, "*/*;q=0.1", ACCEPT_HEADER_LEN + 1);
data/raptor2-2.0.14/src/raptor_parse.c:1542:7:  [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(p, type_q->mime_type, type_q->mime_type_len);
data/raptor2-2.0.14/src/raptor_parse.c:1559: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(p, "*/*;q=0.1", ACCEPT_HEADER_LEN + 1);
data/raptor2-2.0.14/src/raptor_qname.c:125:5:  [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(new_value, value, value_length + 1); /* copy NUL */
data/raptor2-2.0.14/src/raptor_qname.c:145:5:  [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(new_name, name, local_name_length); /* no NUL to copy */
data/raptor2-2.0.14/src/raptor_qname.c:179:5:  [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(new_name, p, local_name_length); /* No NUL to copy */
data/raptor2-2.0.14/src/raptor_qname.c:265:5:  [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(new_value, value, value_length + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_qname.c:276: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(new_name, local_name, local_name_length); /* No NUL to copy */
data/raptor2-2.0.14/src/raptor_qname.c:324:5:  [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(new_value, qname->value, value_length + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_qname.c:335: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(new_name, qname->local_name, qname->local_name_length + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_qname.c:560:5:  [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(p, qname->nspace->prefix, qname->nspace->prefix_length); /* Do not copy NUL */
data/raptor2-2.0.14/src/raptor_qname.c:565: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(p, qname->local_name, qname->local_name_length + 1); /* Copy final NUL */
data/raptor2-2.0.14/src/raptor_qname.c:675:5:  [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(p, qname->nspace->prefix, qname->nspace->prefix_length);
data/raptor2-2.0.14/src/raptor_qname.c:679: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(p, qname->local_name, qname->local_name_length);
data/raptor2-2.0.14/src/raptor_rdfxml.c:321:18:  [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.
  const unsigned char * rdf_attr[RDF_NS_LAST + 1];
data/raptor2-2.0.14/src/raptor_rfc2396.c:500:7:  [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(path_buffer, ref->path, ref->path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:546:7:  [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(path_buffer, ref->path, result.path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:582:5:  [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(path_buffer, base->path, result.path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:592:7:  [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(path_buffer, base->path, result.path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:596:5:  [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(path_buffer + result.path_len, ref->path, ref->path_len + 1);
data/raptor2-2.0.14/src/raptor_rfc2396.c:619:5:  [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(p, result.scheme, result.scheme_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:627:5:  [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(p, result.authority, result.authority_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:632:5:  [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(p, result.path, result.path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:638:5:  [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(p, result.query, result.query_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:644:5:  [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(p, result.fragment, result.fragment_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:685: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 buffer[1024];
data/raptor2-2.0.14/src/raptor_rss.c:94: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 nspaces_seen[RAPTOR_RSS_NAMESPACES_SIZE];
data/raptor2-2.0.14/src/raptor_rss.c:376:5:  [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(block->strings[offset], string, len+1);
data/raptor2-2.0.14/src/raptor_rss.c:640:15:  [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(field->value, attrValue, len + 1);
data/raptor2-2.0.14/src/raptor_rss.c:816:9:  [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(field->value, cdata, cdata_len);
data/raptor2-2.0.14/src/raptor_rss.c:970:5:  [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(field->value, value, len + 1);
data/raptor2-2.0.14/src/raptor_rss.c:1510:7:  [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(field->value, item->fields[from_field]->value, len + 1);
data/raptor2-2.0.14/src/raptor_rss.h:314: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 *strings[RSS_BLOCK_MAX_STRINGS];
data/raptor2-2.0.14/src/raptor_sax2.c:694:7:  [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(xml_atts_copy, atts, xml_atts_size);
data/raptor2-2.0.14/src/raptor_sax2.c:752:11:  [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(xml_language, atts[i+1], lang_len + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_sax2.c:830:5:  [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((void*)atts, xml_atts_copy, xml_atts_size);
data/raptor2-2.0.14/src/raptor_sequence.c:219:5:  [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(&new_sequence[offset], &seq->sequence[seq->start], 
data/raptor2-2.0.14/src/raptor_sequence.c:598: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(&dest->sequence[dest->start + dest->size], &src->sequence[src->start], 
data/raptor2-2.0.14/src/raptor_serialize_rss.c:1677:7:  [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(field->value, "untitled", 9);
data/raptor2-2.0.14/src/raptor_serialize_rss.c:1846:11:  [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(field->value, "unknown", 8);
data/raptor2-2.0.14/src/raptor_set.c:232: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(item, id, id_len + 1);
data/raptor2-2.0.14/src/raptor_set.c:259: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.
  const char *items[8] = { "ron", "amy", "jen", "bij", "jib", "daj", "jim", NULL };
data/raptor2-2.0.14/src/raptor_stringbuffer.c:172:5:  [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(node->string, string, length);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:269: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 buf[20];
data/raptor2-2.0.14/src/raptor_stringbuffer.c:380:5:  [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(node->string, string, length);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:496:5:  [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(p, node->string, node->length);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:537:5:  [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(p, node->string, node->length);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:560: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 buf[2];
data/raptor2-2.0.14/src/raptor_stringbuffer.c:600: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 buf[2];
data/raptor2-2.0.14/src/raptor_stringbuffer.c:653: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.
  const char *items[TEST_ITEMS_COUNT] = { "the", "quick" ,"brown", "fox", "jumps", "over", "the", "lazy", "dog" };
data/raptor2-2.0.14/src/raptor_stringbuffer.c:659: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.
  const char *test_integer_results[TEST_INTEGERS_COUNT]={ "abcd0", "abcd1", "abcd-1", "abcd11", "abcd1234", "abcd12345", "abcd-12345" };
data/raptor2-2.0.14/src/raptor_stringbuffer.c:666: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.
  const char *test_append_results[TEST_APPEND_COUNT]={ "thebrownjumpsthedog", "quickfoxoverlazy" };
data/raptor2-2.0.14/src/raptor_term.c:196:5:  [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(new_literal, literal, literal_len);
data/raptor2-2.0.14/src/raptor_term.c:207:5:  [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(new_language, language, language_len);
data/raptor2-2.0.14/src/raptor_term.c:315:5:  [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(new_id, blank, length);
data/raptor2-2.0.14/src/raptor_turtle_writer.c:639:45:  [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).
                                            atoi((const char*)value));
data/raptor2-2.0.14/src/raptor_unicode.c:918:9:  [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(p, src, RAPTOR_GOOD_CAST(size_t, unichar_len));
data/raptor2-2.0.14/src/raptor_uri.c:157: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((char*)new_string, (const char*)uri_string, length);
data/raptor2-2.0.14/src/raptor_uri.c:239: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((char*)new_string, (const char*)uri->string, uri->length);
data/raptor2-2.0.14/src/raptor_uri.c:240: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((char*)(new_string + uri->length), (const char*)local_name,
data/raptor2-2.0.14/src/raptor_uri.c:362: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(local_name + 1, id, len + 1); /* len+1 to copy NUL */
data/raptor2-2.0.14/src/raptor_uri.c:405: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(new_uri_string, base_uri_string, base_uri_string_len);
data/raptor2-2.0.14/src/raptor_uri.c:406: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(new_uri_string + base_uri_string_len, name, name_len + 1); /* copy NUL */
data/raptor2-2.0.14/src/raptor_uri.c:736:5:  [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(path + path_len + 1, filename, filename_len + 1);
data/raptor2-2.0.14/src/raptor_uri.c:758: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(buffer, "file://", 7);
data/raptor2-2.0.14/src/raptor_uri.c:963: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 hexbuf[3];
data/raptor2-2.0.14/src/raptor_uri.c:988:9:  [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(*fragment_p, ud->fragment, fragment_len + 1);
data/raptor2-2.0.14/src/raptor_uri.c:1303: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(final_path_cur, to_path + common_len, to_dir_len);
data/raptor2-2.0.14/src/raptor_uri.c:1323:7:  [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(final_path_cur, suffix, suffix_len);
data/raptor2-2.0.14/src/raptor_uri.c:1450:7:  [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(suffix, reference_file, reference_file_len);
data/raptor2-2.0.14/src/raptor_uri.c:1456:7:  [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(cur_ptr, reference_detail->query, reference_detail->query_len);
data/raptor2-2.0.14/src/raptor_uri.c:1462:7:  [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(cur_ptr, reference_detail->fragment, reference_detail->fragment_len);
data/raptor2-2.0.14/src/raptor_uri.c:1493:9:  [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(result, reference_str, reference_len);
data/raptor2-2.0.14/src/raptor_uri.c:1590: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(new_string, string, len+1);
data/raptor2-2.0.14/src/raptor_uri.c:1629: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 uri_string[43 + 1 + MAX_ASCII_INT_SIZE + 1];
data/raptor2-2.0.14/src/raptor_uri.c:1632: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(p, raptor_rdf_namespace_uri, raptor_rdf_namespace_uri_len);
data/raptor2-2.0.14/src/raptor_uri.c:1921: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 uri_buffer[16]; /* strlen("file:///DIR/foo")+1 */  
data/raptor2-2.0.14/src/raptor_www.c:292: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(ua_copy, user_agent, ua_len + 1); /* copy NUL */
data/raptor2-2.0.14/src/raptor_www.c:321: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(proxy_copy, proxy, proxy_len + 1); /* copy NUL */
data/raptor2-2.0.14/src/raptor_www.c:353: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(value_copy, "Accept:", 7); /* Do not copy NUL */
data/raptor2-2.0.14/src/raptor_www.c:359:5:  [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(value_copy, value, value_len + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_www.c:428: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(cache_control_copy, header, header_len); /* Do not copy NUL */
data/raptor2-2.0.14/src/raptor_www.c:434:5:  [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(cache_control_copy, cache_control, cc_len + 1); /* Copy NUL */
data/raptor2-2.0.14/src/raptor_www.c:639:8:  [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).
  fh = fopen(filename, "rb");
data/raptor2-2.0.14/src/raptor_www_curl.c:112:5:  [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(type_buffer, (char*)ptr + 14, len);
data/raptor2-2.0.14/src/raptor_www_libxml.c:91:7:  [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(p, www->http_accept, accept_len);
data/raptor2-2.0.14/src/raptor_www_libxml.c:97:7:  [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(p, "User-Agent: ", 12);
data/raptor2-2.0.14/src/raptor_www_libxml.c:99:7:  [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(p, www->user_agent, ua_len);
data/raptor2-2.0.14/src/raptor_www_libxml.c:105:7:  [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(p, www->cache_control, cc_len);
data/raptor2-2.0.14/src/raptor_xml.c:677:7:  [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(q, "&amp;", 5);
data/raptor2-2.0.14/src/raptor_xml.c:680:7:  [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(q, "&lt;", 4);
data/raptor2-2.0.14/src/raptor_xml.c:683:7:  [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(q, "&gt;", 4);
data/raptor2-2.0.14/src/raptor_xml.c:687:9:  [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(q, "&apos;", 6);
data/raptor2-2.0.14/src/raptor_xml.c:689:9:  [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(q, "&quot;", 6);
data/raptor2-2.0.14/src/raptor_xml.c:721:7:  [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(q, p, unichar_len);
data/raptor2-2.0.14/src/raptor_xml_writer.c:288:5:  [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, "xml:lang=\"", XML_LANG_PREFIX_LEN);
data/raptor2-2.0.14/src/snprintf.c:71: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 buffer[32];
data/raptor2-2.0.14/src/snprintf.c:403: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 fmt[FMT_LEN_MAX + 1];
data/raptor2-2.0.14/src/snprintf.c:404: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 arg[ARG_LEN_MAX + 1];
data/raptor2-2.0.14/src/turtle_lexer.c:2739:5:  [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(s, text, len);
data/raptor2-2.0.14/src/turtle_lexer.c:3075: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 buffer[2048];
data/raptor2-2.0.14/src/turtle_lexer.c:3204:10:  [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).
    fh = fopen(filename, "r");
data/raptor2-2.0.14/src/turtle_parser.c:1010: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/raptor2-2.0.14/src/turtle_parser.c:1398: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 yymsgbuf[128];
data/raptor2-2.0.14/src/turtle_parser.c:3275:5:  [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(ptr, s, len);
data/raptor2-2.0.14/src/turtle_parser.c:3571: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 string[TURTLE_FILE_BUF_SIZE];
data/raptor2-2.0.14/src/turtle_parser.c:3585:10:  [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).
    fh = fopen(filename, "r");
data/raptor2-2.0.14/utils/rapper.c:477:35:  [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).
                    fv->i_value = atoi(&optarg[name_len + 1]);
data/raptor2-2.0.14/utils/rdfdiff.c:817:27:  [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.
  from_string = (unsigned char *)argv[optind++];
data/raptor2-2.0.14/utils/rdfdiff.c:818: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.
  to_string = (unsigned char *)argv[optind];
data/raptor2-2.0.14/librdfa/context.c:38:25:  [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).
   size_t base_length = strlen(base);
data/raptor2-2.0.14/librdfa/curie.c:59: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).
      size_t uri_length = strlen(uri);
data/raptor2-2.0.14/librdfa/curie.c:87:25:  [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).
   size_t base_length = strlen(context->base);
data/raptor2-2.0.14/librdfa/curie.c:89:7:  [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).
   if(strlen(uri) < 1)
data/raptor2-2.0.14/librdfa/curie.c:148:18:  [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).
 	 size_t tlen = strlen(tmp) - 1;
data/raptor2-2.0.14/librdfa/curie.c:216: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).
      size_t rlen = strlen(rval) + 1;
data/raptor2-2.0.14/librdfa/curie.c:226:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(dest, rval, hlen);
data/raptor2-2.0.14/librdfa/curie.c:417: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).
      working_copy = (char*)malloc(strlen(uri) + 1);
data/raptor2-2.0.14/librdfa/curie.c:477:63:  [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).
                                                         (int)strlen(prefix));
data/raptor2-2.0.14/librdfa/iri.c:67:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      rval = strncpy(rval, iri, length);
data/raptor2-2.0.14/librdfa/language.c:43:10:  [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).
      if(strlen(lang) > 0)
data/raptor2-2.0.14/librdfa/rdfa.c:164:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
               strncpy(temp_uri, uri_start, uri_size);
data/raptor2-2.0.14/librdfa/rdfa.c:303:13:  [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).
      name, strlen(name));
data/raptor2-2.0.14/librdfa/rdfa.c:374: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).
               " xmlns", strlen(" xmlns"));
data/raptor2-2.0.14/librdfa/rdfa.c:384:29:  [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).
                  umap_key, strlen(umap_key));
data/raptor2-2.0.14/librdfa/rdfa.c:392: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).
               (const char*)umap_value, strlen((char*)umap_value));
data/raptor2-2.0.14/librdfa/rdfa.c:433:32:  [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).
            size_t ns_length = strlen(ns);
data/raptor2-2.0.14/librdfa/rdfa.c:521:19:  [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).
               if(strlen(value) < 1)
data/raptor2-2.0.14/librdfa/rdfa.c:617: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).
         literal_text = (char*)malloc(strlen(attr) + value_length + 5);
data/raptor2-2.0.14/librdfa/rdfa.c:623: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).
            literal_text, strlen(literal_text));
data/raptor2-2.0.14/librdfa/rdfa.c:693:16:  [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).
            if(strlen(datatype_curie) == 0)
data/raptor2-2.0.14/librdfa/rdfa.c:745: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).
         " xml:lang=\"", strlen(" xml:lang=\""));
data/raptor2-2.0.14/librdfa/rdfa.c:748:29:  [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).
         context->language, strlen(context->language));
data/raptor2-2.0.14/librdfa/rdfa.c:1025: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).
   char* buffer = (char*)malloc(strlen(name) + 4);
data/raptor2-2.0.14/librdfa/rdfa.c:1039:35:  [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).
      context->xml_literal_size = strlen(buffer);
data/raptor2-2.0.14/librdfa/rdfa.c:1045:18:  [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).
         buffer, strlen(buffer));
data/raptor2-2.0.14/librdfa/rdfa.c:1079:42:  [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).
      if(context->xml_literal != NULL && strlen(context->xml_literal) == 0)
data/raptor2-2.0.14/librdfa/rdfa_utils.c:39:25:  [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).
   size_t prefix_size = strlen(prefix);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:40:25:  [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).
   size_t suffix_size = strlen(suffix);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:78:47:  [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).
   char* rval = (char*)malloc(sizeof(char) * (strlen(str) + 2));
data/raptor2-2.0.14/librdfa/rdfa_utils.c:90:29:  [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).
      size_t token_length = strlen(token);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:346:18:  [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).
      str_size = strlen(subject);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:349:63:  [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).
      realkey = rdfa_n_append_string(realkey, &str_size, key, strlen(key));
data/raptor2-2.0.14/librdfa/rdfa_utils.c:455:22:  [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).
   size_t str_size = strlen(subject);
data/raptor2-2.0.14/librdfa/rdfa_utils.c:460:60:  [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).
   realkey = rdfa_n_append_string(realkey, &str_size, key, strlen(key));
data/raptor2-2.0.14/librdfa/triple.c:572:12:  [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).
   else if(strlen(context->plain_literal) == 0)
data/raptor2-2.0.14/librdfa/triple.c:579:13:  [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).
           (strlen(context->xml_literal) > 0) &&
data/raptor2-2.0.14/librdfa/triple.c:617: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).
   if((context->datatype != NULL) && (strlen(context->datatype) > 0))
data/raptor2-2.0.14/librdfa/triple.c:716:10:  [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).
      if(strlen(context->datatype) > 0)
data/raptor2-2.0.14/scripts/build-formats.c:113:63:  [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).
  raptor_xml_escape_string_write((const unsigned char*)title, strlen(title),
data/raptor2-2.0.14/scripts/build-formats.c:242:34:  [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).
                                 strlen(sd->label),
data/raptor2-2.0.14/src/parsedate.c:960: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).
#   define yystrlen strlen
data/raptor2-2.0.14/src/parsedate.c:2620:6:  [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).
  if(strlen (buff) == 3)
data/raptor2-2.0.14/src/parsedate.c:2622:11:  [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).
  else if(strlen (buff) == 4 && buff[3] == '.')
data/raptor2-2.0.14/src/parsedate.c:2665:28:  [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).
  i = RAPTOR_BAD_CAST(int, strlen(buff)) - 1;
data/raptor2-2.0.14/src/raptor_general.c:379: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).
    length = RAPTOR_BAD_CAST(unsigned int, strlen(prefix));
data/raptor2-2.0.14/src/raptor_grddl.c:194:13:  [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).
  msg_len = strlen(msg);
data/raptor2-2.0.14/src/raptor_grddl.c:1153:25:  [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).
      size_t list_len = strlen((const char*)uri_string);
data/raptor2-2.0.14/src/raptor_grddl.c:1227:9:  [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).
  len = strlen(content_type)+1;
data/raptor2-2.0.14/src/raptor_grddl.c:1946:18:  [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).
    size_t len = strlen(content_type) + 1;
data/raptor2-2.0.14/src/raptor_guess.c:103:13:  [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).
      len = strlen(content_type);
data/raptor2-2.0.14/src/raptor_iostream.c:769:16:  [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).
  size_t len = strlen((const char*)string);
data/raptor2-2.0.14/src/raptor_json.c:206:10:  [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).
      if(strlen((const char*)node_id) > 2 && node_id[0] == '_' && node_id[1] == ':') {
data/raptor2-2.0.14/src/raptor_json_writer.c:162: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).
    key_len = strlen(key);
data/raptor2-2.0.14/src/raptor_json_writer.c:164:17:  [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).
    value_len = strlen(value);
data/raptor2-2.0.14/src/raptor_libxml.c:354: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).
  int prefix_length = RAPTOR_BAD_CAST(int, strlen(xml_warning_prefix));
data/raptor2-2.0.14/src/raptor_libxml.c:372:34:  [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).
  msg_len = RAPTOR_BAD_CAST(int, strlen(msg));
data/raptor2-2.0.14/src/raptor_libxml.c:398: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).
  int prefix_length = RAPTOR_BAD_CAST(int, strlen(prefix));
data/raptor2-2.0.14/src/raptor_libxml.c:424:34:  [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).
  msg_len = RAPTOR_BAD_CAST(int, strlen(msg));
data/raptor2-2.0.14/src/raptor_libxml.c:470: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).
  int prefix_length = RAPTOR_BAD_CAST(int, strlen(prefix));
data/raptor2-2.0.14/src/raptor_libxml.c:477:34:  [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).
  msg_len = RAPTOR_BAD_CAST(int, strlen(msg));
data/raptor2-2.0.14/src/raptor_libxml.c:527:45:  [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).
  int prefix_length = RAPTOR_GOOD_CAST(int, strlen(xml_validation_warning_prefix));
data/raptor2-2.0.14/src/raptor_libxml.c:536:34:  [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).
  msg_len = RAPTOR_BAD_CAST(int, strlen(msg));
data/raptor2-2.0.14/src/raptor_libxml.c:783:10:  [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).
    len= strlen((const char*)msg);
data/raptor2-2.0.14/src/raptor_libxml.c:798:10:  [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).
    len= strlen((const char*)msg);
data/raptor2-2.0.14/src/raptor_locator.c:119:17:  [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).
    value_len = strlen(value_str);
data/raptor2-2.0.14/src/raptor_memstr.c:61:16:  [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).
  needle_len = strlen(needle);
data/raptor2-2.0.14/src/raptor_namespace.c:546:35:  [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).
    prefix_length = (unsigned int)strlen((char*)prefix);
data/raptor2-2.0.14/src/raptor_option.c:400:34:  [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).
  option_description->name_len = strlen(option_description->name);
data/raptor2-2.0.14/src/raptor_option.c:550:22:  [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).
        size_t len = strlen(string);
data/raptor2-2.0.14/src/raptor_option.c:705:13:  [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).
      len = strlen((const char*)string);
data/raptor2-2.0.14/src/raptor_parse.c:1255:46:  [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).
      suffix = RAPTOR_MALLOC(unsigned char*, strlen((const char*)p) + 1);
data/raptor2-2.0.14/src/raptor_qname.c:116: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).
    size_t value_length = strlen((char*)value);
data/raptor2-2.0.14/src/raptor_qname.c:173: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).
    local_name_length = (unsigned int)strlen((char*)p);
data/raptor2-2.0.14/src/raptor_qname.c:246:37:  [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).
  local_name_length = (unsigned int)strlen((char*)local_name);
data/raptor2-2.0.14/src/raptor_qname.c:256:47:  [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).
    unsigned int value_length = (unsigned int)strlen((char*)value);
data/raptor2-2.0.14/src/raptor_qname.c:476:43:  [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).
        local_name_length = (unsigned int)strlen((char*)p);
data/raptor2-2.0.14/src/raptor_rdfxml.c:1396:53:  [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).
    if(!raptor_unicode_check_utf8_nfc_string(value, strlen((const char*)value),
data/raptor2-2.0.14/src/raptor_rdfxml.c:1485:17:  [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).
    value_len = strlen((const char*)value);
data/raptor2-2.0.14/src/raptor_rdfxml.c:3133:12:  [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).
  id_len = strlen((const char*)id);
data/raptor2-2.0.14/src/raptor_rfc2396.c:63:13:  [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).
  uri_len = strlen((const char*)uri_string);
data/raptor2-2.0.14/src/raptor_rfc2396.c:293:18:  [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).
  if(path_len != strlen((const char*)path_buffer))
data/raptor2-2.0.14/src/raptor_rfc2396.c:294:106:  [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).
    RAPTOR_FATAL4("Path '%s' length %ld does not match calculated %ld.", (const char*)path_buffer, (long)strlen((const char*)path_buffer), (long)path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:331: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).
    if(path_len != strlen((const char*)path_buffer))
data/raptor2-2.0.14/src/raptor_rfc2396.c:332:77:  [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).
      RAPTOR_FATAL3("Path length %ld does not match calculated %ld.", (long)strlen((const char*)path_buffer), (long)path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:397:18:  [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).
  if(path_len != strlen((const char*)path_buffer))
data/raptor2-2.0.14/src/raptor_rfc2396.c:398:75:  [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).
    RAPTOR_FATAL3("Path length %ld does not match calculated %ld.", (long)strlen((const char*)path_buffer), (long)path_len);
data/raptor2-2.0.14/src/raptor_rfc2396.c:660:31:  [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).
  RAPTOR_ASSERT(result_len && strlen((const char*)buffer) != result_len,
data/raptor2-2.0.14/src/raptor_rss.c:371:18:  [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).
    size_t len = strlen(string);
data/raptor2-2.0.14/src/raptor_rss.c:633:28:  [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).
              size_t len = strlen((const char*)attrValue);
data/raptor2-2.0.14/src/raptor_rss.c:958:18:  [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).
    size_t len = strlen(value);
data/raptor2-2.0.14/src/raptor_rss.c:1504:13:  [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).
      len = strlen((const char*)item->fields[from_field]->value);
data/raptor2-2.0.14/src/raptor_sax2.c:731: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).
        size_t lang_len = strlen((char*)atts[i+1]);
data/raptor2-2.0.14/src/raptor_set.c:281:18:  [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).
    size_t len = strlen(items[i]);
data/raptor2-2.0.14/src/raptor_set.c:297:18:  [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).
    size_t len = strlen(items[i]);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:249:73:  [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).
  return raptor_stringbuffer_append_string_common(stringbuffer, string, strlen((const char*)string), do_copy);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:446:74:  [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).
  return raptor_stringbuffer_prepend_string_common(stringbuffer, string, strlen((const char*)string), do_copy);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:685:11:  [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).
    len = strlen(items[i]);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:730:11:  [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).
    len = strlen(items[i]);
data/raptor2-2.0.14/src/raptor_stringbuffer.c:808:11:  [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).
    len = strlen(items[i]);
data/raptor2-2.0.14/src/raptor_syntax_description.c:90: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).
      size_t len = strlen(type_q->mime_type);
data/raptor2-2.0.14/src/raptor_term.c:270:19:  [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).
    literal_len = strlen(RAPTOR_GOOD_CAST(const char*, literal));
data/raptor2-2.0.14/src/raptor_term.c:273: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).
    language_len = strlen(RAPTOR_GOOD_CAST(const char*, language));
data/raptor2-2.0.14/src/raptor_term.c:319:14:  [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).
    length = strlen((const char*)new_id);
data/raptor2-2.0.14/src/raptor_term.c:363:14:  [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).
    length = strlen((const char*)blank);
data/raptor2-2.0.14/src/raptor_term.c:395:14:  [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).
    length = strlen(RAPTOR_GOOD_CAST(const char*, string));
data/raptor2-2.0.14/src/raptor_turtle_writer.c:215:14:  [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).
  for( ; i < strlen((char*)s); i++)
data/raptor2-2.0.14/src/raptor_turtle_writer.c:376: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).
  rc = raptor_string_escaped_write(s, strlen((const char*)s), '"', 
data/raptor2-2.0.14/src/raptor_turtle_writer.c:459:49:  [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).
                                                strlen((const char*)s)))
data/raptor2-2.0.14/src/raptor_turtle_writer.c:496:16:  [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).
  size_t len = strlen((const char*)string);
data/raptor2-2.0.14/src/raptor_turtle_writer.c:924:46:  [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).
                                             strlen((const char*)longstr));
data/raptor2-2.0.14/src/raptor_turtle_writer.c:980:16:  [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).
  string_len = strlen((const char*)string);
data/raptor2-2.0.14/src/raptor_uri.c:109:17:  [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).
  RAPTOR_ASSERT(strlen((const char*)uri_string) != length,
data/raptor2-2.0.14/src/raptor_uri.c:198:45:  [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).
                                            strlen((const char*)uri_string));
data/raptor2-2.0.14/src/raptor_uri.c:232:23:  [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).
  local_name_length = strlen((const char*)local_name);
data/raptor2-2.0.14/src/raptor_uri.c:278: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).
    uri_len = strlen(RAPTOR_GOOD_CAST(const char*, uri_string));
data/raptor2-2.0.14/src/raptor_uri.c:355:9:  [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).
  len = strlen((char*)id);
data/raptor2-2.0.14/src/raptor_uri.c:399:14:  [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).
  name_len = strlen((const char*)name);
data/raptor2-2.0.14/src/raptor_uri.c:666: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).
    filename_len = strlen(filename);
data/raptor2-2.0.14/src/raptor_uri.c:725:16:  [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).
    path_len = strlen(path);
data/raptor2-2.0.14/src/raptor_uri.c:1810:6:  [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).
  if(strlen((const char*)uri->string) != uri->length) {
data/raptor2-2.0.14/src/raptor_uri.c:1814:18:  [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).
            (int)strlen((const char*)uri->string),
data/raptor2-2.0.14/src/raptor_www.c:287:12:  [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).
  ua_len = strlen(user_agent);
data/raptor2-2.0.14/src/raptor_www.c:316: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).
  proxy_len = strlen(proxy);
data/raptor2-2.0.14/src/raptor_www.c:343:17:  [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).
    value_len = strlen(value);
data/raptor2-2.0.14/src/raptor_www.c:406:18:  [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).
  RAPTOR_ASSERT((strlen(header) != header_len), "Cache-Control header length is wrong");
data/raptor2-2.0.14/src/raptor_www.c:418:12:  [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).
  cc_len = strlen(cache_control);
data/raptor2-2.0.14/src/raptor_www_libxml.c:71: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).
      accept_len = strlen(www->http_accept);
data/raptor2-2.0.14/src/raptor_www_libxml.c:76:16:  [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).
      ua_len = strlen(www->user_agent);
data/raptor2-2.0.14/src/raptor_www_libxml.c:81:16:  [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).
      cc_len = strlen(www->cache_control);
data/raptor2-2.0.14/src/raptor_xml.c:536:16:  [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).
  size_t len = strlen((const char*)string);
data/raptor2-2.0.14/src/raptor_xml.c:1036: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).
    size_t utf8_string_len = strlen((const char*)utf8_string);
data/raptor2-2.0.14/src/raptor_xml_writer.c:281:23:  [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).
    size_t lang_len = strlen(RAPTOR_GOOD_CAST(char*, element->xml_language));
data/raptor2-2.0.14/src/raptor_xml_writer.c:660: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).
  raptor_xml_escape_string_any_write(s, strlen((const char*)s),
data/raptor2-2.0.14/src/raptor_xml_writer.c:1018:16:  [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).
  string_len = strlen((const char*)string);
data/raptor2-2.0.14/src/snprintf.c:91:18:  [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).
      size = 2 + strlen(format);                                        \
data/raptor2-2.0.14/src/snprintf.c:117:38:  [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).
          len = RAPTOR_BAD_CAST(int, strlen(tmp_buffer));               \
data/raptor2-2.0.14/src/turtle_lexer.c:956:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/raptor2-2.0.14/src/turtle_lexer.c:2345: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).
	return turtle_lexer__scan_bytes(yystr,strlen(yystr) ,yyscanner);
data/raptor2-2.0.14/src/turtle_lexer.c:2736:11:  [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).
    len = strlen((const char*)text);
data/raptor2-2.0.14/src/turtle_parser.c:910: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).
#   define yystrlen strlen
data/raptor2-2.0.14/src/turtle_parser.c:2089:18:  [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).
    size_t len = strlen((const char*)prefix);
data/raptor2-2.0.14/src/turtle_parser.c:2127:18:  [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).
    size_t len = strlen((const char*)prefix);
data/raptor2-2.0.14/src/turtle_parser.c:3630:42:  [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).
  turtle_push_parse(&rdf_parser, string, strlen(string));
data/raptor2-2.0.14/src/turtle_parser.c:3632:37:  [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).
  turtle_parse(&rdf_parser, string, strlen(string));
data/raptor2-2.0.14/utils/rapper.c:444: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).
            size_t arg_len = strlen(optarg);
data/raptor2-2.0.14/utils/rdfdiff.c:183: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).
    file->name = RAPTOR_MALLOC(char*, strlen((const char*)name) + 1);
data/raptor2-2.0.14/utils/rdfdiff.c:240: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).
    blank->blank_id = RAPTOR_MALLOC(char*, strlen(blank_id) + 1);
data/raptor2-2.0.14/utils/rdfdiff.c:322:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/raptor2-2.0.14/utils/rdfdiff.c:327:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if(equal) {
data/raptor2-2.0.14/utils/rdfdiff.c:336:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if(equal)
data/raptor2-2.0.14/utils/rdfdiff.c:341:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    rv = equal;
data/raptor2-2.0.14/utils/rdfdiff.c:416:6:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if(equal) {
data/raptor2-2.0.14/utils/rdfdiff.c:441:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return equal;

ANALYSIS SUMMARY:

Hits = 408
Lines analyzed = 68681 in approximately 1.93 seconds (35653 lines/second)
Physical Source Lines of Code (SLOC) = 44366
Hits@level = [0] 553 [1] 154 [2] 196 [3]   6 [4]  52 [5]   0
Hits@level+ = [0+] 961 [1+] 408 [2+] 254 [3+]  58 [4+]  52 [5+]   0
Hits/KSLOC@level+ = [0+] 21.6607 [1+] 9.19623 [2+] 5.7251 [3+] 1.30731 [4+] 1.17207 [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.