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/cif-api-0.4.2/misc/basic_parsing.c
Examining data/cif-api-0.4.2/misc/parse_errors.c
Examining data/cif-api-0.4.2/misc/parser_callbacks.c
Examining data/cif-api-0.4.2/src/cif.c
Examining data/cif-api-0.4.2/src/cif.h
Examining data/cif-api-0.4.2/src/cif_error.h
Examining data/cif-api-0.4.2/src/ciffile.c
Examining data/cif-api-0.4.2/src/container.c
Examining data/cif-api-0.4.2/src/examples/addauthor.c
Examining data/cif-api-0.4.2/src/examples/syncheck.c
Examining data/cif-api-0.4.2/src/examples/table1.c
Examining data/cif-api-0.4.2/src/examples/table3.c
Examining data/cif-api-0.4.2/src/internal/buffer.h
Examining data/cif-api-0.4.2/src/internal/ciftypes.h
Examining data/cif-api-0.4.2/src/internal/compat.h
Examining data/cif-api-0.4.2/src/internal/sql.h
Examining data/cif-api-0.4.2/src/internal/utils.h
Examining data/cif-api-0.4.2/src/internal/value.h
Examining data/cif-api-0.4.2/src/loop.c
Examining data/cif-api-0.4.2/src/map.c
Examining data/cif-api-0.4.2/src/packet.c
Examining data/cif-api-0.4.2/src/parser.c
Examining data/cif-api-0.4.2/src/pktitr.c
Examining data/cif-api-0.4.2/src/tests/assert_cifs.h
Examining data/cif-api-0.4.2/src/tests/assert_doubles.h
Examining data/cif-api-0.4.2/src/tests/assert_value.h
Examining data/cif-api-0.4.2/src/tests/test.h
Examining data/cif-api-0.4.2/src/tests/test_analyze_string.c
Examining data/cif-api-0.4.2/src/tests/test_block_create_frame1.c
Examining data/cif-api-0.4.2/src/tests/test_block_create_frame2.c
Examining data/cif-api-0.4.2/src/tests/test_block_get_all_frames.c
Examining data/cif-api-0.4.2/src/tests/test_block_get_frame.c
Examining data/cif-api-0.4.2/src/tests/test_container_assert_block.c
Examining data/cif-api-0.4.2/src/tests/test_container_create_loop1.c
Examining data/cif-api-0.4.2/src/tests/test_container_create_loop2.c
Examining data/cif-api-0.4.2/src/tests/test_container_get_all_loops.c
Examining data/cif-api-0.4.2/src/tests/test_container_get_category_loop.c
Examining data/cif-api-0.4.2/src/tests/test_container_get_code.c
Examining data/cif-api-0.4.2/src/tests/test_container_get_item_loop.c
Examining data/cif-api-0.4.2/src/tests/test_container_get_value.c
Examining data/cif-api-0.4.2/src/tests/test_container_prune.c
Examining data/cif-api-0.4.2/src/tests/test_container_remove_item.c
Examining data/cif-api-0.4.2/src/tests/test_container_set_value1.c
Examining data/cif-api-0.4.2/src/tests/test_container_set_value2.c
Examining data/cif-api-0.4.2/src/tests/test_create.c
Examining data/cif-api-0.4.2/src/tests/test_create_block1.c
Examining data/cif-api-0.4.2/src/tests/test_create_block2.c
Examining data/cif-api-0.4.2/src/tests/test_get_all_blocks.c
Examining data/cif-api-0.4.2/src/tests/test_get_api_version.c
Examining data/cif-api-0.4.2/src/tests/test_get_block.c
Examining data/cif-api-0.4.2/src/tests/test_list_elements.c
Examining data/cif-api-0.4.2/src/tests/test_loop_add_item.c
Examining data/cif-api-0.4.2/src/tests/test_loop_destroy.c
Examining data/cif-api-0.4.2/src/tests/test_loop_get_names.c
Examining data/cif-api-0.4.2/src/tests/test_loop_misc.c
Examining data/cif-api-0.4.2/src/tests/test_loop_modification.c
Examining data/cif-api-0.4.2/src/tests/test_loop_packets.c
Examining data/cif-api-0.4.2/src/tests/test_loop_set_category.c
Examining data/cif-api-0.4.2/src/tests/test_multiple_cifs.c
Examining data/cif-api-0.4.2/src/tests/test_nested_frames.c
Examining data/cif-api-0.4.2/src/tests/test_nesting.c
Examining data/cif-api-0.4.2/src/tests/test_normalize.c
Examining data/cif-api-0.4.2/src/tests/test_packet_create.c
Examining data/cif-api-0.4.2/src/tests/test_packet_items.c
Examining data/cif-api-0.4.2/src/tests/test_packet_remove_item.c
Examining data/cif-api-0.4.2/src/tests/test_packet_set_item.c
Examining data/cif-api-0.4.2/src/tests/test_parse_10.c
Examining data/cif-api-0.4.2/src/tests/test_parse_cif1_invalid.c
Examining data/cif-api-0.4.2/src/tests/test_parse_cif1_quoting.c
Examining data/cif-api-0.4.2/src/tests/test_parse_complex_data.c
Examining data/cif-api-0.4.2/src/tests/test_parse_core.c
Examining data/cif-api-0.4.2/src/tests/test_parse_list_data.c
Examining data/cif-api-0.4.2/src/tests/test_parse_minimal.c
Examining data/cif-api-0.4.2/src/tests/test_parse_nested.c
Examining data/cif-api-0.4.2/src/tests/test_parse_simple_containers.c
Examining data/cif-api-0.4.2/src/tests/test_parse_simple_data.c
Examining data/cif-api-0.4.2/src/tests/test_parse_simple_loops.c
Examining data/cif-api-0.4.2/src/tests/test_parse_table_data.c
Examining data/cif-api-0.4.2/src/tests/test_parse_text_fields.c
Examining data/cif-api-0.4.2/src/tests/test_parse_triple.c
Examining data/cif-api-0.4.2/src/tests/test_parse_unicode.c
Examining data/cif-api-0.4.2/src/tests/test_table_elements.c
Examining data/cif-api-0.4.2/src/tests/test_ustrdup.c
Examining data/cif-api-0.4.2/src/tests/test_value_autoinit_numb.c
Examining data/cif-api-0.4.2/src/tests/test_value_clone.c
Examining data/cif-api-0.4.2/src/tests/test_value_copy_char.c
Examining data/cif-api-0.4.2/src/tests/test_value_create.c
Examining data/cif-api-0.4.2/src/tests/test_value_get_number.c
Examining data/cif-api-0.4.2/src/tests/test_value_init_char.c
Examining data/cif-api-0.4.2/src/tests/test_value_init_numb.c
Examining data/cif-api-0.4.2/src/tests/test_value_parse_numb.c
Examining data/cif-api-0.4.2/src/tests/test_value_set_quoted.c
Examining data/cif-api-0.4.2/src/tests/test_write_11.c
Examining data/cif-api-0.4.2/src/tests/test_write_complex.c
Examining data/cif-api-0.4.2/src/tests/test_write_frames.c
Examining data/cif-api-0.4.2/src/tests/test_write_loops.c
Examining data/cif-api-0.4.2/src/tests/test_write_simple.c
Examining data/cif-api-0.4.2/src/tools/linguist.c
Examining data/cif-api-0.4.2/src/utils.c
Examining data/cif-api-0.4.2/src/value.c

