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/libyang-1.0.184/compat/compat.c
Examining data/libyang-1.0.184/linenoise/linenoise.c
Examining data/libyang-1.0.184/linenoise/linenoise.h
Examining data/libyang-1.0.184/models/ietf-datastores@2018-02-14.h
Examining data/libyang-1.0.184/models/ietf-inet-types@2013-07-15.h
Examining data/libyang-1.0.184/models/ietf-yang-library@2019-01-04.h
Examining data/libyang-1.0.184/models/ietf-yang-metadata@2016-08-05.h
Examining data/libyang-1.0.184/models/ietf-yang-types@2013-07-15.h
Examining data/libyang-1.0.184/models/yang@2017-02-20.h
Examining data/libyang-1.0.184/src/common.c
Examining data/libyang-1.0.184/src/context.c
Examining data/libyang-1.0.184/src/context.h
Examining data/libyang-1.0.184/src/dict.h
Examining data/libyang-1.0.184/src/extensions.h
Examining data/libyang-1.0.184/src/extensions/libyang_ext_test.c
Examining data/libyang-1.0.184/src/extensions/metadata.c
Examining data/libyang-1.0.184/src/extensions/nacm.c
Examining data/libyang-1.0.184/src/extensions/yangdata.c
Examining data/libyang-1.0.184/src/hash_table.c
Examining data/libyang-1.0.184/src/hash_table.h
Examining data/libyang-1.0.184/src/log.c
Examining data/libyang-1.0.184/src/parser.c
Examining data/libyang-1.0.184/src/parser.h
Examining data/libyang-1.0.184/src/parser_json.c
Examining data/libyang-1.0.184/src/parser_lyb.c
Examining data/libyang-1.0.184/src/parser_xml.c
Examining data/libyang-1.0.184/src/parser_yang.c
Examining data/libyang-1.0.184/src/parser_yang.h
Examining data/libyang-1.0.184/src/parser_yang_bis.c
Examining data/libyang-1.0.184/src/parser_yang_bis.h
Examining data/libyang-1.0.184/src/parser_yang_lex.c
Examining data/libyang-1.0.184/src/parser_yang_lex.h
Examining data/libyang-1.0.184/src/parser_yin.c
Examining data/libyang-1.0.184/src/plugins.c
Examining data/libyang-1.0.184/src/printer.c
Examining data/libyang-1.0.184/src/printer.h
Examining data/libyang-1.0.184/src/printer_info.c
Examining data/libyang-1.0.184/src/printer_json.c
Examining data/libyang-1.0.184/src/printer_json_schema.c
Examining data/libyang-1.0.184/src/printer_lyb.c
Examining data/libyang-1.0.184/src/printer_tree.c
Examining data/libyang-1.0.184/src/printer_xml.c
Examining data/libyang-1.0.184/src/printer_yang.c
Examining data/libyang-1.0.184/src/printer_yin.c
Examining data/libyang-1.0.184/src/resolve.c
Examining data/libyang-1.0.184/src/resolve.h
Examining data/libyang-1.0.184/src/tree_data.c
Examining data/libyang-1.0.184/src/tree_data.h
Examining data/libyang-1.0.184/src/tree_internal.h
Examining data/libyang-1.0.184/src/tree_schema.c
Examining data/libyang-1.0.184/src/tree_schema.h
Examining data/libyang-1.0.184/src/user_types.h
Examining data/libyang-1.0.184/src/user_types/user_inet_types.c
Examining data/libyang-1.0.184/src/user_types/user_yang_types.c
Examining data/libyang-1.0.184/src/validation.c
Examining data/libyang-1.0.184/src/validation.h
Examining data/libyang-1.0.184/src/xml.c
Examining data/libyang-1.0.184/src/xml.h
Examining data/libyang-1.0.184/src/xml_internal.h
Examining data/libyang-1.0.184/src/xpath.c
Examining data/libyang-1.0.184/src/xpath.h
Examining data/libyang-1.0.184/src/yang_types.c
Examining data/libyang-1.0.184/swig/cpp/examples/context.cpp
Examining data/libyang-1.0.184/swig/cpp/examples/process_notif_tree.cpp
Examining data/libyang-1.0.184/swig/cpp/examples/process_tree.cpp
Examining data/libyang-1.0.184/swig/cpp/examples/xpath.cpp
Examining data/libyang-1.0.184/swig/cpp/src/Internal.cpp
Examining data/libyang-1.0.184/swig/cpp/src/Internal.hpp
Examining data/libyang-1.0.184/swig/cpp/src/Libyang.cpp
Examining data/libyang-1.0.184/swig/cpp/src/Libyang.hpp
Examining data/libyang-1.0.184/swig/cpp/src/Tree_Data.cpp
Examining data/libyang-1.0.184/swig/cpp/src/Tree_Data.hpp
Examining data/libyang-1.0.184/swig/cpp/src/Tree_Schema.cpp
Examining data/libyang-1.0.184/swig/cpp/src/Tree_Schema.hpp
Examining data/libyang-1.0.184/swig/cpp/src/Xml.cpp
Examining data/libyang-1.0.184/swig/cpp/src/Xml.hpp
Examining data/libyang-1.0.184/swig/cpp/tests/microtest.h
Examining data/libyang-1.0.184/swig/cpp/tests/test_libyang.cpp
Examining data/libyang-1.0.184/swig/cpp/tests/test_tree_data.cpp
Examining data/libyang-1.0.184/swig/cpp/tests/test_tree_schema.cpp
Examining data/libyang-1.0.184/tests/api/test_dict.c
Examining data/libyang-1.0.184/tests/api/test_diff.c
Examining data/libyang-1.0.184/tests/api/test_libyang.c
Examining data/libyang-1.0.184/tests/api/test_tree_data.c
Examining data/libyang-1.0.184/tests/api/test_tree_data_dup.c
Examining data/libyang-1.0.184/tests/api/test_tree_data_merge.c
Examining data/libyang-1.0.184/tests/api/test_tree_schema.c
Examining data/libyang-1.0.184/tests/api/test_xml.c
Examining data/libyang-1.0.184/tests/api/test_xpath.c
Examining data/libyang-1.0.184/tests/api/test_xpath_1.1.c
Examining data/libyang-1.0.184/tests/callgrind/create_data.c
Examining data/libyang-1.0.184/tests/callgrind/list_manipulation.c
Examining data/libyang-1.0.184/tests/callgrind/validate.c
Examining data/libyang-1.0.184/tests/conformance/test_sec5_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec5_5.c
Examining data/libyang-1.0.184/tests/conformance/test_sec6_1_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec6_1_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec6_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec6_2_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_10.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_11.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_12_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_12_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_13_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_13_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_13_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_14.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_15.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_15_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_16_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_16_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_18_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_18_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_18_3_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_18_3_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_19_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_19_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_19_5.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_3_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_3_4.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_5_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_5_4.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_5_5.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_6_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_6_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_6_4.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_6_5.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_7_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_7_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_7_4.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_7_5.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_8_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_8_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_8_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_9_1.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_9_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_9_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec7_9_4.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_10.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_11.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_12.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_13.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_2.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_3.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_4_4.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_4_6.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_5.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_6.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_7.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_8.c
Examining data/libyang-1.0.184/tests/conformance/test_sec9_9.c
Examining data/libyang-1.0.184/tests/data/test_autodel.c
Examining data/libyang-1.0.184/tests/data/test_data_initialization.c
Examining data/libyang-1.0.184/tests/data/test_defaults.c
Examining data/libyang-1.0.184/tests/data/test_emptycont.c
Examining data/libyang-1.0.184/tests/data/test_instid_remove.c
Examining data/libyang-1.0.184/tests/data/test_json.c
Examining data/libyang-1.0.184/tests/data/test_keys.c
Examining data/libyang-1.0.184/tests/data/test_leafref_remove.c
Examining data/libyang-1.0.184/tests/data/test_mandatory.c
Examining data/libyang-1.0.184/tests/data/test_metadata.c
Examining data/libyang-1.0.184/tests/data/test_must_1.1.c
Examining data/libyang-1.0.184/tests/data/test_parse_print.c
Examining data/libyang-1.0.184/tests/data/test_unique.c
Examining data/libyang-1.0.184/tests/data/test_unknown_element.c
Examining data/libyang-1.0.184/tests/data/test_user_types.c
Examining data/libyang-1.0.184/tests/data/test_values.c
Examining data/libyang-1.0.184/tests/data/test_when.c
Examining data/libyang-1.0.184/tests/data/test_when_1.1.c
Examining data/libyang-1.0.184/tests/data/test_yang_data.c
Examining data/libyang-1.0.184/tests/data/test_yang_data_ns.c
Examining data/libyang-1.0.184/tests/data/test_yangtypes_xpath.c
Examining data/libyang-1.0.184/tests/fuzz/xmlfuzz.c
Examining data/libyang-1.0.184/tests/fuzz/yangfuzz.c
Examining data/libyang-1.0.184/tests/internal/test_hash_table.c
Examining data/libyang-1.0.184/tests/internal/test_lyb.c
Examining data/libyang-1.0.184/tests/internal/test_state_lists.c
Examining data/libyang-1.0.184/tests/perf/addloop.c
Examining data/libyang-1.0.184/tests/perf/sizes.c
Examining data/libyang-1.0.184/tests/perf/validation.c
Examining data/libyang-1.0.184/tests/perf/validation_xml.c
Examining data/libyang-1.0.184/tests/schema/test_augment.c
Examining data/libyang-1.0.184/tests/schema/test_conformance.c
Examining data/libyang-1.0.184/tests/schema/test_deviation.c
Examining data/libyang-1.0.184/tests/schema/test_extensions.c
Examining data/libyang-1.0.184/tests/schema/test_feature.c
Examining data/libyang-1.0.184/tests/schema/test_ietf.c
Examining data/libyang-1.0.184/tests/schema/test_import.c
Examining data/libyang-1.0.184/tests/schema/test_include.c
Examining data/libyang-1.0.184/tests/schema/test_invalid.c
Examining data/libyang-1.0.184/tests/schema/test_leaflist.c
Examining data/libyang-1.0.184/tests/schema/test_printer.c
Examining data/libyang-1.0.184/tests/schema/test_refine.c
Examining data/libyang-1.0.184/tests/schema/test_status.c
Examining data/libyang-1.0.184/tests/schema/test_typedef.c
Examining data/libyang-1.0.184/tests/schema/yin/test_print_transform.c
Examining data/libyang-1.0.184/tools/lint/commands.c
Examining data/libyang-1.0.184/tools/lint/commands.h
Examining data/libyang-1.0.184/tools/lint/completion.c
Examining data/libyang-1.0.184/tools/lint/completion.h
Examining data/libyang-1.0.184/tools/lint/configuration.c
Examining data/libyang-1.0.184/tools/lint/configuration.h
Examining data/libyang-1.0.184/tools/lint/main.c
Examining data/libyang-1.0.184/tools/lint/main_ni.c
Examining data/libyang-1.0.184/tools/re/main.c
Examining data/libyang-1.0.184/tools/yang2yin/main.c

FINAL RESULTS:

