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/redland-1.0.17/libltdl/lt__alloc.c Examining data/redland-1.0.17/libltdl/argz.c Examining data/redland-1.0.17/libltdl/ltdl.c Examining data/redland-1.0.17/libltdl/lt_dlloader.c Examining data/redland-1.0.17/libltdl/loaders/load_add_on.c Examining data/redland-1.0.17/libltdl/loaders/loadlibrary.c Examining data/redland-1.0.17/libltdl/loaders/dyld.c Examining data/redland-1.0.17/libltdl/loaders/shl_load.c Examining data/redland-1.0.17/libltdl/loaders/dld_link.c Examining data/redland-1.0.17/libltdl/loaders/dlopen.c Examining data/redland-1.0.17/libltdl/loaders/preopen.c Examining data/redland-1.0.17/libltdl/argz_.h Examining data/redland-1.0.17/libltdl/ltdl.h Examining data/redland-1.0.17/libltdl/slist.c Examining data/redland-1.0.17/libltdl/lt__dirent.c Examining data/redland-1.0.17/libltdl/lt_error.c Examining data/redland-1.0.17/libltdl/lt__strl.c Examining data/redland-1.0.17/libltdl/libltdl/lt__dirent.h Examining data/redland-1.0.17/libltdl/libltdl/lt__glibc.h Examining data/redland-1.0.17/libltdl/libltdl/lt_dlloader.h Examining data/redland-1.0.17/libltdl/libltdl/slist.h Examining data/redland-1.0.17/libltdl/libltdl/lt__strl.h Examining data/redland-1.0.17/libltdl/libltdl/lt_system.h Examining data/redland-1.0.17/libltdl/libltdl/lt_error.h Examining data/redland-1.0.17/libltdl/libltdl/lt__private.h Examining data/redland-1.0.17/libltdl/libltdl/lt__alloc.h Examining data/redland-1.0.17/src/rdf_iterator.c Examining data/redland-1.0.17/src/rdf_init.c Examining data/redland-1.0.17/src/rdf_query.c Examining data/redland-1.0.17/src/rdf_stream.h Examining data/redland-1.0.17/src/rdf_statement_common.c Examining data/redland-1.0.17/src/rdf_types.h Examining data/redland-1.0.17/src/rdf_digest_md5.c Examining data/redland-1.0.17/src/rdf_concepts.c Examining data/redland-1.0.17/src/rdf_iterator_internal.h Examining data/redland-1.0.17/src/memcmp.c Examining data/redland-1.0.17/src/rdf_storage_virtuoso_internal.h Examining data/redland-1.0.17/src/rdf_query_internal.h Examining data/redland-1.0.17/src/rdf_hash_bdb.c Examining data/redland-1.0.17/src/rdf_storage_postgresql.c Examining data/redland-1.0.17/src/rdf_storage_internal.h Examining data/redland-1.0.17/src/rdf_storage_file.c Examining data/redland-1.0.17/src/librdf.h Examining data/redland-1.0.17/src/rdf_init_internal.h Examining data/redland-1.0.17/src/rdf_hash.c Examining data/redland-1.0.17/src/rdf_query_virtuoso.c Examining data/redland-1.0.17/src/rdf_log.c Examining data/redland-1.0.17/src/rdf_serializer.h Examining data/redland-1.0.17/src/rdf_concepts_internal.h Examining data/redland-1.0.17/src/rdf_model_internal.h Examining data/redland-1.0.17/src/rdf_model.h Examining data/redland-1.0.17/src/rdf_storage_trees.c Examining data/redland-1.0.17/src/rdf_model.c Examining data/redland-1.0.17/src/rdf_query_results.c Examining data/redland-1.0.17/src/rdf_node_common.c Examining data/redland-1.0.17/src/rdf_storage_list.c Examining data/redland-1.0.17/src/redland.h Examining data/redland-1.0.17/src/rdf_storage_module.h Examining data/redland-1.0.17/src/rdf_storage_mysql.c Examining data/redland-1.0.17/src/rdf_hash_cursor.c Examining data/redland-1.0.17/src/rdf_stream.c Examining data/redland-1.0.17/src/rdf_digest.c Examining data/redland-1.0.17/src/rdf_hash_memory.c Examining data/redland-1.0.17/src/rdf_parser_internal.h Examining data/redland-1.0.17/src/rdf_utf8.c Examining data/redland-1.0.17/src/rdf_digest.h Examining data/redland-1.0.17/src/rdf_query_rasqal.c Examining data/redland-1.0.17/src/rdf_list.h Examining data/redland-1.0.17/src/rdf_raptor.h Examining data/redland-1.0.17/src/rdf_parser_raptor.c Examining data/redland-1.0.17/src/rdf_storage.c Examining data/redland-1.0.17/src/rdf_parser.c Examining data/redland-1.0.17/src/rdf_serializer.c Examining data/redland-1.0.17/src/rdf_node.h Examining data/redland-1.0.17/src/rdf_stream_internal.h Examining data/redland-1.0.17/src/rdf_storage_tstore.c Examining data/redland-1.0.17/src/rdf_digest_internal.h Examining data/redland-1.0.17/src/rdf_list_internal.h Examining data/redland-1.0.17/src/rdf_storage_sql.c Examining data/redland-1.0.17/src/rdf_statement_internal.h Examining data/redland-1.0.17/src/rdf_hash.h Examining data/redland-1.0.17/src/rdf_serializer_internal.h Examining data/redland-1.0.17/src/rdf_utf8.h Examining data/redland-1.0.17/src/rdf_hash_internal.h Examining data/redland-1.0.17/src/rdf_log_internal.h Examining data/redland-1.0.17/src/rdf_heuristics.c Examining data/redland-1.0.17/src/rdf_heuristics.h Examining data/redland-1.0.17/src/rdf_statement.c Examining data/redland-1.0.17/src/rdf_concepts.h Examining data/redland-1.0.17/src/rdf_storage_sqlite.c Examining data/redland-1.0.17/src/rdf_node.c Examining data/redland-1.0.17/src/rdf_serializer_raptor.c Examining data/redland-1.0.17/src/rdf_storage_hashes.c Examining data/redland-1.0.17/src/rdf_iterator.h Examining data/redland-1.0.17/src/rdf_uri.h Examining data/redland-1.0.17/src/rdf_model_storage.c Examining data/redland-1.0.17/src/rdf_node_internal.h Examining data/redland-1.0.17/src/rdf_storage_sql_test.c Examining data/redland-1.0.17/src/rdf_raptor.c Examining data/redland-1.0.17/src/rdf_query.h Examining data/redland-1.0.17/src/rdf_storage.h Examining data/redland-1.0.17/src/rdf_init.h Examining data/redland-1.0.17/src/rdf_digest_sha1.c Examining data/redland-1.0.17/src/rdf_log.h Examining data/redland-1.0.17/src/rdf_files.c Examining data/redland-1.0.17/src/rdf_list.c Examining data/redland-1.0.17/src/win32_rdf_config.h Examining data/redland-1.0.17/src/rdf_internal.h Examining data/redland-1.0.17/src/rdf_parser.h Examining data/redland-1.0.17/src/rdf_raptor_internal.h Examining data/redland-1.0.17/src/rdf_uri_internal.h Examining data/redland-1.0.17/src/rdf_uri.c Examining data/redland-1.0.17/src/rdf_statement.h Examining data/redland-1.0.17/src/rdf_files.h Examining data/redland-1.0.17/src/rdf_storage_virtuoso.c Examining data/redland-1.0.17/examples/example4.c Examining data/redland-1.0.17/examples/redland_dbus.c Examining data/redland-1.0.17/examples/rss2atom.c Examining data/redland-1.0.17/examples/example7.c Examining data/redland-1.0.17/examples/example8.c Examining data/redland-1.0.17/examples/example3.c Examining data/redland-1.0.17/examples/rss2ical.c Examining data/redland-1.0.17/examples/example1.c Examining data/redland-1.0.17/examples/example5.c Examining data/redland-1.0.17/examples/example6.c Examining data/redland-1.0.17/examples/example2.c Examining data/redland-1.0.17/utils/db_upgrade.c Examining data/redland-1.0.17/utils/rdf-tree.c Examining data/redland-1.0.17/utils/getopt.c Examining data/redland-1.0.17/utils/rdfproc.c Examining data/redland-1.0.17/utils/redland-virtuoso-test.c Examining data/redland-1.0.17/utils/rdfproc_getopt.h FINAL RESULTS: data/redland-1.0.17/examples/rss2ical.c:339:3: [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(stdout, ical_header_format, data/redland-1.0.17/examples/rss2ical.c:406:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(creator, "CN=\"%s\"", value); data/redland-1.0.17/libltdl/libltdl/lt__private.h:117:11: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. void * system; /* system specific data */ data/redland-1.0.17/libltdl/loaders/loadlibrary.c:170: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(wpath, filename); data/redland-1.0.17/libltdl/ltdl.c:515:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (filename, "%.*s/%s", (int) dirname_len, dirname, dlname); data/redland-1.0.17/libltdl/ltdl.c:711:2: [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 (filename, dir_name); data/redland-1.0.17/libltdl/ltdl.c:717:6: [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 (filename +lendir, base_name); data/redland-1.0.17/libltdl/ltdl.c:778:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. int notfound = access (filename, R_OK); data/redland-1.0.17/libltdl/ltdl.c:915:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name, "lib%s", p+2); data/redland-1.0.17/libltdl/ltdl.c:1205:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(attempt, "%s%s", filename, ext); data/redland-1.0.17/libltdl/ltdl.c:1300:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (archive_name, "%s%s.%s", libprefix, name + 3, libext); data/redland-1.0.17/libltdl/ltdl.c:1304:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (archive_name, "%s.%s", name, libext); data/redland-1.0.17/libltdl/ltdl.c:1813: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 (buf, dirnam); data/redland-1.0.17/libltdl/ltdl.c:2056:4: [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(sym, handle->vtable->sym_prefix); data/redland-1.0.17/libltdl/ltdl.c:2057:4: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, handle->info.name); data/redland-1.0.17/libltdl/ltdl.c:2061:4: [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(sym, handle->info.name); data/redland-1.0.17/libltdl/ltdl.c:2065:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, symbol); data/redland-1.0.17/libltdl/ltdl.c:2083: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(sym, handle->vtable->sym_prefix); data/redland-1.0.17/libltdl/ltdl.c:2084:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(sym, symbol); data/redland-1.0.17/libltdl/ltdl.c:2088: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(sym, symbol); data/redland-1.0.17/src/rdf_digest.c:100: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(digest->name, name); data/redland-1.0.17/src/rdf_files.c:90:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name, "%s/%s", tmp_dir, file_template); data/redland-1.0.17/src/rdf_files.c:104:10: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). return mktemp(name); data/redland-1.0.17/src/rdf_files.c:117: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(new_name, name); data/redland-1.0.17/src/rdf_hash.c:277: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(hash->name, name); data/redland-1.0.17/src/rdf_hash.c:566: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(hash->identifier, identifier); data/redland-1.0.17/src/rdf_hash_bdb.c:166:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(file, "%s.db", identifier); data/redland-1.0.17/src/rdf_internal.h:51: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 LIBRDF_DEBUG1(msg) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__); } while(0) data/redland-1.0.17/src/rdf_internal.h:52: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 LIBRDF_DEBUG2(msg, arg1) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1);} while(0) data/redland-1.0.17/src/rdf_internal.h:53: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 LIBRDF_DEBUG3(msg, arg1, arg2) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1, arg2);} while(0) data/redland-1.0.17/src/rdf_internal.h:54: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 LIBRDF_DEBUG4(msg, arg1, arg2, arg3) do {fprintf(stderr, "%s:%d:%s: " msg, __FILE__, __LINE__, __func__, arg1, arg2, arg3);} while(0) data/redland-1.0.17/src/rdf_model.c:155: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(model->name, name); data/redland-1.0.17/src/rdf_model.c:160: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(model->label, label); data/redland-1.0.17/src/rdf_parser.c:136: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(parser->name, name); data/redland-1.0.17/src/rdf_parser.c:142: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(parser->label, label); data/redland-1.0.17/src/rdf_parser.c:150: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(parser->mime_type, mime_type); data/redland-1.0.17/src/rdf_query.c:175: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(query->name, name); data/redland-1.0.17/src/rdf_query_rasqal.c:133: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*)query_string_copy, (const char*)query_string); data/redland-1.0.17/src/rdf_query_rasqal.c:242: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*)new_string, (const char*)string); data/redland-1.0.17/src/rdf_query_rasqal.c:251: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((char*)new_language, (const char*)string); data/redland-1.0.17/src/rdf_query_rasqal.c:266: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*)new_blank, (const char*)blank); data/redland-1.0.17/src/rdf_serializer.c:140: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(serializer->name, name); data/redland-1.0.17/src/rdf_serializer.c:146: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(serializer->label, label); data/redland-1.0.17/src/rdf_serializer.c:154: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(serializer->mime_type, mime_type); data/redland-1.0.17/src/rdf_storage.c:387: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(storage->name, name); data/redland-1.0.17/src/rdf_storage.c:392: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(storage->label, label); data/redland-1.0.17/src/rdf_storage_file.c:133: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(name_copy,name); data/redland-1.0.17/src/rdf_storage_file.c:148:17: [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(is_uri || !access((const char*)context->name, F_OK)) { data/redland-1.0.17/src/rdf_storage_file.c:298: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*)context->name, F_OK)) { data/redland-1.0.17/src/rdf_storage_file.c:303: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(backup_name, (const char*)context->name); data/redland-1.0.17/src/rdf_storage_file.c:323: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(new_name, (const char*)context->name); data/redland-1.0.17/src/rdf_storage_hashes.c:220:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(full_name, "%s/%s-%s", context->db_dir, name, desc->name); data/redland-1.0.17/src/rdf_storage_hashes.c:222:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(full_name, "%s-%s", name, desc->name); data/redland-1.0.17/src/rdf_storage_hashes.c:410: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(name_copy, name); data/redland-1.0.17/src/rdf_storage_mysql.c:593: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(context->layout, default_layout); data/redland-1.0.17/src/rdf_storage_mysql.c:668:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, create_model, context->model, escaped_name); data/redland-1.0.17/src/rdf_storage_mysql.c:689:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, check_model, context->model, name); data/redland-1.0.17/src/rdf_storage_mysql.c:782: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(query,create_table_statements); data/redland-1.0.17/src/rdf_storage_mysql.c:785:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(query,row[0]); data/redland-1.0.17/src/rdf_storage_mysql.c:952:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, model_size, context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:1091:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(uint64_buffer, UINT64_T_FMT, prow->uints[0]); data/redland-1.0.17/src/rdf_storage_mysql.c:1186: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(nodestring, (const char*)value); data/redland-1.0.17/src/rdf_storage_mysql.c:1189:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(nodestring, lang); data/redland-1.0.17/src/rdf_storage_mysql.c:1192:9: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(nodestring, (const char*)datatype); data/redland-1.0.17/src/rdf_storage_mysql.c:1420:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, disable_statement_keys, context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:1452:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, lock_tables, context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:1454:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(query, lock_tables_extra); data/redland-1.0.17/src/rdf_storage_mysql.c:1514:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, enable_statement_keys, context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:1686:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, insert_statement, context->model, subject, predicate, object, ctxt); data/redland-1.0.17/src/rdf_storage_mysql.c:1754:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, find_statement, context->model, subject, predicate, object); data/redland-1.0.17/src/rdf_storage_mysql.c:1855:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_statement_with_context, context->model, subject, data/redland-1.0.17/src/rdf_storage_mysql.c:1863:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_statement, context->model, subject, predicate, data/redland-1.0.17/src/rdf_storage_mysql.c:1929:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_context, context->model, ctxt); data/redland-1.0.17/src/rdf_storage_mysql.c:1936:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_model, context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:2134:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_mysql.c:2152:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_mysql.c:2176:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_mysql.c:2193:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "MATCH(L.Value) AGAINST ('%s')", data/redland-1.0.17/src/rdf_storage_mysql.c:2205:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_mysql.c:2231:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_mysql.c:2308: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(newquery,*query); data/redland-1.0.17/src/rdf_storage_mysql.c:2309:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newquery,addition); data/redland-1.0.17/src/rdf_storage_mysql.c:2568:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, select_contexts, context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:2934:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(uint64_buffer, UINT64_T_FMT, context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:2956:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(uint64_buffer, UINT64_T_FMT, prow->uints[j]); data/redland-1.0.17/src/rdf_storage_postgresql.c:375:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(conninfo,coninfo_template,context->host,context->port,context->dbname,context->user,context->password); data/redland-1.0.17/src/rdf_storage_postgresql.c:549:6: [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(context->dbname, context->user); /* default dbname=user */ data/redland-1.0.17/src/rdf_storage_postgresql.c:584:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, create_table_statements, context->model); data/redland-1.0.17/src/rdf_storage_postgresql.c:635:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, create_model, context->model, escaped_name); data/redland-1.0.17/src/rdf_storage_postgresql.c:665:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, check_model, context->model, name); data/redland-1.0.17/src/rdf_storage_postgresql.c:771: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(query,insert_statements); data/redland-1.0.17/src/rdf_storage_postgresql.c:773:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(query,PQgetvalue(res,i,0)); data/redland-1.0.17/src/rdf_storage_postgresql.c:922:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, model_size, context->model); data/redland-1.0.17/src/rdf_storage_postgresql.c:1030:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, create_resource, hash, escaped_uri); data/redland-1.0.17/src/rdf_storage_postgresql.c:1082: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(nodestring, (const char*)value); data/redland-1.0.17/src/rdf_storage_postgresql.c:1085:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(nodestring, lang); data/redland-1.0.17/src/rdf_storage_postgresql.c:1088:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(nodestring, (const char*)datatype); data/redland-1.0.17/src/rdf_storage_postgresql.c:1144:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, create_literal, hash, escaped_value, escaped_lang, escaped_datatype); data/redland-1.0.17/src/rdf_storage_postgresql.c:1202:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, create_bnode, hash, escaped_name); data/redland-1.0.17/src/rdf_storage_postgresql.c:1400:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, insert_statement, context->model, subject, predicate, object, ctxt); data/redland-1.0.17/src/rdf_storage_postgresql.c:1464:9: [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(query, len, find_statement, context->model, data/redland-1.0.17/src/rdf_storage_postgresql.c:1547:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_statement_with_context, context->model, subject, predicate, object, ctxt); data/redland-1.0.17/src/rdf_storage_postgresql.c:1553:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_statement, context->model, subject, predicate, object); data/redland-1.0.17/src/rdf_storage_postgresql.c:1612:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_context, context->model, ctxt); data/redland-1.0.17/src/rdf_storage_postgresql.c:1618:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, delete_model, context->model); data/redland-1.0.17/src/rdf_storage_postgresql.c:1807:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_postgresql.c:1825:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_postgresql.c:1849:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_postgresql.c:1866:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "MATCH(L.Value) AGAINST ('%s')", data/redland-1.0.17/src/rdf_storage_postgresql.c:1878:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_postgresql.c:1904:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(where, tmp); data/redland-1.0.17/src/rdf_storage_postgresql.c:1996: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(newquery,*query); data/redland-1.0.17/src/rdf_storage_postgresql.c:1997:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(newquery,addition); data/redland-1.0.17/src/rdf_storage_postgresql.c:2291:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, select_contexts, context->model); data/redland-1.0.17/src/rdf_storage_sql.c:119:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(config->filename, "%s/%s-%s.ttl", config_dir, storage_name, layout); data/redland-1.0.17/src/rdf_storage_sql.c:121:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(config->filename, "%s/%s.ttl", config_dir, storage_name); data/redland-1.0.17/src/rdf_storage_sql.c:134:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access((const char*)config->filename, R_OK)) { data/redland-1.0.17/src/rdf_storage_sqlite.c:379: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((char*)query->query, (char *)request); data/redland-1.0.17/src/rdf_storage_sqlite.c:518:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((char*)expression, "%s = %s", field, uri_e); data/redland-1.0.17/src/rdf_storage_sqlite.c:559:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((char*)expression, "%s = %s", field, blank_e); data/redland-1.0.17/src/rdf_storage_sqlite.c:788: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*)context->name, F_OK)) data/redland-1.0.17/src/rdf_storage_sqlite.c:847:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((char*)request, "DROP TABLE %s;", sqlite_tables[i].name); data/redland-1.0.17/src/rdf_storage_sqlite.c:855:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf((char*)request, "CREATE TABLE %s (%s);", data/redland-1.0.17/src/rdf_storage_virtuoso.c:633:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ret, uri); data/redland-1.0.17/src/rdf_storage_virtuoso.c:660:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ret,(const char*)value); data/redland-1.0.17/src/rdf_storage_virtuoso.c:664:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ret, lang); data/redland-1.0.17/src/rdf_storage_virtuoso.c:668:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ret,(const char*)datatype); data/redland-1.0.17/src/rdf_storage_virtuoso.c:680:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ret, value); data/redland-1.0.17/src/rdf_storage_virtuoso.c:684:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(ret, value); data/redland-1.0.17/src/rdf_storage_virtuoso.c:724:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ctxt_node, "<%s>", context->model_name); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1115: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(context->model_name, name); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1134:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(context->conn_str, context->dsn); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1139:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(context->conn_str, context->host); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1144:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(context->conn_str, context->database); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1149:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(context->conn_str, context->user); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1154:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(context->conn_str, context->password); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1159:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(context->conn_str, context->charset); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1340:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, model_size, context->model_name); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1532:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(bnode, value); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1592:6: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(bnode, value); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1890:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, find_statement, ctxt_node, subject, predicate, object); data/redland-1.0.17/src/rdf_storage_virtuoso.c:2067:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, sdelete_match, ctxt_node, subject, predicate, object, data/redland-1.0.17/src/rdf_storage_virtuoso.c:2347:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(query, find_statement, ctxt_node, s_subject, s_predicate, s_object); data/redland-1.0.17/src/rdf_uri.c:235: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*)new_uri_string + base_uri_string_length, data/redland-1.0.17/src/win32_rdf_config.h:48:9: [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. #define snprintf _snprintf data/redland-1.0.17/src/win32_rdf_config.h:48:18: [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. #define snprintf _snprintf data/redland-1.0.17/src/win32_rdf_config.h:49: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. #define access _access data/redland-1.0.17/src/win32_rdf_config.h:54:9: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). #define mktemp _mktemp data/redland-1.0.17/utils/rdf-tree.c:106:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(storage_options, data/redland-1.0.17/utils/rdf-tree.c:118:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(storage_options, data/redland-1.0.17/utils/rdfproc.c:561: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, librdf_version_string); data/redland-1.0.17/utils/rdfproc.c:577: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, librdf_version_string); data/redland-1.0.17/utils/rdfproc.c:623: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(HELP_TEXT(t, "storage-options OPTIONS\n ", "Storage options (default \"%s\")\n"), default_storage_options); data/redland-1.0.17/utils/rdfproc.c:730:11: [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*)uri_string, R_OK)) { data/redland-1.0.17/utils/redland-virtuoso-test.c:117:3: [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/redland-1.0.17/utils/redland-virtuoso-test.c:130:3: [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/redland-1.0.17/libltdl/loaders/loadlibrary.c:199:14: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. module = LoadLibrary (wpath); data/redland-1.0.17/libltdl/ltdl.c:1354:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. search_path = getenv (LTDL_SEARCHPATH_VAR); data/redland-1.0.17/libltdl/ltdl.c:1362:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. search_path = getenv (LT_MODULE_PATH_VAR); data/redland-1.0.17/libltdl/ltdl.c:1462:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. && !find_handle (getenv (LTDL_SEARCHPATH_VAR), base_name, data/redland-1.0.17/libltdl/ltdl.c:1465:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. && !find_handle (getenv (LT_MODULE_PATH_VAR), base_name, data/redland-1.0.17/libltdl/ltdl.c:1918:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. is_done = foreach_dirinpath (getenv(LTDL_SEARCHPATH_VAR), 0, data/redland-1.0.17/libltdl/ltdl.c:1925:33: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. is_done = foreach_dirinpath (getenv(LT_MODULE_PATH_VAR), 0, data/redland-1.0.17/src/rdf_files.c:79:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp_dir=getenv("TMPDIR"); data/redland-1.0.17/src/rdf_files.c:113:8: [3] (tmpfile) tmpnam: Temporary file race condition (CWE-377). name=tmpnam(NULL); /* NULL ensures statically allocated */ data/redland-1.0.17/src/rdf_model.c:1955:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. storage_type=getenv("REDLAND_TEST_STORAGE_TYPE"); data/redland-1.0.17/src/rdf_model.c:1956:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. storage_name=getenv("REDLAND_TEST_STORAGE_NAME"); data/redland-1.0.17/src/rdf_model.c:1957:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. storage_options=getenv("REDLAND_TEST_STORAGE_OPTIONS"); data/redland-1.0.17/src/rdf_model.c:2394:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. storage_type = getenv("REDLAND_TEST_CLONING_STORAGE_TYPE"); data/redland-1.0.17/src/rdf_model.c:2395:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. storage_name = getenv("REDLAND_TEST_CLONING_STORAGE_NAME"); data/redland-1.0.17/src/rdf_model.c:2396:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. storage_options = getenv("REDLAND_TEST_CLONING_STORAGE_OPTIONS"); data/redland-1.0.17/src/rdf_storage.c:251:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. path = getenv("REDLAND_MODULE_PATH"); data/redland-1.0.17/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/redland-1.0.17/utils/rdf-tree.c:374:14: [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. while((c = getopt_long(argc, argv, opts_short, opts_long, &i)) != -1) { data/redland-1.0.17/utils/rdfproc.c:313:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((name=getenv("RDFPROC_STORAGE_OPTIONS"))) data/redland-1.0.17/utils/rdfproc.c:316:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if((name=getenv("RDFPROC_STORAGE_TYPE"))) data/redland-1.0.17/utils/rdfproc.c:327: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/redland-1.0.17/utils/rdfproc.c:329: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/redland-1.0.17/utils/rdfproc_getopt.h:9: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/redland-1.0.17/utils/redland-virtuoso-test.c:389:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if((s=getenv ("VIRTUOSO_STORAGE_OPTIONS")) != NULL) data/redland-1.0.17/libltdl/argz.c:69: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 (argz + *pargz_len, buf, buf_len); data/redland-1.0.17/libltdl/argz.c:166: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 (before, entry, entry_len); data/redland-1.0.17/libltdl/libltdl/lt__dirent.h:64: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 d_name[LT_FILENAME_MAX]; data/redland-1.0.17/libltdl/loaders/dyld.c:326: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 saveError[256] = "Symbol not found"; data/redland-1.0.17/libltdl/loaders/loadlibrary.c:139: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 wpath[MAX_PATH]; data/redland-1.0.17/libltdl/lt__alloc.c:86:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy (newmem, mem, n); data/redland-1.0.17/libltdl/lt__dirent.c:52: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 file_spec[LT_FILENAME_MAX]; data/redland-1.0.17/libltdl/lt_error.c:35: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. static const char error_strings[LT_ERROR_MAX][LT_ERROR_LEN_MAX + 1] = data/redland-1.0.17/libltdl/ltdl.c:749:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((*pfile = fopen (filename, LT_READTEXT_MODE))) data/redland-1.0.17/libltdl/ltdl.c:1016: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(tmp, &str[1], (end - str) - 1); data/redland-1.0.17/libltdl/ltdl.c:1376:11: [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). file = fopen (attempt, LT_READTEXT_MODE); data/redland-1.0.17/libltdl/ltdl.c:2009: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 lsym[LT_SYMBOL_LENGTH]; data/redland-1.0.17/libltdl/ltdl.c:2064:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(sym, "_LTX_"); data/redland-1.0.17/src/rdf_concepts.c:112:51: [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 * token = (const unsigned char *)librdf_concept_tokens[i]; data/redland-1.0.17/src/rdf_digest.c:330: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(digest->digest, digest_data, digest->factory->digest_length); data/redland-1.0.17/src/rdf_digest.c:391:5: [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(b+(i<<1), "%02x", (unsigned int)data[i]); data/redland-1.0.17/src/rdf_digest_md5.c:67: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 c[128]; data/redland-1.0.17/src/rdf_digest_md5.c:72: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 c[64]; data/redland-1.0.17/src/rdf_digest_md5.c:75: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 digest[16]; data/redland-1.0.17/src/rdf_digest_md5.c:152: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, buf, len); data/redland-1.0.17/src/rdf_digest_md5.c:155: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, buf, t); data/redland-1.0.17/src/rdf_digest_md5.c:165: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(ctx->in.c, buf, 64); data/redland-1.0.17/src/rdf_digest_md5.c:174:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctx->in.c, buf, len); data/redland-1.0.17/src/rdf_digest_md5.c:220:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ctx->digest, ctx->buf.c, 16); data/redland-1.0.17/src/rdf_digest_sha1.c:112: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[64]; data/redland-1.0.17/src/rdf_digest_sha1.c:113: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 digest[SHA1_DIGEST_LENGTH]; data/redland-1.0.17/src/rdf_digest_sha1.c:117:56: [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 void SHA1Transform(u32 state[5], const unsigned char buffer[64]); data/redland-1.0.17/src/rdf_digest_sha1.c:148:44: [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. SHA1Transform(u32 state[5], const unsigned char buffer[64]) data/redland-1.0.17/src/rdf_digest_sha1.c:152: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 c[64]; data/redland-1.0.17/src/rdf_digest_sha1.c:157:19: [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 unsigned char workspace[64]; data/redland-1.0.17/src/rdf_digest_sha1.c:159: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(block, buffer, 64); data/redland-1.0.17/src/rdf_digest_sha1.c:233: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(&context->buffer[j], data, (i = 64-j)); data/redland-1.0.17/src/rdf_digest_sha1.c:242: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(&context->buffer[j], &data[i], ulen - i); data/redland-1.0.17/src/rdf_digest_sha1.c:252: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 finalcount[8]; data/redland-1.0.17/src/rdf_files.c:94:6: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fd=mkstemp(name); data/redland-1.0.17/src/rdf_hash.c:568:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). status=hash->factory->open(hash->context, identifier, data/redland-1.0.17/src/rdf_hash.c:641: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(value, hd_value->data, hd_value->size); data/redland-1.0.17/src/rdf_hash.c:691: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(new_value, value->data, value->size); data/redland-1.0.17/src/rdf_hash_bdb.c:201:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = bdb->open(bdb, file, NULL, DB_BTREE, flags, mode); data/redland-1.0.17/src/rdf_hash_bdb.c:215:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = bdb->open(bdb, NULL, file, NULL, DB_BTREE, flags, mode); data/redland-1.0.17/src/rdf_hash_bdb.c:619: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(key->data, bdb_key.data, bdb_key.size); data/redland-1.0.17/src/rdf_hash_bdb.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(value->data, bdb_value.data, bdb_value.size); data/redland-1.0.17/src/rdf_hash_internal.h:81:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(void* context, const char *identifier, int mode, int is_writable, int is_new, librdf_hash* options); data/redland-1.0.17/src/rdf_hash_memory.c:725: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_key, key->data, key->size); data/redland-1.0.17/src/rdf_hash_memory.c:763: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_value, value->data, value->size); data/redland-1.0.17/src/rdf_heuristics.c:183:3: [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(new_name + offset + 1, "%ld", l); data/redland-1.0.17/src/rdf_init.c:491:18: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long lid = atol((const char*)librdf_node_get_literal_value(value)); data/redland-1.0.17/src/rdf_init.c:508:18: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). long lid = atol((const char*)librdf_node_get_literal_value(value)); data/redland-1.0.17/src/rdf_init.c:572:3: [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((char*)buffer, "r%lur%lur%lu", id, pid, counter); data/redland-1.0.17/src/rdf_iterator.c:482: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 buf[2]; data/redland-1.0.17/src/rdf_log.c:58: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. static const char * const log_level_names[LIBRDF_LOG_LAST+1]={ data/redland-1.0.17/src/rdf_log.c:206: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 empty_buffer[1]; data/redland-1.0.17/src/rdf_model.c:352:32: [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). model->supports_contexts=atoi((const char*)librdf_node_get_literal_value(node)); data/redland-1.0.17/src/rdf_model.c:2017: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 *file_uri_strings[URI_STRING_COUNT]={(const unsigned char*)"http://example.org/test1.rdf", (const unsigned char*)"http://example.org/test2.rdf"}; data/redland-1.0.17/src/rdf_model.c:2018: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 *file_content[URI_STRING_COUNT]={(const unsigned char*)EX1_CONTENT, (const unsigned char*)EX2_CONTENT}; data/redland-1.0.17/src/rdf_model.c:2034: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 literal[6]; data/redland-1.0.17/src/rdf_model.c:2088: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 literal[6]; data/redland-1.0.17/src/rdf_node.c:767:10: [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). return atoi((const char*)uri_string+44); data/redland-1.0.17/src/rdf_node.c:896: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((char*)buffer + 3, string, string_length + 1); data/redland-1.0.17/src/rdf_node.c:949: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(buffer, string, string_length + 1); data/redland-1.0.17/src/rdf_node.c:953: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(buffer, datatype_uri_string, datatype_uri_length + 1); data/redland-1.0.17/src/rdf_node.c:958: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(buffer, node->value.literal.language, language_length + 1); data/redland-1.0.17/src/rdf_node.c:979: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((char*)buffer + 3, string, string_length + 1); data/redland-1.0.17/src/rdf_node.c:1445:23: [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 const unsigned char hp_uri_encoded[31] = {0x52, 0x00, 0x1b, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x70, 0x75, 0x72, 0x6c, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x64, 0x61, 0x6a, 0x6f, 0x62, 0x65, 0x2f, 0x00}; data/redland-1.0.17/src/rdf_node.c:1449:23: [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 const unsigned char datatyped_literal_M_encoded[61] = {0x4d, 0x00, 0x17, 0x00, 0x1e, 0x00, 0x44, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x64, 0x20, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x00, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x55, 0x52, 0x49, 0x00}; data/redland-1.0.17/src/rdf_node.c:1454:16: [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 big_literal_N_encoded[32] = {0x4e, 0x00, 0x01, 0x86, 0xa0, 0x00, 0x00, 0x00, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58}; data/redland-1.0.17/src/rdf_parser.c:1039:23: [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 const unsigned char *file_uri_strings[URI_STRING_COUNT] = { data/redland-1.0.17/src/rdf_parser.c:1045:23: [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 const unsigned char *file_content[URI_STRING_COUNT] = { data/redland-1.0.17/src/rdf_parser_raptor.c:340: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_IO_BUFFER_LEN]; data/redland-1.0.17/src/rdf_parser_raptor.c:573: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/redland-1.0.17/src/rdf_parser_raptor.c:1182: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 intbuffer[20]; /* FIXME */ data/redland-1.0.17/src/rdf_parser_raptor.c:1193:5: [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((char*)intbuffer, "%d", pcontext->errors); data/redland-1.0.17/src/rdf_parser_raptor.c:1197:5: [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((char*)intbuffer, "%d", pcontext->warnings); data/redland-1.0.17/src/rdf_parser_raptor.c:1209:7: [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((char*)intbuffer, "%d", value); data/redland-1.0.17/src/rdf_query_results.c:613: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(name, "w+"); data/redland-1.0.17/src/rdf_query_virtuoso.c:195: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(query_string_copy, query_string, len + 1); data/redland-1.0.17/src/rdf_query_virtuoso.c:216: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(query_string_copy, query_string, len + 1); data/redland-1.0.17/src/rdf_query_virtuoso.c:285: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(cmd, pref, pref_len); data/redland-1.0.17/src/rdf_query_virtuoso.c:286: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(cmd + pref_len, context->query_string, query_string_len + 1); data/redland-1.0.17/src/rdf_query_virtuoso.c:339: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(context->colNames[icol-1], name, snamelen + 1); data/redland-1.0.17/src/rdf_query_virtuoso.c:1300: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(name_copy, name, name_len + 1); data/redland-1.0.17/src/rdf_serializer.c:562:6: [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(name, "w+"); data/redland-1.0.17/src/rdf_serializer.c:601:6: [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(name, "w+"); data/redland-1.0.17/src/rdf_serializer.c:1111:6: [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, "w"); data/redland-1.0.17/src/rdf_serializer_raptor.c:104: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 intbuffer[20]; /* FIXME */ data/redland-1.0.17/src/rdf_serializer_raptor.c:122:5: [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((char*)intbuffer, "%d", value); data/redland-1.0.17/src/rdf_storage.c:830:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return storage->factory->open(storage, model); data/redland-1.0.17/src/rdf_storage_file.c:324:3: [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(new_name+context->name_len, ".new"); data/redland-1.0.17/src/rdf_storage_file.c:335:6: [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(new_name, "w+"); data/redland-1.0.17/src/rdf_storage_hashes.c:203: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(desc, source_desc, sizeof(librdf_hash_descriptor)); data/redland-1.0.17/src/rdf_storage_hashes.c:1922: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 value[2]; data/redland-1.0.17/src/rdf_storage_hashes.c:1924:5: [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((char*)value, "%d", (scontext->index_contexts != 0)); data/redland-1.0.17/src/rdf_storage_list.c:948: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 value[2]; data/redland-1.0.17/src/rdf_storage_list.c:950:5: [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((char*)value, "%d", (scontext->index_contexts != 0)); data/redland-1.0.17/src/rdf_storage_module.h:142:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int (*open)(librdf_storage* storage, librdf_model* model); data/redland-1.0.17/src/rdf_storage_mysql.c:90: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[3]; /* 3 is for Literals longtext, text, text */ data/redland-1.0.17/src/rdf_storage_mysql.c:429: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(connections, context->connections, data/redland-1.0.17/src/rdf_storage_mysql.c:562:6: [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(context->host, "localhost"); data/redland-1.0.17/src/rdf_storage_mysql.c:615: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 vars_str[50]; data/redland-1.0.17/src/rdf_storage_mysql.c:618:5: [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(vars_str, "STATEMENTS_NAME='Statements" UINT64_T_FMT "'", data/redland-1.0.17/src/rdf_storage_mysql.c:784:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(query,"Statements"); data/redland-1.0.17/src/rdf_storage_mysql.c:967:9: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). count=atol(row[0]); data/redland-1.0.17/src/rdf_storage_mysql.c:1079: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 uint64_buffer[64]; data/redland-1.0.17/src/rdf_storage_mysql.c:2075: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 tmp[64]; data/redland-1.0.17/src/rdf_storage_mysql.c:2076: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 where[256]; data/redland-1.0.17/src/rdf_storage_mysql.c:2077: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 joins[640]; data/redland-1.0.17/src/rdf_storage_mysql.c:2112:3: [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(query, "SELECT"); data/redland-1.0.17/src/rdf_storage_mysql.c:2115:5: [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(joins, " FROM Literals AS L LEFT JOIN Statements" UINT64_T_FMT " as S ON L.ID=S.Object", data/redland-1.0.17/src/rdf_storage_mysql.c:2118:5: [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(joins, " FROM Statements" UINT64_T_FMT " AS S", context->model); data/redland-1.0.17/src/rdf_storage_mysql.c:2128:5: [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(tmp, "S.Subject=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_mysql.c:2131:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_mysql.c:2133:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_mysql.c:2140:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS SubjectR ON S.Subject=SubjectR.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2141:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS SubjectB ON S.Subject=SubjectB.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2146:5: [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(tmp, "S.Predicate=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_mysql.c:2149:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_mysql.c:2151:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_mysql.c:2164:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS PredicateR ON S.Predicate=PredicateR.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2170:7: [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(tmp,"S.Object=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_mysql.c:2173:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_mysql.c:2175:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_mysql.c:2189:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS ObjectR ON S.Object=ObjectR.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2190:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS ObjectB ON S.Object=ObjectB.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2191:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Literals AS ObjectL ON S.Object=ObjectL.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2202:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_mysql.c:2204:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_mysql.c:2218:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS ObjectR ON S.Object=ObjectR.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2219:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS ObjectB ON S.Object=ObjectB.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2220:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Literals AS ObjectL ON S.Object=ObjectL.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2225:5: [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(tmp,"S.Context=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_mysql.c:2228:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_mysql.c:2230:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_mysql.c:2243:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS ContextR ON S.Context=ContextR.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2244:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS ContextB ON S.Context=ContextB.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2245:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Literals AS ContextL ON S.Context=ContextL.ID"); data/redland-1.0.17/src/rdf_storage_mysql.c:2714: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. static const unsigned char value[2]="1"; data/redland-1.0.17/src/rdf_storage_mysql.c:2922: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 uint64_buffer[64]; data/redland-1.0.17/src/rdf_storage_postgresql.c:350: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(connections, context->connections, data/redland-1.0.17/src/rdf_storage_postgresql.c:533:6: [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(context->host,"localhost"); data/redland-1.0.17/src/rdf_storage_postgresql.c:539:6: [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(context->port,"5432"); /* default postgresql port */ data/redland-1.0.17/src/rdf_storage_postgresql.c:772:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(query,"Statements"); data/redland-1.0.17/src/rdf_storage_postgresql.c:939:11: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). count = atol(PQgetvalue(res,0,0)); data/redland-1.0.17/src/rdf_storage_postgresql.c:1745: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 tmp[64]; data/redland-1.0.17/src/rdf_storage_postgresql.c:1746: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 where[256]; data/redland-1.0.17/src/rdf_storage_postgresql.c:1747: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 joins[640]; data/redland-1.0.17/src/rdf_storage_postgresql.c:1785:3: [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(query, "SELECT "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1788:5: [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(joins, " FROM Literals AS L LEFT JOIN Statements" UINT64_T_FMT " as S ON L.ID=S.Object", data/redland-1.0.17/src/rdf_storage_postgresql.c:1791:5: [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(joins, " FROM Statements" UINT64_T_FMT " AS S", context->model); data/redland-1.0.17/src/rdf_storage_postgresql.c:1801:5: [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(tmp, "S.Subject=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_postgresql.c:1804:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1806:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1813:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS SubjectR ON S.Subject=SubjectR.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1814:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS SubjectB ON S.Subject=SubjectB.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1819:5: [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(tmp, "S.Predicate=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_postgresql.c:1822:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1824:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1837:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS PredicateR ON S.Predicate=PredicateR.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1843:7: [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(tmp,"S.Object=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_postgresql.c:1846:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1848:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1862:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS ObjectR ON S.Object=ObjectR.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1863:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS ObjectB ON S.Object=ObjectB.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1864:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Literals AS ObjectL ON S.Object=ObjectL.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1875:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1877:9: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1891:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS ObjectR ON S.Object=ObjectR.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1892:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS ObjectB ON S.Object=ObjectB.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1893:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Literals AS ObjectL ON S.Object=ObjectL.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1898:5: [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(tmp,"S.Context=" UINT64_T_FMT "", data/redland-1.0.17/src/rdf_storage_postgresql.c:1901:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " WHERE "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1903:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(where, " AND "); data/redland-1.0.17/src/rdf_storage_postgresql.c:1917:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Resources AS ContextR ON S.Context=ContextR.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1918:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Bnodes AS ContextB ON S.Context=ContextB.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1919:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(joins," LEFT JOIN Literals AS ContextL ON S.Context=ContextL.ID"); data/redland-1.0.17/src/rdf_storage_postgresql.c:2493: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. static const unsigned char value[2]="1"; data/redland-1.0.17/src/rdf_storage_sqlite.c:277: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. static const char * const triples_fields[4][3] = { data/redland-1.0.17/src/rdf_storage_sqlite.c:293:26: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *count_p = argv[0] ? atoi(argv[0]) : 0; data/redland-1.0.17/src/rdf_storage_sqlite.c:839: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 request[200]; data/redland-1.0.17/src/rdf_storage_sqlite.c:871: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((char*)request, data/redland-1.0.17/src/rdf_storage_sqlite.c:884: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((char*)request, data/redland-1.0.17/src/rdf_storage_trees.c:969: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 value[2]; data/redland-1.0.17/src/rdf_storage_trees.c:971:5: [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((char*)value, "%d", (scontext->contexts != NULL)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:667:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(ret, "^^<"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:679: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(ret, "<_:"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:683: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(ret, "_:"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:743: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(ctxt_node, "<?g>"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:896: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(connections, context->connections, data/redland-1.0.17/src/rdf_storage_virtuoso.c:1133:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(context->conn_str, "DSN="); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1138:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(context->conn_str, "HOST="); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1143:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(context->conn_str, "DATABASE="); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1148:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(context->conn_str, "UID="); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1153:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(context->conn_str, "PWD="); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1158:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(context->conn_str, "CHARSET="); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1531: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(bnode, "_:"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1591:6: [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(bnode, "_:"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:2634: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 value[2]; data/redland-1.0.17/src/rdf_storage_virtuoso.c:2635:5: [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((char*)value, "%d", 1); data/redland-1.0.17/src/rdf_stream.c:761: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 buf[2]; data/redland-1.0.17/utils/rdf-tree.c:413:15: [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). opts.level = atoi(optarg); data/redland-1.0.17/utils/rdf-tree.c:424:14: [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). opts.port = atoi(optarg); data/redland-1.0.17/utils/rdfproc.c:729:28: [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. uri_string=(unsigned char *)argv[0]; data/redland-1.0.17/utils/rdfproc.c:755:58: [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. base_uri=librdf_new_uri(world, (const unsigned char *)argv[2]); data/redland-1.0.17/utils/rdfproc.c:769:81: [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. target=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[3])); data/redland-1.0.17/utils/rdfproc.c:771:75: [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. target=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[3]); data/redland-1.0.17/utils/rdfproc.c:828:23: [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). error_count=atoi((const char*)librdf_node_get_literal_value(error_count_node)); data/redland-1.0.17/utils/rdfproc.c:837:25: [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). warning_count=atoi((const char*)librdf_node_get_literal_value(warning_count_node)); data/redland-1.0.17/utils/rdfproc.c:884:53: [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. uri=librdf_new_uri(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:899:60: [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. base_uri=librdf_new_uri(world, (const unsigned char *)argv[3]); data/redland-1.0.17/utils/rdfproc.c:937:51: [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. uri=librdf_new_uri(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:945:64: [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. query=librdf_new_query(world, name, uri, (const unsigned char *)argv[2], data/redland-1.0.17/utils/rdfproc.c:962:51: [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. uri=librdf_new_uri(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:970:64: [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. query=librdf_new_query(world, name, uri, (const unsigned char *)argv[2], data/redland-1.0.17/utils/rdfproc.c:1109:77: [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. source=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1111:71: [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. source=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1116:68: [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. arc=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1120:66: [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. librdf_uri* dt_uri=librdf_new_uri(world, (const unsigned char *)argv[4]); data/redland-1.0.17/utils/rdfproc.c:1121:74: [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. target=librdf_new_node_from_typed_literal(world, (const unsigned char *)argv[2], lang, dt_uri); data/redland-1.0.17/utils/rdfproc.c:1128:81: [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. target=librdf_new_node_from_blank_identifier(world, (const unsigned char *)argv[2]+2); data/redland-1.0.17/utils/rdfproc.c:1130:72: [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. target=librdf_new_node_from_literal(world, (const unsigned char *)argv[2], NULL, 0); data/redland-1.0.17/utils/rdfproc.c:1132:75: [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. target=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[2]); data/redland-1.0.17/utils/rdfproc.c:1174:93: [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. context_node=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[3])); data/redland-1.0.17/utils/rdfproc.c:1176:87: [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. context_node=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[3]); data/redland-1.0.17/utils/rdfproc.c:1247:89: [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. context_node=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[3])); data/redland-1.0.17/utils/rdfproc.c:1249:83: [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. context_node=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[3]); data/redland-1.0.17/utils/rdfproc.c:1272:89: [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. context_node=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[3])); data/redland-1.0.17/utils/rdfproc.c:1274:83: [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. context_node=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[3]); data/redland-1.0.17/utils/rdfproc.c:1302:66: [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. arc=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1304:77: [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. target=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[1])); data/redland-1.0.17/utils/rdfproc.c:1306:68: [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. target=librdf_new_node_from_literal(world, (const unsigned char *)argv[1], NULL, 0); data/redland-1.0.17/utils/rdfproc.c:1308:71: [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. target=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1326:79: [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. source=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1328:73: [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. source=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1330:79: [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. target=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[1])); data/redland-1.0.17/utils/rdfproc.c:1332:70: [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. target=librdf_new_node_from_literal(world, (const unsigned char *)argv[1], NULL, 0); data/redland-1.0.17/utils/rdfproc.c:1334:73: [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. target=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1352:79: [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. source=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1354:73: [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. source=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1355:68: [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. arc=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1371:66: [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. arc=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1373:77: [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. target=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[1])); data/redland-1.0.17/utils/rdfproc.c:1375:68: [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. target=librdf_new_node_from_literal(world, (const unsigned char *)argv[1], NULL, 0); data/redland-1.0.17/utils/rdfproc.c:1377:71: [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. target=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1396:79: [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. source=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1398:73: [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. source=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1400:77: [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. target=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[1])); data/redland-1.0.17/utils/rdfproc.c:1402:68: [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. target=librdf_new_node_from_literal(world, (const unsigned char *)argv[1], NULL, 0); data/redland-1.0.17/utils/rdfproc.c:1404:71: [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. target=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1423:79: [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. source=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1425:73: [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. source=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1426:68: [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. arc=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1445:77: [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. source=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1447:71: [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. source=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1490:77: [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. source=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1492:71: [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. source=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/utils/rdfproc.c:1493:66: [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. arc=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[1]); data/redland-1.0.17/utils/rdfproc.c:1511:83: [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. context_node=librdf_new_node_from_blank_identifier(world, (const unsigned char *)librdf_heuristic_get_blank_node(argv[0])); data/redland-1.0.17/utils/rdfproc.c:1513:77: [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. context_node=librdf_new_node_from_uri_string(world, (const unsigned char *)argv[0]); data/redland-1.0.17/examples/example6.c:58: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). printf("Made a %d byte string\n", (int)strlen((char*)string)); data/redland-1.0.17/examples/rss2ical.c:108: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). len=strlen(key); data/redland-1.0.17/examples/rss2ical.c:115: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(attr); data/redland-1.0.17/examples/rss2ical.c:162:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char*)vcaldate, "00000000T000000Z", 17); data/redland-1.0.17/examples/rss2ical.c:405: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). creator=malloc(strlen((const char*)value)+6); data/redland-1.0.17/libltdl/argz.c:91: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). argz_len = 1+ strlen (str); data/redland-1.0.17/libltdl/argz.c:141: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). return argz_append (pargz, pargz_len, entry, 1+ strlen (entry)); data/redland-1.0.17/libltdl/argz.c:150: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 entry_len = 1+ strlen (entry); data/redland-1.0.17/libltdl/libltdl/lt__dirent.h:45: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). # define D_NAMLEN(dirent) (strlen((dirent)->d_name)) data/redland-1.0.17/libltdl/libltdl/lt__dirent.h:53: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). # define D_NAMLEN(dirent) (strlen((dirent)->d_name)) data/redland-1.0.17/libltdl/loaders/dyld.c:353:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (saveError, dylderror (LT__STRERROR (SYMBOL_NOT_FOUND)), 255); data/redland-1.0.17/libltdl/loaders/loadlibrary.c:179: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). len = strlen (wpath); data/redland-1.0.17/libltdl/lt__alloc.c:94: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). return (char *) lt__memdup (string, strlen (string) +1); data/redland-1.0.17/libltdl/lt__dirent.c:102: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). entry->file_info.d_namlen = strlen (entry->file_info.d_name); data/redland-1.0.17/libltdl/lt__strl.c:61: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). length=strlen(dst); data/redland-1.0.17/libltdl/ltdl.c:1236:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dir, canonical, dirlen); data/redland-1.0.17/libltdl/ltdl.c:1286: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). archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); data/redland-1.0.17/libltdl/ltdl.c:1286: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). archive_name = MALLOC (char, strlen (libprefix) + LT_STRLEN (name) + strlen (libext) + 2); data/redland-1.0.17/libltdl/ltdl.c:1724:55: [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). error = argz_append (pargz, pargz_len, entry, 1 + strlen (entry)); data/redland-1.0.17/libltdl/ltdl.c:1814:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat (buf, "/"); data/redland-1.0.17/libltdl/ltdl.c:1815:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (buf, dp->d_name, end_offset); data/redland-1.0.17/libltdl/ltdl.c:2159:48: [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). assert ((int) (before - *ppath) <= (int) strlen (*ppath)); data/redland-1.0.17/libltdl/ltdl.h:44: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). #define LT_STRLEN(s) (((s) && (s)[0]) ? strlen (s) : 0) data/redland-1.0.17/src/rdf_digest.c:97: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). digest->name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_digest.c:310: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). strlen((const char*)string)); data/redland-1.0.17/src/rdf_digest.c:510:56: [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). librdf_digest_update(d, (unsigned char*)test_data, strlen(test_data)); data/redland-1.0.17/src/rdf_files.c:83: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). length=strlen(tmp_dir) + strlen(file_template) + 2; /* 2: / sep and \/0 */ data/redland-1.0.17/src/rdf_files.c:83: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). length=strlen(tmp_dir) + strlen(file_template) + 2; /* 2: / sep and \/0 */ data/redland-1.0.17/src/rdf_files.c:114: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). new_name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_hash.c:274: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). hash->name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_hash.c:563: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). hash->identifier = LIBRDF_MALLOC(char*, strlen(identifier) + 1); data/redland-1.0.17/src/rdf_hash.c:630:57: [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). hd_key=librdf_new_hash_datum(hash->world, (void*)key, strlen(key)); data/redland-1.0.17/src/rdf_hash.c:903: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). hd_key.size=strlen(key); data/redland-1.0.17/src/rdf_hash.c:1279:61: [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=librdf_new_hash_datum(hash->world, (char*)key_string, strlen(key_string)); data/redland-1.0.17/src/rdf_hash.c:1545: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). key.size=strlen((char*)key.data); data/redland-1.0.17/src/rdf_hash.c:1546: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). value.size=strlen((char*)value.data); data/redland-1.0.17/src/rdf_hash.c:1602:24: [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 f_len = strlen(filter[i]); data/redland-1.0.17/src/rdf_hash.c:1683: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). switch(strlen(value)) { data/redland-1.0.17/src/rdf_hash.c:1769: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_hd.size=strlen(key); data/redland-1.0.17/src/rdf_hash.c:1771: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_hd.size=strlen(value); data/redland-1.0.17/src/rdf_hash.c:1801: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 prefix_len=strlen((const char*)prefix); data/redland-1.0.17/src/rdf_hash.c:1802: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 suffix_len=strlen((const char*)suffix); data/redland-1.0.17/src/rdf_hash.c:1808: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). len=strlen((const char*)template_string); data/redland-1.0.17/src/rdf_hash.c:1960: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). hd_key.size=strlen((char*)hd_key.data); data/redland-1.0.17/src/rdf_hash.c:1961: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). hd_value.size=strlen((char*)hd_value.data); data/redland-1.0.17/src/rdf_hash.c:1972: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). hd_key.size=strlen((char*)hd_key.data); data/redland-1.0.17/src/rdf_hash.c:2045:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(key_string, (char*)k->data, k->size); data/redland-1.0.17/src/rdf_hash_bdb.c:163: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). file = LIBRDF_MALLOC(char*, strlen(identifier) + 4); data/redland-1.0.17/src/rdf_heuristics.c:156: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(name); data/redland-1.0.17/src/rdf_heuristics.c:182:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(new_name, name, offset + 2); data/redland-1.0.17/src/rdf_init.c:775: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(id == NULL || strlen((const char*)id) < 6) { data/redland-1.0.17/src/rdf_model.c:152: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). model->name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_model.c:157: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). model->label = LIBRDF_MALLOC(char*, strlen(label) + 1); data/redland-1.0.17/src/rdf_model.c:2089:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(literal, "DaveX", 6); data/redland-1.0.17/src/rdf_model.c:2124:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(literal, "DaveX", 6); data/redland-1.0.17/src/rdf_parser.c:133: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). parser->name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_parser.c:139: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). parser->label = LIBRDF_MALLOC(char*, strlen(label) + 1); data/redland-1.0.17/src/rdf_parser.c:147: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). parser->mime_type = LIBRDF_MALLOC(char*, strlen(mime_type) + 1); data/redland-1.0.17/src/rdf_parser.c:873: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 len = buffer ? strlen((const char *)buffer) : 0; data/redland-1.0.17/src/rdf_parser.c:1075: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 length = strlen((const char*)file_content[testi]); data/redland-1.0.17/src/rdf_parser_raptor.c:321:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)nprefix, (const char*)prefix, prefix_length+1); data/redland-1.0.17/src/rdf_parser_raptor.c:670: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). length = strlen((const char*)string); data/redland-1.0.17/src/rdf_parser_raptor.c:907: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). length = strlen((const char*)string); data/redland-1.0.17/src/rdf_parser_raptor.c:1256: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). length = strlen(accept); data/redland-1.0.17/src/rdf_parser_raptor.c:1258:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r_accept, accept, length+1); data/redland-1.0.17/src/rdf_query.c:172: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). query->name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_query_rasqal.c:129: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((const char*)query_string); data/redland-1.0.17/src/rdf_query_rasqal.c:246: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). new_language=(char*)rasqal_alloc_memory(strlen((const char*)string)+1); data/redland-1.0.17/src/rdf_query_rasqal.c:263:51: [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). new_blank=(unsigned char*)rasqal_alloc_memory(strlen((const char*)blank)+1); data/redland-1.0.17/src/rdf_query_virtuoso.c:191: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((const char*)query_string); data/redland-1.0.17/src/rdf_query_virtuoso.c:279: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). pref_len = strlen(pref); data/redland-1.0.17/src/rdf_query_virtuoso.c:280: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). query_string_len = strlen((char *)context->query_string); data/redland-1.0.17/src/rdf_query_virtuoso.c:1298: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). name_len = strlen(name); data/redland-1.0.17/src/rdf_serializer.c:137: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). serializer->name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_serializer.c:143: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). serializer->label = LIBRDF_MALLOC(char*, strlen(label) + 1); data/redland-1.0.17/src/rdf_serializer.c:151:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). serializer->mime_type = LIBRDF_MALLOC(char*, strlen(mime_type) + 1); data/redland-1.0.17/src/rdf_storage.c:180: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 name_len = strlen(name); data/redland-1.0.17/src/rdf_storage.c:384: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). storage->name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_storage.c:389: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). storage->label = LIBRDF_MALLOC(char*, strlen(label) + 1); data/redland-1.0.17/src/rdf_storage_file.c:129: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). context->name_len = strlen(name); data/redland-1.0.17/src/rdf_storage_hashes.c:210: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(desc->name) + 1 + strlen(name) + 1; /* "%s-%s\0" */ data/redland-1.0.17/src/rdf_storage_hashes.c:210: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). len = strlen(desc->name) + 1 + strlen(name) + 1; /* "%s-%s\0" */ data/redland-1.0.17/src/rdf_storage_hashes.c:212: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). len += strlen(context->db_dir) +1; data/redland-1.0.17/src/rdf_storage_hashes.c:407: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). name_copy = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_storage_mysql.c:556: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(name)); data/redland-1.0.17/src/rdf_storage_mysql.c:592: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). context->layout = LIBRDF_MALLOC(char*, strlen(default_layout) + 1); data/redland-1.0.17/src/rdf_storage_mysql.c:640: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). strlen((const char*)query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:656: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). escaped_name = LIBRDF_MALLOC(char*, strlen(name) * 2 + 1); data/redland-1.0.17/src/rdf_storage_mysql.c:660: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). (const char*)name, strlen(name)); data/redland-1.0.17/src/rdf_storage_mysql.c:664: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). query = LIBRDF_MALLOC(char*,strlen(create_model) + 20 + data/redland-1.0.17/src/rdf_storage_mysql.c:665: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(escaped_name)+1); data/redland-1.0.17/src/rdf_storage_mysql.c:673:51: [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(!status && mysql_real_query(handle, query, strlen(query)) && data/redland-1.0.17/src/rdf_storage_mysql.c:686: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). strlen(check_model) + 20 + strlen(escaped_name)+1); data/redland-1.0.17/src/rdf_storage_mysql.c:686:54: [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(check_model) + 20 + strlen(escaped_name)+1); data/redland-1.0.17/src/rdf_storage_mysql.c:695:52: [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(!status && (mysql_real_query(handle, query, strlen(query)) || data/redland-1.0.17/src/rdf_storage_mysql.c:766: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). if(mysql_real_query(handle, get_models, strlen(get_models)) || data/redland-1.0.17/src/rdf_storage_mysql.c:775: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). query = LIBRDF_MALLOC(char*, strlen(create_table_statements) + data/redland-1.0.17/src/rdf_storage_mysql.c:786:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(query,","); data/redland-1.0.17/src/rdf_storage_mysql.c:789: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). query[strlen(query)-1]=')'; data/redland-1.0.17/src/rdf_storage_mysql.c:797: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). strlen(drop_table_statements)) || data/redland-1.0.17/src/rdf_storage_mysql.c:798: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). mysql_real_query(handle, query, strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:947: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). query = LIBRDF_MALLOC(char*, strlen(model_size) + 21); data/redland-1.0.17/src/rdf_storage_mysql.c:957: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). if(mysql_real_query(handle, query, strlen(query)) || data/redland-1.0.17/src/rdf_storage_mysql.c:1175: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). langlen=strlen(lang); data/redland-1.0.17/src/rdf_storage_mysql.c:1187:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(nodestring, "<"); data/redland-1.0.17/src/rdf_storage_mysql.c:1190:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(nodestring, ">"); data/redland-1.0.17/src/rdf_storage_mysql.c:1202: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). nodelen=strlen((const char*)name); data/redland-1.0.17/src/rdf_storage_mysql.c:1270: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). prow->strings_len[0]=strlen(escaped_uri); data/redland-1.0.17/src/rdf_storage_mysql.c:1289:9: [1] (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 character. strcpy(escaped_lang,""); data/redland-1.0.17/src/rdf_storage_mysql.c:1294:9: [1] (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 character. strcpy(escaped_datatype,""); data/redland-1.0.17/src/rdf_storage_mysql.c:1297: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). prow->strings_len[0]=strlen(escaped_value); data/redland-1.0.17/src/rdf_storage_mysql.c:1299: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). prow->strings_len[1]=strlen(escaped_lang); data/redland-1.0.17/src/rdf_storage_mysql.c:1301: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). prow->strings_len[2]=strlen(escaped_datatype); data/redland-1.0.17/src/rdf_storage_mysql.c:1315: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). prow->strings_len[0]=strlen(escaped_name); data/redland-1.0.17/src/rdf_storage_mysql.c:1415: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). query = LIBRDF_MALLOC(char*, strlen(disable_statement_keys) + 21); data/redland-1.0.17/src/rdf_storage_mysql.c:1425: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). if(mysql_real_query(handle, query, strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1438: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). strlen(disable_literal_keys))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1446: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). query = LIBRDF_MALLOC(char*, strlen(lock_tables) + data/redland-1.0.17/src/rdf_storage_mysql.c:1447: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). strlen(lock_tables_extra) + 21); data/redland-1.0.17/src/rdf_storage_mysql.c:1459: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). if(mysql_real_query(handle, query, strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1501: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). strlen(unlock_tables))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1509: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). query = LIBRDF_MALLOC(char*, strlen(enable_statement_keys) + 21); data/redland-1.0.17/src/rdf_storage_mysql.c:1519: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). if(mysql_real_query(handle, query, strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1532: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). strlen(enable_literal_keys))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1544: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). strlen(flush_statements))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1681: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). query = LIBRDF_MALLOC(char*, strlen(insert_statement) + 101); data/redland-1.0.17/src/rdf_storage_mysql.c:1691: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). if(mysql_real_query(handle, query, strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1749: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). query = LIBRDF_MALLOC(char*, strlen(find_statement) + 81); data/redland-1.0.17/src/rdf_storage_mysql.c:1759: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). if(mysql_real_query(handle, query, strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1850: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). query = LIBRDF_MALLOC(char*, strlen(delete_statement_with_context) + 101); data/redland-1.0.17/src/rdf_storage_mysql.c:1858: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). query = LIBRDF_MALLOC(char*, strlen(delete_statement) + 81); data/redland-1.0.17/src/rdf_storage_mysql.c:1870: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). if(mysql_real_query(handle, query, strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1924: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). query = LIBRDF_MALLOC(char*, strlen(delete_context) + 61); data/redland-1.0.17/src/rdf_storage_mysql.c:1931: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). query = LIBRDF_MALLOC(char*, strlen(delete_model) + 21); data/redland-1.0.17/src/rdf_storage_mysql.c:1942: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). if(mysql_real_query(handle,query,strlen(query))) { data/redland-1.0.17/src/rdf_storage_mysql.c:1959: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). strlen(flush_statements))) { data/redland-1.0.17/src/rdf_storage_mysql.c:2130: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_mysql.c:2148: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_mysql.c:2172: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_mysql.c:2201: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_mysql.c:2227: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_mysql.c:2267: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). if(mysql_real_query(sos->handle, query, strlen(query)) || data/redland-1.0.17/src/rdf_storage_mysql.c:2305: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). newquery = LIBRDF_MALLOC(char*, strlen(*query) + strlen(addition) + 1); data/redland-1.0.17/src/rdf_storage_mysql.c:2305:52: [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). newquery = LIBRDF_MALLOC(char*, strlen(*query) + strlen(addition) + 1); data/redland-1.0.17/src/rdf_storage_mysql.c:2416: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). if(row[part+4] && strlen(row[part+4])) data/redland-1.0.17/src/rdf_storage_mysql.c:2446: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). if(row[part+4] && strlen(row[part+4])) data/redland-1.0.17/src/rdf_storage_mysql.c:2563: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). query = LIBRDF_MALLOC(char*, strlen(select_contexts) + 21); data/redland-1.0.17/src/rdf_storage_mysql.c:2574: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). if(mysql_real_query(gccontext->handle, query, strlen(query)) || data/redland-1.0.17/src/rdf_storage_mysql.c:2636: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(row[4] && strlen(row[4])) data/redland-1.0.17/src/rdf_storage_mysql.c:2873: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). query=start_query; query_len=strlen(query); data/redland-1.0.17/src/rdf_storage_mysql.c:2970: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(mysql_real_query(handle, query, strlen(query)) && data/redland-1.0.17/src/rdf_storage_postgresql.c:367: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). coninfo_size = strlen(coninfo_template) data/redland-1.0.17/src/rdf_storage_postgresql.c:368: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). + strlen(context->host) data/redland-1.0.17/src/rdf_storage_postgresql.c:369: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). + strlen(context->port) data/redland-1.0.17/src/rdf_storage_postgresql.c:370: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). + strlen(context->dbname) data/redland-1.0.17/src/rdf_storage_postgresql.c:371: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). + strlen(context->user) data/redland-1.0.17/src/rdf_storage_postgresql.c:372: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). + strlen(context->password); data/redland-1.0.17/src/rdf_storage_postgresql.c:527:51: [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(name)); data/redland-1.0.17/src/rdf_storage_postgresql.c:548: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). context->dbname = LIBRDF_MALLOC(char*, strlen(context->user) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:579: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). query = LIBRDF_MALLOC(char*, strlen(create_table_statements) + (20*1) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:590:83: [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 (0 != strncmp("42P07", PQresultErrorField(res2, PG_DIAG_SQLSTATE), strlen("42P07"))) { data/redland-1.0.17/src/rdf_storage_postgresql.c:612: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). escaped_name = LIBRDF_MALLOC(char*, strlen(name) * 2 + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:618: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). (const char*)name, strlen(name), data/redland-1.0.17/src/rdf_storage_postgresql.c:631: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). strlen(create_model) + 20 + strlen(escaped_name) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:631:55: [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(create_model) + 20 + strlen(escaped_name) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:638:80: [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 (0 != strncmp("23505", PQresultErrorField(res, PG_DIAG_SQLSTATE), strlen("23505"))) { data/redland-1.0.17/src/rdf_storage_postgresql.c:661: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). strlen(check_model) + 20 + strlen(escaped_name) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:661:54: [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(check_model) + 20 + strlen(escaped_name) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:762: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). query = LIBRDF_MALLOC(char*, strlen(insert_statements) + 50); data/redland-1.0.17/src/rdf_storage_postgresql.c:917: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). query = LIBRDF_MALLOC(char*, strlen(model_size) + 20 + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1028: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). query = LIBRDF_MALLOC(char*, strlen(create_resource) + 20 + nodelen + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1035:84: [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 (0 == strncmp("23505", PQresultErrorField(res, PG_DIAG_SQLSTATE), strlen("23505"))) { data/redland-1.0.17/src/rdf_storage_postgresql.c:1069: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). langlen=strlen(lang); data/redland-1.0.17/src/rdf_storage_postgresql.c:1074: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). datatypelen=strlen((const char*)datatype); data/redland-1.0.17/src/rdf_storage_postgresql.c:1083:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(nodestring, "<"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1086:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(nodestring, ">"); data/redland-1.0.17/src/rdf_storage_postgresql.c:1122:13: [1] (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 character. strcpy(escaped_lang,""); data/redland-1.0.17/src/rdf_storage_postgresql.c:1136:15: [1] (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 character. strcpy(escaped_datatype,""); data/redland-1.0.17/src/rdf_storage_postgresql.c:1139: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). strlen(create_literal) + data/redland-1.0.17/src/rdf_storage_postgresql.c:1140: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). strlen(escaped_value) + data/redland-1.0.17/src/rdf_storage_postgresql.c:1141: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). strlen(escaped_lang) + data/redland-1.0.17/src/rdf_storage_postgresql.c:1142: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). strlen(escaped_datatype) + 21); data/redland-1.0.17/src/rdf_storage_postgresql.c:1149:88: [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 (0 == strncmp("23505", PQresultErrorField(res, PG_DIAG_SQLSTATE), strlen("23505"))) { data/redland-1.0.17/src/rdf_storage_postgresql.c:1180: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). nodelen = strlen((const char*)name); data/redland-1.0.17/src/rdf_storage_postgresql.c:1200: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). query = LIBRDF_MALLOC(char*, strlen(create_bnode) + 20 + nodelen + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1207:84: [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 (0 == strncmp("23505", PQresultErrorField(res, PG_DIAG_SQLSTATE), strlen("23505"))) { data/redland-1.0.17/src/rdf_storage_postgresql.c:1398: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). query = LIBRDF_MALLOC(char*, strlen(insert_statement) + (20 * 5) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1460: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(find_statement)+(20*4)+1; data/redland-1.0.17/src/rdf_storage_postgresql.c:1545: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). strlen(delete_statement_with_context) + (20 * 5) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1551: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). query = LIBRDF_MALLOC(char*, strlen(delete_statement) + (20 * 4) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1610: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). query = LIBRDF_MALLOC(char*, strlen(delete_context) + (20 * 2) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1616: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). query = LIBRDF_MALLOC(char*, strlen(delete_model) + (20) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1803: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_postgresql.c:1821: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_postgresql.c:1845: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_postgresql.c:1874: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_postgresql.c:1900: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). if(!strlen(where)) data/redland-1.0.17/src/rdf_storage_postgresql.c:1993: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). newquery = LIBRDF_MALLOC(char*, strlen(*query) + strlen(addition) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:1993:52: [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). newquery = LIBRDF_MALLOC(char*, strlen(*query) + strlen(addition) + 1); data/redland-1.0.17/src/rdf_storage_postgresql.c:2127: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). if(row[part+4] && strlen(row[part+4])) data/redland-1.0.17/src/rdf_storage_postgresql.c:2159: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). if(row[part+4] && strlen(row[part+4])) data/redland-1.0.17/src/rdf_storage_postgresql.c:2286: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). query = LIBRDF_MALLOC(char*, strlen(select_contexts) + 21); data/redland-1.0.17/src/rdf_storage_postgresql.c:2390: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(row[4] && strlen(row[4])) data/redland-1.0.17/src/rdf_storage_sql.c:114: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). len=strlen(config_dir) + 1 + strlen(storage_name) + 4 + 1; data/redland-1.0.17/src/rdf_storage_sql.c:114: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). len=strlen(config_dir) + 1 + strlen(storage_name) + 4 + 1; data/redland-1.0.17/src/rdf_storage_sql.c:116: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(layout) + 1; data/redland-1.0.17/src/rdf_storage_sql_test.c:79: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). program, strlen(value)); data/redland-1.0.17/src/rdf_storage_sqlite.c:168: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). context->name_len = strlen(name); data/redland-1.0.17/src/rdf_storage_sqlite.c:176:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name_copy, name, context->name_len + 1); data/redland-1.0.17/src/rdf_storage_sqlite.c:373:52: [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). query->query = LIBRDF_MALLOC(unsigned char*, strlen((char *)request) + 1); data/redland-1.0.17/src/rdf_storage_sqlite.c:514: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). expression = LIBRDF_MALLOC(unsigned char*, strlen(field) + 3 + uri_e_len + 1); data/redland-1.0.17/src/rdf_storage_sqlite.c:549: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). blank_len = strlen((const char*)blank); data/redland-1.0.17/src/rdf_storage_sqlite.c:555: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). strlen(field) + 3 + blank_e_len + 1); data/redland-1.0.17/src/rdf_storage_sqlite.c:611: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(language); data/redland-1.0.17/src/rdf_storage_virtuoso.c:312: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). hd_value.size = strlen(val); data/redland-1.0.17/src/rdf_storage_virtuoso.c:387: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). hd_value.size = strlen(val); data/redland-1.0.17/src/rdf_storage_virtuoso.c:632:5: [1] (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 character. strcpy(ret, "<"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:634:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ret, ">"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:647: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). langlen = strlen(lang); data/redland-1.0.17/src/rdf_storage_virtuoso.c:652: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). datatypelen = strlen((const char*)datatype); data/redland-1.0.17/src/rdf_storage_virtuoso.c:659:5: [1] (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 character. strcpy(ret, "\""); data/redland-1.0.17/src/rdf_storage_virtuoso.c:661:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ret, "\""); data/redland-1.0.17/src/rdf_storage_virtuoso.c:662: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(lang && strlen(lang)) { data/redland-1.0.17/src/rdf_storage_virtuoso.c:663:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ret, "@"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:669:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ret, ">"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:674: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). ret = LIBRDF_MALLOC(char*, strlen(value) + 5); data/redland-1.0.17/src/rdf_storage_virtuoso.c:681:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(ret, ">"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:719: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). ctxt_node = LIBRDF_MALLOC(char*, strlen(context->model_name) + 4); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1095: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(context->password) + strlen("PWD=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1095: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). len += (strlen(context->password) + strlen("PWD=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1097: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(context->user) + strlen("UID=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1097: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). len += (strlen(context->user) + strlen("UID=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1099: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(context->dsn) + strlen("DSN=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1099: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). len += (strlen(context->dsn) + strlen("DSN=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1101: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(context->host) + strlen("HOST=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1101: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). len += (strlen(context->host) + strlen("HOST=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1103: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(context->database) + strlen("DATABASE=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1103: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). len += (strlen(context->database) + strlen("DATABASE=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1105: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(context->charset) + strlen("CHARSET=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1105: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). len += (strlen(context->charset) + strlen("CHARSET=;")); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1111: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). context->model_name = LIBRDF_MALLOC(char*, strlen(name) + 1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1131:3: [1] (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 character. strcpy(context->conn_str, ""); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1135:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(context->conn_str, ";"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1140:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(context->conn_str, ";"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1145:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(context->conn_str, ";"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1150:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(context->conn_str, ";"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1155:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(context->conn_str, ";"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1160:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(context->conn_str, ";"); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1334: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). strlen(model_size) + strlen(context->model_name) + 2); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1334: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(model_size) + strlen(context->model_name) + 2); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1493: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(data)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1517: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(uri)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1527: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). bnode = LIBRDF_MALLOC(char*, strlen(value) + 5); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1534: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(bnode)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1570: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(uri)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1586: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). bnode = LIBRDF_MALLOC(char*, strlen(value) + 5); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1601: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(bnode)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1628: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(value)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1634: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(lang)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1648: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(value)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1655: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(datatype)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1669: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). ulen = LIBRDF_BAD_CAST(SQLUINTEGER, strlen(value)); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1884: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). query = LIBRDF_MALLOC(char*, strlen(find_statement)+ strlen(ctxt_node)+ strlen(subject) + strlen(predicate) + strlen(object) + 1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1884:56: [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). query = LIBRDF_MALLOC(char*, strlen(find_statement)+ strlen(ctxt_node)+ strlen(subject) + strlen(predicate) + strlen(object) + 1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1884: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). query = LIBRDF_MALLOC(char*, strlen(find_statement)+ strlen(ctxt_node)+ strlen(subject) + strlen(predicate) + strlen(object) + 1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1884:93: [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). query = LIBRDF_MALLOC(char*, strlen(find_statement)+ strlen(ctxt_node)+ strlen(subject) + strlen(predicate) + strlen(object) + 1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:1884:113: [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). query = LIBRDF_MALLOC(char*, strlen(find_statement)+ strlen(ctxt_node)+ strlen(subject) + strlen(predicate) + strlen(object) + 1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:2058: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). query = LIBRDF_MALLOC(char*, strlen(sdelete_match) + data/redland-1.0.17/src/rdf_storage_virtuoso.c:2059: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). strlen(ctxt_node)*2 + strlen(subject)*2 + data/redland-1.0.17/src/rdf_storage_virtuoso.c:2059:51: [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(ctxt_node)*2 + strlen(subject)*2 + data/redland-1.0.17/src/rdf_storage_virtuoso.c:2060: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). strlen(predicate)*2 + strlen(object)*2 +1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:2060:51: [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(predicate)*2 + strlen(object)*2 +1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:2306:8: [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(s_subject) == 0) { data/redland-1.0.17/src/rdf_storage_virtuoso.c:2313:8: [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(s_predicate) == 0) { data/redland-1.0.17/src/rdf_storage_virtuoso.c:2320:8: [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(s_object) == 0) { data/redland-1.0.17/src/rdf_storage_virtuoso.c:2339: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). query = LIBRDF_MALLOC(char*, strlen(find_statement) + data/redland-1.0.17/src/rdf_storage_virtuoso.c:2340: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). strlen(ctxt_node) + strlen(s_subject) + data/redland-1.0.17/src/rdf_storage_virtuoso.c:2340:52: [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(ctxt_node) + strlen(s_subject) + data/redland-1.0.17/src/rdf_storage_virtuoso.c:2341: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). strlen(s_predicate) + strlen(s_object)+1); data/redland-1.0.17/src/rdf_storage_virtuoso.c:2341:54: [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(s_predicate) + strlen(s_object)+1); data/redland-1.0.17/src/rdf_uri.c:125: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). return librdf_new_uri2(world, uri_string, strlen((const char*)uri_string)); data/redland-1.0.17/src/rdf_uri.c:224: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). uri_string_len = strlen((const char*)uri_string); data/redland-1.0.17/src/rdf_uri.c:232:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)new_uri_string, (const char*)base_uri_string, data/redland-1.0.17/src/rdf_utf8.c:382: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). int test_utf8_string_length = strlen((const char*)test_utf8_string); data/redland-1.0.17/src/rdf_utf8.c:384: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). int result_latin1_string_length=strlen((const char*)result_latin1_string); data/redland-1.0.17/src/rdf_utf8.c:386: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). int result_utf8_string_length = strlen((const char*)result_utf8_string); data/redland-1.0.17/utils/rdf-tree.c:99: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). malloc(strlen(opts.host) + strlen(opts.database) + strlen(opts.user) + data/redland-1.0.17/utils/rdf-tree.c:99: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). malloc(strlen(opts.host) + strlen(opts.database) + strlen(opts.user) + data/redland-1.0.17/utils/rdf-tree.c:99:58: [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). malloc(strlen(opts.host) + strlen(opts.database) + strlen(opts.user) + data/redland-1.0.17/utils/rdf-tree.c:100: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). strlen(opts.password) + 120); data/redland-1.0.17/utils/rdf-tree.c:112: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). storage_options = malloc(strlen(opts.directory) + 120); data/redland-1.0.17/utils/rdf-tree.c:377: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). buffer = malloc(strlen(optarg) + 1); data/redland-1.0.17/utils/rdf-tree.c:384:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buffer, optarg, strlen(optarg) + 1); data/redland-1.0.17/utils/rdf-tree.c:384: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). strncpy(buffer, optarg, strlen(optarg) + 1); data/redland-1.0.17/utils/rdf-tree.c:463:17: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c2 = getchar()) != '\n') { data/redland-1.0.17/utils/rdfproc.c:407:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, storage_password, size); data/redland-1.0.17/utils/rdfproc.c:412:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc=fgetc(stdin); /* short enough that I don't care to use fread */ ANALYSIS SUMMARY: Hits = 734 Lines analyzed = 63748 in approximately 1.52 seconds (41802 lines/second) Physical Source Lines of Code (SLOC) = 37725 Hits@level = [0] 617 [1] 297 [2] 257 [3] 24 [4] 156 [5] 0 Hits@level+ = [0+] 1351 [1+] 734 [2+] 437 [3+] 180 [4+] 156 [5+] 0 Hits/KSLOC@level+ = [0+] 35.8118 [1+] 19.4566 [2+] 11.5838 [3+] 4.77137 [4+] 4.13519 [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.