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/ding-libs-0.6.1/dhash/dhash.h
Examining data/ding-libs-0.6.1/dhash/dhash_ut_check.c
Examining data/ding-libs-0.6.1/dhash/dhash.c
Examining data/ding-libs-0.6.1/dhash/examples/dhash_example.c
Examining data/ding-libs-0.6.1/dhash/examples/dhash_test.c
Examining data/ding-libs-0.6.1/refarray/ref_array.h
Examining data/ding-libs-0.6.1/refarray/ref_array_ut.c
Examining data/ding-libs-0.6.1/refarray/ref_array.c
Examining data/ding-libs-0.6.1/path_utils/path_utils_ut.c
Examining data/ding-libs-0.6.1/path_utils/path_utils.c
Examining data/ding-libs-0.6.1/path_utils/path_utils.h
Examining data/ding-libs-0.6.1/basicobjects/simplebuffer.h
Examining data/ding-libs-0.6.1/basicobjects/simplebuffer.c
Examining data/ding-libs-0.6.1/basicobjects/simplebuffer_ut.c
Examining data/ding-libs-0.6.1/ini/ini_comment_ut.c
Examining data/ding-libs-0.6.1/ini/ini_parse_ut.c
Examining data/ding-libs-0.6.1/ini/ini_augment_ut.c
Examining data/ding-libs-0.6.1/ini/ini_print.c
Examining data/ding-libs-0.6.1/ini/ini_defines.h
Examining data/ding-libs-0.6.1/ini/ini_valueobj_ut.c
Examining data/ding-libs-0.6.1/ini/ini_list.c
Examining data/ding-libs-0.6.1/ini/ini_list_valueobj.c
Examining data/ding-libs-0.6.1/ini/ini_configobj.c
Examining data/ding-libs-0.6.1/ini/ini_comment.h
Examining data/ding-libs-0.6.1/ini/ini_config_priv.h
Examining data/ding-libs-0.6.1/ini/ini_get_valueobj.c
Examining data/ding-libs-0.6.1/ini/ini_get_array.c
Examining data/ding-libs-0.6.1/ini/ini_metadata.h
Examining data/ding-libs-0.6.1/ini/ini_valueobj.h
Examining data/ding-libs-0.6.1/ini/ini_save_ut.c
Examining data/ding-libs-0.6.1/ini/ini_parse.c
Examining data/ding-libs-0.6.1/ini/ini_get_value.c
Examining data/ding-libs-0.6.1/ini/ini_configobj.h
Examining data/ding-libs-0.6.1/ini/ini_serialize.c
Examining data/ding-libs-0.6.1/ini/ini_configmod_ut.c
Examining data/ding-libs-0.6.1/ini/ini_config.h
Examining data/ding-libs-0.6.1/ini/ini_get_array_valueobj.c
Examining data/ding-libs-0.6.1/ini/ini_config.c
Examining data/ding-libs-0.6.1/ini/ini_config_ut.c
Examining data/ding-libs-0.6.1/ini/ini_augment.c
Examining data/ding-libs-0.6.1/ini/ini_comment.c
Examining data/ding-libs-0.6.1/ini/ini_validators_ut_check.c
Examining data/ding-libs-0.6.1/ini/ini_metadata.c
Examining data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c
Examining data/ding-libs-0.6.1/ini/ini_configmod.h
Examining data/ding-libs-0.6.1/ini/ini_parse_ut_check.c
Examining data/ding-libs-0.6.1/ini/ini_configmod.c
Examining data/ding-libs-0.6.1/ini/ini_augment_ut_check.c
Examining data/ding-libs-0.6.1/ini/ini_valueobj.c
Examining data/ding-libs-0.6.1/ini/ini_fileobj.c
Examining data/ding-libs-0.6.1/collection/collection_queue_ut.c
Examining data/ding-libs-0.6.1/collection/collection_stack.h
Examining data/ding-libs-0.6.1/collection/collection_tools.h
Examining data/ding-libs-0.6.1/collection/collection_iter.c
Examining data/ding-libs-0.6.1/collection/collection_queue.h
Examining data/ding-libs-0.6.1/collection/collection_ut.c
Examining data/ding-libs-0.6.1/collection/collection_priv.h
Examining data/ding-libs-0.6.1/collection/collection_cnv.c
Examining data/ding-libs-0.6.1/collection/collection_queue.c
Examining data/ding-libs-0.6.1/collection/collection.c
Examining data/ding-libs-0.6.1/collection/collection.h
Examining data/ding-libs-0.6.1/collection/collection_cmp.c
Examining data/ding-libs-0.6.1/collection/collection_stack.c
Examining data/ding-libs-0.6.1/collection/collection_stack_ut.c
Examining data/ding-libs-0.6.1/collection/collection_tools.c
Examining data/ding-libs-0.6.1/trace/trace.h