data/libyang-1.0.184/src/tree_schema.c:1245:16:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    if ((len = readlink(proc_path, path, PATH_MAX - 1)) > 0) {
data/libyang-1.0.184/compat/compat.c:37:17:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        count = vfprintf(stream, format, ap);
data/libyang-1.0.184/compat/compat.c:64:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int l = vsnprintf(0, 0, fmt, ap2);
data/libyang-1.0.184/compat/compat.c:71:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    return vsnprintf(*strp, l + 1U, fmt, ap);
data/libyang-1.0.184/compat/compat.c:132:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(*lineptr, line);
data/libyang-1.0.184/linenoise/linenoise.c:172: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(lndebug_fp, \
data/libyang-1.0.184/linenoise/linenoise.c:177: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(lndebug_fp, ", " __VA_ARGS__); \
data/libyang-1.0.184/linenoise/linenoise.c:513:13:  [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(hint_ptr, ent->d_name);
data/libyang-1.0.184/linenoise/linenoise.c:519:13:  [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(match, ent->d_name);
data/libyang-1.0.184/src/common.c:353:13:  [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(&(*out)[*out_used], prefix);
data/libyang-1.0.184/src/common.c:523:17:  [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(&(*out)[*out_used], mod->name);
data/libyang-1.0.184/src/common.c:667:13:  [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(&out[out_used], mod->name);
data/libyang-1.0.184/src/common.c:693:17:  [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(&out[out_used], mod->name);
data/libyang-1.0.184/src/common.c:738:13:  [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(&out[out_used], in);
data/libyang-1.0.184/src/common.c:774: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(&out[out_used], mod->name);
data/libyang-1.0.184/src/common.c:859:17:  [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(*out + *out_used, prev_mod->name);
data/libyang-1.0.184/src/common.c:893:17:  [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(*out + *out_used, mod->name);
data/libyang-1.0.184/src/common.c:1097:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(*out + *out_used - 1, "%s%s:%s", slash ? "/" : "", lys_node_module(node2)->name, node2->name);
data/libyang-1.0.184/src/common.c:1104:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(*out + *out_used - 1, "%s%s", slash ? "/" : "", node2->name);
data/libyang-1.0.184/src/common.c:1124:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(*out + *out_used - 1, "%*s", len, " ");
data/libyang-1.0.184/src/context.c:446:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(search_dir, R_OK | X_OK)) {
data/libyang-1.0.184/src/log.c:916: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(fmt, str);
data/libyang-1.0.184/src/parser.c:1014:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(buf + strlen(buf), " %s", bits[i]->name);
data/libyang-1.0.184/src/parser.c:1017:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(buf, bits[i]->name);
data/libyang-1.0.184/src/parser.c:1027:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf, "%s:%s", module_name, *value);
data/libyang-1.0.184/src/parser.c:1030:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(buf, *value);
data/libyang-1.0.184/src/parser.c:1134:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buf, "%"PRId64, num);
data/libyang-1.0.184/src/parser.c:1142:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buf, "%"PRIu64, unum);
data/libyang-1.0.184/src/parser_lyb.c:569:28:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                str_len += sprintf(str + str_len, "%s%s", str_len ? " " : "", value->bit[i]->name);
data/libyang-1.0.184/src/parser_lyb.c:621:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(num_str, "%"PRId64, value->int64);
data/libyang-1.0.184/src/parser_lyb.c:625:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(num_str, "%"PRIu64, value->uint64);
data/libyang-1.0.184/src/parser_lyb.c:643:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(num_str, "%s%"PRId64".%.*"PRId64, (num == 0) && (value->dec64 < 0) ? "-" : "", num, dig, frac);
data/libyang-1.0.184/src/parser_xml.c:234:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(msg, "node with text data \"%s\"", xml->content);
data/libyang-1.0.184/src/parser_yang.c:1196:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(&buf[1], value);
data/libyang-1.0.184/src/parser_yang_bis.c:2376:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/libyang-1.0.184/src/parser_yang_bis.c:7265:49:  [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(s, yyget_text(scanner));
data/libyang-1.0.184/src/parser_yang_bis.c:7285:47:  [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(s, yyget_text(scanner));
data/libyang-1.0.184/src/parser_yin.c:1500:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(&buf[1], value);
data/libyang-1.0.184/src/parser_yin.c:8297:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(&((char *)(*(struct lys_restr **)p)->expr)[1], value);
data/libyang-1.0.184/src/printer.c:94:17:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        count = vfprintf(out->method.f, format, ap);
data/libyang-1.0.184/src/printer_tree.c:325:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(tmp, "-> %s", str);
data/libyang-1.0.184/src/printer_tree.c:336:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(tmp, "-> %s", type->info.lref.path);
data/libyang-1.0.184/src/printer_tree.c:350:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmp, "%s:%s", str, type->der->name);
data/libyang-1.0.184/src/printer_tree.c:360:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(tmp, "%s:%s", type->der->module->name, type->der->name);
data/libyang-1.0.184/src/printer_yang.c:1985:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(ext_name, "%s:%s", prefix, ext[u]->def->name);
data/libyang-1.0.184/src/tree_data.c:6426:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            len += sprintf(&buf[len], "%s%s", (len ? "/" : ""), snode->name);
data/libyang-1.0.184/src/tree_schema.c:5209:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        used += sprintf(buf + used, "/%s%s%s", (lys_node_module(node) == prev_mod ? "" : lys_node_module(node)->name),
data/libyang-1.0.184/src/tree_schema.c:5275:22:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                k += sprintf(keys + k, "[%s=%s]", list->keys[j]->name, placeholder);
data/libyang-1.0.184/src/tree_schema.c:5281:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            x += sprintf(buf + x, "/%s%s%s%s", mod->name, separator, name, keys);
data/libyang-1.0.184/src/tree_schema.c:5283:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            x += sprintf(buf + x, "/%s%s", name, keys);
data/libyang-1.0.184/src/user_types/user_inet_types.c:188: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(result, pref_str);
data/libyang-1.0.184/src/user_types/user_inet_types.c:272: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(result, pref_str);
data/libyang-1.0.184/src/xpath.c:171:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tmp, "\ttoken %s, in expression \"%.*s\"", print_token(exp->tokens[i]), exp->tok_len[i],
data/libyang-1.0.184/src/xpath.c:412:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(*str + (*used - 1), "%s", value_str);
data/libyang-1.0.184/src/xpath.c:415:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(*str + (*used - 1), "%s\n", value_str);
data/libyang-1.0.184/src/xpath.c:468:13:  [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(*str + (*used - 1), line);
data/libyang-1.0.184/src/xpath.c:3460: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(str + used - 1, args[i]->val.str);
data/libyang-1.0.184/tests/conformance/test_sec5_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec5_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec5_1.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec5_1.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec5_1.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec5_5.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec5_5.c:99:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec5_5.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec5_5.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec5_5.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.c:81:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod1.yang");
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.c:101:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod5.yang");
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.c:118:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod2.yang");
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.c:136:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yang",i+3);
data/libyang-1.0.184/tests/conformance/test_sec6_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec6_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec6_2.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec6_2.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec6_2.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec6_2_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec6_2_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec6_2_1.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec6_2_1.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec6_2_1.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_1.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_1.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_1.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_10.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_10.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_10.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_10.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_10.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_11.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_11.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_11.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_11.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_11.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_12_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_12_1.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_12_1.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_12_1.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_12_1.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_12_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_12_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_12_2.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_12_2.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_12_2.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_13_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_13_1.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_13_1.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_13_1.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_13_1.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_13_2.c:93:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_13_2.c:103:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_13_2.c:125:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_13_2.c:128:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_13_2.c:148:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_13_3.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_13_3.c:108:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_13_3.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_13_3.c:135:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_13_3.c:155:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_14.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_14.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_14.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_14.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_14.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_15.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_15.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_15.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_15.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_15.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_15_1.c:88:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_15_1.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_15_1.c:110:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_15_1.c:113:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_15_1.c:133:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_16_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_16_1.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_16_1.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_16_1.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_16_1.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_16_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_16_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_16_2.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_16_2.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_16_2.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_18_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_1.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_18_1.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_18_1.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_2.c:93:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_18_2.c:104:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_2.c:123:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_18_2.c:126:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_18_2.c:146:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_1.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_1.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_1.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_1.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_2.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_2.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_2.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_2.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_19_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_19_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_19_1.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_19_1.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_19_1.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_19_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_19_2.c:98:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_19_2.c:112:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_19_2.c:115:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_19_2.c:135:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_19_5.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_19_5.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_19_5.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_19_5.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_19_5.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_2.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_2.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_2.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_3.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_3.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_3.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_3.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_3.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_3_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_3_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_3_1.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_3_1.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_3_1.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_3_4.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_3_4.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_3_4.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_3_4.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_3_4.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_5_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_5_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_5_2.c:109:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_5_2.c:112:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_5_2.c:132:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_5_4.c:90:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_5_4.c:100:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_5_4.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_5_4.c:137:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_5_4.c:157:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_5_5.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_5_5.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_5_5.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_5_5.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_5_5.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_6_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_2.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_6_2.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_6_2.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_3.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_6_3.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_3.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_6_3.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_6_3.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_4.c:94:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_6_4.c:104:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_4.c:126:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_6_4.c:129:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_6_4.c:149:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_5.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_6_5.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_6_5.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_6_5.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_6_5.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_7_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_2.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_7_2.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_7_2.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_3.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_7_3.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_3.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_7_3.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_7_3.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_4.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_7_4.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_4.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_7_4.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_7_4.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_5.c:93:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_7_5.c:103:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_7_5.c:123:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_7_5.c:126:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_7_5.c:146:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_8_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_8_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_8_1.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_8_1.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_8_1.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_8_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_8_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_8_2.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_8_2.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_8_2.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_8_3.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_8_3.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_8_3.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_8_3.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_8_3.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_1.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_9_1.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_1.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_9_1.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_9_1.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_9_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_2.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_9_2.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_9_2.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_3.c:94:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_9_3.c:104:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_3.c:126:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_9_3.c:129:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_9_3.c:149:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_4.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec7_9_4.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec7_9_4.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec7_9_4.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec7_9_4.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_10.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_10.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_10.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_10.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_10.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_11.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_11.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_11.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_11.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_11.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_12.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_12.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_12.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_12.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_12.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_13.c:89:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_13.c:99:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_13.c:113:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_13.c:116:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_13.c:136:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_2.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_2.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_2.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_2.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_2.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_3.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_3.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_3.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_3.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_3.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_4_4.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_4_4.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_4_4.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_4_4.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_4_4.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_4_6.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_4_6.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_4_6.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_4_6.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_4_6.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_5.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_5.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_5.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_5.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_5.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_6.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_6.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_6.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_6.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_6.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_7.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_7.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_7.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_7.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_7.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_8.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_8.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_8.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_8.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_8.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_9.c:87:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.%s", j + 1, (schema_format == LYS_IN_YANG ? "yang" : "yin"));
data/libyang-1.0.184/tests/conformance/test_sec9_9.c:97:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/data%d.xml", j + 1);
data/libyang-1.0.184/tests/conformance/test_sec9_9.c:111:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, BUILD_DIR "/yang2yin "
data/libyang-1.0.184/tests/conformance/test_sec9_9.c:114:23:  [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(buf);
data/libyang-1.0.184/tests/conformance/test_sec9_9.c:134:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf, TESTS_DIR "/conformance/" TEST_DIR "/mod%d.yin", j + 1);
data/libyang-1.0.184/tests/schema/test_ietf.c:104:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(filename, name);
data/libyang-1.0.184/tests/schema/test_ietf.c:106: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(filename, module->name);
data/libyang-1.0.184/tests/schema/test_ietf.c:138:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(path, "%s%s", files[i], extension);
data/libyang-1.0.184/tests/schema/test_ietf.c:169: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(filename, SCHEMA_FOLDER_YIN);
data/libyang-1.0.184/tests/schema/test_ietf.c:171: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(filename, (*files)[i]);
data/libyang-1.0.184/tests/schema/test_ietf.c:178: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(filename, SCHEMA_FOLDER_YANG);
data/libyang-1.0.184/tests/schema/test_ietf.c:180: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(filename, (*files)[i + SCHEMA_COUNT]);
data/libyang-1.0.184/tools/lint/configuration.c:47:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(yl_dir, "%s/%s", user_home, YL_DIR);
data/libyang-1.0.184/tools/lint/configuration.c:49:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ret = access(yl_dir, R_OK | X_OK);
data/libyang-1.0.184/tools/lint/configuration.c:84:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(history_file, "%s/history", yl_dir);
data/libyang-1.0.184/tools/lint/configuration.c:85:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(history_file, F_OK) && (errno == ENOENT)) {
data/libyang-1.0.184/tools/lint/configuration.c:111:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(history_file, "%s/history", yl_dir);
data/libyang-1.0.184/tools/yang2yin/main.c:302:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(path, "%s/%s", search_dir, dirent->d_name);
data/libyang-1.0.184/linenoise/linenoise.c:194:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *term = getenv("TERM");
data/libyang-1.0.184/src/context.c:452:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        new_dir = realpath(search_dir, NULL);
data/libyang-1.0.184/src/context.c:948:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (realpath(filepath, rpath) != NULL) {
data/libyang-1.0.184/src/plugins.c:418:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    pluginsdir = getenv("LIBYANG_EXTENSIONS_PLUGINS_DIR");
data/libyang-1.0.184/src/plugins.c:433:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    pluginsdir = getenv("LIBYANG_USER_TYPES_PLUGINS_DIR");
data/libyang-1.0.184/src/tree_schema.c:1210:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        if (realpath(path, rpath) != NULL) {
data/libyang-1.0.184/tests/api/test_libyang.c:138:26:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    assert_ptr_not_equal(realpath(TESTS_DIR"/data/files", yang_folder), NULL);
data/libyang-1.0.184/tests/api/test_libyang.c:163:26:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    assert_ptr_not_equal(realpath(TESTS_DIR"/data/files", yang_folder), NULL);
data/libyang-1.0.184/tests/api/test_libyang.c:164:26:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    assert_ptr_not_equal(realpath(TESTS_DIR"/schema/yin", new_yang_folder), NULL);
data/libyang-1.0.184/tests/api/test_libyang.c:196:26:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    assert_ptr_not_equal(realpath(TESTS_DIR"/data/files", yang_folder), NULL);
data/libyang-1.0.184/tests/schema/test_ietf.c:124:46:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (!strcmp(ctx->models.search_paths[0], realpath(SCHEMA_FOLDER_YIN, path))) {
data/libyang-1.0.184/tools/lint/commands.c:388:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, "hf:go:guP:L:", long_options, &option_index);
data/libyang-1.0.184/tools/lint/commands.c:698:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, "d:hf:F:o:st:r:", long_options, &option_index);
data/libyang-1.0.184/tools/lint/commands.c:904:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, "he:t:x:", long_options, &option_index);
data/libyang-1.0.184/tools/lint/commands.c:1127:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, "hf:", long_options, &option_index);
data/libyang-1.0.184/tools/lint/commands.c:1201:13:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt_long(argc, argv, "he:d:", long_options, &option_index);
data/libyang-1.0.184/tools/lint/main_ni.c:309:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, argv, "ad:f:F:gunP:L:hHiDlmo:p:r:O:st:vVG:y:", options, &opt_index)) != -1)
data/libyang-1.0.184/tools/lint/main_ni.c:311:19:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((opt = getopt_long(argc, argv, "ad:f:F:gunP:L:hHiDlmo:p:r:O:st:vVy:", options, &opt_index)) != -1)
data/libyang-1.0.184/tools/re/main.c:132:17:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((i = getopt_long(argc, argv, "hf:ivVp:", options, &opt_index)) != -1) {
data/libyang-1.0.184/compat/compat.c:89: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, s, len);
data/libyang-1.0.184/compat/compat.c:99: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 line[256];
data/libyang-1.0.184/compat/compat.c:141: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[_POSIX_PATH_MAX];
data/libyang-1.0.184/linenoise/linenoise.c:171:26:  [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).
            lndebug_fp = fopen("/tmp/lndebug.txt","a"); \
data/libyang-1.0.184/linenoise/linenoise.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 buf[32];
data/libyang-1.0.184/linenoise/linenoise.c:290:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char seq[32];
data/libyang-1.0.184/linenoise/linenoise.c:476: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 *full_path, *hint_ptr, match[FILENAME_MAX + 2];
data/libyang-1.0.184/linenoise/linenoise.c:490:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(full_path, "./");
data/libyang-1.0.184/linenoise/linenoise.c:496: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(full_path, "%.*s", (int)(ptr - hint), hint);
data/libyang-1.0.184/linenoise/linenoise.c:542: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,str,len+1);
data/libyang-1.0.184/linenoise/linenoise.c:572: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+ab->len,s,len);
data/libyang-1.0.184/linenoise/linenoise.c:586: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 seq[64];
data/libyang-1.0.184/linenoise/linenoise.c:625: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 seq[64];
data/libyang-1.0.184/linenoise/linenoise.c:873: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 seq[3];
data/libyang-1.0.184/linenoise/linenoise.c:1023: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 quit[4];
data/libyang-1.0.184/linenoise/linenoise.c:1080: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[LINENOISE_MAX_LINE];
data/libyang-1.0.184/linenoise/linenoise.c:1180: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,history+(history_len-tocopy), sizeof(char*)*tocopy);
data/libyang-1.0.184/linenoise/linenoise.c:1193: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 *fp = fopen(filename,"w");
data/libyang-1.0.184/linenoise/linenoise.c:1209: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 *fp = fopen(filename,"r");
data/libyang-1.0.184/linenoise/linenoise.c:1210: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[LINENOISE_MAX_LINE];
data/libyang-1.0.184/src/common.c:955:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(*out + *out_used - 1, "%.*s", len, exp->expr + exp->expr_pos[cur_exp]);
data/libyang-1.0.184/src/common.c:1258: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(out, data_path, out_used -1);
data/libyang-1.0.184/src/context.c:906: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(filepath, O_RDONLY);
data/libyang-1.0.184/src/context.c:947: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 rpath[PATH_MAX];
data/libyang-1.0.184/src/context.c:1766: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 id[8];
data/libyang-1.0.184/src/context.c:1919:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(id, "%u", ctx->models.module_set_id);
data/libyang-1.0.184/src/hash_table.c:252: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(match->value, value, len);
data/libyang-1.0.184/src/hash_table.c:375: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(ht->recs, orig->recs, (size_t)orig->used * (size_t)orig->rec_size);
data/libyang-1.0.184/src/hash_table.c:475: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(inval_rec, rec, ht->rec_size);
data/libyang-1.0.184/src/hash_table.c:525: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(inval_rec, *last, ht->rec_size);
data/libyang-1.0.184/src/hash_table.c:652: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(val + i * 2, "%02x", *(((uint8_t *)val_p) + j));
data/libyang-1.0.184/src/hash_table.c:654: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(val + i * 2, "  ");
data/libyang-1.0.184/src/hash_table.c:679:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(val, "%u", ht->size);
data/libyang-1.0.184/src/hash_table.c:767: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(&rec->val, val_p, ht->rec_size - (sizeof(struct ht_rec) - 1));
data/libyang-1.0.184/src/hash_table.c:860: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(crec, rec, ht->rec_size);
data/libyang-1.0.184/src/hash_table.h:65: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 val[1]; /* arbitrary-size value */
data/libyang-1.0.184/src/log.c:581:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&(*path)[*index], str, str_len);
data/libyang-1.0.184/src/log.c:752:25:  [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(str, "%d", i);
data/libyang-1.0.184/src/parser.c:866:20:  [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.
            ptr += sprintf(ptr, "\\$");
data/libyang-1.0.184/src/parser.c:874:16:  [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.
        ptr += sprintf(ptr, ")$");
data/libyang-1.0.184/src/parser.c:923: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(perl_regex + start, lyp_ublock2urange[idx][1] + 1, LYP_URANGE_LEN - 2);
data/libyang-1.0.184/src/parser.c:926: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(perl_regex + start, lyp_ublock2urange[idx][1], LYP_URANGE_LEN);
data/libyang-1.0.184/src/parser.c:990: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_len + 1];
data/libyang-1.0.184/src/parser.c:1103:21:  [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.
            count = sprintf(buf, "%"PRId64" ", num);
data/libyang-1.0.184/src/parser.c:1110:25:  [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.
                count = sprintf(buf, "%0*"PRId64" ", (num > 0) ? (c + 1) : (c + 2), num);
data/libyang-1.0.184/src/parser.c:1125: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, "0.0");
data/libyang-1.0.184/src/parser.c:2517: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(&tm_, &tm, sizeof tm);
data/libyang-1.0.184/src/parser.c:2920: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(&main_module->inc[main_module->inc_size - 1].rev, sub->inc[i].rev, LY_REV_SIZE - 1);
data/libyang-1.0.184/src/parser.c:3056: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(&rev, &module->rev[0], sizeof rev);
data/libyang-1.0.184/src/parser.c:3057: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(&module->rev[0], &module->rev[r], sizeof rev);
data/libyang-1.0.184/src/parser.c:3058: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(&module->rev[r], &rev, sizeof rev);
data/libyang-1.0.184/src/parser_json.c:64: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[BUFSIZE];
data/libyang-1.0.184/src/parser_json.c:83: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(&result[size - o], buf, o);
data/libyang-1.0.184/src/parser_json.c:183:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&result[size - o], buf, o);
data/libyang-1.0.184/src/parser_json.c:313:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(num, "0.");
data/libyang-1.0.184/src/parser_json.c:316: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(num + strlen(num), "%0*d", -dot_pos, 0);
data/libyang-1.0.184/src/parser_json.c:343: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(num + strlen(num), "%0*d", dot_pos - num_len_no_e, 0);
data/libyang-1.0.184/src/parser_lyb.c:60: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(buf, data + ret, to_read);
data/libyang-1.0.184/src/parser_lyb.c:79: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(meta_buf, data + ret, LYB_META_BYTES);
data/libyang-1.0.184/src/parser_lyb.c:186:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    ((char *)*str)[len] = '\0';
data/libyang-1.0.184/src/parser_lyb.c:218: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(meta_buf, data, LYB_META_BYTES);
data/libyang-1.0.184/src/parser_lyb.c:244: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(mod_rev, "%04u-%02u-%02u", ((rev & 0xFE00) >> 9) + 2000, (rev & 0x01E0) >> 5, rev & 0x001Fu);
data/libyang-1.0.184/src/parser_lyb.c:478: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 num_str[22], *str;
data/libyang-1.0.184/src/parser_lyb.c:597: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(num_str, "%d", value->int8);
data/libyang-1.0.184/src/parser_lyb.c:601: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(num_str, "%u", value->uint8);
data/libyang-1.0.184/src/parser_lyb.c:605: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(num_str, "%d", value->int16);
data/libyang-1.0.184/src/parser_lyb.c:609: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(num_str, "%u", value->uint16);
data/libyang-1.0.184/src/parser_lyb.c:613: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(num_str, "%d", value->int32);
data/libyang-1.0.184/src/parser_lyb.c:617: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(num_str, "%u", value->uint32);
data/libyang-1.0.184/src/parser_yang.c:164: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(imp_new, imp_old, sizeof *imp_old);
data/libyang-1.0.184/src/parser_yang.c:890: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(&bit_tmp, &type->info.bits.bit[j], sizeof bit_tmp);
data/libyang-1.0.184/src/parser_yang.c:891: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(&type->info.bits.bit[j], &type->info.bits.bit[j - 1], sizeof bit_tmp);
data/libyang-1.0.184/src/parser_yang.c:892: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(&type->info.bits.bit[j - 1], &bit_tmp, sizeof bit_tmp);
data/libyang-1.0.184/src/parser_yang.c:1933: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(&(*trg_must)[*trg_must_size], deviate->must, deviate->must_size * sizeof *must);
data/libyang-1.0.184/src/parser_yang.c:1946:25:  [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(&(*trg_must)[i], &(*trg_must)[*trg_must_size], sizeof *must);
data/libyang-1.0.184/src/parser_yang.c:2119: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(&trg->inc[trg->inc_size], inc, sizeof *inc);
data/libyang-1.0.184/src/parser_yang.c:2981:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        free((char *)imp[i].module);
data/libyang-1.0.184/src/parser_yang.c:2995:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        free((char *)inc[i].submodule);
data/libyang-1.0.184/src/parser_yang.c:3388: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.
        s = (char *) imp[i].module;
data/libyang-1.0.184/src/parser_yang.c:3396: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.
        s = (char *) inc[j].submodule;
data/libyang-1.0.184/src/parser_yang.c:3460: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.
        s = (char *)iffeature[i].features;
data/libyang-1.0.184/src/parser_yang.c:3492: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.
        expr = (char *)ref[i];
data/libyang-1.0.184/src/parser_yang.c:4526: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(type, deviate->type, sizeof *deviate->type);
data/libyang-1.0.184/src/parser_yang.c:4933:67:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 (!str || info->cardinality < LY_STMT_CARD_SOME || !((const char ***)str)[0]) {
data/libyang-1.0.184/src/parser_yang_bis.c:2670:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/libyang-1.0.184/src/parser_yang_bis.c:2932:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/libyang-1.0.184/src/parser_yang_bis.c:3186:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                      memcpy(s, yyget_text(scanner) + 1, yyget_leng(scanner) - 2);
data/libyang-1.0.184/src/parser_yang_bis.c:3209:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(s + length_s, yyget_text(scanner) + 1, length_tmp - 2);
data/libyang-1.0.184/src/parser_yang_bis.c:3390:43:  [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(((struct lys_import *)actual)->rev, s, LY_REV_SIZE-1);
data/libyang-1.0.184/src/parser_yang_bis.c:3452:44:  [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(((struct lys_include *)actual)->rev, s, LY_REV_SIZE-1);
data/libyang-1.0.184/src/parser_yang_bis.c:3588:35:  [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(((struct lys_revision *)actual)->date, s, LY_REV_SIZE);
data/libyang-1.0.184/src/parser_yang_bis.c:7273:49:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                                memcpy(s + 1, yyget_text(scanner), yyget_leng(scanner) + 1);
data/libyang-1.0.184/src/parser_yang_bis.c:7469: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(tmp_value, (yyvsp[-2].str), length);
data/libyang-1.0.184/src/parser_yang_bis.c:7509: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(tmp_value, (yyvsp[-2].str), length);
data/libyang-1.0.184/src/parser_yin.c:848: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(&bit, &type->info.bits.bit[j], sizeof bit);
data/libyang-1.0.184/src/parser_yin.c:849: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(&type->info.bits.bit[j], &type->info.bits.bit[j - 1], sizeof bit);
data/libyang-1.0.184/src/parser_yin.c:850: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(&type->info.bits.bit[j - 1], &bit, sizeof bit);
data/libyang-1.0.184/src/parser_yin.c:1960: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(rev->date, value, LY_REV_SIZE - 1);
data/libyang-1.0.184/src/parser_yin.c:2911: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(d->must + deviate_must_index, &((*trg_must)[*trg_must_size]), sizeof *d->must);
data/libyang-1.0.184/src/parser_yin.c:3734: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(imp->rev, value, LY_REV_SIZE - 1);
data/libyang-1.0.184/src/parser_yin.c:3842: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(inc->rev, value, LY_REV_SIZE - 1);
data/libyang-1.0.184/src/plugins.c:200: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(&type_plugins[type_plugins_count], &plugin[u - 1], sizeof *plugin);
data/libyang-1.0.184/src/plugins.c:289: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(&ext_plugins[ext_plugins_count], &plugin[u - 1], sizeof *plugin);
data/libyang-1.0.184/src/printer.c:111: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(&out->method.mem.buf[out->method.mem.len], msg, count);
data/libyang-1.0.184/src/printer.c:167: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(&out->buffered[out->buf_len], buf, count);
data/libyang-1.0.184/src/printer.c:184: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(&out->method.mem.buf[out->method.mem.len], buf, count);
data/libyang-1.0.184/src/printer.c:255: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(&out->method.mem.buf[position], buf, count);
data/libyang-1.0.184/src/printer.c:266: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(&out->buffered[position], buf, count);
data/libyang-1.0.184/src/printer.c:416: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(path, "w");
data/libyang-1.0.184/src/printer.c:753: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(path, "w");
data/libyang-1.0.184/src/printer_lyb.c:505:13:  [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).
        r = atoi(mod->rev[0].date);
data/libyang-1.0.184/src/printer_lyb.c:511:13:  [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).
        r = atoi(mod->rev[0].date + 5);
data/libyang-1.0.184/src/printer_lyb.c:516:13:  [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).
        r = atoi(mod->rev[0].date + 8);
data/libyang-1.0.184/src/printer_yang.c:2042:84:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            ly_print(out, "%*sargument %s", LEVEL, INDENT, ((const char ***)pp)[0][c]);
data/libyang-1.0.184/src/printer_yang.c:2072:79:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        ly_print(out, "%*sargument %s", LEVEL, INDENT, (const char *)pp[0]);
data/libyang-1.0.184/src/printer_yang.c:2096:90:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            ly_print(out, "%*sbelongs-to %s {\n", LEVEL, INDENT, ((const char ***)pp)[0][c]);
data/libyang-1.0.184/src/printer_yang.c:2102:97:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            yang_print_substmt(out, level + 1, LYEXT_SUBSTMT_PREFIX, c, ((const char ***)pp)[1][c],
data/libyang-1.0.184/src/printer_yang.c:2108:85:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        ly_print(out, "%*sbelongs-to %s {\n", LEVEL, INDENT, (const char *)pp[0]);
data/libyang-1.0.184/src/printer_yang.c:2114:92:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        yang_print_substmt(out, level + 1, LYEXT_SUBSTMT_PREFIX, 0, (const char *)pp[1],
data/libyang-1.0.184/src/printer_yin.c:2060:90:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            yin_print_open(out, level, NULL, "argument", "name", ((const char ***)pp)[0][c], 0);
data/libyang-1.0.184/src/printer_yin.c:2089:85:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        yin_print_open(out, level, NULL, "argument", "name", (const char *)pp[0], 0);
data/libyang-1.0.184/src/printer_yin.c:2113:94:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            yin_print_open(out, level, NULL, "belongs-to", "module", ((const char ***)pp)[0][c], 1);
data/libyang-1.0.184/src/printer_yin.c:2119:96:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                            yin_print_substmt(out, level + 1, LYEXT_SUBSTMT_PREFIX, c, ((const char ***)pp)[1][c],
data/libyang-1.0.184/src/printer_yin.c:2125:89:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        yin_print_open(out, level, NULL, "belongs-to", "module", (const char *)pp[0], 1);
data/libyang-1.0.184/src/printer_yin.c:2131:91:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        yin_print_substmt(out, level + 1, LYEXT_SUBSTMT_PREFIX, 0, (const char *)pp[1],
data/libyang-1.0.184/src/resolve.c:2451:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (position == atoi(pp.pred[0].name)) {
data/libyang-1.0.184/src/resolve.c:3533: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(&((struct lys_node_leaf *)node.schema)->type, type, sizeof *type);
data/libyang-1.0.184/src/resolve.c:4442:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (atoi(name) != cur_idx) {
data/libyang-1.0.184/src/resolve.c:5418: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(iff[j].expr, rfn->iffeature[k].expr, usize * sizeof *iff[j].expr);
data/libyang-1.0.184/src/resolve.c:5423: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(iff[j].features, rfn->iffeature[k].features, usize2 * sizeof *iff[j].features);
data/libyang-1.0.184/src/resolve.c:7188: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(extlist[node->ext_size], ext, sizeof *ext);
data/libyang-1.0.184/src/tree_data.c:1112: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(path, O_RDONLY);
data/libyang-1.0.184/src/tree_data.c:1448: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(ret->value.mem, value, len);
data/libyang-1.0.184/src/tree_data.c:1821: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(any->value.mem, value, len);
data/libyang-1.0.184/src/tree_data.c:2595: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(trg_any->value.mem, src_any->value.mem, len);
data/libyang-1.0.184/src/tree_data.c:4036: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(&item_aux, &ordered->items[k], sizeof item_aux);
data/libyang-1.0.184/src/tree_data.c:4040: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(&ordered->items[k], &ordered->items[k + 1], sizeof *ordered->items);
data/libyang-1.0.184/src/tree_data.c:4048: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(&ordered->items[k], &ordered->items[k - 1], sizeof *ordered->items);
data/libyang-1.0.184/src/tree_data.c:4054: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(&ordered->items[k], &item_aux, sizeof *ordered->items);
data/libyang-1.0.184/src/tree_data.c:4091:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&result->type[index], result2->type, (index2 + 1) * sizeof *result->type);
data/libyang-1.0.184/src/tree_data.c:4092:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&result->first[index], result2->first, (index2 + 1) * sizeof *result->first);
data/libyang-1.0.184/src/tree_data.c:4093:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&result->second[index], result2->second, (index2 + 1) * sizeof *result->second);
data/libyang-1.0.184/src/tree_data.c:5554: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(new_any->value.mem, old_any->value.mem, r);
data/libyang-1.0.184/src/tree_data.c:7013: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->set.g, set->set.g, new->size * sizeof *(new->set.g));
data/libyang-1.0.184/src/tree_data.c:7091: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(trg->set.g + trg->number, src->set.g, src->number * sizeof *(src->set.g));
data/libyang-1.0.184/src/tree_schema.c:1073: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(enlarged_data, data, len);
data/libyang-1.0.184/src/tree_schema.c:1130: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(enlarged_data, data, len);
data/libyang-1.0.184/src/tree_schema.c:1169: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(path, O_RDONLY);
data/libyang-1.0.184/src/tree_schema.c:1209: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 rpath[PATH_MAX];
data/libyang-1.0.184/src/tree_schema.c:1232: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 path[MAXPATHLEN];
data/libyang-1.0.184/src/tree_schema.c:1235: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 path[PATH_MAX], proc_path[32];
data/libyang-1.0.184/src/tree_schema.c:1244:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(proc_path, "/proc/self/fd/%d", fd);
data/libyang-1.0.184/src/tree_schema.c:1576: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((char *)result[u] + sizeof(**orig), (char *)orig[u] + sizeof(**orig), len - sizeof(**orig));
data/libyang-1.0.184/src/tree_schema.c:1576:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                memcpy((char *)result[u] + sizeof(**orig), (char *)orig[u] + sizeof(**orig), len - sizeof(**orig));
data/libyang-1.0.184/src/tree_schema.c:1576: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.
                memcpy((char *)result[u] + sizeof(**orig), (char *)orig[u] + sizeof(**orig), len - sizeof(**orig));
data/libyang-1.0.184/src/tree_schema.c:1772: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(new->info.ident.ref, old->info.ident.ref, old->info.ident.count * sizeof *new->info.ident.ref);
data/libyang-1.0.184/src/tree_schema.c:1930: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(prev_new->ext + prev_new->ext_size, ext, ext_size * sizeof *ext);
data/libyang-1.0.184/src/tree_schema.c:1971: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(type, prev_new, sizeof *type);
data/libyang-1.0.184/src/tree_schema.c:3196: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(retval->iffeature[i].expr, node->iffeature[i].expr, size * sizeof *retval->iffeature[i].expr);
data/libyang-1.0.184/src/tree_schema.c:3288: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(retval->iffeature, node->iffeature, retval->iffeature_size * sizeof *retval->iffeature);
data/libyang-1.0.184/src/tree_schema.c:3423: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(list->keys, list_orig->keys, list_orig->keys_size * sizeof *list->keys);
data/libyang-1.0.184/src/tree_schema.c:3721: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(mem, ((uint8_t *)node1) + offset, size);
data/libyang-1.0.184/src/tree_schema.c:3722: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(((uint8_t *)node1) + offset, ((uint8_t *)node2) + offset, size);
data/libyang-1.0.184/src/tree_schema.c:3723: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(((uint8_t *)node2) + offset, mem, size);
data/libyang-1.0.184/src/tree_schema.c:3767: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(mem, ((uint8_t *)node1) + offset, size);
data/libyang-1.0.184/src/tree_schema.c:3768: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(((uint8_t *)node1) + offset, ((uint8_t *)node2) + offset, size);
data/libyang-1.0.184/src/tree_schema.c:3769: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(((uint8_t *)node2) + offset, mem, size);
data/libyang-1.0.184/src/tree_schema.c:4303: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(buf + buf_idx + 1, node->module->name, mod_len);
data/libyang-1.0.184/src/tree_schema.c:4306: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(buf + buf_idx + 1 + (mod_len ? mod_len + 1 : 0), node->name, str_len);
data/libyang-1.0.184/src/tree_schema.h:525: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 content[1];                 /**< content of the extension instance */
data/libyang-1.0.184/src/tree_schema.h:1962: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 rev[LY_REV_SIZE];           /**< revision-date of the imported module (optional) */
data/libyang-1.0.184/src/tree_schema.h:1974: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 rev[LY_REV_SIZE];           /**< revision-date of the included submodule (optional) */
data/libyang-1.0.184/src/tree_schema.h:1985: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 date[LY_REV_SIZE];          /**< revision-date (mandatory) */
data/libyang-1.0.184/src/user_types/user_inet_types.c:41: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[sizeof(struct in6_addr)], *str;
data/libyang-1.0.184/src/user_types/user_yang_types.c:52:18:  [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).
    tm.tm_year = atoi(val_str + i);
data/libyang-1.0.184/src/user_types/user_yang_types.c:68:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tm.tm_mon = atoi(val_str + i);
data/libyang-1.0.184/src/user_types/user_yang_types.c:83:18:  [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).
    tm.tm_mday = atoi(val_str + i);
data/libyang-1.0.184/src/user_types/user_yang_types.c:97:18:  [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).
    tm.tm_hour = atoi(val_str + i);
data/libyang-1.0.184/src/user_types/user_yang_types.c:111:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tm.tm_min = atoi(val_str + i);
data/libyang-1.0.184/src/user_types/user_yang_types.c:125:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    tm.tm_sec = atoi(val_str + i);
data/libyang-1.0.184/src/user_types/user_yang_types.c:148: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(((char *)&tm2) + (6 * sizeof(int)), ((char *)&tm) + (6 * sizeof(int)), sizeof(struct tm) - (6 * sizeof(int)));
data/libyang-1.0.184/src/xml.c:670: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[BUFSIZE];
data/libyang-1.0.184/src/xml.c:695: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(&result[size - o], buf, o);
data/libyang-1.0.184/src/xml.c:800:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&result[size - o], buf, o);
data/libyang-1.0.184/src/xml.c:873: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(prefix, data, c - data);
data/libyang-1.0.184/src/xml.c:987: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(prefix, c, prefix_len);
data/libyang-1.0.184/src/xml.c:1069: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(str, c, e - c);
data/libyang-1.0.184/src/xml.c:1338: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(filename, O_RDONLY);
data/libyang-1.0.184/src/xpath.c:163: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[128];
data/libyang-1.0.184/src/xpath.c:174: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(tmp + strlen(tmp), " (repeat %d", exp->repeat[i][0]);
data/libyang-1.0.184/src/xpath.c:176:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(tmp + strlen(tmp), ", %d", exp->repeat[i][j]);
data/libyang-1.0.184/src/xpath.c:785: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(ret->val.nodes, set->val.nodes, set->used * sizeof *ret->val.nodes);
data/libyang-1.0.184/src/xpath.c:795:8:  [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(ret, set, sizeof *ret);
data/libyang-1.0.184/src/xpath.c:876: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(trg->val.nodes, src->val.nodes, src->used * sizeof *src->val.nodes);
data/libyang-1.0.184/src/xpath.c:903: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(trg->val.nodes, src->val.nodes, src->used * sizeof *src->val.nodes);
data/libyang-1.0.184/src/xpath.c:1067: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(set1, set2, sizeof *set1);
data/libyang-1.0.184/src/xpath.c:1088: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(&set1->val.snodes[set1->used], &set2->val.snodes[i], sizeof *set2->val.snodes);
data/libyang-1.0.184/src/xpath.c:1737: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(&trg->val.nodes[j - dup_count], &src->val.nodes[i - count], count * sizeof *src->val.nodes);
data/libyang-1.0.184/src/xpath.c:5941: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(set, &ret_set, sizeof *set);
data/libyang-1.0.184/src/xpath.c:6204: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(set1, set2, sizeof *set1);
data/libyang-1.0.184/src/xpath.c:6471: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(set, &ret_set, sizeof *set);
data/libyang-1.0.184/swig/cpp/tests/test_tree_data.cpp:169:19:  [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(config_file, "r");
data/libyang-1.0.184/swig/cpp/tests/test_tree_schema.cpp:336:19:  [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(yin_file, "r");
data/libyang-1.0.184/swig/cpp/tests/test_tree_schema.cpp:342:13:  [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(yang_file, "r");
data/libyang-1.0.184/swig/cpp/tests/test_tree_schema.cpp:364:13:  [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(yin_file, "r");
data/libyang-1.0.184/tests/api/test_dict.c:59: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(yang_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_libyang.c:135: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 yang_folder[PATH_MAX];
data/libyang-1.0.184/tests/api/test_libyang.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 yang_folder[PATH_MAX];
data/libyang-1.0.184/tests/api/test_libyang.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 new_yang_folder[PATH_MAX];
data/libyang-1.0.184/tests/api/test_libyang.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 yang_folder[PATH_MAX];
data/libyang-1.0.184/tests/api/test_tree_data.c:198: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(config_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_data.c:376: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(config_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_data.c:1317: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[20];
data/libyang-1.0.184/tests/api/test_tree_data.c:1324:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_data.c:1360: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[20];
data/libyang-1.0.184/tests/api/test_tree_data.c:1367:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_data.c:1403: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[20];
data/libyang-1.0.184/tests/api/test_tree_data.c:1410:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_data.c:1445: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[20];
data/libyang-1.0.184/tests/api/test_tree_data.c:1454:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_data.c:1460: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_tree_data.c:1472: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_data.c:1500: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[20];
data/libyang-1.0.184/tests/api/test_tree_data.c:1509:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_data.c:1515: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_tree_data.c:1527: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_data.c:1555: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[20];
data/libyang-1.0.184/tests/api/test_tree_data.c:1564:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_data.c:1570: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_tree_data.c:1582: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_data_merge.c:179: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(st->path + (strlen(st->path) - 6), "%02u.xml", i);
data/libyang-1.0.184/tests/api/test_tree_schema.c:404: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(yin_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:417: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(yang_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:449: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(yin_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:455: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(yang_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:859: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:872:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:909: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:922:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:959: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:972:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1010: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1023:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1061: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_name1[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1062: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_name2[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1077:11:  [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).
    fd1 = mkstemp(file_name1);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1078:11:  [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).
    fd2 = mkstemp(file_name2);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1134: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1148:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1154: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1166: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1196: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1210:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1216: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1228: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1258: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1272:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1278: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1290: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1321: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[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1335:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1341: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1353: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1384: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_name1[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1385: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_name2[20];
data/libyang-1.0.184/tests/api/test_tree_schema.c:1401:11:  [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).
    fd1 = mkstemp(file_name1);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1402:11:  [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).
    fd2 = mkstemp(file_name2);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1409:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f1 = (fopen(file_name1,"r+"));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1410:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f2 = (fopen(file_name2,"r+"));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1423:11:  [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).
    fd1 = open(file_name1, O_RDONLY);
data/libyang-1.0.184/tests/api/test_tree_schema.c:1439:11:  [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).
    fd2 = open(file_name2, O_RDONLY);
data/libyang-1.0.184/tests/api/test_xml.c:119: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(yang_file, O_RDONLY);
data/libyang-1.0.184/tests/api/test_xml.c:236: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[20];
data/libyang-1.0.184/tests/api/test_xml.c:243:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_xml.c:283: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[20];
data/libyang-1.0.184/tests/api/test_xml.c:299:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(file_name);
data/libyang-1.0.184/tests/api/test_xml.c:305: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).
    f = (fopen(file_name,"r+"));
data/libyang-1.0.184/tests/api/test_xml.c:317: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(file_name, O_RDONLY);
data/libyang-1.0.184/tests/conformance/test_sec5_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec5_5.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.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 buf[1024];
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.c:94: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.c:114: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec6_1_3.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 buf[1024];
data/libyang-1.0.184/tests/conformance/test_sec6_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec6_2_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_10.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_11.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_12_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_12_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_13_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_13_2.c:84: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_13_3.c:87: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_14.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_15.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_15_1.c:81: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_16_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_16_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_18_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_18_2.c:83: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_18_3_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_19_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_19_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_19_5.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_3.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_3_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_3_4.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_5_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_5_4.c:82: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_5_5.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_6_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_6_3.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_6_4.c:85: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_6_5.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_7_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_7_3.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_7_4.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_7_5.c:84: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_8_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_8_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_8_3.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_9_1.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_9_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_9_3.c:85: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec7_9_4.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_10.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_11.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_12.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_13.c:81: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_2.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_3.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_4_4.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_4_6.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_5.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_6.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_7.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_8.c:80: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[1024];
data/libyang-1.0.184/tests/conformance/test_sec9_9.c:80: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[1024];
data/libyang-1.0.184/tests/data/test_data_initialization.c:57: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(yang_file, O_RDONLY);
data/libyang-1.0.184/tests/data/test_data_initialization.c:65: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(config_file, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:877: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(TESTS_DIR"/data/files/all-dev.yin", O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:898: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(TESTS_DIR"/data/files/all.yin", O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:929: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(TESTS_DIR"/data/files/all-dev.yang", O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:950: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(TESTS_DIR"/data/files/all.yang", O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:979: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(data, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1002: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(rpc, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1023: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(rpcreply, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1055: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(act, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1076: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(actreply, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1106: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(notif, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1129: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(innotif, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1160: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(data, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1183: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(rpc, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1204: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(rpcreply, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1236: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(act, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1257: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(actreply, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1287: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(notif, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1312: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(innotif, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1341: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(json, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1364: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(xml, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1396: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(data, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1425: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(rpc, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1452: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(rpcreply, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1490: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(act, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1517: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(actreply, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1553: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(notif, O_RDONLY);
data/libyang-1.0.184/tests/data/test_parse_print.c:1582: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(innotif, O_RDONLY);
data/libyang-1.0.184/tests/internal/test_lyb.c:579: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(st->mem, ((struct lyd_node_anydata *)st->dt1->child)->value.mem, ret);
data/libyang-1.0.184/tests/perf/addloop.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[30];
data/libyang-1.0.184/tests/perf/addloop.c:47:7:  [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("./addloop_result.xml", O_WRONLY | O_CREAT, 0666);
data/libyang-1.0.184/tests/perf/addloop.c:52:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(buf, "%d", i);//}
data/libyang-1.0.184/tests/schema/test_augment.c:40:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *yang_modules[2 * MOD_COUNT] = {0};
data/libyang-1.0.184/tests/schema/test_augment.c:41:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *yin_modules[2 * MOD_COUNT] = {0};
data/libyang-1.0.184/tests/schema/test_augment.c:49: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(*state, SCHEMA_FOLDER_YIN, strlen(SCHEMA_FOLDER_YIN) + 1);
data/libyang-1.0.184/tests/schema/test_augment.c:64: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(*state, SCHEMA_FOLDER_YANG, strlen(SCHEMA_FOLDER_YANG) + 1);
data/libyang-1.0.184/tests/schema/test_augment.c:93:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/a.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:100:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/a.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:119:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/b1.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:126:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/b2.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:133:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/b1.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:140:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/b2.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:162:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/leafref_w_feature1-mod3.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:167:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/leafref_w_feature1-mod3.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:193:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/leafref_w_feature2-mod1.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:198:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/leafref_w_feature2-mod1.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:225:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/leafref_w_feature1-mod4.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:230:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/leafref_w_feature1-mod4.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:259:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/imp_aug_m1.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:264:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/imp_aug_m1.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:281:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/c1.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:288:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/c2.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:295:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/c3.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:302:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/c1.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:309:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/c2.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:316:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/c3.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:335:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/emod.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:342:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/emod.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:361:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/g1.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:368:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/g1.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:387:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/mainmodule.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:392:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/mainmodule.yang");
data/libyang-1.0.184/tests/schema/test_augment.c:419:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/installme.yin");
data/libyang-1.0.184/tests/schema/test_augment.c:424:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(path + length, "/installme.yang");
data/libyang-1.0.184/tests/schema/test_conformance.c:556: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 filepath[256] = {0};
data/libyang-1.0.184/tests/schema/test_extensions.c:3483: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 *yin[17];
data/libyang-1.0.184/tests/schema/test_extensions.c:3830: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 *yang[17];
data/libyang-1.0.184/tests/schema/test_extensions.c:4065: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 *yin[8];
data/libyang-1.0.184/tests/schema/test_extensions.c:4218: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 *yang[8];
data/libyang-1.0.184/tests/schema/test_ietf.c:40:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char files[SCHEMA_COUNT][32] = { "iana-crypt-hash", "iana-if-type",
data/libyang-1.0.184/tests/schema/test_ietf.c:47:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char yang_files[34][50] = {};
data/libyang-1.0.184/tests/schema/test_ietf.c:48:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char yin_files[34][50] = {};
data/libyang-1.0.184/tests/schema/test_ietf.c:107: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(filename, "w");
data/libyang-1.0.184/tests/schema/test_ietf.c:120: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 *extension, path[PATH_MAX];
data/libyang-1.0.184/tests/schema/test_ietf.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 filename[1024];
data/libyang-1.0.184/tests/schema/test_ietf.c:161: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 (*files)[2 * SCHEMA_COUNT][50] = *state;
data/libyang-1.0.184/tests/schema/test_ietf.c:172:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f1 = fopen(filename, "r");
data/libyang-1.0.184/tests/schema/test_ietf.c:181:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        f2 = fopen(filename, "r");
data/libyang-1.0.184/tests/schema/test_refine.c:43: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(*state, SCHEMA_FOLDER_YANG, strlen(SCHEMA_FOLDER_YANG) + 1);
data/libyang-1.0.184/tests/schema/test_refine.c:73:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(path + length, "/refgrp-m1.yang");
data/libyang-1.0.184/tests/schema/test_typedef.c:93: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).
    st->fd = open(schema, O_RDONLY);
data/libyang-1.0.184/tests/schema/test_typedef.c:116: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).
    st->fd = open(schema, O_RDONLY);
data/libyang-1.0.184/tests/schema/yin/test_print_transform.c:104: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(yang_file, "r");
data/libyang-1.0.184/tests/schema/yin/test_print_transform.c:116: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(yin_file, "r");
data/libyang-1.0.184/tools/lint/commands.c:437:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            tree_ll = atoi(optarg);
data/libyang-1.0.184/tools/lint/commands.c:481: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).
        output = fopen(out_path, "w");
data/libyang-1.0.184/tools/lint/commands.c:815: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).
        output = fopen(out_path, "w");
data/libyang-1.0.184/tools/lint/main_ni.c:396:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            outline_length_s = atoi(optarg);
data/libyang-1.0.184/tools/lint/main_ni.c:430:19:  [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).
            out = fopen(optarg, "w");
data/libyang-1.0.184/tools/re/main.c:148:22:  [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).
            infile = fopen(optarg, "r");
data/libyang-1.0.184/tools/yang2yin/main.c:303:19:  [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).
            ret = fopen(path, "r");
data/libyang-1.0.184/tools/yang2yin/main.c:1847:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        input = fopen(in_file, "r");
data/libyang-1.0.184/tools/yang2yin/main.c:1859: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).
        output = fopen(out_file, "w");
data/libyang-1.0.184/compat/compat.c:121: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(line);
data/libyang-1.0.184/linenoise/linenoise.c:258:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(ifd,buf+i,1) != 1) break;
data/libyang-1.0.184/linenoise/linenoise.c:292: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 (write(ofd,seq,strlen(seq)) == -1) {
data/libyang-1.0.184/linenoise/linenoise.c:359: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).
            for (j = 0; j < strlen(lc.cvec[i]); ++j) {
data/libyang-1.0.184/linenoise/linenoise.c:374:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((lc.len == 1) && (common[strlen(common) - 1] != '/')) {
data/libyang-1.0.184/linenoise/linenoise.c:390:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(ls->ifd,&c,1);
data/libyang-1.0.184/linenoise/linenoise.c:406: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).
        hint_len = strlen(lc.cvec[0]);
data/libyang-1.0.184/linenoise/linenoise.c:408: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).
            if (strlen(lc.cvec[i]) > (unsigned)hint_len) {
data/libyang-1.0.184/linenoise/linenoise.c:409: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).
                hint_len = strlen(lc.cvec[i]);
data/libyang-1.0.184/linenoise/linenoise.c:454:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            nread = read(ls->ifd,&c,1);
data/libyang-1.0.184/linenoise/linenoise.c:498: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).
    hint_ptr = full_path + strlen(full_path);
data/libyang-1.0.184/linenoise/linenoise.c:511:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(ptr, ent->d_name, strlen(ptr))) {
data/libyang-1.0.184/linenoise/linenoise.c:521:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat(match, "/");
data/libyang-1.0.184/linenoise/linenoise.c:537: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(str);
data/libyang-1.0.184/linenoise/linenoise.c:587: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).
    size_t plen = strlen(l->prompt);
data/libyang-1.0.184/linenoise/linenoise.c:606: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).
    abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:608: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).
    abAppend(&ab,l->prompt,strlen(l->prompt));
data/libyang-1.0.184/linenoise/linenoise.c:612: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).
    abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:615: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).
    abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:626: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).
    int plen = strlen(l->prompt);
data/libyang-1.0.184/linenoise/linenoise.c:644: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).
        abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:651: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).
        abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:657: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).
    abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:660: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).
    abAppend(&ab,l->prompt,strlen(l->prompt));
data/libyang-1.0.184/linenoise/linenoise.c:672: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).
        abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:685: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).
        abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:695: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).
    abAppend(&ab,seq,strlen(seq));
data/libyang-1.0.184/linenoise/linenoise.c:793:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(l->buf,history[history_len - 1 - l->history_index],l->buflen);
data/libyang-1.0.184/linenoise/linenoise.c:795:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        l->len = l->pos = strlen(l->buf);
data/libyang-1.0.184/linenoise/linenoise.c:855: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).
    ls.plen = strlen(prompt);
data/libyang-1.0.184/linenoise/linenoise.c:875:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(ls.ifd,&c,1);
data/libyang-1.0.184/linenoise/linenoise.c:937:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(ls.ifd,seq,1) == -1) break;
data/libyang-1.0.184/linenoise/linenoise.c:938:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(ls.ifd,seq+1,1) == -1) break;
data/libyang-1.0.184/linenoise/linenoise.c:944:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (read(ls.ifd,seq+2,1) == -1) break;
data/libyang-1.0.184/linenoise/linenoise.c:1033:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        nread = read(STDIN_FILENO,&c,1);
data/libyang-1.0.184/linenoise/linenoise.c:1059: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).
        count = strlen(buf);
data/libyang-1.0.184/linenoise/linenoise.c:1089: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(buf);
data/libyang-1.0.184/src/common.c:279:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&(*out)[*out_used], end, cur_expr - end);
data/libyang-1.0.184/src/common.c:317: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).
                    name_len = strlen(cur_expr);
data/libyang-1.0.184/src/common.c:348: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).
            *out_size += strlen(prefix) + 1 - name_len;
data/libyang-1.0.184/src/common.c:354: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).
            *out_used += strlen(prefix);
data/libyang-1.0.184/src/common.c:363:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&(*out)[*out_used], end, exp->tok_len[i] - name_len);
data/libyang-1.0.184/src/common.c:376:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&(*out)[*out_used], literal, exp->tok_len[i] - 2);
data/libyang-1.0.184/src/common.c:387:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&(*out)[*out_used], &exp->expr[exp->expr_pos[i]], exp->tok_len[i]);
data/libyang-1.0.184/src/common.c:421: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).
    out_size = strlen(expr) + 1;
data/libyang-1.0.184/src/common.c:480:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&(*out)[*out_used], end, cur_expr - end);
data/libyang-1.0.184/src/common.c:515: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).
                *out_size += strlen(mod->name) - pref_len;
data/libyang-1.0.184/src/common.c:524: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).
                *out_used += strlen(mod->name);
data/libyang-1.0.184/src/common.c:535:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&(*out)[*out_used], end, exp->tok_len[i] - pref_len);
data/libyang-1.0.184/src/common.c:553:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&(*out)[*out_used], literal, exp->tok_len[i] - 2);
data/libyang-1.0.184/src/common.c:564:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&(*out)[*out_used], &exp->expr[exp->expr_pos[i]], exp->tok_len[i]);
data/libyang-1.0.184/src/common.c:584: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).
    out_size = strlen(expr) + 1;
data/libyang-1.0.184/src/common.c:635: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).
    out_size = strlen(expr) + 1;
data/libyang-1.0.184/src/common.c:648:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&out[out_used], end, cur_expr - end);
data/libyang-1.0.184/src/common.c:662:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            out_size += strlen(mod->name) - pref_len;
data/libyang-1.0.184/src/common.c:668:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            out_used += strlen(mod->name);
data/libyang-1.0.184/src/common.c:671:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&out[out_used], end, exp->tok_len[i] - pref_len);
data/libyang-1.0.184/src/common.c:684: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).
                out_size += strlen(mod->name) - pref_len;
data/libyang-1.0.184/src/common.c:689:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&out[out_used], cur_expr, ptr - cur_expr);
data/libyang-1.0.184/src/common.c:694: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).
                out_used += strlen(mod->name);
data/libyang-1.0.184/src/common.c:697:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&out[out_used], end, (exp->tok_len[i] - pref_len) - (ptr - cur_expr));
data/libyang-1.0.184/src/common.c:700:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&out[out_used], &exp->expr[exp->expr_pos[i]], exp->tok_len[i]);
data/libyang-1.0.184/src/common.c:704:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(&out[out_used], &exp->expr[exp->expr_pos[i]], exp->tok_len[i]);
data/libyang-1.0.184/src/common.c:729: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).
    out_size = strlen(in) + 1;
data/libyang-1.0.184/src/common.c:739:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            out_used += strlen(in) + 1;
data/libyang-1.0.184/src/common.c:765:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        out_size += strlen(mod->name) - id_len;
data/libyang-1.0.184/src/common.c:770:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(&out[out_used], in, id - in);
data/libyang-1.0.184/src/common.c:775:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        out_used += strlen(mod->name);
data/libyang-1.0.184/src/common.c:809:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(*out + *out_used, end, cur_expr - end);
data/libyang-1.0.184/src/common.c:815:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(*out + *out_used, &exp->expr[exp->expr_pos[*i]], exp->tok_len[*i]);
data/libyang-1.0.184/src/common.c:830:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(*out + *out_used, &exp->expr[exp->expr_pos[*i]], exp->tok_len[*i]);
data/libyang-1.0.184/src/common.c:854: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).
                *out_size += (strlen(prev_mod->name) - name_len) + 1;
data/libyang-1.0.184/src/common.c:860: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).
                *out_used += strlen(prev_mod->name);
data/libyang-1.0.184/src/common.c:868:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(*out + *out_used, end, exp->tok_len[*i] - name_len);
data/libyang-1.0.184/src/common.c:884: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).
                *out_size += strlen(mod->name) - name_len;
data/libyang-1.0.184/src/common.c:889:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(*out + *out_used, cur_expr, ptr - cur_expr);
data/libyang-1.0.184/src/common.c:894: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).
                *out_used += strlen(mod->name);
data/libyang-1.0.184/src/common.c:897:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(*out + *out_used, end, (exp->tok_len[*i] - name_len) - (ptr - cur_expr));
data/libyang-1.0.184/src/common.c:900:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(*out + *out_used, &exp->expr[exp->expr_pos[*i]], exp->tok_len[*i]);
data/libyang-1.0.184/src/common.c:904:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(*out + *out_used, &exp->expr[exp->expr_pos[*i]], exp->tok_len[*i]);
data/libyang-1.0.184/src/common.c:924: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).
    out_size = strlen(expr) + 1;
data/libyang-1.0.184/src/common.c:1094: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).
                        len = slash + strlen(lys_node_module(node2)->name) + 1 + strlen(node2->name);