FINAL RESULTS:

data/cif-api-0.4.2/src/internal/utils.h:154:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACELINE fprintf(stderr, __FILE__ " line %d\n", __LINE__)
data/cif-api-0.4.2/src/internal/utils.h:161:31:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG_MSG(lead, msg) (fprintf(stderr, __FILE__ " line %d, %s: %s\n", __LINE__, (lead), (msg)), (msg))
data/cif-api-0.4.2/src/tests/assert_value.h:187:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, (rval == 0) ? "Table mismatch" : "Table match\n");
data/cif-api-0.4.2/src/tests/test.h:224:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    else { sprintf(_d, "%s/" DATA_DIR "/", _cifapi_src); } \
data/cif-api-0.4.2/src/tests/test_container_get_code.c:149:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_10.c:78:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_cif1_invalid.c:57:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_cif1_quoting.c:68:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_complex_data.c:99:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_core.c:56:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_list_data.c:113:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_minimal.c:59:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(file_name, local_file_name[count]);
data/cif-api-0.4.2/src/tests/test_parse_nested.c:68:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_simple_containers.c:83:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_simple_data.c:99:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_simple_loops.c:90:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_table_data.c:105:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_text_fields.c:107:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_triple.c:87:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tests/test_parse_unicode.c:69:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(file_name, local_file_name);
data/cif-api-0.4.2/src/tools/linguist.c:328:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(dup, val);
data/cif-api-0.4.2/src/tests/test.h:219:31:  [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.
    const char *_cifapi_src = getenv("CIFAPI_SRC"); \
data/cif-api-0.4.2/src/tests/test_get_api_version.c:35:36:  [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.
    const char *expected_version = getenv(VERSION_VAR);
data/cif-api-0.4.2/src/ciffile.c:94:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char header_type[2][10] = { "\ndata_%S\n", "\nsave_%S\n" };
data/cif-api-0.4.2/src/ciffile.c:283:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char CIF2_DEFAULT_MAGIC[MAGIC_LENGTH + MAGIC_EXTRA + 1] = "#\\#CIF_2.0";
data/cif-api-0.4.2/src/ciffile.c:286:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char CIF2_UTF8_MAGIC[MAGIC_LENGTH + MAGIC_EXTRA + 1] = "\x23\x5c\x23\x43\x49\x46\x5f\x32\x2e\x30";
data/cif-api-0.4.2/src/ciffile.c:288:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char UTF8[6] = "UTF-8";
data/cif-api-0.4.2/src/ciffile.c:361: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[BUFFER_SIZE];
data/cif-api-0.4.2/src/container.c:43:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char scalar_errmsg[22] = "duplicate scalar loop";
data/cif-api-0.4.2/src/container.c:1098:33:  [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(*val, temp, sizeof(cif_value_tp));
data/cif-api-0.4.2/src/examples/syncheck.c:150:24:  [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(argv[file_number], "rb");
data/cif-api-0.4.2/src/loop.c:37:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char MULTIPLE_SCALAR_MESSAGE[49] = "Attempted to create multiple values for a scalar";
data/cif-api-0.4.2/src/parser.c:3130: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(new_buffer, scanner->text_start, current_chars * sizeof(UChar));
data/cif-api-0.4.2/src/pktitr.c:239:29:  [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(&(target->as_value), &(entry->as_value), sizeof(cif_value_tp));
data/cif-api-0.4.2/src/tests/test.h:234:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile cif_win32_tmpfile
data/cif-api-0.4.2/src/tests/test.h:240:18:  [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 *file = fopen(filename,
data/cif-api-0.4.2/src/tests/test_analyze_string.c:75: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 test_name[80] = "test_analyze_string";
data/cif-api-0.4.2/src/tests/test_block_create_frame1.c:31: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 test_name[80] = "test_block_create_frame1";
data/cif-api-0.4.2/src/tests/test_block_create_frame2.c:31: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 test_name[80] = "test_block_create_frame2";
data/cif-api-0.4.2/src/tests/test_block_create_frame2.c:40: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 code_patterns[NUM_PATTERNS][64] = {
data/cif-api-0.4.2/src/tests/test_block_create_frame2.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 code_pairs[NUM_PAIRS][2][64] = {
data/cif-api-0.4.2/src/tests/test_block_get_all_frames.c:33: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 test_name[80] = "test_block_get_all_frames";
data/cif-api-0.4.2/src/tests/test_block_get_frame.c:31: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 test_name[80] = "test_block_get_frame";
data/cif-api-0.4.2/src/tests/test_block_get_frame.c:36: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 code_pairs[NUM_PAIRS][2][64] = {
data/cif-api-0.4.2/src/tests/test_container_assert_block.c:32: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 test_name[80] = "test_container_assert_block";
data/cif-api-0.4.2/src/tests/test_container_create_loop1.c:35: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 test_name[80] = "test_container_create_loop1";
data/cif-api-0.4.2/src/tests/test_container_create_loop1.c:44: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 name_patterns[NUM_NAMES][BUFLEN] = {
data/cif-api-0.4.2/src/tests/test_container_create_loop2.c:35: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 test_name[80] = "test_container_create_loop2";
data/cif-api-0.4.2/src/tests/test_container_create_loop2.c:42:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char invalid_patterns[NUM_NAMES][BUFLEN] = {
data/cif-api-0.4.2/src/tests/test_container_get_all_loops.c:40: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 test_name[80] = "test_container_get_all_loops";
data/cif-api-0.4.2/src/tests/test_container_get_all_loops.c:84: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(expected_items[0], loop_items, 2 * sizeof(UChar *));
data/cif-api-0.4.2/src/tests/test_container_get_all_loops.c:88: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(expected_items[1], loop_items, 2 * sizeof(UChar *));
data/cif-api-0.4.2/src/tests/test_container_get_all_loops.c:100: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(expected_items[2], loop_items, (offset + 1) * sizeof(UChar *));
data/cif-api-0.4.2/src/tests/test_container_get_all_loops.c:101: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(expected_items[3], loop_items + offset + 1, (offset + 1) * sizeof(UChar *));
data/cif-api-0.4.2/src/tests/test_container_get_category_loop.c:33: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 test_name[80] = "test_container_get_category_loop";
data/cif-api-0.4.2/src/tests/test_container_get_code.c:34: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 test_name[80] = "test_container_get_code";
data/cif-api-0.4.2/src/tests/test_container_get_code.c:36: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_container_get_code.c:150: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_container_get_item_loop.c:33: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 test_name[80] = "test_container_get_item_loop";
data/cif-api-0.4.2/src/tests/test_container_get_value.c:34: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 test_name[80] = "test_container_get_value";
data/cif-api-0.4.2/src/tests/test_container_prune.c:35: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 test_name[80] = "test_container_prune";
data/cif-api-0.4.2/src/tests/test_container_remove_item.c:36: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 test_name[80] = "test_container_remove_item";
data/cif-api-0.4.2/src/tests/test_container_set_value1.c:33: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 test_name[80] = "test_container_set_value1";
data/cif-api-0.4.2/src/tests/test_container_set_value2.c:33: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 test_name[80] = "test_container_set_value2";
data/cif-api-0.4.2/src/tests/test_create.c:31: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 test_name[80] = "test_create";
data/cif-api-0.4.2/src/tests/test_create_block1.c:32: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 test_name[80] = "test_create_block1";
data/cif-api-0.4.2/src/tests/test_create_block2.c:31: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 test_name[80] = "test_create_block2";
data/cif-api-0.4.2/src/tests/test_create_block2.c:34: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 code_patterns[NUM_PATTERNS][64] = {
data/cif-api-0.4.2/src/tests/test_create_block2.c:45: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 code_pairs[NUM_PAIRS][2][64] = {
data/cif-api-0.4.2/src/tests/test_get_all_blocks.c:33: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 test_name[80] = "test_get_all_blocks";
data/cif-api-0.4.2/src/tests/test_get_api_version.c:34: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 test_name[80] = "test_get_api_version";
data/cif-api-0.4.2/src/tests/test_get_block.c:32: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 test_name[80] = "test_get_block";
data/cif-api-0.4.2/src/tests/test_get_block.c:36: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 code_pairs[NUM_PAIRS][2][64] = {
data/cif-api-0.4.2/src/tests/test_list_elements.c:34: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 test_name[80] = "test_list_elements";
data/cif-api-0.4.2/src/tests/test_loop_add_item.c:43: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 test_name[80] = "test_loop_add_item";
data/cif-api-0.4.2/src/tests/test_loop_destroy.c:35: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 test_name[80] = "test_loop_destroy";
data/cif-api-0.4.2/src/tests/test_loop_get_names.c:42: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 test_name[80] = "test_loop_get_names";
data/cif-api-0.4.2/src/tests/test_loop_misc.c:38: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 test_name[80] = "test_loop_misc";
data/cif-api-0.4.2/src/tests/test_loop_modification.c:40: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 test_name[80] = "test_loop_modification";
data/cif-api-0.4.2/src/tests/test_loop_packets.c:38: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 test_name[80] = "test_loop_packets";
data/cif-api-0.4.2/src/tests/test_loop_set_category.c:35: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 test_name[80] = "test_loop_set_category";
data/cif-api-0.4.2/src/tests/test_multiple_cifs.c:33: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 test_name[80] = "test_multiple_cifs";
data/cif-api-0.4.2/src/tests/test_nested_frames.c:33: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 test_name[80] = "test_nested_frames";
data/cif-api-0.4.2/src/tests/test_nesting.c:33: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 test_name[80] = "test_nesting";
data/cif-api-0.4.2/src/tests/test_normalize.c:33: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 test_name[80] = "test_normalize";
data/cif-api-0.4.2/src/tests/test_packet_create.c:34: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 test_name[80] = "test_packet_create";
data/cif-api-0.4.2/src/tests/test_packet_items.c:35: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 test_name[80] = "test_packet_items";
data/cif-api-0.4.2/src/tests/test_packet_remove_item.c:34: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 test_name[80] = "test_packet_remove_item";
data/cif-api-0.4.2/src/tests/test_packet_set_item.c:34: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 test_name[80] = "test_packet_set_item";
data/cif-api-0.4.2/src/tests/test_parse_10.c:36: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 test_name[80] = "test_parse_10";
data/cif-api-0.4.2/src/tests/test_parse_10.c:38: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_10.c:79: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_cif1_invalid.c:34: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 test_name[80] = "test_parse_cif1_invalid";
data/cif-api-0.4.2/src/tests/test_parse_cif1_invalid.c:39: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_cif1_invalid.c:58: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_cif1_quoting.c:36: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 test_name[80] = "test_parse_cif1_quoting";
data/cif-api-0.4.2/src/tests/test_parse_cif1_quoting.c:40: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_cif1_quoting.c:69: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_complex_data.c:36: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 test_name[80] = "test_parse_complex_data";
data/cif-api-0.4.2/src/tests/test_parse_complex_data.c:40: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_complex_data.c:100: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_core.c:43: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 test_name[80] = "test_parse_core";
data/cif-api-0.4.2/src/tests/test_parse_core.c:45: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_core.c:57: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_list_data.c:36: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 test_name[80] = "test_parse_list_data";
data/cif-api-0.4.2/src/tests/test_parse_list_data.c:40: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_list_data.c:114: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_minimal.c:37: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 test_name[80] = "test_parse_minimal";
data/cif-api-0.4.2/src/tests/test_parse_minimal.c:38: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 local_file_name[NUM_FILES][17] = {
data/cif-api-0.4.2/src/tests/test_parse_minimal.c:45: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_minimal.c:60:20:  [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).
        cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_nested.c:33: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 test_name[80] = "test_parse_nested";
data/cif-api-0.4.2/src/tests/test_parse_nested.c:42: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_nested.c:70: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_simple_containers.c:36: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 test_name[80] = "test_parse_simple_containers";
data/cif-api-0.4.2/src/tests/test_parse_simple_containers.c:38: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_simple_containers.c:84: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_simple_data.c:36: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 test_name[80] = "test_parse_simple_data";
data/cif-api-0.4.2/src/tests/test_parse_simple_data.c:40: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_simple_data.c:100: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_simple_loops.c:36: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 test_name[80] = "test_parse_simple_loops";
data/cif-api-0.4.2/src/tests/test_parse_simple_loops.c:38: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_simple_loops.c:91: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_table_data.c:36: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 test_name[80] = "test_parse_table_data";
data/cif-api-0.4.2/src/tests/test_parse_table_data.c:40: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_table_data.c:106: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_text_fields.c:36: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 test_name[80] = "test_parse_text_fields";
data/cif-api-0.4.2/src/tests/test_parse_text_fields.c:38: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_text_fields.c:108: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_triple.c:36: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 test_name[80] = "test_parse_triple";
data/cif-api-0.4.2/src/tests/test_parse_triple.c:40: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_triple.c:88: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_parse_unicode.c:35: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 test_name[80] = "test_parse_unicode";
data/cif-api-0.4.2/src/tests/test_parse_unicode.c:37: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 file_name[BUFFER_SIZE];
data/cif-api-0.4.2/src/tests/test_parse_unicode.c:70: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).
    cif_file = fopen(file_name, "rb");
data/cif-api-0.4.2/src/tests/test_table_elements.c:36: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 test_name[80] = "test_table_elements";
data/cif-api-0.4.2/src/tests/test_ustrdup.c:32: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 test_name[80] = "test_ustrdup";
data/cif-api-0.4.2/src/tests/test_value_autoinit_numb.c:39: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 test_name[80] = "test_value_autoinit_numb";
data/cif-api-0.4.2/src/tests/test_value_clone.c:30: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 test_name[80] = "test_value_clone";
data/cif-api-0.4.2/src/tests/test_value_copy_char.c:30: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 test_name[80] = "test_value_copy_char";
data/cif-api-0.4.2/src/tests/test_value_create.c:30: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 test_name[80] = "test_value_create";
data/cif-api-0.4.2/src/tests/test_value_get_number.c:47: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 test_name[80] = "test_value_get_number";
data/cif-api-0.4.2/src/tests/test_value_init_char.c:30: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 test_name[80] = "test_value_init_char";
data/cif-api-0.4.2/src/tests/test_value_init_numb.c:35: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 test_name[80] = "test_value_init_numb";
data/cif-api-0.4.2/src/tests/test_value_parse_numb.c:35: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 test_name[80] = "test_value_parse_numb";
data/cif-api-0.4.2/src/tests/test_value_set_quoted.c:30: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 test_name[80] = "test_value_set_quoted";
data/cif-api-0.4.2/src/tests/test_write_11.c:37: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 test_name[80] = "test_write_11";
data/cif-api-0.4.2/src/tests/test_write_11.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 buffer[16];
data/cif-api-0.4.2/src/tests/test_write_11.c:75:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    cif_file = tmpfile();
data/cif-api-0.4.2/src/tests/test_write_complex.c:36: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 test_name[80] = "test_write_complex";
data/cif-api-0.4.2/src/tests/test_write_complex.c:64:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    cif_file = tmpfile();
data/cif-api-0.4.2/src/tests/test_write_frames.c:36: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 test_name[80] = "test_write_frames";
data/cif-api-0.4.2/src/tests/test_write_frames.c:83:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    cif_file = tmpfile();
data/cif-api-0.4.2/src/tests/test_write_loops.c:36: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 test_name[80] = "test_write_loops";
data/cif-api-0.4.2/src/tests/test_write_loops.c:78:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    cif_file = tmpfile();
data/cif-api-0.4.2/src/tests/test_write_simple.c:36: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 test_name[80] = "test_write_simple";
data/cif-api-0.4.2/src/tests/test_write_simple.c:102:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    cif_file = tmpfile();
data/cif-api-0.4.2/src/tools/linguist.c:1788: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(ws_node->ws, ws, length * sizeof(UChar));
data/cif-api-0.4.2/src/value.c:1687: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->start + buf->position, src, len);
data/cif-api-0.4.2/src/value.c:1704: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, buf->start + buf->position, max);
data/cif-api-0.4.2/src/value.c:2288:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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/cif-api-0.4.2/src/value.c:2314:29:  [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, "%.*e", rule_digits - 1, su) < BUF_SIZE)) {
data/cif-api-0.4.2/src/value.c:2331: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).
                    scale = -atoi(exponent + 1) + rule_digits - 1;
data/cif-api-0.4.2/src/ciffile.c:1298:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        length = strlen(text);
data/cif-api-0.4.2/src/internal/utils.h:422:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dest, string_val, value_bytes); \
data/cif-api-0.4.2/src/tests/assert_cifs.h:61:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    int equal;
data/cif-api-0.4.2/src/tests/assert_cifs.h:117:43:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return ((result == CIF_OK) && context.equal);
data/cif-api-0.4.2/src/tests/assert_cifs.h:424:42:  [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.
    comp_context->equal = (comp_context->equal && is_equal);
data/cif-api-0.4.2/src/tests/test.h:223:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(_cifapi_src) >= (_l - (strlen(DATA_DIR) + 2))) { _d[0] = 0; } \
data/cif-api-0.4.2/src/tests/test.h:223:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(_cifapi_src) >= (_l - (strlen(DATA_DIR) + 2))) { _d[0] = 0; } \
data/cif-api-0.4.2/src/tests/test_container_get_code.c:147:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_10.c:76: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_cif1_invalid.c:55: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_cif1_quoting.c:66: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_complex_data.c:97: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_core.c:54: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_list_data.c:111: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_minimal.c:57: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).
        RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name[count]));
data/cif-api-0.4.2/src/tests/test_parse_nested.c:66: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_simple_containers.c:81: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_simple_data.c:97: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_simple_loops.c:88: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_table_data.c:103: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_text_fields.c:105: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_triple.c:85: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tests/test_parse_unicode.c:67: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).
    RESOLVE_DATADIR(file_name, BUFFER_SIZE - strlen(local_file_name));
data/cif-api-0.4.2/src/tools/linguist.c:321:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(val);
data/cif-api-0.4.2/src/tools/linguist.c:604: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).
        context->extra_ws = (UChar *) malloc((strlen(parse_opts->extra_ws_chars) + 1) * sizeof(UChar));
data/cif-api-0.4.2/src/tools/linguist.c:613:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        context->extra_eol = (UChar *) malloc((strlen(parse_opts->extra_eol_chars) + 1) * sizeof(UChar));
data/cif-api-0.4.2/src/tools/linguist.c:926:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((result = ensure_space(0, strlen(type) + code_length, context)) == CIF_OK) {
data/cif-api-0.4.2/src/utils.c:253:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int32_t eff_srclen = ((srclen < 0) ? (int32_t) strlen(cstr) : srclen);
data/cif-api-0.4.2/src/value.c:861:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int val_digits = strlen(digit_buf);
data/cif-api-0.4.2/src/value.c:911:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int val_digits = strlen(digit_buf);
data/cif-api-0.4.2/src/value.c:1757:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length = strlen(s);
data/cif-api-0.4.2/src/value.c:2200: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).
                        su_size = strlen(su_buf);

ANALYSIS SUMMARY:

Hits = 195
Lines analyzed = 32308 in approximately 1.17 seconds (27530 lines/second)
Physical Source Lines of Code (SLOC) = 19413
Hits@level = [0]  80 [1]  32 [2] 140 [3]   2 [4]  21 [5]   0
Hits@level+ = [0+] 275 [1+] 195 [2+] 163 [3+]  23 [4+]  21 [5+]   0
Hits/KSLOC@level+ = [0+] 14.1658 [1+] 10.0448 [2+] 8.39644 [3+] 1.18477 [4+] 1.08175 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.