FINAL RESULTS:

data/ding-libs-0.6.1/ini/ini_config_ut.c:1325:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod("./ini.conf", 0664);
data/ding-libs-0.6.1/ini/ini_fileobj.c:1290:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    ret = chmod(file_ctx->filename, mode);
data/ding-libs-0.6.1/ini/ini_fileobj.c:1298:11:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    ret = chown(file_ctx->filename, uid, gid);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1229:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    error = chmod(outfile, S_IRUSR | S_IWUSR);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1396:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    error = chmod(outfile, S_IRUSR | S_IWUSR);
data/ding-libs-0.6.1/ini/ini_validators_ut_check.c:57:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    ret = chmod(TEST_RULES_FILE, 0664);
data/ding-libs-0.6.1/collection/collection_tools.c:511:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        len = sprintf(&buf_data->buffer[buf_data->length],
data/ding-libs-0.6.1/ini/ini_augment_ut.c:126: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.
        if (strchr(line, '%')) fprintf(fout, line, exp_src, "/ini/ini.d");
data/ding-libs-0.6.1/ini/ini_augment_ut.c:240: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(command);
data/ding-libs-0.6.1/ini/ini_augment_ut.c:310:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_augment_ut.c:322:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_augment_ut.c:323:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_augment_ut.c:336:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_config.c:915:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(file_name, "%s%s%s.conf", config_dir, SLASH, application);
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:769:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:1109:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c:111: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.
    ret = system(command);
data/ding-libs-0.6.1/ini/ini_configobj.c:1039:13:  [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(line, MAX_ERROR_LINE, LINE_FORMAT,
data/ding-libs-0.6.1/ini/ini_parse_ut.c:374:21:  [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.
            error = system(command);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:607:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:811:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1181:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1221:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1388:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1495:13:  [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.
    error = system(command);
data/ding-libs-0.6.1/ini/ini_print.c:317:13:  [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(file, error_header, (char *)col_get_item_data(item));
data/ding-libs-0.6.1/ini/ini_print.c:322:13:  [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(file, line_format,
data/ding-libs-0.6.1/ini/ini_save_ut.c:184:17:  [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.
        error = system(command);
data/ding-libs-0.6.1/ini/ini_validators_ut_check.c:782:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(input_rules, input_rules_template, case_insensitive_values[i]);
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:54:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(comment, TEST_SIZE, template, i);
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:625: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.
    VOOUT(system("cat test.ini"));
data/ding-libs-0.6.1/trace/trace.h:118:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(mstr, "%s returning:", __FUNCTION__); \
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:185:15:  [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.
        arg = getopt_long(argc, argv, "c:vqt:d:s:l:h:r:",
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:235:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom(seed);
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:254:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            val = random();
data/ding-libs-0.6.1/ini/ini_augment_ut.c:229: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_augment_ut.c:231: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_augment_ut.c:373:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:92: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:246: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_comment_ut.c:413:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/ini/ini_config_ut.c:1555:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/ini/ini_config_ut.c:1561: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:113: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:114: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:819: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:1137:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c:84: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:275: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:320: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:492: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:667: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:668: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:931: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:932: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1211: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1214: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1378: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1381: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1778: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:2933: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3008: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3106: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3204:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/ini/ini_save_ut.c:86: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.
    srcdir = getenv("srcdir");
data/ding-libs-0.6.1/ini/ini_save_ut.c:87: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.
    builddir = getenv("builddir");
data/ding-libs-0.6.1/ini/ini_save_ut.c:243:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:727:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/refarray/ref_array_ut.c:760:15:  [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.
        var = getenv("COMMON_TEST_VERBOSE");
data/ding-libs-0.6.1/basicobjects/simplebuffer.c:126: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(data->buffer + data->length, data_in, len);
data/ding-libs-0.6.1/basicobjects/simplebuffer.c:154: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(data->buffer + data->length, str, len);
data/ding-libs-0.6.1/collection/collection.c:279: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(item->data, item_data, length);
data/ding-libs-0.6.1/collection/collection.c:1415: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(new_name_path->name, name, length);
data/ding-libs-0.6.1/collection/collection.c:1423:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&new_name_path->name[new_name_path->length], property, property_len);
data/ding-libs-0.6.1/collection/collection.c:1860: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(current->data, update_data->data, current->length);
data/ding-libs-0.6.1/collection/collection.c:2368:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(offset, traverse_data->current_path->name,
data/ding-libs-0.6.1/collection/collection.c:2373:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(offset, current->property, current->property_len);
data/ding-libs-0.6.1/collection/collection.c:2860:13:  [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(&(traverse_data.given_name),
data/ding-libs-0.6.1/collection/collection.c:2894:13:  [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(&(traverse_data.given_name),
data/ding-libs-0.6.1/collection/collection.c:3134: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(item->data, data, item->length);
data/ding-libs-0.6.1/collection/collection_cnv.c:304:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&ptr, &string, sizeof(void *));
data/ding-libs-0.6.1/collection/collection_tools.c:72:39:  [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.
            printf("%02X", ((unsigned char *)(data))[i]);
data/ding-libs-0.6.1/collection/collection_tools.c:135:39:  [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.
            printf("%02X", ((unsigned char *)(data))[i]);
data/ding-libs-0.6.1/collection/collection_tools.c:145:39:  [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.
            printf("%02X", ((unsigned char *)(data))[i]);
data/ding-libs-0.6.1/collection/collection_tools.c:347: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(buf_data->buffer + buf_data->length, data, len);
data/ding-libs-0.6.1/collection/collection_tools.c:476:13:  [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(&buf_data->buffer[buf_data->length + i *2] + 1,
data/ding-libs-0.6.1/collection/collection_tools.c:477:61:  [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.
                    "%02X", (unsigned int)(((const unsigned char *)(data))[i]));
data/ding-libs-0.6.1/collection/collection_tools.c:484:15:  [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.
        len = sprintf(&buf_data->buffer[buf_data->length],
data/ding-libs-0.6.1/collection/collection_tools.c:489:15:  [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.
        len = sprintf(&buf_data->buffer[buf_data->length],
data/ding-libs-0.6.1/collection/collection_tools.c:494:15:  [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.
        len = sprintf(&buf_data->buffer[buf_data->length],
data/ding-libs-0.6.1/collection/collection_tools.c:500:15:  [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.
        len = sprintf(&buf_data->buffer[buf_data->length],
data/ding-libs-0.6.1/collection/collection_tools.c:506:15:  [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.
        len = sprintf(&buf_data->buffer[buf_data->length],
data/ding-libs-0.6.1/collection/collection_ut.c:100:21:  [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.
        if (strcmp((char *)col_get_item_data(item), results[i+2]) != 0) {
data/ding-libs-0.6.1/collection/collection_ut.c:1470:22:  [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.
            (strcmp((char *)(col_get_item_data(item)),
data/ding-libs-0.6.1/dhash/dhash.c:995:13:  [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(element->entry.key.str, key->str, len);
data/ding-libs-0.6.1/dhash/examples/dhash_example.c:29: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 bar[128];
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:58: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.
    static char buf[BUF_SIZE];
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:79: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.
    static char buf[BUF_SIZE];
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:116: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.
    static char buf[BUF_SIZE];
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:159: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 buf[BUF_SIZE];
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:203:30:  [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).
            directory_bits = atoi(optarg);
data/ding-libs-0.6.1/dhash/examples/dhash_test.c:206:28:  [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).
            segment_bits = atoi(optarg);
data/ding-libs-0.6.1/ini/ini_augment.c:367: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 fullname[PATH_MAX + 1] = {0};
data/ding-libs-0.6.1/ini/ini_augment_ut.c:106:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fsrc = fopen(srcfile, "r");
data/ding-libs-0.6.1/ini/ini_augment_ut.c:114:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fout = fopen(destfile, "w");
data/ding-libs-0.6.1/ini/ini_augment_ut.c:168:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(filename, mode);
data/ding-libs-0.6.1/ini/ini_augment_ut.c:192: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 indir[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_augment_ut.c:193: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 srcname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_augment_ut.c:194: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 filename[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_augment_ut.c:195: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 resname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_augment_ut.c:196: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:37:15:  [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 *f = fopen(path, "w");
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:66: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 base_path[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:67: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 augment_path[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:85:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *test_sections[3] = { "section", "section", "section" };
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:86:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *test_attributes[3] = { "key3", "key1", "key1" };
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:87:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *test_attribute_values[3] = {"exists", "first", "augment" };
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:239: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 empty_dir_path[PATH_MAX] = {0};
data/ding-libs-0.6.1/ini/ini_comment.c:242: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(&input, &line, sizeof(char *));
data/ding-libs-0.6.1/ini/ini_comment.c:576: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(line, &ln, sizeof(char *));
data/ding-libs-0.6.1/ini/ini_config.c:223: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 buf[BUFFER_SIZE+1];
data/ding-libs-0.6.1/ini/ini_config.c:645: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 abs_name[PATH_MAX + 1];
data/ding-libs-0.6.1/ini/ini_config.c:646: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 buff[CONVERSION_BUFFER];
data/ding-libs-0.6.1/ini/ini_config.c:670:23:  [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).
        config_file = fopen(config_filename, "r");
data/ding-libs-0.6.1/ini/ini_config_ut.c:200: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).
    int fd = open("./ini.conf", O_RDONLY);
data/ding-libs-0.6.1/ini/ini_config_ut.c:233:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("./ini.conf", O_RDONLY);
data/ding-libs-0.6.1/ini/ini_config_ut.c:1463:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("./ini.conf", O_RDONLY);
data/ding-libs-0.6.1/ini/ini_configmod.c:409: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 sp[3] = "  ";
data/ding-libs-0.6.1/ini/ini_configmod.c:932:9:  [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(ptr, "%02x", *((unsigned char *)(value) + i));
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:88: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 indir[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:89: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 srcname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:90: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 resname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:91: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:763:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(resname, "w");
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:790:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(path, "w");
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:809: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 srcname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:810: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 resname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:811: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_configmod_ut.c:1103:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(resname, "w");
data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c:76: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 expected_fn[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c:77: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 res_fn[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c:78: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c:91:19:  [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).
    expected_fd = mkstemp(expected_fn);
data/ding-libs-0.6.1/ini/ini_configmod_ut_check.c:101:14:  [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).
    res_fd = mkstemp(res_fn);
data/ding-libs-0.6.1/ini/ini_fileobj.c:245: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 read_buf[ICONV_BUFFER+1];
data/ding-libs-0.6.1/ini/ini_fileobj.c:246: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 result_buf[ICONV_BUFFER];
data/ding-libs-0.6.1/ini/ini_fileobj.c:402: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 alt_buffer[2] = {0, 0};
data/ding-libs-0.6.1/ini/ini_fileobj.c:438:16:  [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(file_ctx->filename, "r");
data/ding-libs-0.6.1/ini/ini_fileobj.c:697: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 dirbuf[PATH_MAX * 2 + 1];
data/ding-libs-0.6.1/ini/ini_fileobj.c:824: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).
        fd = open(filename, O_RDONLY);
data/ding-libs-0.6.1/ini/ini_fileobj.c:882: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 result_buf[ICONV_BUFFER];
data/ding-libs-0.6.1/ini/ini_fileobj.c:967: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 buffer[4];
data/ding-libs-0.6.1/ini/ini_get_array.c:52: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 locsep[4];
data/ding-libs-0.6.1/ini/ini_get_array.c:111:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dest, start, len);
data/ding-libs-0.6.1/ini/ini_get_array_valueobj.c:55: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 locsep[MAX_SEP_LEN + 1];
data/ding-libs-0.6.1/ini/ini_get_array_valueobj.c:123:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(dest, start, len);
data/ding-libs-0.6.1/ini/ini_get_array_valueobj.c:158: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(dest, start, len);
data/ding-libs-0.6.1/ini/ini_metadata.c:105: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 buff[CONVERSION_BUFFER];
data/ding-libs-0.6.1/ini/ini_parse.c:519:13:  [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(&(po->merge_key), &key, sizeof(char *));
data/ding-libs-0.6.1/ini/ini_parse.c:1026: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(po->key, str, len);
data/ding-libs-0.6.1/ini/ini_parse.c:1053: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(dupval, eq, len);
data/ding-libs-0.6.1/ini/ini_parse.c:1240: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(dupval, start, len);
data/ding-libs-0.6.1/ini/ini_parse_ut.c:102:16:  [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(in_filename, "r");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:220:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff = fopen(out_filename, "w");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:257: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:258:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char outfile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:301: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:302: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 outfile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:346: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:347: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 outfile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:348: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:399:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff = fopen(checkname, "w");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:484: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 filename[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:487: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:577:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff = fopen(resname, "w");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:656: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 filename[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:657: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 checkname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:658: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 resname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:659: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:660: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 mode[VAL_SIZE];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:787:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff = fopen(resname, "w");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:915: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 firstname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:916: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 secondname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:917: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 resname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:918: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 checkname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:919: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:920: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 msg[VAL_SIZE];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:921: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 mode[VAL_SIZE];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1157:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff = fopen(resname, "w");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1202: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1203: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 outfile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1204: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1369: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1370: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 outfile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1371: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1655: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1660: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.
    struct a_t { char section[100];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1661: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.
                 char value[100];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1664: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.
                 char sep[10];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1665: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.
                 char message[100]; } array_test[NUM_TESTS] =
data/ding-libs-0.6.1/ini/ini_parse_ut.c:2918: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3001: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3100: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 infile[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3163:9:  [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).
    f = fopen("bom2be","wb");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3166:9:  [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).
    f = fopen("bom2le","wb");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3169:9:  [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).
    f = fopen("bom4be","wb");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3172:9:  [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).
    f = fopen("bom4le","wb");
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3175:9:  [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).
    f = fopen("bom3","wb");
data/ding-libs-0.6.1/ini/ini_parse_ut_check.c:248: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 big_val_cfg[CFGBUF_LEN] = {0};
data/ding-libs-0.6.1/ini/ini_parse_ut_check.c:249: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 value[VALUE_LEN] = {0};
data/ding-libs-0.6.1/ini/ini_save_ut.c:50: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 srcname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_save_ut.c:51: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 resname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_save_ut.c:52: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 cmpname[PATH_MAX];
data/ding-libs-0.6.1/ini/ini_save_ut.c:53: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 command[PATH_MAX * 3];
data/ding-libs-0.6.1/ini/ini_validators_ut_check.c:51:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(TEST_RULES_FILE, "w");
data/ding-libs-0.6.1/ini/ini_validators_ut_check.c:767: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 input_rules[sizeof(input_rules_template) + 10];
data/ding-libs-0.6.1/ini/ini_valueobj.c:139: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(copy + adj, buf, len);
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:49: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 comment[TEST_SIZE];
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:396:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff = fopen("test.ini","wt");
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:491: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 comment[100];
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:498:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ff = fopen("test.ini","a");
data/ding-libs-0.6.1/path_utils/path_utils.c:88: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 tmp_path[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils.c:113: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 tmp_path[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils.c:134: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 tmp_path[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils.c:157: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 tmp_path[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils.c:514: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 absolute_path[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils.c:526: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 dir_path[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils.c:559: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 entry_path[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:49: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:50: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 cwd[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:92: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 neg[3];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:93: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:103: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:104: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 cwd[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:130: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 neg[3];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:131: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:158: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 dir[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:159: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 base[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:160: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 cwd[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:199: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 dir[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:200: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 base[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:211: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:212: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 p2[9];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:252: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 small[3];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:253: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 small2[5];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:254: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 small3[7];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:255: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 p2[10];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:290: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:291: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 p2[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:292: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 cwd[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:319: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 small[1];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:320: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 cwd[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:347: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:348: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 p2[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:349: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 cwd[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:367: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 small[1];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:463: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 norm[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:464: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 small[8];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:498: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 norm[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:499: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 small[4];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:511: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 common[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:512: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 small[5];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:546: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 small[1];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:547: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 small2[4];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:560: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 p[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:561: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 cwd[PATH_MAX];
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:576: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 small[4];
data/ding-libs-0.6.1/refarray/ref_array.c:202:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((unsigned char *)(ra->storage) + ra->len * ra->elsize,
data/ding-libs-0.6.1/refarray/ref_array.c:234: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(acptr,
data/ding-libs-0.6.1/refarray/ref_array.c:308: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((unsigned char *)(ra->storage) + i * ra->elsize,
data/ding-libs-0.6.1/refarray/ref_array.c:314: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((unsigned char *)(ra->storage) + idx * ra->elsize,
data/ding-libs-0.6.1/refarray/ref_array.c:351: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((unsigned char *)(ra->storage) + idx * ra->elsize,
data/ding-libs-0.6.1/refarray/ref_array.c:387: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((unsigned char *)(ra->storage) + (i - 1) * ra->elsize,
data/ding-libs-0.6.1/refarray/ref_array.c:458: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(temp,
data/ding-libs-0.6.1/refarray/ref_array.c:461: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((unsigned char *)(ra->storage) +  idx2 * ra->elsize,
data/ding-libs-0.6.1/refarray/ref_array.c:464: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((unsigned char *)(ra->storage) +  idx1 * ra->elsize,
data/ding-libs-0.6.1/refarray/ref_array.c:530:13:  [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((unsigned char *)(new_ra->storage) + idx * new_ra->elsize,
data/ding-libs-0.6.1/trace/trace.h:117:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char mstr[200]; \
data/ding-libs-0.6.1/basicobjects/simplebuffer_ut.c:61: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(str1),
data/ding-libs-0.6.1/basicobjects/simplebuffer_ut.c:78: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(str2),
data/ding-libs-0.6.1/basicobjects/simplebuffer_ut.c:95: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(str3),
data/ding-libs-0.6.1/collection/collection.c:269: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).
    TRACE_INFO_NUMBER("Item property strlen", strlen(item->property));
data/ding-libs-0.6.1/collection/collection.c:1767: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).
        traverse_data->name_len_to_find = strlen(property_to_find);
data/ding-libs-0.6.1/collection/collection.c:2862: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).
            traverse_data.given_len = strlen(as_property);
data/ding-libs-0.6.1/collection/collection.c:2896: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).
            traverse_data.given_len = strlen(as_property);
data/ding-libs-0.6.1/collection/collection.c:3110: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).
        TRACE_INFO_NUMBER("Item property strlen", strlen(item->property));
data/ding-libs-0.6.1/collection/collection_cnv.c:51: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).
    if (length == 0) length = strlen(string) + 1;
data/ding-libs-0.6.1/collection/collection_cnv.c:301: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).
    if (length == 0) length = strlen(string) + 1;
data/ding-libs-0.6.1/collection/collection_cnv.c:1002: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).
    if (length == 0) length = strlen(string) + 1;
data/ding-libs-0.6.1/collection/collection_cnv.c:1156: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).
    else len = strlen(string) + 1;
data/ding-libs-0.6.1/dhash/dhash.c:989: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).
            len = strlen(key->c_str) + 1;
data/ding-libs-0.6.1/dhash/dhash.h:54:41:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
one whose key type was an unsigned long equal to 1 and one whose key type was
data/ding-libs-0.6.1/dhash/dhash.h:55:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
a string equal to "1" they would not match, these are considered two
data/ding-libs-0.6.1/dhash/examples/dhash_example.c:55:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(my_data->bar, bar, sizeof(my_data->bar));
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:43:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (bytes != strlen(text)) {
data/ding-libs-0.6.1/ini/ini_augment_ut_check.c:254: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).
    ret = ini_config_file_from_mem(base_cfg, strlen(base_cfg),
data/ding-libs-0.6.1/ini/ini_comment.c:253: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 (length == 0) input_len = strlen(input);
data/ding-libs-0.6.1/ini/ini_config.c:69: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(buffer);
data/ding-libs-0.6.1/ini/ini_config.c:898: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).
        file_name = malloc(strlen(config_dir) + strlen(application) + NAME_OVERHEAD);
data/ding-libs-0.6.1/ini/ini_config.c:898: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).
        file_name = malloc(strlen(config_dir) + strlen(application) + NAME_OVERHEAD);
data/ding-libs-0.6.1/ini/ini_config_ut.c:1564: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).
        len = strlen(srcdir) + sizeof(inidir);
data/ding-libs-0.6.1/ini/ini_configmod.c:427: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).
        len = strlen(value_str_arr[i]);
data/ding-libs-0.6.1/ini/ini_configmod.c:441: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(value_str_arr[count_str - 1]);
data/ding-libs-0.6.1/ini/ini_configmod.c:1290: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).
                              strlen(INI_SECTION_KEY),
data/ding-libs-0.6.1/ini/ini_get_array.c:80:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(locsep, sep, 3);
data/ding-libs-0.6.1/ini/ini_get_array.c:82: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).
        lensep = strlen(locsep) + 1;
data/ding-libs-0.6.1/ini/ini_get_array_valueobj.c:89:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(locsep, sep, MAX_SEP_LEN);
data/ding-libs-0.6.1/ini/ini_get_array_valueobj.c:91:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        lensep = strlen(locsep) + 1;
data/ding-libs-0.6.1/ini/ini_get_valueobj.c:53: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(section);
data/ding-libs-0.6.1/ini/ini_get_valueobj.c:179: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).
        ini_config->section_len = strlen(to_find);
data/ding-libs-0.6.1/ini/ini_parse.c:333: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).
        TRACE_INFO_NUMBER("Strlen:", strlen(buffer));
data/ding-libs-0.6.1/ini/ini_parse_ut.c:693: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).
                                         strlen(mode),
data/ding-libs-0.6.1/ini/ini_parse_ut.c:962: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).
                                         strlen(mode),
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1085: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).
                                                 strlen(msg),
data/ding-libs-0.6.1/ini/ini_parse_ut.c:1114: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).
                                                 strlen(msg),
data/ding-libs-0.6.1/ini/ini_parse_ut.c:3080: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).
    if(value[strlen(value) - 1] == ' ') {
data/ding-libs-0.6.1/ini/ini_parse_ut_check.c:57: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).
    ret = ini_config_file_from_mem(non_kvp_cfg, strlen(non_kvp_cfg),
data/ding-libs-0.6.1/ini/ini_parse_ut_check.c:74: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).
    ret = ini_config_file_from_mem(non_kvp_cfg, strlen(non_kvp_cfg),
data/ding-libs-0.6.1/ini/ini_parse_ut_check.c:189: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).
                                       strlen(file_contents[iter]),
data/ding-libs-0.6.1/ini/ini_parse_ut_check.c:258: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).
    ret = ini_config_file_from_mem(big_val_cfg, strlen(big_val_cfg),
data/ding-libs-0.6.1/ini/ini_validators_ut_check.c:53: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).
    written = fwrite(rules, 1, strlen(rules), file);
data/ding-libs-0.6.1/ini/ini_validators_ut_check.c:54: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).
    fail_unless(written == strlen(rules));
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:169: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).
                                    strlen(val),
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:235: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).
    expected_len = strlen(expected);
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:347: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).
    error = value_set_keylen(vo, strlen("foobar"));
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:356: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).
                         strlen(strval),
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:416: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(strvalue),
data/ding-libs-0.6.1/ini/ini_valueobj_ut.c:529: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(strvalue),
data/ding-libs-0.6.1/path_utils/path_utils.c:104:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(rel_path, dirname(tmp_path), rel_path_size);
data/ding-libs-0.6.1/path_utils/path_utils.c:119:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp_path, path, sizeof(tmp_path));
data/ding-libs-0.6.1/path_utils/path_utils.c:121:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(base_name, basename(tmp_path), base_name_size);
data/ding-libs-0.6.1/path_utils/path_utils.c:140:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp_path, path, sizeof(tmp_path));
data/ding-libs-0.6.1/path_utils/path_utils.c:142:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dir_path, dirname(tmp_path), dir_path_size);
data/ding-libs-0.6.1/path_utils/path_utils.c:164:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp_path, path, sizeof(tmp_path));
data/ding-libs-0.6.1/path_utils/path_utils.c:166:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(base_name, basename(tmp_path), base_name_size);
data/ding-libs-0.6.1/path_utils/path_utils.c:169:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tmp_path, path, sizeof(tmp_path));
data/ding-libs-0.6.1/path_utils/path_utils.c:171:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dir_path, dirname(tmp_path), dir_path_size);
data/ding-libs-0.6.1/path_utils/path_utils.c:180:9:  [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 character.
        strncpy(base_name, "", base_name_size);
data/ding-libs-0.6.1/path_utils/path_utils.c:531:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dir_path, path, sizeof(dir_path));
data/ding-libs-0.6.1/path_utils/path_utils.c:547:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ancestor, dir_path, ancestor_size);
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:309: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).
    buf_len = strlen(cwd) + strlen("foo") + 2;
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:309: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).
    buf_len = strlen(cwd) + strlen("foo") + 2;
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:329: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).
    small_len = strlen(cwd) + strlen("foo") + 1;
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:329: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).
    small_len = strlen(cwd) + strlen("foo") + 1;
data/ding-libs-0.6.1/path_utils/path_utils_ut.c:336: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).
    small_len = strlen(cwd) + 1;

ANALYSIS SUMMARY:

Hits = 345
Lines analyzed = 51589 in approximately 1.38 seconds (37277 lines/second)
Physical Source Lines of Code (SLOC) = 31826
Hits@level = [0] 1433 [1]  67 [2] 209 [3]  37 [4]  26 [5]   6
Hits@level+ = [0+] 1778 [1+] 345 [2+] 278 [3+]  69 [4+]  32 [5+]   6
Hits/KSLOC@level+ = [0+] 55.8663 [1+] 10.8402 [2+] 8.735 [3+] 2.16804 [4+] 1.00547 [5+] 0.188525
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.