data/libyang-1.0.184/src/common.c:1094:82:  [1] (buffer) strlen:
  Does not handle 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 = slash + strlen(lys_node_module(node2)->name) + 1 + strlen(node2->name);
data/libyang-1.0.184/src/common.c:1101: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).
                        len = slash + strlen(node2->name);
data/libyang-1.0.184/src/common.c:1385: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).
    full_hash = dict_hash_multi(0, mod->name, strlen(mod->name));
data/libyang-1.0.184/src/common.c:1386:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    full_hash = dict_hash_multi(full_hash, sibling->name, strlen(sibling->name));
data/libyang-1.0.184/src/common.c:1388: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).
        if (collision_id > strlen(mod->name)) {
data/libyang-1.0.184/src/common.c:1390:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ext_len = strlen(mod->name);
data/libyang-1.0.184/src/common.c:1463: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).
    for (len = 0, clen = strlen(str), ptr = str; *ptr && len < clen; ++len, ptr += UTF8LEN(*ptr));
data/libyang-1.0.184/src/context.c:886:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    && !strncmp(filepath, ctx->models.list[i]->filepath, strlen(filepath))) {
data/libyang-1.0.184/src/context.c:933: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(result->name);
data/libyang-1.0.184/src/context.c:1689: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).
                if (ptr && ptr[strlen(cur_mod->name)] == ':') {
data/libyang-1.0.184/src/hash_table.c:188: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);
data/libyang-1.0.184/src/hash_table.c:276: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);
data/libyang-1.0.184/src/hash_table.c:298: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).
    result = dict_insert(ctx, value, strlen(value), 1);
data/libyang-1.0.184/src/hash_table.c:680:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    i_len = strlen(val);
data/libyang-1.0.184/src/log.c:636:66:  [1] (buffer) strlen:
  Does not handle 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 (ly_vlog_build_path_print(path, &index, name, strlen(name), &length)) {
data/libyang-1.0.184/src/log.c:707: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).
                                len = strlen(((struct lyd_node_leaf_list *)diter)->value_str);
data/libyang-1.0.184/src/log.c:717: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).
                                len = strlen(diter->schema->name);
data/libyang-1.0.184/src/log.c:726: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).
                                    len = strlen(lyd_node_module(diter)->name);
data/libyang-1.0.184/src/log.c:777:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    len = strlen(((struct lyd_node_leaf_list *)elem)->value_str);
data/libyang-1.0.184/src/log.c:791:70:  [1] (buffer) strlen:
  Does not handle 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 (ly_vlog_build_path_print(path, &index, name, strlen(name), &length)) {
data/libyang-1.0.184/src/log.c:805: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((const char *)elem);
data/libyang-1.0.184/src/log.c:816:62:  [1] (buffer) strlen:
  Does not handle 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 (ly_vlog_build_path_print(path, &index, name, strlen(name), &length)) {
data/libyang-1.0.184/src/log.c:826:68:  [1] (buffer) strlen:
  Does not handle 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 (ly_vlog_build_path_print(path, &index, prefix, strlen(prefix), &length)) {
data/libyang-1.0.184/src/log.c:835: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(((struct lys_node_augment *)sparent)->target_name);
data/libyang-1.0.184/src/log.c:915: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).
        fmt = malloc(2 * strlen(str) + 1);
data/libyang-1.0.184/src/log.c:918: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).
            memmove(ptr + 1, ptr, strlen(ptr) + 1);
data/libyang-1.0.184/src/parser.c:640:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       val_str, strlen(val_str), 0, 0, NULL, 0);
data/libyang-1.0.184/src/parser.c:645: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).
        rc = pcre_exec(precomp, NULL, val_str, strlen(val_str), 0, 0, NULL, 0);
data/libyang-1.0.184/src/parser.c:850: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).
    perl_regex = malloc((strlen(pattern) + 4 + count) * sizeof(char));
data/libyang-1.0.184/src/parser.c:856:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(pattern) > 1) && strncmp(pattern + strlen(pattern) - 2, ".*", 2)) {
data/libyang-1.0.184/src/parser.c:856:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(pattern) > 1) && strncmp(pattern + strlen(pattern) - 2, ".*", 2)) {
data/libyang-1.0.184/src/parser.c:895: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).
            perl_regex = ly_realloc(perl_regex, strlen(perl_regex) + (LYP_URANGE_LEN - (end - start)) + 1);
data/libyang-1.0.184/src/parser.c:901:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (!strncmp(perl_regex + start + 5, lyp_ublock2urange[idx][0], strlen(lyp_ublock2urange[idx][0]))) {
data/libyang-1.0.184/src/parser.c:922:82:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            memmove(perl_regex + start + (LYP_URANGE_LEN - 2), perl_regex + end, strlen(perl_regex + end) + 1);
data/libyang-1.0.184/src/parser.c:925:76:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            memmove(perl_regex + start + LYP_URANGE_LEN, perl_regex + end, strlen(perl_regex + end) + 1);
data/libyang-1.0.184/src/parser.c:1013: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).
                LY_CHECK_ERR_RETURN(strlen(buf) + 1 + strlen(bits[i]->name) > buf_len, LOGBUF(bits[i]->name), -1);
data/libyang-1.0.184/src/parser.c:1013:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                LY_CHECK_ERR_RETURN(strlen(buf) + 1 + strlen(bits[i]->name) > buf_len, LOGBUF(bits[i]->name), -1);
data/libyang-1.0.184/src/parser.c:1014: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).
                sprintf(buf + strlen(buf), " %s", bits[i]->name);
data/libyang-1.0.184/src/parser.c:1016: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).
                LY_CHECK_ERR_RETURN(strlen(bits[i]->name) > buf_len, LOGBUF(bits[i]->name), -1);
data/libyang-1.0.184/src/parser.c:1026:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            LY_CHECK_ERR_RETURN(strlen(module_name) + 1 + strlen(*value) > buf_len, LOGBUF(*value), -1);
data/libyang-1.0.184/src/parser.c:1026:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            LY_CHECK_ERR_RETURN(strlen(module_name) + 1 + strlen(*value) > buf_len, LOGBUF(*value), -1);
data/libyang-1.0.184/src/parser.c:1029:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            LY_CHECK_ERR_RETURN(strlen(*value) > buf_len, LOGBUF(*value), -1);
data/libyang-1.0.184/src/parser.c:1050:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&buf[count], end, cur_expr - end);
data/libyang-1.0.184/src/parser.c:1066:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(&buf[count], cur_expr, j);
data/libyang-1.0.184/src/parser.c:1077:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&buf[count], end, exp->tok_len[i] - j);
data/libyang-1.0.184/src/parser.c:1085:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(&buf[count], &exp->expr[exp->expr_pos[i]], exp->tok_len[i]);
data/libyang-1.0.184/src/parser.c:1277: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).
            u = strlen(ptr);
data/libyang-1.0.184/src/parser.c:3849: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).
        pref_len = strlen(prefix);
data/libyang-1.0.184/src/parser.c:3852: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).
        name_len = strlen(name);
data/libyang-1.0.184/src/parser_json.c:307:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(num, "-");
data/libyang-1.0.184/src/parser_json.c:316:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(num + strlen(num), "%0*d", -dot_pos, 0);
data/libyang-1.0.184/src/parser_json.c:320: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).
    for (ptr = num + strlen(num), number_ptr = number; (unsigned)(number_ptr - number) < num_len_no_e; ) {
data/libyang-1.0.184/src/parser_json.c:343:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(num + strlen(num), "%0*d", dot_pos - num_len_no_e, 0);
data/libyang-1.0.184/src/parser_json.c:960:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                sparent = lyp_get_yang_data_template(module, yang_data_name, strlen(yang_data_name));
data/libyang-1.0.184/src/parser_lyb.c:566: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).
                str = ly_realloc(str, str_len + strlen(value->bit[i]->name) + (str_len ? 1 : 0) + 1);
data/libyang-1.0.184/src/parser_lyb.c:933:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sparent = lyp_get_yang_data_template(mod, yang_data_name, strlen(yang_data_name));
data/libyang-1.0.184/src/parser_xml.c:159:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    ext_node = lyp_get_yang_data_template(mod, yang_data_name, strlen(yang_data_name));
data/libyang-1.0.184/src/parser_xml.c:232: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).
                msg = malloc(22 + strlen(xml->content) + 1);
data/libyang-1.0.184/src/parser_yang.c:1191: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);
data/libyang-1.0.184/src/parser_yang.c:1279:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (isspace(enm->name[0]) || isspace(enm->name[strlen(enm->name) - 1])) {
data/libyang-1.0.184/src/parser_yang.c:1543: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).
    u = strlen(value);
data/libyang-1.0.184/src/parser_yang.c:2600: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).
    size = (size_data) ? size_data : strlen(data) + 2;
data/libyang-1.0.184/src/parser_yang.c:2640:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(data) + 2;
data/libyang-1.0.184/src/parser_yang_bis.c:2568: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).
#   define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
data/libyang-1.0.184/src/parser_yang_bis.c:3194: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).
                int length_s = strlen(s), length_tmp = yyget_leng(scanner);
data/libyang-1.0.184/src/parser_yang_bis.c:7053:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              { if (strlen(s) == 1 && s[0] == '0') {
data/libyang-1.0.184/src/parser_yang_bis.c:7259:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                s = ly_realloc(s,strlen(s) + yyget_leng(scanner) + 2);
data/libyang-1.0.184/src/parser_yang_bis.c:7264:49:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                                                strcat(s,"/");
data/libyang-1.0.184/src/parser_yang_bis.c:7280:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                              s = ly_realloc(s,strlen(s) + yyget_leng(scanner) + 1);
data/libyang-1.0.184/src/parser_yang_bis.c:7306:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                                s[strlen(s) - 1] = '\0';
data/libyang-1.0.184/src/parser_yang_bis.c:7320:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                      s[strlen(s) - 1] = '\0';
data/libyang-1.0.184/src/parser_yang_bis.c:7460: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((yyvsp[-2].str));
data/libyang-1.0.184/src/parser_yang_bis.c:7461: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).
        old_length = (substmt->ext_substmt) ? strlen(substmt->ext_substmt) + 2 : 2;
data/libyang-1.0.184/src/parser_yang_bis.c:7490: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((yyvsp[-2].str));
data/libyang-1.0.184/src/parser_yang_lex.c:1927:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/libyang-1.0.184/src/parser_yang_lex.c:3463: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).
	return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner);
data/libyang-1.0.184/src/parser_yin.c:129: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(node->child->content);
data/libyang-1.0.184/src/parser_yin.c:689:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            type->info.bits.bit[i].name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:985:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            type->info.enums.enm[i].name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:993:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (isspace(value[0]) || isspace(value[strlen(value) - 1])) {
data/libyang-1.0.184/src/parser_yin.c:1496:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len = strlen(value);
data/libyang-1.0.184/src/parser_yin.c:1654:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tpdf->name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:1688:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            tpdf->dflt = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:1699:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            tpdf->units = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:1772: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).
    ext->name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:1786:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ext->argument = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:1859:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    f->name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:2997:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                u = strlen(value);
data/libyang-1.0.184/src/parser_yin.c:3580:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            rfn->mod.presence = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:3682:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            rfn->dflt[rfn->dflt_size++] = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:3720:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            imp->prefix = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:3929: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).
        node->name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:4715:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            leaf->dflt = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:4726:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            leaf->units = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:4939:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            llist->units = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:5136:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            llist->dflt[llist->dflt_size++] = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:5621:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            cont->presence = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:6659: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).
            trg->ns = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:6683:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            trg->prefix = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:6732:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            submodule->prefix = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:7285: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).
    submodule->name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:7369: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).
    module->name = lydict_insert(ctx, value, strlen(value));
data/libyang-1.0.184/src/parser_yin.c:8294:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (*(struct lys_restr **)p)->expr = malloc((strlen(value) + 2) * sizeof(char));
data/libyang-1.0.184/src/plugins.c:323: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(file->d_name);
data/libyang-1.0.184/src/printer_info.c:67:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(label) < INDENT_LEN-1);
data/libyang-1.0.184/src/printer_json.c:458:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (level && (!any->value.str || (any->value.str[strlen(any->value.str) - 1] != '\n'))) {
data/libyang-1.0.184/src/printer_lyb.c:466: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).
        str_len = strlen(str);
data/libyang-1.0.184/src/printer_tree.c:207:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            name_len = strlen(sub->name);
data/libyang-1.0.184/src/printer_tree.c:212:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    name_len += strlen(nodemod->prefix);
data/libyang-1.0.184/src/printer_tree.c:214:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    name_len += strlen(nodemod->name);
data/libyang-1.0.184/src/printer_tree.c:322: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).
                    printed = 3 + strlen(str);
data/libyang-1.0.184/src/printer_tree.c:333: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).
                    printed = 3 + strlen(type->info.lref.path);
data/libyang-1.0.184/src/printer_tree.c:347:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                printed = strlen(str) + 1 + strlen(type->der->name);
data/libyang-1.0.184/src/printer_tree.c:347:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                printed = strlen(str) + 1 + strlen(type->der->name);
data/libyang-1.0.184/src/printer_tree.c:357:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                printed = strlen(type->der->module->name) + 1 + strlen(type->der->name);
data/libyang-1.0.184/src/printer_tree.c:357:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                printed = strlen(type->der->module->name) + 1 + strlen(type->der->name);
data/libyang-1.0.184/src/printer_tree.c:368:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            printed = strlen(type->der->name);
data/libyang-1.0.184/src/printer_tree.c:642:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                line_len = tree_print_wrap(out, level, line_len, 1, 2 + strlen(text_str), opts);
data/libyang-1.0.184/src/printer_tree.c:649:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                line_len = tree_print_wrap(out, level, line_len, 1, 2 + strlen(sub->name), opts);
data/libyang-1.0.184/src/printer_tree.c:842: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(cur) + 1;
data/libyang-1.0.184/src/printer_yang.c:46: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(text);
data/libyang-1.0.184/src/printer_yang.c:133:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yang_encode(out, t, strlen(t));
data/libyang-1.0.184/src/printer_yang.c:1984: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).
            ext_name = malloc(strlen(prefix) + 1 + strlen(ext[u]->def->name) + 1);
data/libyang-1.0.184/src/printer_yang.c:1984:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            ext_name = malloc(strlen(prefix) + 1 + strlen(ext[u]->def->name) + 1);
data/libyang-1.0.184/src/resolve.c:667:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        *pref_len = strlen(*prefix);
data/libyang-1.0.184/src/resolve.c:1881: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).
                    || (mod_name_len != (signed)strlen(cur_module->name)))) {
data/libyang-1.0.184/src/resolve.c:2623: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).
            pp.pred[0].val_len = strlen(pp.pred[0].value);
data/libyang-1.0.184/src/resolve.c:2718:91:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            && !strncmp(llist->value_str, lyd_node_module(sibling)->name, strlen(lyd_node_module(sibling)->name))
data/libyang-1.0.184/src/resolve.c:2719: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).
                            && (llist->value_str[strlen(lyd_node_module(sibling)->name)] == ':')) {
data/libyang-1.0.184/src/resolve.c:2720:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        data_val = llist->value_str + strlen(lyd_node_module(sibling)->name) + 1;
data/libyang-1.0.184/src/resolve.c:5851: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).
    } else if (rc < (signed)strlen(ident_name)) {
data/libyang-1.0.184/src/resolve.c:6158: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(keys_str);
data/libyang-1.0.184/src/resolve.c:6998: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).
        rc = resolve_feature(iff_data->fname, strlen(iff_data->fname), iff_data->node, item);
data/libyang-1.0.184/src/resolve.c:7806:68:  [1] (buffer) strlen:
  Does not handle 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 = strndup(json_instid, tmp ? (size_t)(tmp - json_instid) : strlen(json_instid));
data/libyang-1.0.184/src/tree_data.c:354:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        node->hash = dict_hash_multi(0, lyd_node_module(node)->name, strlen(lyd_node_module(node)->name));
data/libyang-1.0.184/src/tree_data.c:355:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        node->hash = dict_hash_multi(node->hash, node->schema->name, strlen(node->schema->name));
data/libyang-1.0.184/src/tree_data.c:358:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        strlen(((struct lyd_node_leaf_list *)node)->value_str));
data/libyang-1.0.184/src/tree_data.c:364: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(((struct lyd_node_leaf_list *)iter)->value_str));
data/libyang-1.0.184/src/tree_data.c:1197:62:  [1] (buffer) strlen:
  Does not handle 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 (lys_getnext_data(module, lys_parent(siblings), name, strlen(name), LYS_CONTAINER | LYS_LIST | LYS_NOTIF
data/libyang-1.0.184/src/tree_data.c:1288:62:  [1] (buffer) strlen:
  Does not handle 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 (lys_getnext_data(module, lys_parent(siblings), name, strlen(name), LYS_LEAFLIST | LYS_LEAF, 0, &snode) || !snode) {
data/libyang-1.0.184/src/tree_data.c:1496:62:  [1] (buffer) strlen:
  Does not handle 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 (lys_getnext_data(module, lys_parent(siblings), name, strlen(name), LYS_ANYDATA, 0, &snode) || !snode) {
data/libyang-1.0.184/src/tree_data.c:1517:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    schema = lyp_get_yang_data_template(module, name_template, strlen(name_template));
data/libyang-1.0.184/src/tree_data.c:1523: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).
    if (lys_getnext_data(module, schema, name, strlen(name), LYS_CONTAINER, 0, &snode) || !snode) {
data/libyang-1.0.184/src/tree_data.c:1550:62:  [1] (buffer) strlen:
  Does not handle 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 (lys_getnext_data(module, lys_parent(siblings), name, strlen(name), LYS_CONTAINER | LYS_LIST | LYS_NOTIF
data/libyang-1.0.184/src/tree_data.c:1578:62:  [1] (buffer) strlen:
  Does not handle 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 (lys_getnext_data(module, lys_parent(siblings), name, strlen(name), LYS_LEAFLIST | LYS_LEAF, 0, &snode) || !snode) {
data/libyang-1.0.184/src/tree_data.c:1606:62:  [1] (buffer) strlen:
  Does not handle 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 (lys_getnext_data(module, lys_parent(siblings), name, strlen(name), LYS_ANYDATA, 0, &snode) || !snode) {
data/libyang-1.0.184/src/tree_data.c:1706:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(key_val, value, val_len);
data/libyang-1.0.184/src/tree_data.c:5668: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(lyd_node_module(elem)->name), 1);
data/libyang-1.0.184/src/tree_data.c:5675:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                lys_getnext_data(trg_mod, parent->schema, elem->schema->name, strlen(elem->schema->name),
data/libyang-1.0.184/src/tree_data.c:6763:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(ptr, key->name, strlen(key->name))) {
data/libyang-1.0.184/src/tree_data.c:6766:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    ptr += strlen(key->name);
data/libyang-1.0.184/src/tree_schema.c:165:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        mod_name_len = strlen(mod_name);
data/libyang-1.0.184/src/tree_schema.c:168: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).
        nam_len = strlen(name);
data/libyang-1.0.184/src/tree_schema.c:1070: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(data);
data/libyang-1.0.184/src/tree_schema.c:1127: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(data);
data/libyang-1.0.184/src/tree_schema.c:1194: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(ret->name);
data/libyang-1.0.184/src/tree_schema.c:1353: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(name);
data/libyang-1.0.184/src/tree_schema.c:1400: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).
        dir_len = strlen(wd);
data/libyang-1.0.184/src/tree_schema.c:1441:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                flen = strlen(file->d_name);
data/libyang-1.0.184/src/tree_schema.c:1455:71:  [1] (buffer) strlen:
  Does not handle 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 (strncmp(revision, &file->d_name[len + 1], strlen(revision))) {
data/libyang-1.0.184/src/tree_schema.c:3895: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).
    if (!module || !name || !strlen(name)) {
data/libyang-1.0.184/src/tree_schema.c:4286:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            str_len = strlen(node->name);
data/libyang-1.0.184/src/tree_schema.c:4289:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                mod_len = strlen(node->module->name);
data/libyang-1.0.184/src/tree_schema.c:4734: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).
                if (ptr && ptr[strlen(module->name)] == ':') {
data/libyang-1.0.184/src/tree_schema.c:4779: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).
                if (ptr && ptr[strlen(module->name)] == ':') {
data/libyang-1.0.184/src/tree_schema.c:4836:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (ptr && (ptr[strlen(target_mod->name)] == ':')) {
data/libyang-1.0.184/src/user_types/user_inet_types.c:96: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).
    if (strncmp(*value_str, result, strlen(result))) {
data/libyang-1.0.184/src/user_types/user_inet_types.c:155:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(result, *value_str, pref_str - *value_str);
data/libyang-1.0.184/src/user_types/user_inet_types.c:237:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(result, *value_str, pref_str - *value_str);
data/libyang-1.0.184/src/user_types/user_yang_types.c:244: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(str);
data/libyang-1.0.184/src/validation.c:337:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    hash = dict_hash_multi(hash, id, strlen(id));
data/libyang-1.0.184/src/validation.c:509: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).
                hash = dict_hash_multi(0, id, strlen(id));
data/libyang-1.0.184/src/validation.c:515:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    hash = dict_hash_multi(hash, id, strlen(id));
data/libyang-1.0.184/src/xml.c:557:66:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
lyxml_getutf8(struct ly_ctx *ctx, const char *buf, unsigned int *read)
data/libyang-1.0.184/src/xml.c:649:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    slen = strlen(endstr);
data/libyang-1.0.184/src/xml.c:839:18:  [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.
            goto equal;
data/libyang-1.0.184/src/xml.c:897:1:  [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.
equal:
data/libyang-1.0.184/src/xml.c:1071:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (size != strlen(elem->name) || memcmp(str, elem->name, size)) {
data/libyang-1.0.184/src/xml_internal.h:129:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
int lyxml_getutf8(struct ly_ctx *ctx, const char *buf, unsigned int *read);
data/libyang-1.0.184/src/xpath.c:174:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            sprintf(tmp + strlen(tmp), " (repeat %d", exp->repeat[i][0]);
data/libyang-1.0.184/src/xpath.c:176: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).
                sprintf(tmp + strlen(tmp), ", %d", exp->repeat[i][j]);
data/libyang-1.0.184/src/xpath.c:178:13:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
            strcat(tmp, ")");
data/libyang-1.0.184/src/xpath.c:371:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(*str + (*used - 1), "\n");
data/libyang-1.0.184/src/xpath.c:385:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(*str + (*used - 1), "\n");
data/libyang-1.0.184/src/xpath.c:404:62:  [1] (buffer) strlen:
  Does not handle 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 (cast_string_realloc(local_mod->ctx, indent * 2 + strlen(value_str) + 1, str, used, size)) {
data/libyang-1.0.184/src/xpath.c:413: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).
            *used += strlen(value_str);
data/libyang-1.0.184/src/xpath.c:416: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).
            *used += strlen(value_str) + 1;
data/libyang-1.0.184/src/xpath.c:461:66:  [1] (buffer) strlen:
  Does not handle 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 (cast_string_realloc(local_mod->ctx, indent * 2 + strlen(line) + 1, str, used, size)) {
data/libyang-1.0.184/src/xpath.c:469: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).
            *used += strlen(line);
data/libyang-1.0.184/src/xpath.c:471:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(*str + (*used - 1), "\n");
data/libyang-1.0.184/src/xpath.c:487:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(*str + (*used - 1), "\n");
data/libyang-1.0.184/src/xpath.c:882:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        set_fill_string(trg, src->val.str, strlen(src->val.str));
data/libyang-1.0.184/src/xpath.c:1824:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        val_can = lyd_make_canonical(schema, num_str, strlen(num_str));
data/libyang-1.0.184/src/xpath.c:1842: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).
        val_can = lyd_make_canonical(schema, set->val.str, strlen(set->val.str));
data/libyang-1.0.184/src/xpath.c:2681: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(expr) > UINT16_MAX) {
data/libyang-1.0.184/src/xpath.c:3458: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).
        str = ly_realloc(str, (used + strlen(args[i]->val.str)) * sizeof(char));
data/libyang-1.0.184/src/xpath.c:3461: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).
        used += strlen(args[i]->val.str);
data/libyang-1.0.184/src/xpath.c:3701: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(ptr);
data/libyang-1.0.184/src/xpath.c:4191:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        set_fill_string(set, item->node->schema->name, strlen(item->node->schema->name));
data/libyang-1.0.184/src/xpath.c:4194:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        set_fill_string(set, ((struct lyd_attr *)item->node)->name, strlen(((struct lyd_attr *)item->node)->name));
data/libyang-1.0.184/src/xpath.c:4298: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).
        set_fill_string(set, module->ns, strlen(module->ns));
data/libyang-1.0.184/src/xpath.c:4395: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).
        new = malloc(strlen(set->val.str) * sizeof(char));
data/libyang-1.0.184/src/xpath.c:4590:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (pcre_exec(precomp, NULL, args[0]->val.str, strlen(args[0]->val.str), 0, 0, NULL, 0)) {
data/libyang-1.0.184/src/xpath.c:4704:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strncmp(args[0]->val.str, args[1]->val.str, strlen(args[1]->val.str))) {
data/libyang-1.0.184/src/xpath.c:4794: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).
        set_fill_number(set, strlen(args[0]->val.str));
data/libyang-1.0.184/src/xpath.c:4799: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).
        set_fill_number(set, strlen(set->val.str));
data/libyang-1.0.184/src/xpath.c:4965:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        set_fill_string(set, ptr + strlen(args[1]->val.str), strlen(ptr + strlen(args[1]->val.str)));
data/libyang-1.0.184/src/xpath.c:4965:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        set_fill_string(set, ptr + strlen(args[1]->val.str), strlen(ptr + strlen(args[1]->val.str)));
data/libyang-1.0.184/src/xpath.c:4965:75:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        set_fill_string(set, ptr + strlen(args[1]->val.str), strlen(ptr + strlen(args[1]->val.str)));
data/libyang-1.0.184/src/xpath.c:5239: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).
    new = malloc((strlen(args[0]->val.str) + 1) * sizeof(char));
data/libyang-1.0.184/src/xpath.c:5250: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).
                if (j >= strlen(args[2]->val.str)) {
data/libyang-1.0.184/tests/api/test_tree_data.c:1322:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_data.c:1365:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_data.c:1408:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_data.c:1452:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_data.c:1507:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_data.c:1562:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_data_merge.c:179: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).
        sprintf(st->path + (strlen(st->path) - 6), "%02u.xml", i);
data/libyang-1.0.184/tests/api/test_tree_schema.c:870:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:920:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:970:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1021:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1074:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name1, TMP_TEMPLATE, sizeof(file_name1));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1075:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name2, TMP_TEMPLATE, sizeof(file_name2));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1146:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1208:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1270:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1333:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1398:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name1, TMP_TEMPLATE, sizeof(file_name1));
data/libyang-1.0.184/tests/api/test_tree_schema.c:1399:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name2, TMP_TEMPLATE, sizeof(file_name2));
data/libyang-1.0.184/tests/api/test_xml.c:241:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/api/test_xml.c:297:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(file_name, TMP_TEMPLATE, sizeof(file_name));
data/libyang-1.0.184/tests/data/test_parse_print.c:881:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:902:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:933:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:954:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:983:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1006:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1027:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1059:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1080:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1110:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1133:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1164:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1187:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1208:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1240:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1261:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1291:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1316:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1345:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1368:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1400:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1429:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1456:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1494:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1521:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1557:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_parse_print.c:1586:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/data/test_yang_data_ns.c:127:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert_return_code(strncmp(s, opentag, strlen(opentag)), 0);
data/libyang-1.0.184/tests/schema/test_augment.c:47:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *state = malloc(strlen(TESTS_DIR) + 64);
data/libyang-1.0.184/tests/schema/test_augment.c:49: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).
    memcpy(*state, SCHEMA_FOLDER_YIN, strlen(SCHEMA_FOLDER_YIN) + 1);
data/libyang-1.0.184/tests/schema/test_augment.c:62:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *state = malloc(strlen(TESTS_DIR) + 64);
data/libyang-1.0.184/tests/schema/test_augment.c:64: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).
    memcpy(*state, SCHEMA_FOLDER_YANG, strlen(SCHEMA_FOLDER_YANG) + 1);
data/libyang-1.0.184/tests/schema/test_augment.c:91:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:117:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:160:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:173:72:  [1] (buffer) strlen:
  Does not handle 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 (strncmp("leafref_w_feature1-mod",ctx->models.list[i]->name,strlen("leafref_w_feature1-mod")) == 0) {
data/libyang-1.0.184/tests/schema/test_augment.c:191:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:204:72:  [1] (buffer) strlen:
  Does not handle 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 (strncmp("leafref_w_feature2-mod",ctx->models.list[i]->name,strlen("leafref_w_feature2-mod")) == 0) {
data/libyang-1.0.184/tests/schema/test_augment.c:223:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:238:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (strncmp("leafref_w_feature1-mod",ctx->models.list[i]->name,strlen("leafref_w_feature1-mod")) == 0) {
data/libyang-1.0.184/tests/schema/test_augment.c:257:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:279:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:333:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:359:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:385:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_augment.c:417:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_ietf.c:105:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(filename, "_");
data/libyang-1.0.184/tests/schema/test_ietf.c:170:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(filename, "/");
data/libyang-1.0.184/tests/schema/test_ietf.c:179:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(filename, "/");
data/libyang-1.0.184/tests/schema/test_ietf.c:189:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch1 = getc(f1);
data/libyang-1.0.184/tests/schema/test_ietf.c:190:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch2 = getc(f2);
data/libyang-1.0.184/tests/schema/test_ietf.c:192:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ch1 = getc(f1);
data/libyang-1.0.184/tests/schema/test_ietf.c:193:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ch2 = getc(f2);
data/libyang-1.0.184/tests/schema/test_refine.c:41:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    *state = malloc(strlen(TESTS_DIR) + 40);
data/libyang-1.0.184/tests/schema/test_refine.c:43: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).
    memcpy(*state, SCHEMA_FOLDER_YANG, strlen(SCHEMA_FOLDER_YANG) + 1);
data/libyang-1.0.184/tests/schema/test_refine.c:72:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(path);
data/libyang-1.0.184/tests/schema/test_typedef.c:97:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(st->fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/schema/test_typedef.c:120:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    assert_int_equal(read(st->fd, st->str1, s.st_size), s.st_size);
data/libyang-1.0.184/tests/schema/yin/test_print_transform.c:40:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    size_t read;
data/libyang-1.0.184/tests/schema/yin/test_print_transform.c:42:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(data);
data/libyang-1.0.184/tests/schema/yin/test_print_transform.c:47:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read != length) {
data/libyang-1.0.184/tools/lint/commands.c:201: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(arg) < 5) {
data/libyang-1.0.184/tools/lint/commands.c:222: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).
        path_len = strlen(arg_ptr);
data/libyang-1.0.184/tools/lint/commands.c:258:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            path_len = strlen(arg_ptr);
data/libyang-1.0.184/tools/lint/commands.c:288: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(arg) < 6) {
data/libyang-1.0.184/tools/lint/commands.c:309: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).
        name_len = strlen(arg_ptr);
data/libyang-1.0.184/tools/lint/commands.c:329:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            name_len = strlen(arg_ptr);
data/libyang-1.0.184/tools/lint/commands.c:510: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(filepath);
data/libyang-1.0.184/tools/lint/commands.c:872:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (ptr[strlen(ptr) - 1] == long_str) {
data/libyang-1.0.184/tools/lint/commands.c:874:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                ptr[strlen(ptr) - 1] = '\0';
data/libyang-1.0.184/tools/lint/commands.c:892:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (ptr[strlen(ptr) - 1] == long_str) {
data/libyang-1.0.184/tools/lint/commands.c:894:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                ptr[strlen(ptr) - 1] = '\0';
data/libyang-1.0.184/tools/lint/commands.c:1270: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).
            if (strlen(names[i]) > max_len) {
data/libyang-1.0.184/tools/lint/commands.c:1271:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                max_len = strlen(names[i]);
data/libyang-1.0.184/tools/lint/commands.c:1391: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(arg) < 5) {
data/libyang-1.0.184/tools/lint/commands.c:1432: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(arg) < 6) {
data/libyang-1.0.184/tools/lint/completion.c:38: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).
        if (!strncmp(hint, commands[i].name, strlen(hint))) {
data/libyang-1.0.184/tools/lint/completion.c:89: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 (!strncmp(hint, module->name, strlen(hint))) {
data/libyang-1.0.184/tools/lint/completion.c:101:64:  [1] (buffer) strlen:
  Does not handle 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 (!strncmp(hint, module->inc[i].submodule->name, strlen(hint))) {
data/libyang-1.0.184/tools/lint/configuration.c:42:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yl_dir = malloc(strlen(user_home) + 1 + strlen(YL_DIR) + 1);
data/libyang-1.0.184/tools/lint/configuration.c:42:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yl_dir = malloc(strlen(user_home) + 1 + strlen(YL_DIR) + 1);
data/libyang-1.0.184/tools/lint/configuration.c:77:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    history_file = malloc(strlen(yl_dir) + 9);
data/libyang-1.0.184/tools/lint/configuration.c:104:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    history_file = malloc(strlen(yl_dir) + 9);
data/libyang-1.0.184/tools/lint/main_ni.c:694:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                featlist = strdup(feat[i] + strlen(feat[i]) + 1);
data/libyang-1.0.184/tools/yang2yin/main.c:294:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!strncmp(dirent->d_name, name, strlen(name))
data/libyang-1.0.184/tools/yang2yin/main.c:295: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).
                && ((dirent->d_name[strlen(name)] == '.') || (dirent->d_name[strlen(name)] == '@'))
data/libyang-1.0.184/tools/yang2yin/main.c:295:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                && ((dirent->d_name[strlen(name)] == '.') || (dirent->d_name[strlen(name)] == '@'))
data/libyang-1.0.184/tools/yang2yin/main.c:296:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                && !strcmp(dirent->d_name + strlen(dirent->d_name) - 5, ".yang")) {
data/libyang-1.0.184/tools/yang2yin/main.c:297:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            path = malloc(strlen(search_dir) + 1 + strlen(dirent->d_name) + 1);
data/libyang-1.0.184/tools/yang2yin/main.c:297:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            path = malloc(strlen(search_dir) + 1 + strlen(dirent->d_name) + 1);
data/libyang-1.0.184/tools/yang2yin/main.c:943: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).
        word += strlen(word);

ANALYSIS SUMMARY:

Hits = 1228
Lines analyzed = 151134 in approximately 4.61 seconds (32812 lines/second)
Physical Source Lines of Code (SLOC) = 116167
Hits@level = [0] 1046 [1] 405 [2] 435 [3]  19 [4] 368 [5]   1
Hits@level+ = [0+] 2274 [1+] 1228 [2+] 823 [3+] 388 [4+] 369 [5+]   1
Hits/KSLOC@level+ = [0+] 19.5753 [1+] 10.571 [2+] 7.08463 [3+] 3.34002 [4+] 3.17646 [5+] 0.0086083
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.