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/openscap-1.2.17/config/snippet/_Noreturn.h
Examining data/openscap-1.2.17/config/snippet/arg-nonnull.h
Examining data/openscap-1.2.17/config/snippet/c++defs.h
Examining data/openscap-1.2.17/config/snippet/warn-on-use.h
Examining data/openscap-1.2.17/lib/alloca.in.h
Examining data/openscap-1.2.17/lib/asnprintf.c
Examining data/openscap-1.2.17/lib/asprintf.c
Examining data/openscap-1.2.17/lib/errno.in.h
Examining data/openscap-1.2.17/lib/float+.h
Examining data/openscap-1.2.17/lib/float.c
Examining data/openscap-1.2.17/lib/float.in.h
Examining data/openscap-1.2.17/lib/getdelim.c
Examining data/openscap-1.2.17/lib/getline.c
Examining data/openscap-1.2.17/lib/itold.c
Examining data/openscap-1.2.17/lib/memchr.c
Examining data/openscap-1.2.17/lib/printf-args.c
Examining data/openscap-1.2.17/lib/printf-args.h
Examining data/openscap-1.2.17/lib/printf-parse.c
Examining data/openscap-1.2.17/lib/printf-parse.h
Examining data/openscap-1.2.17/lib/realloc.c
Examining data/openscap-1.2.17/lib/size_max.h
Examining data/openscap-1.2.17/lib/stddef.in.h
Examining data/openscap-1.2.17/lib/stdint.in.h
Examining data/openscap-1.2.17/lib/stdio.in.h
Examining data/openscap-1.2.17/lib/stdlib.in.h
Examining data/openscap-1.2.17/lib/string.in.h
Examining data/openscap-1.2.17/lib/strsep.c
Examining data/openscap-1.2.17/lib/strverscmp.c
Examining data/openscap-1.2.17/lib/sys_types.in.h
Examining data/openscap-1.2.17/lib/unistd.c
Examining data/openscap-1.2.17/lib/unistd.in.h
Examining data/openscap-1.2.17/lib/vasnprintf.c
Examining data/openscap-1.2.17/lib/vasnprintf.h
Examining data/openscap-1.2.17/lib/vasprintf.c
Examining data/openscap-1.2.17/lib/verify.h
Examining data/openscap-1.2.17/lib/wchar.in.h
Examining data/openscap-1.2.17/lib/xsize.c
Examining data/openscap-1.2.17/lib/xsize.h
Examining data/openscap-1.2.17/src/CCE/cce.c
Examining data/openscap-1.2.17/src/CCE/cce_priv.c
Examining data/openscap-1.2.17/src/CCE/cce_priv.h
Examining data/openscap-1.2.17/src/CCE/public/cce.h
Examining data/openscap-1.2.17/src/CPE/cpe_ctx_priv.c
Examining data/openscap-1.2.17/src/CPE/cpe_ctx_priv.h
Examining data/openscap-1.2.17/src/CPE/cpe_session.c
Examining data/openscap-1.2.17/src/CPE/cpe_session_priv.h
Examining data/openscap-1.2.17/src/CPE/cpedict.c
Examining data/openscap-1.2.17/src/CPE/cpedict_ext_priv.c
Examining data/openscap-1.2.17/src/CPE/cpedict_ext_priv.h
Examining data/openscap-1.2.17/src/CPE/cpedict_priv.c
Examining data/openscap-1.2.17/src/CPE/cpedict_priv.h
Examining data/openscap-1.2.17/src/CPE/cpelang.c
Examining data/openscap-1.2.17/src/CPE/cpelang_priv.c
Examining data/openscap-1.2.17/src/CPE/cpelang_priv.h
Examining data/openscap-1.2.17/src/CPE/cpename.c
Examining data/openscap-1.2.17/src/CPE/public/cpe_dict.h
Examining data/openscap-1.2.17/src/CPE/public/cpe_lang.h
Examining data/openscap-1.2.17/src/CPE/public/cpe_name.h
Examining data/openscap-1.2.17/src/CVE/cve.c
Examining data/openscap-1.2.17/src/CVE/cve_priv.c
Examining data/openscap-1.2.17/src/CVE/cve_priv.h
Examining data/openscap-1.2.17/src/CVE/public/cve_nvd.h
Examining data/openscap-1.2.17/src/CVRF/cvrf.c
Examining data/openscap-1.2.17/src/CVRF/cvrf_enumeration.c
Examining data/openscap-1.2.17/src/CVRF/cvrf_eval.c
Examining data/openscap-1.2.17/src/CVRF/cvrf_priv.c
Examining data/openscap-1.2.17/src/CVRF/cvrf_priv.h
Examining data/openscap-1.2.17/src/CVRF/public/cvrf.h
Examining data/openscap-1.2.17/src/CVSS/cvss.c
Examining data/openscap-1.2.17/src/CVSS/cvss_priv.h
Examining data/openscap-1.2.17/src/CVSS/public/cvss_score.h
Examining data/openscap-1.2.17/src/DS/ds_common.c
Examining data/openscap-1.2.17/src/DS/ds_common.h
Examining data/openscap-1.2.17/src/DS/ds_rds_session.c
Examining data/openscap-1.2.17/src/DS/ds_rds_session_priv.h
Examining data/openscap-1.2.17/src/DS/ds_sds_session.c
Examining data/openscap-1.2.17/src/DS/ds_sds_session_priv.h
Examining data/openscap-1.2.17/src/DS/public/ds_rds_session.h
Examining data/openscap-1.2.17/src/DS/public/ds_sds_session.h
Examining data/openscap-1.2.17/src/DS/public/scap_ds.h
Examining data/openscap-1.2.17/src/DS/rds.c
Examining data/openscap-1.2.17/src/DS/rds_asset_index.c
Examining data/openscap-1.2.17/src/DS/rds_index.c
Examining data/openscap-1.2.17/src/DS/rds_index_priv.h
Examining data/openscap-1.2.17/src/DS/rds_priv.h
Examining data/openscap-1.2.17/src/DS/rds_report_index.c
Examining data/openscap-1.2.17/src/DS/rds_report_request_index.c
Examining data/openscap-1.2.17/src/DS/sds.c
Examining data/openscap-1.2.17/src/DS/sds_index.c
Examining data/openscap-1.2.17/src/DS/sds_index_priv.h
Examining data/openscap-1.2.17/src/DS/sds_priv.h
Examining data/openscap-1.2.17/src/OVAL/_oval_probe_handler.h
Examining data/openscap-1.2.17/src/OVAL/_oval_probe_session.h
Examining data/openscap-1.2.17/src/OVAL/adt/oval_collection.c
Examining data/openscap-1.2.17/src/OVAL/adt/oval_collection_impl.h
Examining data/openscap-1.2.17/src/OVAL/adt/oval_smc.c
Examining data/openscap-1.2.17/src/OVAL/adt/oval_smc_impl.h
Examining data/openscap-1.2.17/src/OVAL/adt/oval_smc_iterator.c
Examining data/openscap-1.2.17/src/OVAL/adt/oval_smc_iterator_impl.h
Examining data/openscap-1.2.17/src/OVAL/adt/oval_string_map.c
Examining data/openscap-1.2.17/src/OVAL/adt/oval_string_map_impl.h
Examining data/openscap-1.2.17/src/OVAL/collectVarRefs.c
Examining data/openscap-1.2.17/src/OVAL/collectVarRefs_impl.h
Examining data/openscap-1.2.17/src/OVAL/fts_sun.c
Examining data/openscap-1.2.17/src/OVAL/fts_sun.h
Examining data/openscap-1.2.17/src/OVAL/oval_affected.c
Examining data/openscap-1.2.17/src/OVAL/oval_agent.c
Examining data/openscap-1.2.17/src/OVAL/oval_agent_api_impl.h
Examining data/openscap-1.2.17/src/OVAL/oval_behavior.c
Examining data/openscap-1.2.17/src/OVAL/oval_component.c
Examining data/openscap-1.2.17/src/OVAL/oval_criteriaNode.c
Examining data/openscap-1.2.17/src/OVAL/oval_defModel.c
Examining data/openscap-1.2.17/src/OVAL/oval_definition.c
Examining data/openscap-1.2.17/src/OVAL/oval_definitions_impl.h
Examining data/openscap-1.2.17/src/OVAL/oval_directives.c
Examining data/openscap-1.2.17/src/OVAL/oval_directives_impl.h
Examining data/openscap-1.2.17/src/OVAL/oval_entity.c
Examining data/openscap-1.2.17/src/OVAL/oval_enumerations.c
Examining data/openscap-1.2.17/src/OVAL/oval_filter.c
Examining data/openscap-1.2.17/src/OVAL/oval_generator.c
Examining data/openscap-1.2.17/src/OVAL/oval_glob_to_regex.c
Examining data/openscap-1.2.17/src/OVAL/oval_glob_to_regex.h
Examining data/openscap-1.2.17/src/OVAL/oval_message.c
Examining data/openscap-1.2.17/src/OVAL/oval_object.c
Examining data/openscap-1.2.17/src/OVAL/oval_objectContent.c
Examining data/openscap-1.2.17/src/OVAL/oval_parser.c
Examining data/openscap-1.2.17/src/OVAL/oval_parser_impl.h
Examining data/openscap-1.2.17/src/OVAL/oval_probe.c
Examining data/openscap-1.2.17/src/OVAL/oval_probe_ext.c
Examining data/openscap-1.2.17/src/OVAL/oval_probe_ext.h
Examining data/openscap-1.2.17/src/OVAL/oval_probe_handler.c
Examining data/openscap-1.2.17/src/OVAL/oval_probe_hint.c
Examining data/openscap-1.2.17/src/OVAL/oval_probe_impl.h
Examining data/openscap-1.2.17/src/OVAL/oval_probe_meta.h
Examining data/openscap-1.2.17/src/OVAL/oval_probe_session.c
Examining data/openscap-1.2.17/src/OVAL/oval_recordField.c
Examining data/openscap-1.2.17/src/OVAL/oval_reference.c
Examining data/openscap-1.2.17/src/OVAL/oval_schema_version.c
Examining data/openscap-1.2.17/src/OVAL/oval_session.c
Examining data/openscap-1.2.17/src/OVAL/oval_set.c
Examining data/openscap-1.2.17/src/OVAL/oval_sexp.c
Examining data/openscap-1.2.17/src/OVAL/oval_sexp.h
Examining data/openscap-1.2.17/src/OVAL/oval_state.c
Examining data/openscap-1.2.17/src/OVAL/oval_stateContent.c
Examining data/openscap-1.2.17/src/OVAL/oval_sysEnt.c
Examining data/openscap-1.2.17/src/OVAL/oval_sysInfo.c
Examining data/openscap-1.2.17/src/OVAL/oval_sysInterface.c
Examining data/openscap-1.2.17/src/OVAL/oval_sysItem.c
Examining data/openscap-1.2.17/src/OVAL/oval_sysModel.c
Examining data/openscap-1.2.17/src/OVAL/oval_sys_parser.c
Examining data/openscap-1.2.17/src/OVAL/oval_syschar.c
Examining data/openscap-1.2.17/src/OVAL/oval_syscharIterator.c
Examining data/openscap-1.2.17/src/OVAL/oval_system_characteristics_impl.h
Examining data/openscap-1.2.17/src/OVAL/oval_test.c
Examining data/openscap-1.2.17/src/OVAL/oval_value.c
Examining data/openscap-1.2.17/src/OVAL/oval_varModel.c
Examining data/openscap-1.2.17/src/OVAL/oval_vardefMapping.c
Examining data/openscap-1.2.17/src/OVAL/oval_variable.c
Examining data/openscap-1.2.17/src/OVAL/oval_variableBinding.c
Examining data/openscap-1.2.17/src/OVAL/oval_version.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/MurmurHash3.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/MurmurHash3.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap-command.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap-error.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap-message.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap-packet.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap-packetq.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap-scheme.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap-types.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_seap.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-ID.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-atomic.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-datatype.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-manip.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-output.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-parser.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-rawptr.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-types.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/_sexp-value.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/bfind.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/bfind.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/bitmap.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/bitmap.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/common.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/common.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_common.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_common.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_i32.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_i32.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_i64.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_i64.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_str.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_str.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/redblack.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/spb.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/spb.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strbuf.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strto.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strto.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/helpers.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/seap-command.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/seap-error.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/seap-message.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/seap-packet.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/seap-scheme.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/seap-types.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/seap.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-ID.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-datatype.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-debug.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-manip.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-manip_r.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-output.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-parser.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-types.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sm_alloc.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/public/strbuf.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_cons.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_cons.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_dummy.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_dummy.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_generic.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_generic.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-command-backendL.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-command-backendL.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-command-backendS.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-command-backendS.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-command-backendT.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-command-backendT.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-command.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-descriptor.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-descriptor.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-error.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-message.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packetq.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-scheme.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/seap.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-ID.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-atomic.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-datatype.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-handler.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-handler.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip_r.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-parser.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-template.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-template.h
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-value.c
Examining data/openscap-1.2.17/src/OVAL/probes/SEAP/sm_alloc.c
Examining data/openscap-1.2.17/src/OVAL/probes/_probe-api.h
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/crapi.c
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/crapi.h
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/digest.c
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/digest.h
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/md5.c
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/md5.h
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/rmd160.c
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/rmd160.h
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/sha1.c
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/sha1.h
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/sha2.c
Examining data/openscap-1.2.17/src/OVAL/probes/crapi/sha2.h
Examining data/openscap-1.2.17/src/OVAL/probes/findfile.c
Examining data/openscap-1.2.17/src/OVAL/probes/fsdev.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/family.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/sql.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/variable.c
Examining data/openscap-1.2.17/src/OVAL/probes/independent/xmlfilecontent.c
Examining data/openscap-1.2.17/src/OVAL/probes/oval_fts.c
Examining data/openscap-1.2.17/src/OVAL/probes/oval_fts.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe-api.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe-skeleton.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/entcmp.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/entcmp.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/fini.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/icache.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/init.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/input_handler.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/input_handler.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/main.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/ncache.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/ncache.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/offline_mode.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/option.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/option.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/preload.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/probe.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/probe.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/rcache.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/rcache.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/signal_handler.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/signal_handler.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/worker.c
Examining data/openscap-1.2.17/src/OVAL/probes/probe/worker.h
Examining data/openscap-1.2.17/src/OVAL/probes/probe/icache.c
Examining data/openscap-1.2.17/src/OVAL/probes/public/findfile.h
Examining data/openscap-1.2.17/src/OVAL/probes/public/fsdev.h
Examining data/openscap-1.2.17/src/OVAL/probes/public/probe-api.h
Examining data/openscap-1.2.17/src/OVAL/probes/public/probe-common.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/dnscache.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/file.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/gconf.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/interface.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/dpkginfo-helper.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners-proto.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/partition.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/probe-chroot.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/probe-chroot.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpm-helper.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpm-helper.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverify.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxboolean.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdshared.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitdependency.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitproperty.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/dpkginfo.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/linux/dpkginfo-helper.cxx
Examining data/openscap-1.2.17/src/OVAL/probes/unix/password.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/process.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/process58-capability.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.h
Examining data/openscap-1.2.17/src/OVAL/probes/unix/process58.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/shadow.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/solaris/isainfo.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/solaris/package.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/solaris/patch.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/solaris/smf.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/symlink.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/uname.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c
Examining data/openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c
Examining data/openscap-1.2.17/src/OVAL/public/oval_adt.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_agent_api.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_agent_xccdf_api.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_definitions.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_directives.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_probe.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_probe_handler.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_probe_session.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_results.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_schema_version.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_session.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_system_characteristics.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_types.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_variables.h
Examining data/openscap-1.2.17/src/OVAL/public/oval_version.h
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp_basic.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp_basic_impl.h
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string_impl.h
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp_impl.h
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp_ip_address.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_cmp_ip_address_impl.h
Examining data/openscap-1.2.17/src/OVAL/results/oval_resModel.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_resultCriteriaNode.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_resultDefinition.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_resultDefinitionIterator.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_resultItem.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_resultSystem.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_resultTest.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_resultTestIterator.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_results_impl.h
Examining data/openscap-1.2.17/src/OVAL/results/oval_status_counter.c
Examining data/openscap-1.2.17/src/OVAL/results/oval_status_counter.h
Examining data/openscap-1.2.17/src/SCE/module_entry.c
Examining data/openscap-1.2.17/src/SCE/public/sce_engine_api.h
Examining data/openscap-1.2.17/src/SCE/sce_engine.c
Examining data/openscap-1.2.17/src/XCCDF/benchmark.c
Examining data/openscap-1.2.17/src/XCCDF/elements.c
Examining data/openscap-1.2.17/src/XCCDF/elements.h
Examining data/openscap-1.2.17/src/XCCDF/helpers.h
Examining data/openscap-1.2.17/src/XCCDF/item.c
Examining data/openscap-1.2.17/src/XCCDF/item.h
Examining data/openscap-1.2.17/src/XCCDF/profile.c
Examining data/openscap-1.2.17/src/XCCDF/public/xccdf_benchmark.h
Examining data/openscap-1.2.17/src/XCCDF/public/xccdf_session.h
Examining data/openscap-1.2.17/src/XCCDF/resolve.c
Examining data/openscap-1.2.17/src/XCCDF/result.c
Examining data/openscap-1.2.17/src/XCCDF/result_scoring.c
Examining data/openscap-1.2.17/src/XCCDF/result_scoring_priv.h
Examining data/openscap-1.2.17/src/XCCDF/rule.c
Examining data/openscap-1.2.17/src/XCCDF/tailoring.c
Examining data/openscap-1.2.17/src/XCCDF/unused.h
Examining data/openscap-1.2.17/src/XCCDF/value.c
Examining data/openscap-1.2.17/src/XCCDF/xccdf_impl.h
Examining data/openscap-1.2.17/src/XCCDF/xccdf_session.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/check_engine_plugin.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/public/check_engine_plugin.h
Examining data/openscap-1.2.17/src/XCCDF_POLICY/public/xccdf_policy.h
Examining data/openscap-1.2.17/src/XCCDF_POLICY/reporter.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/reporter_priv.h
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_engine.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_engine_priv.h
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_model.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_model_priv.h
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_priv.h
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_resolve.c
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_resolve.h
Examining data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_substitute.c
Examining data/openscap-1.2.17/src/common/_error.h
Examining data/openscap-1.2.17/src/common/alloc.c
Examining data/openscap-1.2.17/src/common/alloc.h
Examining data/openscap-1.2.17/src/common/assume.h
Examining data/openscap-1.2.17/src/common/bfind.c
Examining data/openscap-1.2.17/src/common/bfind.h
Examining data/openscap-1.2.17/src/common/debug.c
Examining data/openscap-1.2.17/src/common/debug_priv.h
Examining data/openscap-1.2.17/src/common/elements.c
Examining data/openscap-1.2.17/src/common/elements.h
Examining data/openscap-1.2.17/src/common/err_queue.c
Examining data/openscap-1.2.17/src/common/err_queue.h
Examining data/openscap-1.2.17/src/common/error.c
Examining data/openscap-1.2.17/src/common/list.c
Examining data/openscap-1.2.17/src/common/list.h
Examining data/openscap-1.2.17/src/common/memusage.c
Examining data/openscap-1.2.17/src/common/memusage.h
Examining data/openscap-1.2.17/src/common/oscap_acquire.c
Examining data/openscap-1.2.17/src/common/oscap_acquire.h
Examining data/openscap-1.2.17/src/common/oscap_buffer.c
Examining data/openscap-1.2.17/src/common/oscap_buffer.h
Examining data/openscap-1.2.17/src/common/oscap_string.c
Examining data/openscap-1.2.17/src/common/oscap_string.h
Examining data/openscap-1.2.17/src/common/oscapxml.c
Examining data/openscap-1.2.17/src/common/oscapxml.h
Examining data/openscap-1.2.17/src/common/public/oscap.h
Examining data/openscap-1.2.17/src/common/public/oscap_debug.h
Examining data/openscap-1.2.17/src/common/public/oscap_download_cb.h
Examining data/openscap-1.2.17/src/common/public/oscap_error.h
Examining data/openscap-1.2.17/src/common/public/oscap_reference.h
Examining data/openscap-1.2.17/src/common/public/oscap_text.h
Examining data/openscap-1.2.17/src/common/reference.c
Examining data/openscap-1.2.17/src/common/reference_priv.h
Examining data/openscap-1.2.17/src/common/text.c
Examining data/openscap-1.2.17/src/common/text_priv.h
Examining data/openscap-1.2.17/src/common/tsort.c
Examining data/openscap-1.2.17/src/common/tsort.h
Examining data/openscap-1.2.17/src/common/util.c
Examining data/openscap-1.2.17/src/common/util.h
Examining data/openscap-1.2.17/src/common/xml_iterate.c
Examining data/openscap-1.2.17/src/common/xml_iterate.h
Examining data/openscap-1.2.17/src/common/xmlns_priv.h
Examining data/openscap-1.2.17/src/common/xmltext_priv.c
Examining data/openscap-1.2.17/src/common/xmltext_priv.h
Examining data/openscap-1.2.17/src/source/bz2.c
Examining data/openscap-1.2.17/src/source/bz2_priv.h
Examining data/openscap-1.2.17/src/source/doc_type.c
Examining data/openscap-1.2.17/src/source/doc_type_priv.h
Examining data/openscap-1.2.17/src/source/oscap_source.c
Examining data/openscap-1.2.17/src/source/oscap_source_priv.h
Examining data/openscap-1.2.17/src/source/public/oscap_source.h
Examining data/openscap-1.2.17/src/source/schematron.c
Examining data/openscap-1.2.17/src/source/schematron_priv.h
Examining data/openscap-1.2.17/src/source/validate.c
Examining data/openscap-1.2.17/src/source/validate_priv.h
Examining data/openscap-1.2.17/src/source/xslt.c
Examining data/openscap-1.2.17/src/source/xslt_priv.h
Examining data/openscap-1.2.17/tests/API/CCE/test_api_cce.c
Examining data/openscap-1.2.17/tests/API/CPE/dict/test_api_cpe_dict.c
Examining data/openscap-1.2.17/tests/API/CPE/lang/test_api_cpe_lang.c
Examining data/openscap-1.2.17/tests/API/CPE/name/test_api_cpe_uri.c
Examining data/openscap-1.2.17/tests/API/CVE/test_api_cve.c
Examining data/openscap-1.2.17/tests/API/CVRF/test_api_cvrf.c
Examining data/openscap-1.2.17/tests/API/CVSS/test_api_cvss.c
Examining data/openscap-1.2.17/tests/API/OVAL/glob_to_regex/test_glob_to_regex.c
Examining data/openscap-1.2.17/tests/API/OVAL/schema_version/test_schema_version.c
Examining data/openscap-1.2.17/tests/API/OVAL/test_api_directives.c
Examining data/openscap-1.2.17/tests/API/OVAL/test_api_oval.c
Examining data/openscap-1.2.17/tests/API/OVAL/test_api_results.c
Examining data/openscap-1.2.17/tests/API/OVAL/test_api_syschar.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_SEXP_deepcmp.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_seap_concurency.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_seap_list.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_seap_number.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_seap_parser.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_seap_spb.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_seap_string.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_sexp_ID.c
Examining data/openscap-1.2.17/tests/API/SEAP/test_api_strto.c
Examining data/openscap-1.2.17/tests/API/XCCDF/parser/test_api_xccdf.c
Examining data/openscap-1.2.17/tests/API/XCCDF/unittests/test_oscap_common.c
Examining data/openscap-1.2.17/tests/API/XCCDF/unittests/test_xccdf_overrides.c
Examining data/openscap-1.2.17/tests/API/XCCDF/unittests/test_xccdf_shall_pass.c
Examining data/openscap-1.2.17/tests/API/XCCDF/unittests/unit_helper.c
Examining data/openscap-1.2.17/tests/API/XCCDF/unittests/unit_helper.h
Examining data/openscap-1.2.17/tests/API/crypt/test_crapi_digest.c
Examining data/openscap-1.2.17/tests/API/crypt/test_crapi_mdigest.c
Examining data/openscap-1.2.17/tests/API/probes/oval_fts_list.c
Examining data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c
Examining data/openscap-1.2.17/tests/DS/ds_sds_index/test_ds_sds_index.c
Examining data/openscap-1.2.17/tests/DS/ds_sds_index/test_ds_sds_index_invalid.c
Examining data/openscap-1.2.17/tests/DS/ds_sds_index/test_ds_sds_index_multiple.c
Examining data/openscap-1.2.17/tests/assume.h
Examining data/openscap-1.2.17/tests/bz2/test_bz2_memory_source.c
Examining data/openscap-1.2.17/tests/oscap_string/test_oscap_string.c
Examining data/openscap-1.2.17/tests/probes/interface/test_probes_interface.c
Examining data/openscap-1.2.17/tests/probes/sysinfo/test_probes_sysinfo.c
Examining data/openscap-1.2.17/tests/probes/xinetd/test_probe_xinetd.c
Examining data/openscap-1.2.17/utils/oscap-cpe.c
Examining data/openscap-1.2.17/utils/oscap-cve.c
Examining data/openscap-1.2.17/utils/oscap-cvrf.c
Examining data/openscap-1.2.17/utils/oscap-cvss.c
Examining data/openscap-1.2.17/utils/oscap-ds.c
Examining data/openscap-1.2.17/utils/oscap-info.c
Examining data/openscap-1.2.17/utils/oscap-oval.c
Examining data/openscap-1.2.17/utils/oscap-tool.c
Examining data/openscap-1.2.17/utils/oscap-tool.h
Examining data/openscap-1.2.17/utils/oscap-xccdf.c
Examining data/openscap-1.2.17/utils/oscap.c

FINAL RESULTS:

data/openscap-1.2.17/lib/stdio.in.h:720:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#undef gets
data/openscap-1.2.17/lib/stdio.in.h:722:18:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
data/openscap-1.2.17/lib/unistd.in.h:260:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - "
data/openscap-1.2.17/lib/unistd.in.h:274:11:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
#   undef chown
data/openscap-1.2.17/lib/unistd.in.h:275:12:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
#   define chown rpl_chown
data/openscap-1.2.17/lib/unistd.in.h:277:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)
data/openscap-1.2.17/lib/unistd.in.h:279:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid));
data/openscap-1.2.17/lib/unistd.in.h:282:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)
data/openscap-1.2.17/lib/unistd.in.h:285:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
data/openscap-1.2.17/lib/unistd.in.h:287:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIASWARN (chown);
data/openscap-1.2.17/lib/unistd.in.h:289:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
# undef chown
data/openscap-1.2.17/lib/unistd.in.h:291:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
data/openscap-1.2.17/lib/unistd.in.h:1263:12:  [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.
#   define readlink rpl_readlink
data/openscap-1.2.17/lib/unistd.in.h:1265:19:  [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.
_GL_FUNCDECL_RPL (readlink, ssize_t,
data/openscap-1.2.17/lib/unistd.in.h:1268:19:  [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.
_GL_CXXALIAS_RPL (readlink, ssize_t,
data/openscap-1.2.17/lib/unistd.in.h:1272:19:  [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.
_GL_FUNCDECL_SYS (readlink, ssize_t,
data/openscap-1.2.17/lib/unistd.in.h:1276:19:  [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.
_GL_CXXALIAS_SYS (readlink, ssize_t,
data/openscap-1.2.17/lib/unistd.in.h:1279:19:  [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.
_GL_CXXALIASWARN (readlink);
data/openscap-1.2.17/lib/unistd.in.h:1281:9:  [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.
# undef readlink
data/openscap-1.2.17/lib/unistd.in.h:1283:18:  [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.
_GL_WARN_ON_USE (readlink, "readlink is unportable - "
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:262:17:  [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 ((lnlen = readlink(ln, line, sizeof(line)-1)) < 0)
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:263:17:  [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 ((lnlen = readlink(ln, line, sizeof(line)-1)) < 0)
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:275:11:  [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.
  count = readlink(path,buf,TTY_NAME_SIZE-1);
data/openscap-1.2.17/lib/stdio.in.h:279:12:  [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 fprintf rpl_fprintf
data/openscap-1.2.17/lib/stdio.in.h:283:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...)
data/openscap-1.2.17/lib/stdio.in.h:287:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...)
data/openscap-1.2.17/lib/stdio.in.h:291:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:293:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:295:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIASWARN (fprintf);
data/openscap-1.2.17/lib/stdio.in.h:299:10:  [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.
#  undef fprintf
data/openscap-1.2.17/lib/stdio.in.h:302:18:  [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.
_GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - "
data/openscap-1.2.17/lib/stdio.in.h:406:11:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#   undef fscanf
data/openscap-1.2.17/lib/stdio.in.h:407:12:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#   define fscanf rpl_fscanf
data/openscap-1.2.17/lib/stdio.in.h:409:19:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_FUNCDECL_RPL (fscanf, int, (FILE *stream, const char *format, ...)
data/openscap-1.2.17/lib/stdio.in.h:412:19:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_RPL (fscanf, int, (FILE *stream, const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:414:19:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_SYS (fscanf, int, (FILE *stream, const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:416:19:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIASWARN (fscanf);
data/openscap-1.2.17/lib/stdio.in.h:815:11:  [4] (shell) popen:
  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.
#   undef popen
data/openscap-1.2.17/lib/stdio.in.h:816:12:  [4] (shell) popen:
  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.
#   define popen rpl_popen
data/openscap-1.2.17/lib/stdio.in.h:818:19:  [4] (shell) popen:
  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.
_GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode)
data/openscap-1.2.17/lib/stdio.in.h:820:19:  [4] (shell) popen:
  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.
_GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode));
data/openscap-1.2.17/lib/stdio.in.h:823:19:  [4] (shell) popen:
  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.
_GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode)
data/openscap-1.2.17/lib/stdio.in.h:826:19:  [4] (shell) popen:
  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.
_GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode));
data/openscap-1.2.17/lib/stdio.in.h:828:19:  [4] (shell) popen:
  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.
_GL_CXXALIASWARN (popen);
data/openscap-1.2.17/lib/stdio.in.h:830:9:  [4] (shell) popen:
  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.
# undef popen
data/openscap-1.2.17/lib/stdio.in.h:832:18:  [4] (shell) popen:
  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.
_GL_WARN_ON_USE (popen, "popen is buggy on some platforms - "
data/openscap-1.2.17/lib/stdio.in.h:843:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define printf __printf__
data/openscap-1.2.17/lib/stdio.in.h:860:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:863:13:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define printf rpl_printf
data/openscap-1.2.17/lib/stdio.in.h:865:19:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_FUNCDECL_RPL (printf, int,
data/openscap-1.2.17/lib/stdio.in.h:869:19:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIAS_RPL (printf, int, (const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:873:19:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIAS_SYS (printf, int, (const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:875:19:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIASWARN (printf);
data/openscap-1.2.17/lib/stdio.in.h:879:10:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  undef printf
data/openscap-1.2.17/lib/stdio.in.h:882:18:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - "
data/openscap-1.2.17/lib/stdio.in.h:1004:12:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#    undef scanf
data/openscap-1.2.17/lib/stdio.in.h:1006:13:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#    define scanf __scanf__
data/openscap-1.2.17/lib/stdio.in.h:1014:21:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:1017:12:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#    undef scanf
data/openscap-1.2.17/lib/stdio.in.h:1018:13:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#    define scanf rpl_scanf
data/openscap-1.2.17/lib/stdio.in.h:1020:19:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_FUNCDECL_RPL (scanf, int, (const char *format, ...)
data/openscap-1.2.17/lib/stdio.in.h:1023:19:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_RPL (scanf, int, (const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:1026:19:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_SYS (scanf, int, (const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:1028:19:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIASWARN (scanf);
data/openscap-1.2.17/lib/stdio.in.h:1034:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define snprintf rpl_snprintf
data/openscap-1.2.17/lib/stdio.in.h:1036:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
_GL_FUNCDECL_RPL (snprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1040:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
_GL_CXXALIAS_RPL (snprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1044:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
_GL_FUNCDECL_SYS (snprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1049:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
_GL_CXXALIAS_SYS (snprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1052:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
_GL_CXXALIASWARN (snprintf);
data/openscap-1.2.17/lib/stdio.in.h:1054:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# undef snprintf
data/openscap-1.2.17/lib/stdio.in.h:1056:18:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
_GL_WARN_ON_USE (snprintf, "snprintf is unportable - "
data/openscap-1.2.17/lib/stdio.in.h:1073:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#   define sprintf rpl_sprintf
data/openscap-1.2.17/lib/stdio.in.h:1075:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...)
data/openscap-1.2.17/lib/stdio.in.h:1078:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:1080:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...));
data/openscap-1.2.17/lib/stdio.in.h:1082:19:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIASWARN (sprintf);
data/openscap-1.2.17/lib/stdio.in.h:1084:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# undef sprintf
data/openscap-1.2.17/lib/stdio.in.h:1086:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - "
data/openscap-1.2.17/lib/stdio.in.h:1192:12:  [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.
#   define vfprintf rpl_vfprintf
data/openscap-1.2.17/lib/stdio.in.h:1196:19:  [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.
_GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)
data/openscap-1.2.17/lib/stdio.in.h:1200:19:  [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.
_GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)
data/openscap-1.2.17/lib/stdio.in.h:1204:19:  [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.
_GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args));
data/openscap-1.2.17/lib/stdio.in.h:1209:24:  [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.
_GL_CXXALIAS_SYS_CAST (vfprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1212:19:  [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.
_GL_CXXALIASWARN (vfprintf);
data/openscap-1.2.17/lib/stdio.in.h:1216:10:  [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.
#  undef vfprintf
data/openscap-1.2.17/lib/stdio.in.h:1219:18:  [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.
_GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - "
data/openscap-1.2.17/lib/stdio.in.h:1227:11:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#   undef vfscanf
data/openscap-1.2.17/lib/stdio.in.h:1228:12:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#   define vfscanf rpl_vfscanf
data/openscap-1.2.17/lib/stdio.in.h:1230:19:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_FUNCDECL_RPL (vfscanf, int,
data/openscap-1.2.17/lib/stdio.in.h:1234:19:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_RPL (vfscanf, int,
data/openscap-1.2.17/lib/stdio.in.h:1237:19:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_SYS (vfscanf, int,
data/openscap-1.2.17/lib/stdio.in.h:1240:19:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIASWARN (vfscanf);
data/openscap-1.2.17/lib/stdio.in.h:1247:12:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#   define vprintf rpl_vprintf
data/openscap-1.2.17/lib/stdio.in.h:1251:19:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args)
data/openscap-1.2.17/lib/stdio.in.h:1255:19:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args)
data/openscap-1.2.17/lib/stdio.in.h:1259:19:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args));
data/openscap-1.2.17/lib/stdio.in.h:1264:24:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args));
data/openscap-1.2.17/lib/stdio.in.h:1266:19:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_CXXALIASWARN (vprintf);
data/openscap-1.2.17/lib/stdio.in.h:1270:10:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  undef vprintf
data/openscap-1.2.17/lib/stdio.in.h:1273:18:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
_GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - "
data/openscap-1.2.17/lib/stdio.in.h:1281:11:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#   undef vscanf
data/openscap-1.2.17/lib/stdio.in.h:1282:12:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#   define vscanf rpl_vscanf
data/openscap-1.2.17/lib/stdio.in.h:1284:19:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_FUNCDECL_RPL (vscanf, int, (const char *format, va_list args)
data/openscap-1.2.17/lib/stdio.in.h:1287:19:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_RPL (vscanf, int, (const char *format, va_list args));
data/openscap-1.2.17/lib/stdio.in.h:1289:19:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIAS_SYS (vscanf, int, (const char *format, va_list args));
data/openscap-1.2.17/lib/stdio.in.h:1291:19:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
_GL_CXXALIASWARN (vscanf);
data/openscap-1.2.17/lib/stdio.in.h:1297: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.
#   define vsnprintf rpl_vsnprintf
data/openscap-1.2.17/lib/stdio.in.h:1299:19:  [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.
_GL_FUNCDECL_RPL (vsnprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1303:19:  [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.
_GL_CXXALIAS_RPL (vsnprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1307:19:  [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.
_GL_FUNCDECL_SYS (vsnprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1312:19:  [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.
_GL_CXXALIAS_SYS (vsnprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1315:19:  [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.
_GL_CXXALIASWARN (vsnprintf);
data/openscap-1.2.17/lib/stdio.in.h:1317:9:  [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.
# undef vsnprintf
data/openscap-1.2.17/lib/stdio.in.h:1319:18:  [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.
_GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - "
data/openscap-1.2.17/lib/stdio.in.h:1327:12:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#   define vsprintf rpl_vsprintf
data/openscap-1.2.17/lib/stdio.in.h:1329:19:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_FUNCDECL_RPL (vsprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1333:19:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIAS_RPL (vsprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1339:24:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIAS_SYS_CAST (vsprintf, int,
data/openscap-1.2.17/lib/stdio.in.h:1342:19:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_CXXALIASWARN (vsprintf);
data/openscap-1.2.17/lib/stdio.in.h:1344:9:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
# undef vsprintf
data/openscap-1.2.17/lib/stdio.in.h:1346:18:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
_GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - "
data/openscap-1.2.17/lib/unistd.in.h:249:18:  [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.
_GL_WARN_ON_USE (access, "the access function is a security risk - "
data/openscap-1.2.17/lib/unistd.in.h:774:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_FUNCDECL_SYS (getlogin, char *, (void));
data/openscap-1.2.17/lib/unistd.in.h:776:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_CXXALIAS_SYS (getlogin, char *, (void));
data/openscap-1.2.17/lib/unistd.in.h:777:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_CXXALIASWARN (getlogin);
data/openscap-1.2.17/lib/unistd.in.h:779:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
# undef getlogin
data/openscap-1.2.17/lib/unistd.in.h:781:18:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
data/openscap-1.2.17/lib/vasnprintf.c:162:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/openscap-1.2.17/lib/vasnprintf.c:180:21:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define SNPRINTF snprintf
data/openscap-1.2.17/lib/vasnprintf.c:182:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   undef snprintf
data/openscap-1.2.17/lib/vasnprintf.c:184:21:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#   define SNPRINTF _snprintf
data/openscap-1.2.17/lib/vasnprintf.c:188:20:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  define SNPRINTF snprintf
data/openscap-1.2.17/lib/vasnprintf.c:190:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#  undef snprintf
data/openscap-1.2.17/lib/vasnprintf.c:194:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/openscap-1.2.17/lib/vasnprintf.c:4256:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf ((char *) p, decimal_format, exponent);
data/openscap-1.2.17/lib/vasnprintf.c:4264:39:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                      sprintf (expbuf, decimal_format, exponent);
data/openscap-1.2.17/lib/vasnprintf.c:4449:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf ((char *) p, decimal_format, exponent);
data/openscap-1.2.17/lib/vasnprintf.c:4457:47:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                              sprintf (expbuf, decimal_format, exponent);
data/openscap-1.2.17/lib/vasnprintf.c:4969:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, arg);                    \
data/openscap-1.2.17/lib/vasnprintf.c:4972:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, prefixes[0], arg);       \
data/openscap-1.2.17/lib/vasnprintf.c:4975:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
data/openscap-1.2.17/lib/wchar.in.h:595:19:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
_GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
data/openscap-1.2.17/lib/wchar.in.h:597:19:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
_GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
data/openscap-1.2.17/lib/wchar.in.h:598:19:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
_GL_CXXALIASWARN (wcscpy);
data/openscap-1.2.17/lib/wchar.in.h:600:9:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
# undef wcscpy
data/openscap-1.2.17/lib/wchar.in.h:602:18:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
_GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - "
data/openscap-1.2.17/lib/wchar.in.h:664:19:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
_GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src));
data/openscap-1.2.17/lib/wchar.in.h:666:19:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
_GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src));
data/openscap-1.2.17/lib/wchar.in.h:667:19:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
_GL_CXXALIASWARN (wcscat);
data/openscap-1.2.17/lib/wchar.in.h:669:9:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
# undef wcscat
data/openscap-1.2.17/lib/wchar.in.h:671:18:  [4] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
_GL_WARN_ON_USE (wcscat, "wcscat is unportable - "
data/openscap-1.2.17/src/CPE/cpedict_priv.c:128:8:  [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.
	char *system;		// system check URI
data/openscap-1.2.17/src/CPE/cpedict_priv.c:132:34:  [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.
OSCAP_ACCESSOR_STRING(cpe_check, system)
data/openscap-1.2.17/src/CPE/cpedict_priv.c:1255:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (check->system != NULL)
data/openscap-1.2.17/src/CPE/cpedict_priv.c:1256:72:  [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.
		xmlTextWriterWriteAttribute(writer, ATTR_SYSTEM_STR, BAD_CAST check->system);
data/openscap-1.2.17/src/CPE/cpedict_priv.c:1354:14:  [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.
	free(check->system);
data/openscap-1.2.17/src/CPE/cpelang_priv.c:165:67:  [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.
		new_expr->meta.check.system = oscap_strdup(old_expr->meta.check.system);
data/openscap-1.2.17/src/CPE/cpelang_priv.c:539:82:  [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.
		xmlTextWriterWriteAttribute(writer, ATTR_SYSTEM_STR, BAD_CAST expr->meta.check.system);
data/openscap-1.2.17/src/CPE/cpelang_priv.c:623:25:  [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.
		free(expr->meta.check.system);
data/openscap-1.2.17/src/CPE/cpelang_priv.c:674:26:  [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.
	return expr->meta.check.system;
data/openscap-1.2.17/src/CPE/cpelang_priv.h:58:10:  [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.
			char* system;
data/openscap-1.2.17/src/CVSS/cvss.c:342:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        out += sprintf(out, "%s/", cvss_valtab(metrics->category | i, metrics->metrics.ANY[i], NULL, NULL)->vector_str);
data/openscap-1.2.17/src/OVAL/adt/oval_string_map.c:91: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).
	char *usekey = strcpy(temp, key);
data/openscap-1.2.17/src/OVAL/adt/oval_string_map.c:125: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).
	char *useval = strcpy(temp, item);
data/openscap-1.2.17/src/OVAL/oval_component.c:1618:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
					strcat(concat, texts[idx0]);
data/openscap-1.2.17/src/OVAL/oval_component.c:1765: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(split0, text);
data/openscap-1.2.17/src/OVAL/oval_component.c:1979:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		r = sscanf(dt, fmt_str1, &year, &month, &day, &hour, &minute, &second);
data/openscap-1.2.17/src/OVAL/oval_component.c:1981:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		r = sscanf(dt, fmt_str2, &year, &month, &day, &hour, &minute, &second);
data/openscap-1.2.17/src/OVAL/oval_component.c:1983:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		r = sscanf(dt, fmt_str3, &month, &day, &year, &hour, &minute, &second);
data/openscap-1.2.17/src/OVAL/oval_definition.c:341:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(newtitle, title);
data/openscap-1.2.17/src/OVAL/oval_definition.c:342:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(newtitle, string);
data/openscap-1.2.17/src/OVAL/oval_definition.c:364:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(newdescription, description);
data/openscap-1.2.17/src/OVAL/oval_definition.c:365:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(newdescription, string);
data/openscap-1.2.17/src/OVAL/oval_enumerations.c:424:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(family_uri,"%s#%s", schema_ns, family_text);
data/openscap-1.2.17/src/OVAL/oval_object.c:405:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(object_name, "%s_object", subtype_text);
data/openscap-1.2.17/src/OVAL/oval_probe.c:526: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(probe_path, X_OK) != 0) {
data/openscap-1.2.17/src/OVAL/oval_schema_version.c:128:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(buf, buf_len, format,
data/openscap-1.2.17/src/OVAL/oval_sexp.c:886:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				snprintf(val, sizeof(val), "%" PRId64, SEXP_number_geti_64(sval));
data/openscap-1.2.17/src/OVAL/oval_sexp.c:892:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
				snprintf(val, sizeof(val), "%" PRIu64, SEXP_number_getu_64(sval));
data/openscap-1.2.17/src/OVAL/oval_state.c:338:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(state_name, "%s_state", subtype_text);
data/openscap-1.2.17/src/OVAL/oval_sysItem.c:261:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tagname, "%s_item", subtype_text);
data/openscap-1.2.17/src/OVAL/oval_test.c:456:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_name, "%s_test", subtype_text);
data/openscap-1.2.17/src/OVAL/oval_version.c:90:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		s = snprintf(buffer, buflen, "%"PRIu8".%"PRIu8".%"PRIu8, major, minor, patch);
data/openscap-1.2.17/src/OVAL/oval_version.c:92:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		s = snprintf(buffer, buflen, "%"PRIu8".%"PRIu8, major, minor);
data/openscap-1.2.17/src/OVAL/oval_version.c:94:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		s = snprintf(buffer, buflen, "%"PRIu8, major);
data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-manip.h:235:76:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
SEXP_t *SEXP_string_newf (const char *format, ...) __attribute__ ((format (printf, 1, 2), nonnull (1)));
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:234:17:  [4] (shell) execl:
  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.
                execl (data->execpath, data->execpath, NULL);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:132:50:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                                        buflen = snprintf (buffer, sizeof buffer,
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:136:50:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                                        buflen = snprintf (buffer, sizeof buffer,
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:140:50:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                                        buflen = snprintf (buffer, sizeof buffer,
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:158:50:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                                        buflen = snprintf (buffer, sizeof buffer,
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:261:62:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                case SEXP_NUM_INT32:  return fprintf (fp, "%" PRId32, SEXP_NCASTP(i32,v_dsc.mem)->n);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:262:62:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                case SEXP_NUM_UINT32: return fprintf (fp, "%" PRIu32, SEXP_NCASTP(u32,v_dsc.mem)->n);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:263:62:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                case SEXP_NUM_INT64:  return fprintf (fp, "%" PRId64, SEXP_NCASTP(i64,v_dsc.mem)->n);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:267:62:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                                case SEXP_NUM_UINT64: return fprintf (fp, "%" PRIu64, SEXP_NCASTP(u64,v_dsc.mem)->n);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:227:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(path_new, path);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:248:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(&path_new[path_len], pDirent->d_name);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:363:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(path, token);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:413:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(path_new, path);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:425:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(&path_new[path_len], pDirent->d_name);
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:180: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(base, relative_dn);
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:182:17:  [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(base, suffix);
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:184: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(base, suffix);
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1419: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(item_name, subtype_name);
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1599:18:  [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.
    msg_length = vsnprintf(msg_buffer, sizeof msg_buffer, msgfmt, ap);
data/openscap-1.2.17/src/OVAL/probes/public/probe-api.h:308:98:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
SEXP_t *probe_msg_creatf(oval_message_level_t level, const char *fmt, ...) __attribute__((format(printf, 2, 3), nonnull(2)));
data/openscap-1.2.17/src/OVAL/probes/unix/gconf.c:209:33:  [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(gconf_addr, ofts_ent->path);
data/openscap-1.2.17/src/OVAL/probes/unix/gconf.c:211:33:  [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(gconf_addr + ofts_ent->path_len + 1, ofts_ent->file);
data/openscap-1.2.17/src/OVAL/probes/unix/interface.c:87:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(ifr.ifr_name, ifa->ifa_name);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:356:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				if (fscanf(fd, "%s\n", buf) < 1)
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:133:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "/dev/%s%d", tmn->name, min);  /* like "/dev/ttyZZ255" */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:136:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "/dev/%s", tmn->name);  /* like "/dev/ttyZZ255" */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:274:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(path, "/proc/%d/%s", pid, name);  /* often permission denied */
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:351:17:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			read_items = sscanf(
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:151:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(pathbuf, sizeof (pathbuf), rc_path, runlevel_list[i]);
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:312:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		got = fscanf(osrelease, RELEASENAME_PATTERN, releasename);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:759:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy (pathbuf, inclarg);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:790:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
						strcpy(pathbuf + incllen, dent.d_name);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1130:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(st_key, scur->name);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1131:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(st_key, scur->protocol);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1204:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(strans_key, name);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1205:2:  [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(strans_key, prot);
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:180:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(str1, a);
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:181:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(str2, b);
data/openscap-1.2.17/src/OVAL/results/oval_resultDefinition.c:49:29:  [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.
	struct oval_result_system *system;
data/openscap-1.2.17/src/OVAL/results/oval_resultDefinition.c:138:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	return definition->system;
data/openscap-1.2.17/src/OVAL/results/oval_resultTest.c:52:29:  [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.
	struct oval_result_system *system;
data/openscap-1.2.17/src/OVAL/results/oval_resultTest.c:147:16:  [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.
	return rtest->system;
data/openscap-1.2.17/src/OVAL/results/oval_resultTest.c:1128:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			void *args[] = { rtest->system, rtest, tmp_map };
data/openscap-1.2.17/src/OVAL/results/oval_results_impl.h:58:85:  [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.
struct oval_result_test *make_result_test_from_oval_test(struct oval_result_system *system, struct oval_test *oval_test, int variable_instance);
data/openscap-1.2.17/src/SCE/sce_engine.c:359:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(tmp_href, F_OK))
data/openscap-1.2.17/src/SCE/sce_engine.c:373:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(tmp_href, F_OK | X_OK))
data/openscap-1.2.17/src/XCCDF/benchmark.c:707:15:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	int length = snprintf(foo, 1, fmt, prefix, 0);
data/openscap-1.2.17/src/XCCDF/benchmark.c:716:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		ret = snprintf(buff, length, fmt, prefix, ++i);
data/openscap-1.2.17/src/XCCDF/elements.c:466:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(buf, str);
data/openscap-1.2.17/src/XCCDF/item.c:1000:46:  [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.
	new_model->system = oscap_strdup(old_model->system);
data/openscap-1.2.17/src/XCCDF/item.c:1039:36:  [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.
OSCAP_ACCESSOR_STRING(xccdf_model, system)
data/openscap-1.2.17/src/XCCDF/item.c:1044:15:  [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.
		free(model->system);
data/openscap-1.2.17/src/XCCDF/item.c:1252:38:  [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.
	clone->system = oscap_strdup(score->system);
data/openscap-1.2.17/src/XCCDF/item.h:250:8:  [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.
	char *system;
data/openscap-1.2.17/src/XCCDF/item.h:283:8:  [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.
	char *system;
data/openscap-1.2.17/src/XCCDF/item.h:290:8:  [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.
	char *system;
data/openscap-1.2.17/src/XCCDF/item.h:332:8:  [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.
	char *system;
data/openscap-1.2.17/src/XCCDF/item.h:373:8:  [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.
	char *system;
data/openscap-1.2.17/src/XCCDF/item.h:400:8:  [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.
	char *system;
data/openscap-1.2.17/src/XCCDF/result.c:156:30:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
	xccdf_identity_set_name(id, getlogin());
data/openscap-1.2.17/src/XCCDF/result.c:333:15:  [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.
		free(score->system);
data/openscap-1.2.17/src/XCCDF/result.c:340:36:  [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.
OSCAP_ACCESSOR_STRING(xccdf_score, system)
data/openscap-1.2.17/src/XCCDF/result.c:411:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buff, XCCDF_NUMERIC_FORMAT, val);
data/openscap-1.2.17/src/XCCDF/result.c:454:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			free(ti->system);
data/openscap-1.2.17/src/XCCDF/result.c:466:12:  [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.
		free(ti->system);
data/openscap-1.2.17/src/XCCDF/result.c:495:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	free(ti->system);
data/openscap-1.2.17/src/XCCDF/result.c:506:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	return ti->system;
data/openscap-1.2.17/src/XCCDF/rule.c:444:38:  [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.
	clone->system = oscap_strdup(ident->system);
data/openscap-1.2.17/src/XCCDF/rule.c:482:38:  [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.
	printf("ident : %s => %s\n", ident->system, ident->id);
data/openscap-1.2.17/src/XCCDF/rule.c:489:15:  [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.
		free(ident->system);
data/openscap-1.2.17/src/XCCDF/rule.c:516:89:  [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.
XCCDF_GENERIC_GETTER(const char *, ident, id) XCCDF_GENERIC_GETTER(const char *, ident, system)
data/openscap-1.2.17/src/XCCDF/rule.c:534:46:  [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.
	new_check->system = oscap_strdup(old_check->system);
data/openscap-1.2.17/src/XCCDF/rule.c:657:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (check->system) {
data/openscap-1.2.17/src/XCCDF/rule.c:659:35:  [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.
		printf("system  : %s\n", check->system);
data/openscap-1.2.17/src/XCCDF/rule.c:703:15:  [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.
		free(check->system);
data/openscap-1.2.17/src/XCCDF/rule.c:788:42:  [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.
	new_fix->system = oscap_strdup(old_fix->system);
data/openscap-1.2.17/src/XCCDF/rule.c:852:14:  [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.
		free(item->system);
data/openscap-1.2.17/src/XCCDF/rule.c:1135:36:  [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.
OSCAP_ACCESSOR_STRING(xccdf_check, system)
data/openscap-1.2.17/src/XCCDF/rule.c:1167:34:  [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.
OSCAP_ACCESSOR_STRING(xccdf_fix, system)
data/openscap-1.2.17/src/XCCDF_POLICY/public/xccdf_policy.h:703:123:  [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.
struct xccdf_score * xccdf_policy_get_score(struct xccdf_policy * policy, struct xccdf_result * test_result, const char * system);
data/openscap-1.2.17/src/XCCDF_POLICY/reporter.c:32:9:  [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.
	char * system;                 ///< Identificator of checking engine (output engine)
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c:2029:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(rid, "xccdf_org.open-scap_testresult_%s", id);
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c:2037:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(rid, "OSCAP-Test-%s", id);
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_engine.c:34:8:  [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.
	char *system;                           ///< Identificator of checking engine
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_engine.c:54:30:  [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.
	return oscap_strcmp(engine->system, sysname) == 0;
data/openscap-1.2.17/src/common/assume.h:73:25:  [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 (__emitmsg_fp, __VA_ARGS__);  \
data/openscap-1.2.17/src/common/debug.c:233:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(__debuglog_fp, fmt, ap);
data/openscap-1.2.17/src/common/elements.c:76:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(newtext, platform);
data/openscap-1.2.17/src/common/elements.c:77:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(newtext, text);
data/openscap-1.2.17/src/common/oscapxml.c:126:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(xmlfile, R_OK)) {
data/openscap-1.2.17/src/common/util.c:131:18:  [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 length = vsnprintf(foo, 1, fmt, ap);
data/openscap-1.2.17/src/common/util.c:135:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(ret, fmt, args);
data/openscap-1.2.17/src/source/validate.c:97:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(schemapath, R_OK)) {
data/openscap-1.2.17/src/source/xslt.c:122:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(xsltpath, R_OK)) {
data/openscap-1.2.17/src/source/xslt.c:131:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(xsltpath, R_OK)) {
data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c:14:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf (stderr, "FAIL: " __VA_ARGS__);       \
data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c:18:19:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define WARN(...) fprintf (stderr, "WARN: " __VA_ARGS__)
data/openscap-1.2.17/utils/oscap-tool.c:168:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(out, err, ap);
data/openscap-1.2.17/utils/oscap-tool.c:400:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(dest, format, argptr);
data/openscap-1.2.17/lib/stdlib.in.h:558:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_FUNCDECL_SYS (random, long, (void));
data/openscap-1.2.17/lib/stdlib.in.h:560:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_CXXALIAS_SYS (random, long, (void));
data/openscap-1.2.17/lib/stdlib.in.h:561:19:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_CXXALIASWARN (random);
data/openscap-1.2.17/lib/stdlib.in.h:563:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
# undef random
data/openscap-1.2.17/lib/stdlib.in.h:565:18:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_WARN_ON_USE (random, "random is unportable - "
data/openscap-1.2.17/lib/stdlib.in.h:572:19:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_FUNCDECL_SYS (srandom, void, (unsigned int seed));
data/openscap-1.2.17/lib/stdlib.in.h:574:19:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_CXXALIAS_SYS (srandom, void, (unsigned int seed));
data/openscap-1.2.17/lib/stdlib.in.h:575:19:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_CXXALIASWARN (srandom);
data/openscap-1.2.17/lib/stdlib.in.h:577:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
# undef srandom
data/openscap-1.2.17/lib/stdlib.in.h:579:18:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_WARN_ON_USE (srandom, "srandom is unportable - "
data/openscap-1.2.17/lib/stdlib.in.h:603:19:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1)));
data/openscap-1.2.17/lib/stdlib.in.h:605:19:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_CXXALIAS_SYS (setstate, char *, (char *arg_state));
data/openscap-1.2.17/lib/stdlib.in.h:606:19:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_CXXALIASWARN (setstate);
data/openscap-1.2.17/lib/stdlib.in.h:608:9:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
# undef setstate
data/openscap-1.2.17/lib/stdlib.in.h:610:18:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
_GL_WARN_ON_USE (setstate, "setstate is unportable - "
data/openscap-1.2.17/lib/stdlib.in.h:756:12:  [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.
#   define realpath rpl_realpath
data/openscap-1.2.17/lib/stdlib.in.h:758: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.
_GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved)
data/openscap-1.2.17/lib/stdlib.in.h:760: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.
_GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved));
data/openscap-1.2.17/lib/stdlib.in.h:763: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.
_GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved)
data/openscap-1.2.17/lib/stdlib.in.h:766: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.
_GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved));
data/openscap-1.2.17/lib/stdlib.in.h:768: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.
_GL_CXXALIASWARN (realpath);
data/openscap-1.2.17/lib/stdlib.in.h:770:9:  [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.
# undef realpath
data/openscap-1.2.17/lib/stdlib.in.h:772:18:  [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.
_GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module "
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:71:27:  [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.
        pext->probe_dir = getenv("OVAL_PROBE_DIR");
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:1158:17:  [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.
    probe_dir = getenv("OVAL_PROBE_DIR");
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/common.c:80:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srandom (seed);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/common.c:85:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        return random ();
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:107:38:  [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 *PATH = getenv ("PATH");
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip.c:2089:28:  [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.
		sexp_validate_disabled = getenv("SEXP_VALIDATE_DISABLE") != NULL;
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:274:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:293:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:118:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[l] = (uint32_t)random();
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:129:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[2] = (uint8_t)(random() % (1 << 8));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:131:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[1] = (uint8_t)(random() % (1 << 8));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:133:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[0] = (uint8_t)(random() % (1 << 8));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:145:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom((long)clock()^(long)(ui->pass));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:118:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[l] = (uint32_t)random();
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:129:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[2] = (uint8_t)(random() % (1 << 8));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:131:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[1] = (uint8_t)(random() % (1 << 8));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:133:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				p[0] = (uint8_t)(random() % (1 << 8));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:145:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom((long)clock()^(long)(ui->pass));
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:664:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *oscap_probe_root = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:393:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:508:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/independent/xmlfilecontent.c:334:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:239:8:  [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(rpath, temp->zpath) != NULL)
data/openscap-1.2.17/src/OVAL/probes/probe/main.c:146:26:  [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 *verbosity_level = getenv("OSCAP_PROBE_VERBOSITY_LEVEL");
data/openscap-1.2.17/src/OVAL/probes/probe/main.c:147:27:  [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 *verbose_log_file = getenv("OSCAP_PROBE_VERBOSE_LOG_FILE");
data/openscap-1.2.17/src/OVAL/probes/probe/main.c:237:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	rootdir = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/probe/main.c:253:8:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
			if (chroot(rootdir) != 0) {
data/openscap-1.2.17/src/OVAL/probes/probe/main.c:268:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("OSCAP_PROBE_RPMDB_PATH") != NULL) {
data/openscap-1.2.17/src/OVAL/probes/unix/file.c:521:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c:318:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/probe-chroot.c:67:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (chroot(ch->scan_path) < 0) {
data/openscap-1.2.17/src/OVAL/probes/unix/linux/probe-chroot.c:95:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (chroot(".") < 0) {
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:294:17:  [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 *dbpath = getenv("OSCAP_PROBE_RPMDB_PATH");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:403:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char* root = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverify.c:340:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char* root = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:456:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char* root = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c:321:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* root = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:321:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *prefix = getenv("OSCAP_PROBE_ROOT");
data/openscap-1.2.17/src/OVAL/probes/unix/symlink.c:88: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.
	linkname = realpath(pathname, resolved_name);
data/openscap-1.2.17/src/XCCDF/result.c:186:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *target_hostname = getenv("OSCAP_EVALUATION_TARGET");
data/openscap-1.2.17/src/XCCDF/xccdf_session.c:1699:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("OSCAP_PROBE_ROOT") != NULL) {
data/openscap-1.2.17/src/XCCDF_POLICY/check_engine_plugin.c:54:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *path_prefix = getenv("OSCAP_CHECK_ENGINE_PLUGIN_DIR");
data/openscap-1.2.17/src/common/oscap_acquire.c:208:16:  [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.
	char *rpath = realpath(filepath, resolved_name);
data/openscap-1.2.17/src/common/oscap_acquire.c:221:20:  [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.
		char *real_dir = realpath(dir_name, resolved_name);
data/openscap-1.2.17/src/common/oscapxml.c:75:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		path = getenv(pathvar);
data/openscap-1.2.17/tests/API/SEAP/test_api_seap_spb.c:52:9:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srandom (seed);
data/openscap-1.2.17/tests/API/SEAP/test_api_seap_spb.c:64:65:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                                iov[i].iov_len  = BUFLEN_MIN + (random () % BUFLEN_MAX);
data/openscap-1.2.17/tests/API/SEAP/test_api_seap_spb.c:229:50:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                                pick_size = 1 + (random () % (buf_size - pick_start));
data/openscap-1.2.17/utils/oscap-cvrf.c:200:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "+", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-ds.c:186:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "o:i:", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-ds.c:508:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* full_validation = getenv("OSCAP_FULL_VALIDATION");
data/openscap-1.2.17/utils/oscap-info.c:772:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "o:i:p:", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-oval.c:313:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char* full_validation = getenv("OSCAP_FULL_VALIDATION");
data/openscap-1.2.17/utils/oscap-oval.c:364:57:  [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.
	oval_session_set_validation(session, action->validate, getenv("OSCAP_FULL_VALIDATION") != NULL);
data/openscap-1.2.17/utils/oscap-oval.c:491:33:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char* full_validation = getenv("OSCAP_FULL_VALIDATION");
data/openscap-1.2.17/utils/oscap-oval.c:578:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "o:", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-oval.c:626:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "o:", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-oval.c:669:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "o:", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-oval.c:722:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "o:", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-oval.c:758:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-oval.c:790:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-tool.c:246: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.
    int r = getopt_long(argc, argv, "+h", opts, NULL);
data/openscap-1.2.17/utils/oscap-tool.c:277:9:  [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.
	opts = getenv("OSCAP_OVAL_COMMAND_OPTIONS");
data/openscap-1.2.17/utils/oscap-xccdf.c:520:58:  [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.
	xccdf_session_set_validation(session, action->validate, getenv("OSCAP_FULL_VALIDATION") != NULL);
data/openscap-1.2.17/utils/oscap-xccdf.c:569:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if (action->validate && getenv("OSCAP_FULL_VALIDATION") != NULL &&
data/openscap-1.2.17/utils/oscap-xccdf.c:588:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if (action->validate && getenv("OSCAP_FULL_VALIDATION") != NULL &&
data/openscap-1.2.17/utils/oscap-xccdf.c:594:36:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if (action->f_results_arf && getenv("OSCAP_FULL_VALIDATION") != NULL)
data/openscap-1.2.17/utils/oscap-xccdf.c:634:58:  [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.
	xccdf_session_set_validation(session, action->validate, getenv("OSCAP_FULL_VALIDATION") != NULL);
data/openscap-1.2.17/utils/oscap-xccdf.c:687:58:  [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.
	xccdf_session_set_validation(session, action->validate, getenv("OSCAP_FULL_VALIDATION") != NULL);
data/openscap-1.2.17/utils/oscap-xccdf.c:771:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				const char* full_validation = getenv("OSCAP_FULL_VALIDATION");
data/openscap-1.2.17/utils/oscap-xccdf.c:898:58:  [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.
	xccdf_session_set_validation(session, action->validate, getenv("OSCAP_FULL_VALIDATION") != NULL);
data/openscap-1.2.17/utils/oscap-xccdf.c:1004:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "+", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-xccdf.c:1092:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, "o:i:", long_options, NULL)) != -1) {
data/openscap-1.2.17/utils/oscap-xccdf.c:1111:35:  [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.
		case XCCDF_OPT_STYLESHEET_FILE: realpath(optarg, custom_stylesheet_path); action->stylesheet = custom_stylesheet_path; break;
data/openscap-1.2.17/utils/oscap.c:97:11:  [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.
		int c = getopt_long(argc, argv, "+qV", long_options, NULL);
data/openscap-1.2.17/lib/printf-parse.c:122:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (memory, a->arg, a->count * sizeof (argument));        \
data/openscap-1.2.17/lib/printf-parse.c:599: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 (memory, d->dir, d->count * sizeof (DIRECTIVE));
data/openscap-1.2.17/lib/stdio.in.h:258: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).
#   undef fopen
data/openscap-1.2.17/lib/stdio.in.h:259: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).
#   define fopen rpl_fopen
data/openscap-1.2.17/lib/stdio.in.h:261: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).
_GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode)
data/openscap-1.2.17/lib/stdio.in.h:263: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).
_GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode));
data/openscap-1.2.17/lib/stdio.in.h:265: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).
_GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode));
data/openscap-1.2.17/lib/stdio.in.h:267: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).
_GL_CXXALIASWARN (fopen);
data/openscap-1.2.17/lib/stdio.in.h:269: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).
# undef fopen
data/openscap-1.2.17/lib/stdio.in.h:271: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).
_GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - "
data/openscap-1.2.17/lib/stdio.in.h:1094:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#   define tmpfile rpl_tmpfile
data/openscap-1.2.17/lib/stdio.in.h:1096:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
_GL_FUNCDECL_RPL (tmpfile, FILE *, (void));
data/openscap-1.2.17/lib/stdio.in.h:1097:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
_GL_CXXALIAS_RPL (tmpfile, FILE *, (void));
data/openscap-1.2.17/lib/stdio.in.h:1099:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
_GL_CXXALIAS_SYS (tmpfile, FILE *, (void));
data/openscap-1.2.17/lib/stdio.in.h:1101:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
_GL_CXXALIASWARN (tmpfile);
data/openscap-1.2.17/lib/stdio.in.h:1103:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
# undef tmpfile
data/openscap-1.2.17/lib/stdio.in.h:1105:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
_GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - "
data/openscap-1.2.17/lib/stdlib.in.h:398:12:  [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).
#   define mkstemp rpl_mkstemp
data/openscap-1.2.17/lib/stdlib.in.h:400:19:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
_GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1)));
data/openscap-1.2.17/lib/stdlib.in.h:401:19:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
_GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/));
data/openscap-1.2.17/lib/stdlib.in.h:404:19:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
_GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1)));
data/openscap-1.2.17/lib/stdlib.in.h:406:19:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
_GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/));
data/openscap-1.2.17/lib/stdlib.in.h:408:19:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
_GL_CXXALIASWARN (mkstemp);
data/openscap-1.2.17/lib/stdlib.in.h:410:9:  [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).
# undef mkstemp
data/openscap-1.2.17/lib/stdlib.in.h:412:18:  [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).
_GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - "
data/openscap-1.2.17/lib/vasnprintf.c:143: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.
#  define DCHAR_CPY memcpy
data/openscap-1.2.17/lib/vasnprintf.c:284: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 pointbuf[5];
data/openscap-1.2.17/lib/vasnprintf.c:285: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 (pointbuf, "%#.0f", 1.0);
data/openscap-1.2.17/lib/vasnprintf.c:509:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/openscap-1.2.17/lib/vasnprintf.c:645:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t));
data/openscap-1.2.17/lib/vasnprintf.c:2664:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/openscap-1.2.17/lib/vasnprintf.c:2709:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/openscap-1.2.17/lib/vasnprintf.c:2759: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.
                        char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/openscap-1.2.17/lib/vasnprintf.c:2772: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 (tmpptr, cbuf, count);
data/openscap-1.2.17/lib/vasnprintf.c:2840:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/openscap-1.2.17/lib/vasnprintf.c:2853:27:  [2] (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 + length, cbuf, count);
data/openscap-1.2.17/lib/vasnprintf.c:2869:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                          char cbuf[64]; /* Assume MB_CUR_MAX <= 64.  */
data/openscap-1.2.17/lib/vasnprintf.c:2891:27:  [2] (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 + length, cbuf, count);
data/openscap-1.2.17/lib/vasnprintf.c:3172:35:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                  sprintf ((char *) p, "%+d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:3178:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                  char expbuf[6 + 1];
data/openscap-1.2.17/lib/vasnprintf.c:3180:35:  [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 (expbuf, "%+d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:3323:35:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                  sprintf ((char *) p, "%+d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:3329:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                  char expbuf[6 + 1];
data/openscap-1.2.17/lib/vasnprintf.c:3331:35:  [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 (expbuf, "%+d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:3398: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 (result + length, tmp, count * sizeof (DCHAR_T));
data/openscap-1.2.17/lib/vasnprintf.c:3783:37:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                    sprintf ((char *) p, "%+.2d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:3789:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                    char expbuf[6 + 1];
data/openscap-1.2.17/lib/vasnprintf.c:3791:37:  [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 (expbuf, "%+.2d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:3964:45:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                                            sprintf ((char *) p, "%+.2d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:3970:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                            char expbuf[6 + 1];
data/openscap-1.2.17/lib/vasnprintf.c:3972:45:  [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 (expbuf, "%+.2d", exponent);
data/openscap-1.2.17/lib/vasnprintf.c:4262:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                      char expbuf[6 + 1];
data/openscap-1.2.17/lib/vasnprintf.c:4455:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                              char expbuf[6 + 1];
data/openscap-1.2.17/lib/vasnprintf.c:4581: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 (result + length, tmp, count * sizeof (DCHAR_T));
data/openscap-1.2.17/lib/vasnprintf.c:4789:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T));
data/openscap-1.2.17/lib/vasnprintf.c:4810:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                            memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T));
data/openscap-1.2.17/lib/vasnprintf.c:5506: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 (result + length, tmp, count * sizeof (DCHAR_T));
data/openscap-1.2.17/src/CPE/cpename.c:353:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char hex[3] = { inptr[1], inptr[2], '\0' };
data/openscap-1.2.17/src/CPE/cpename.c:425:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char hex[3] = { inptr[1], inptr[2], '\0' };
data/openscap-1.2.17/src/DS/sds.c:173:13:  [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).
		if ((fd = open(filename, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0700)) < 0) {
data/openscap-1.2.17/src/DS/sds.c:601: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* f = fopen(filepath, "r");
data/openscap-1.2.17/src/DS/sds.c:643: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 file_timestamp[32];
data/openscap-1.2.17/src/OVAL/fts_sun.c:66:16:  [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).
#define __open open
data/openscap-1.2.17/src/OVAL/fts_sun.h:186: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 fts_name[1];		/*!< file name */
data/openscap-1.2.17/src/OVAL/oval_component.c:1072:41:  [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).
	int start = (start_text == NULL) ? 0 : atoi(start_text);
data/openscap-1.2.17/src/OVAL/oval_component.c:1073:43:  [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).
	int length = (length_text == NULL) ? 0 : atoi(length_text);
data/openscap-1.2.17/src/OVAL/oval_component.c:1248:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char substring_start[10];
data/openscap-1.2.17/src/OVAL/oval_component.c:1253:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char substring_length[10];
data/openscap-1.2.17/src/OVAL/oval_component.c:1511:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char concat[len_prefix + strlen(key) + 1];
data/openscap-1.2.17/src/OVAL/oval_component.c:1547:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char concat[len_suffix + len_key + 1];
data/openscap-1.2.17/src/OVAL/oval_component.c:1588: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 *texts[len_subcomps];
data/openscap-1.2.17/src/OVAL/oval_component.c:1614:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char concat[len_cat];
data/openscap-1.2.17/src/OVAL/oval_component.c:1682: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 count_str[128];
data/openscap-1.2.17/src/OVAL/oval_component.c:1763:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char split[strlen(text) + 2], *split0 = split;
data/openscap-1.2.17/src/OVAL/oval_component.c:1818:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char substr[sublen + 1];
data/openscap-1.2.17/src/OVAL/oval_component.c:1941:15:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	t = (time_t) atol(dt);
data/openscap-1.2.17/src/OVAL/oval_component.c:2063: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 ts[16];
data/openscap-1.2.17/src/OVAL/oval_component.c:2083:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char ts[16];
data/openscap-1.2.17/src/OVAL/oval_component.c:2125:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char string[2 * len + 1], *insert = string;
data/openscap-1.2.17/src/OVAL/oval_component.c:2232: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(nval, text + ovector[2], substr_len);
data/openscap-1.2.17/src/OVAL/oval_component.c:2246: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(nval, text + pmatch[1].rm_so, substr_len);
data/openscap-1.2.17/src/OVAL/oval_component.c:2285: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 sv[32];
data/openscap-1.2.17/src/OVAL/oval_definition.c:446:42:  [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).
	oval_definition_set_version(definition, atoi(version));
data/openscap-1.2.17/src/OVAL/oval_definition.c:472: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 version[10];
data/openscap-1.2.17/src/OVAL/oval_enumerations.c:423: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 family_uri[strlen(schema_ns) + 1 + strlen(family_text) + 1];
data/openscap-1.2.17/src/OVAL/oval_object.c:380:34:  [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).
	oval_object_set_version(object, atoi(version));
data/openscap-1.2.17/src/OVAL/oval_object.c:404: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 object_name[strlen(subtype_text) + 8];
data/openscap-1.2.17/src/OVAL/oval_object.c:416: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 version[10];
data/openscap-1.2.17/src/OVAL/oval_object.c:473:2:  [2] (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_obj_id, obj->id, oid_len);
data/openscap-1.2.17/src/OVAL/oval_object.c:475:2:  [2] (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_obj_id + oid_len + 1, set_id, sid_len);
data/openscap-1.2.17/src/OVAL/oval_parser.c:245:11:  [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).
		value = atoi(string);
data/openscap-1.2.17/src/OVAL/oval_probe.c:507: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 probe_path[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:406: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 errbuf[__ERRBUF_SIZE];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:417: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 errbuf[__ERRBUF_SIZE];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:461:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                        char errbuf[__ERRBUF_SIZE];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:502:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char errbuf[__ERRBUF_SIZE];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:514:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char errbuf[__ERRBUF_SIZE];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:536:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char errbuf[__ERRBUF_SIZE];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:576:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char errbuf[__ERRBUF_SIZE];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:661:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char    buf[128+1];                                     \
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:697:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128+1];                     \
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:775:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char         probe_uri[PATH_MAX + 1];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:842: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.
                        char         probe_uri[PATH_MAX + 1];
data/openscap-1.2.17/src/OVAL/oval_probe_ext.c:979: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 curdir[PATH_MAX];
data/openscap-1.2.17/src/OVAL/oval_schema_version.c:44: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 buffer[substring_length + 1]; // +1 for a zero byte
data/openscap-1.2.17/src/OVAL/oval_schema_version.c:47:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	return atoi(buffer);
data/openscap-1.2.17/src/OVAL/oval_session.c:431: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 pwd[PATH_MAX];
data/openscap-1.2.17/src/OVAL/oval_sexp.c:165: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 msg[100];
data/openscap-1.2.17/src/OVAL/oval_sexp.c:245: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 msg[100];
data/openscap-1.2.17/src/OVAL/oval_sexp.c:422: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 obj_name[128];
data/openscap-1.2.17/src/OVAL/oval_sexp.c:678: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 buffer[128];
data/openscap-1.2.17/src/OVAL/oval_sexp.c:816:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char txt[1024];
data/openscap-1.2.17/src/OVAL/oval_sexp.c:864: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 val[64], *valp = val;
data/openscap-1.2.17/src/OVAL/oval_sexp.c:1016: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 mask_entname_cstr[128];
data/openscap-1.2.17/src/OVAL/oval_state.c:323: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).
	oval_state_set_version(state, atoi(version));
data/openscap-1.2.17/src/OVAL/oval_state.c:337: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 state_name[strlen(subtype_text) + 7];
data/openscap-1.2.17/src/OVAL/oval_state.c:349: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 version[10];
data/openscap-1.2.17/src/OVAL/oval_sysItem.c:260:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tagname[strlen(subtype_text) + 6];
data/openscap-1.2.17/src/OVAL/oval_syschar.c:334:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char version[17];
data/openscap-1.2.17/src/OVAL/oval_syschar.c:343:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char instance_att[10] = "";
data/openscap-1.2.17/src/OVAL/oval_test.c:428:31:  [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).
		oval_test_set_version(test, atoi(version));
data/openscap-1.2.17/src/OVAL/oval_test.c:455: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 test_name[strlen(subtype_text) + 6];
data/openscap-1.2.17/src/OVAL/oval_test.c:467: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 version[10];
data/openscap-1.2.17/src/OVAL/oval_variable.c:1155:38:  [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).
	oval_variable_set_version(variable, atoi(version));
data/openscap-1.2.17/src/OVAL/oval_variable.c:1276: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 version[10];
data/openscap-1.2.17/src/OVAL/oval_version.c:18:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *component_str[3];
data/openscap-1.2.17/src/OVAL/oval_version.c:19: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 version_str[12];
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/common.c:42: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, src, len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/spb.c:145: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 (b_dst, (char *)(spb->buffer[b_idx].base) + l_off, l_len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/spb.c:156: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 (b_dst, spb->buffer[b_idx].base, l_len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strbuf.c:115: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 (cur->data + buf->blkoff, str, sizeof (char) * cpylen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strbuf.c:210: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 (stroff, cur->data, sizeof (char) * cur->size);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strbuf.c:232: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 (stroff, cur->data, sizeof (char) * cur->size);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strbuf.c:254: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 (mem, cur->data, sizeof (char) * cur->size);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strto.c:381: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 s[256];
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strto.c:386: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 (s, str, sizeof (char) * len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:32:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char xb64_enc_alphabet[64] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:_";
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:33:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char xb64_dec_alphabet[75] = {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:41:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline void __xb64_enc3 (const uint8_t in[3], char out[4]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:49:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline void __xb64_enc2 (const uint8_t in[2], char out[4]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:57:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline void __xb64_enc1 (const uint8_t in, char out[4]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:67:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline void __xb64_dec4 (const char in[4], uint8_t out[3]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:74:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline void __xb64_dec3 (const char in[3], uint8_t out[2]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:80:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline void __xb64_dec2 (const char in[2], uint8_t out[1]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:156:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char b64_enc_alphabet[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:157:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char b64_dec_alphabet[75] = {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:236:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline void __b64_enc3 (const uint8_t in[3], char out[4]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:244:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline void __b64_enc2 (const uint8_t in[2], char out[4]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:252:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline void __b64_enc1 (const uint8_t in, char out[4]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:262:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline void __b64_dec4 (const char in[4], uint8_t out[3]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:269:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline void __b64_dec3 (const char in[3], uint8_t out[2]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/xbase64.c:275:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline void __b64_dec2 (const char in[2], uint8_t out[1]) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:93: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 (path, uri, sizeof (char) * ulen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:108: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.
                        char  __path[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:118:41:  [2] (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, ptok, sizeof (char) * tlen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:120:41:  [2] (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 + tlen + 1, uri, sizeof (char) * ulen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:126:41:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                        memcpy (path, __path, sizeof (char) * (tlen + ulen + 1));
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:153: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 (path + clen, uri, sizeof (char) * ulen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-message.c:53: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, msg, sizeof (SEAP_msg_t));
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:605: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        psym_cstr_b[16+1];
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap.c:371: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 ((*seap_msg), SEAP_packet_msg (packet), sizeof (SEAP_msg_t));
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap.c:421: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 (msg, seap_msg, sizeof (SEAP_msg_t));
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap.c:500: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 (errptr, err, sizeof (SEAP_err_t));
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-handler.c:119: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->handler), handler, sizeof (SEXP_handler_t));
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip.c:688:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                c = ((unsigned char *)v_dsc.mem)[i] - ((unsigned char *)str)[i];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip.c:721:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                c = ((unsigned char *)v_dsc.mem)[i] - ((unsigned char *)str)[i];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip.c:780: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 (str, v_dsc.mem, sizeof (char) * len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip.c:806: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, v_dsc.mem, v_dsc.hdr->size);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip.c:852: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 (s_str, ((char *) v_dsc.mem) + beg, sizeof (char) * s_len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip_r.c:223: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 (v_dsc.mem, string, sizeof (char) * length);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-manip_r.c:269: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  (v_dsc.mem, v_string, sizeof (char) * v_strlen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:55:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char  buffer[64+1];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:78:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buffer[6+1];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:104:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buffer[8+1];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:128:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buffer[22+1];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:154:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buffer[66+1];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:181:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[20+1];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-parser.c:1692:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char    *b_enc, _b_enc[1024];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-parser.c:1740: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 (v_dsc.mem, b_dec, sizeof (char) * b_declen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-parser.c:1755: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    *b_enc, _b_enc[1024];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-parser.c:1806: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 (v_dsc.mem, b_dec, sizeof (char) * b_declen);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-parser.c:1854:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char *name, name_static[128];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-parser.c:1892: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 *name, name_static[128];
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-value.c:570:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(v_dsc_copy.mem, v_dsc.mem, v_dsc.hdr->size);
data/openscap-1.2.17/src/OVAL/probes/crapi/md5.c:136: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 (ctx->dst, buffer, gcry_md_get_algo_dlen (GCRY_MD_MD5));
data/openscap-1.2.17/src/OVAL/probes/crapi/rmd160.c:107: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 (ctx->dst, buffer, gcry_md_get_algo_dlen (GCRY_MD_RMD160));
data/openscap-1.2.17/src/OVAL/probes/crapi/rmd160.c:169: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 (dst, buffer, gcry_md_get_algo_dlen (GCRY_MD_RMD160));
data/openscap-1.2.17/src/OVAL/probes/crapi/sha1.c:136: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 (ctx->dst, buffer, gcry_md_get_algo_dlen (GCRY_MD_SHA1));
data/openscap-1.2.17/src/OVAL/probes/crapi/sha2.c:246: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 (dst, buffer, gcry_md_get_algo_dlen (algo));
data/openscap-1.2.17/src/OVAL/probes/crapi/sha2.c:295: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 (ctx->dst, buffer, gcry_md_get_algo_dlen (alg));
data/openscap-1.2.17/src/OVAL/probes/findfile.c:107:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	max_depth = atoi(tmp);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:215: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 path_new[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/findfile.c:345: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 path[PATH_MAX] = "/";
data/openscap-1.2.17/src/OVAL/probes/findfile.c:397: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 path_new[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/fsdev.c:231:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&(lfs->ids[i++]), &st.st_dev, sizeof(dev_t));
data/openscap-1.2.17/src/OVAL/probes/fsdev.c:256:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&(lfs->ids[i]), &st.st_dev, sizeof(dev_t));
data/openscap-1.2.17/src/OVAL/probes/fsdev.c:263:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&(lfs->ids[i]), &st.st_dev, sizeof(dev_t));
data/openscap-1.2.17/src/OVAL/probes/fsdev.c:288:7:  [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).
	fp = fopen(MNTTAB, "r");
data/openscap-1.2.17/src/OVAL/probes/fsdev.c:319: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(&(lfs->ids[i++]), &st.st_dev, sizeof(dev_t));
data/openscap-1.2.17/src/OVAL/probes/fsdev.c:332: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(&(lfs->ids[i++]), &st.st_dev, sizeof(dev_t));
data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c:72: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 *buffer, env_file[256], *null_char;
data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c:93:9:  [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).
		pid = atoi(d_entry->d_name);
data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c:102: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(env_file, "/proc/%d/environ", pid);
data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c:104:13:  [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).
		if ((fd = open(env_file, O_RDONLY)) == -1) {
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:81: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   pbuf[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:98: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 (pbuf, p, sizeof (char) * plen);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:105: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 (pbuf + plen, f, sizeof (char) * flen);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:113:8:  [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(pbuf, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:116:8:  [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_with_prefix, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:137:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char    md5_str[(sizeof md5_dst * 2) + 1];
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:141:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char    sha1_str[(sizeof sha1_dst * 2) + 1];
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:110: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   pbuf[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:127:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (pbuf, p, sizeof (char) * plen);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:134:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (pbuf + plen, f, sizeof (char) * flen);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:141:8:  [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(pbuf, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:144:8:  [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_with_prefix, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:164: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    hash_str[2051];
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:249: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 hash_type_str[128];
data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c:82: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   pbuf[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c:99: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 (pbuf, p, sizeof (char) * plen);
data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c:106: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 (pbuf + plen, f, sizeof (char) * flen);
data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c:112: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 (pbuf, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c:127:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char    md5_str[32+1];
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:75: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  base[2048];
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:76: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 *attrs[3];
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:124: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.
       unsigned char mac[6];
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:125: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.
       static char mac_buf[20];
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:159: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.
	static char mac_buf[DLPI_PHYSADDR_MAX];
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:211:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
       char host[NI_MAXHOST], *mac;
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:361:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(path_with_prefix, "r");
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:364:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fp = fopen(path, "r");
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:373: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 grubcfg[MAX_BUFFER_SIZE+1] = { '\0' };
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:528: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 saved_entry[MAX_BUFFER_SIZE+1];
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:557:12:  [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).
		int nr = atoi(ptr);
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:601:12:  [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).
		int nr = atoi(ptr);
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:616: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 hname[HOST_NAME_MAX+1] = { '\0' };
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:125:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, str + ovector[2 * i], len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:165:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, str + pmatch[i].rm_so, len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:270:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(whole_path, path, path_len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:275:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(whole_path + path_len, filename, filename_len + 1);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:292:7:  [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).
	fp = fopen(whole_path_with_prefix, "rb");
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:299: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 line[4096];
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:114:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, str + ovector[2 * i], len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:154:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, str + pmatch[i].rm_so, len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:245:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(whole_path, path, path_len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:252:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(whole_path + path_len, file, file_len + 1);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:269: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(whole_path_with_prefix, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/independent/xmlfilecontent.c:116: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 filepath[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/independent/xmlfilecontent.c:125:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (whole_path, path, sizeof (char) * path_len);
data/openscap-1.2.17/src/OVAL/probes/independent/xmlfilecontent.c:132:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(whole_path + path_len, filename, filename_len + 1);
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:165: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 zpath[MAXPATHLEN];
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:214: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 rpath[MAXPATHLEN];
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:542:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pattern + 1, path, plen);
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:679: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 cstr_path[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:680: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 cstr_file[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:681: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 cstr_buff[32];
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:682:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *paths[2] = { NULL, NULL };
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:1074:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char * const paths[2] = { ofts->ofts_match_path_fts_ent->fts_path, NULL };
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:1209:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 paths[2] = { ofts->ofts_recurse_path_curpth, NULL };
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:429:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/openscap-1.2.17/src/OVAL/probes/probe-api.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 attr_name[32 + 1];
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1400: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 item_name[64];
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1420:17:  [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(item_name, "_item");
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1594:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    msg_buffer[1024];
data/openscap-1.2.17/src/OVAL/probes/probe/rcache.c:97: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    b[128], *k = b;
data/openscap-1.2.17/src/OVAL/probes/probe/worker.c:627: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 member_name[24];
data/openscap-1.2.17/src/OVAL/probes/probe/worker.c:709:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char    OID_cstr[128];
data/openscap-1.2.17/src/OVAL/probes/unix/file.c:268: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 path_buffer[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c:90: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 path_buffer[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/gconf.c:109: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 gconf_key[1024];
data/openscap-1.2.17/src/OVAL/probes/unix/gconf.c:198:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char gconf_addr[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/interface.c:80: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.
	unsigned char mac[6];
data/openscap-1.2.17/src/OVAL/probes/unix/interface.c:81: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.
	static char mac_buf[20];
data/openscap-1.2.17/src/OVAL/probes/unix/interface.c:122: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.
	static char *flags_buf[17];
data/openscap-1.2.17/src/OVAL/probes/unix/interface.c:202: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 host[NI_MAXHOST], broad[NI_MAXHOST], mask[NI_MAXHOST], *mac, *type, **flags;
data/openscap-1.2.17/src/OVAL/probes/unix/interface.c:293:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char host_tmp[NI_MAXHOST];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:92: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 interface_name[255];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:93: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 hw_address[255];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:184:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:185:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *tmp, cmd[16], state, *text = NULL;
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:198:8:  [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(buf, O_RDONLY, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:221:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		sf = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:254:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char line[256], ln[256], *s, *e;
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:334:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[255];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:338:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:351: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).
			fd = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:377: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[256];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:386:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/net/packet", "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:189:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:190:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *tmp, cmd[16], state, *text = NULL;
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:203:8:  [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(buf, O_RDONLY, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:226:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		sf = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:255:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char line[256], ln[256], *s, *e;
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:398: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[256];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:402: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 rem_addr[128], local_addr[128], more[512];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:404:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(proc, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:424: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 src[NI_MAXHOST], dest[NI_MAXHOST];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:450: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[256];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:453: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 rem_addr[128], local_addr[128], more[512];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:455:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(proc, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:475: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 src[NI_MAXHOST], dest[NI_MAXHOST];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:501: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[256];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:504: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 rem_addr[128], local_addr[128], more[512];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:506:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(proc, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:526: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 src[NI_MAXHOST], dest[NI_MAXHOST];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/partition.c:251: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    mnt_path[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/partition.c:259:18:  [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).
        mnt_fd = open(MTAB_PATH, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/partition.c:281: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).
        mnt_fp = fopen(MTAB_PATH, "r");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/partition.c:317:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[MTAB_LINE_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/probe-chroot.c:47:17:  [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).
		ch->root_fd = open("/", O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:89: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 extended_name[1024];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverify.c:325: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   file[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverify.c:327: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   name[64];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:69: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 extended_name[1024];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:103: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 ent_str[1024];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:443: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   file[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c:83: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 extended_name[1024];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c:122: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 ent_str[1024] = "";
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c:160:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 * rpmcli_argv[10];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:128:16:  [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).
		pid_number = atoi(dir_entry->d_name);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:184: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   pbuf[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:208:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (pbuf, p, sizeof (char) * plen);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:216:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (pbuf + plen, f, sizeof (char) * flen);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdshared.h:53: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.
	unsigned char bytes[8]; /**< as 8 individual bytes */
data/openscap-1.2.17/src/OVAL/probes/unix/password.c:122:40:  [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 *ll_fp = fopen(_PATH_LASTLOG, "r");
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:111: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[100];
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:116:7:  [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).
	sf = fopen("/proc/stat", "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:137: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[100];
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:144:7:  [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).
	sf = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:199:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:200:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *tmp, cmd[16], state, tty_dev[128];
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:218:8:  [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(buf, O_RDONLY, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:253:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tbuf[32], sbuf[32];
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:381:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[336];
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:397:8:  [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(buf, O_RDONLY, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:414:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tbuf[32], sbuf[32];
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:61: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 name[16];
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[10000];
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:72:8:  [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("/proc/tty/drivers",O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:97: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(tmn->name, p, len);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:100: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).
    tmn->major_number = atoi(p);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:210: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(buf, "/dev/tty%c%c", t0, t1);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:214:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buf, "/dev/tty%d", min);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:217: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(buf, "/dev/ttyS%d", min-64);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:219:14:  [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.
  case  11:  sprintf(buf, "/dev/ttyB%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:220:14:  [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.
  case  17:  sprintf(buf, "/dev/ttyH%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:221:14:  [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.
  case  19:  sprintf(buf, "/dev/ttyC%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:222:14:  [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.
  case  22:  sprintf(buf, "/dev/ttyD%d",  min); break; /* devices.txt */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:223:14:  [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.
  case  23:  sprintf(buf, "/dev/ttyD%d",  min); break; /* driver code */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:224:14:  [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.
  case  24:  sprintf(buf, "/dev/ttyE%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:225:14:  [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.
  case  32:  sprintf(buf, "/dev/ttyX%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:226:14:  [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.
  case  43:  sprintf(buf, "/dev/ttyI%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:227:14:  [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.
  case  46:  sprintf(buf, "/dev/ttyR%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:228:14:  [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.
  case  48:  sprintf(buf, "/dev/ttyL%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:229:14:  [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.
  case  57:  sprintf(buf, "/dev/ttyP%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:230:14:  [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.
  case  71:  sprintf(buf, "/dev/ttyF%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:231:14:  [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.
  case  75:  sprintf(buf, "/dev/ttyW%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:232:14:  [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.
  case  78:  sprintf(buf, "/dev/ttyM%d",  min); break; /* conflict */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:233:14:  [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.
  case 105:  sprintf(buf, "/dev/ttyV%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:234:14:  [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.
  case 112:  sprintf(buf, "/dev/ttyM%d",  min); break; /* conflict */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:236:22:  [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.
  case 136 ... 143:  sprintf(buf, "/dev/pts/%d",  min+(maj-136)*256); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:237:14:  [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.
  case 148:  sprintf(buf, "/dev/ttyT%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:238:14:  [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.
  case 154:  sprintf(buf, "/dev/ttySR%d", min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:239:14:  [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.
  case 156:  sprintf(buf, "/dev/ttySR%d", min+256); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:240:14:  [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.
  case 164:  sprintf(buf, "/dev/ttyCH%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:241:14:  [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.
  case 166:  sprintf(buf, "/dev/ttyACM%d", min); break; /* bummer, 9-char */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:242:14:  [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.
  case 172:  sprintf(buf, "/dev/ttyMX%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:243:14:  [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.
  case 174:  sprintf(buf, "/dev/ttySI%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:244:14:  [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.
  case 188:  sprintf(buf, "/dev/ttyUSB%d", min); break; /* bummer, 9-char */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:247: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,"/dev/tty",8);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:248: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+8, low_density_names[min], sizeof low_density_names[0]);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:252:14:  [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.
  case 208:  sprintf(buf, "/dev/ttyU%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:253:14:  [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.
  case 216:  sprintf(buf, "/dev/ttyUB%d",  min); break; // "/dev/rfcomm%d" now?
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:254:14:  [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.
  case 224:  sprintf(buf, "/dev/ttyY%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:255:14:  [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.
  case 227:  sprintf(buf, "/dev/3270/tty%d", min); break; /* bummer, HUGE */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:256:14:  [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.
  case 229:  sprintf(buf, "/dev/iseries/vtty%d",  min); break; /* bummer, HUGE */
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:257:14:  [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.
  case 256:  sprintf(buf, "/dev/ttyEQ%d",  min); break;
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:272: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 path[32];
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:286:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[TTY_NAME_SIZE];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:158: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[100];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:163:7:  [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).
	sf = fopen("/proc/stat", "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:184: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[100];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:192:7:  [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).
	sf = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:210:7:  [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).
	sf = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:339: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[501];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:344: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 perm[3], trim;
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:348:7:  [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).
	sf = fopen(buf, "rt");
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:379: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).
	int fd = open(filepath, O_RDONLY, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:391: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 chunk[chunk_size];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:445:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd_buffer + len, DEFUNC_STR, sizeof(DEFUNC_STR));
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:473: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 cmd_buffer[1 + 15 + 11 + 1]; // Format:" [ cmd:15 ] <defunc>"
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:479:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[256];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:480:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *tmp, state, tty_dev[128];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:498:8:  [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(buf, O_RDONLY, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:549:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tbuf[32], sbuf[32], *selinux_domain_label, **posix_capabilities;
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:701:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[336];
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:717:8:  [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(buf, O_RDONLY, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:734:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tbuf[32], sbuf[32];
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ip_dst[INET6_ADDRSTRLEN+1];
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.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 ip_gw[INET6_ADDRSTRLEN+1];
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:76:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *rt_flags[RT_FLAGS_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:77:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char if_name[IF_NAME_MAXLEN+1];
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *token[8];
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:222:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *token[10];
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:305: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).
	    fp = fopen("/proc/net/route", "r");
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:322: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).
	    fp = fopen("/proc/net/ipv6_route", "r");
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:95: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 pathbuf[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:140:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char runlevel[2] = {'\0', '\0'};
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:301:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *osrelease = fopen("/etc/os-release", "r");
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:306: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 releasename[RELEASENAME_MAX_SIZE];
data/openscap-1.2.17/src/OVAL/probes/unix/solaris/isainfo.c:57: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 kernel_isa[MAX_STR_RESULT];
data/openscap-1.2.17/src/OVAL/probes/unix/solaris/isainfo.c:58: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 application_isa[MAX_STR_RESULT];
data/openscap-1.2.17/src/OVAL/probes/unix/solaris/isainfo.c:79: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 tmp_buf[MAX_STR_RESULT];
data/openscap-1.2.17/src/OVAL/probes/unix/symlink.c:51: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 resolved_name[PATH_MAX];
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:113:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char    mibpath[PATH_MAX], *mib;
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:148: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.
                        char    sysval[8192];
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:149: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.
                        char   *sysvals[512];
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:158:30:  [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).
                        fp = fopen(mibpath, "r");
data/openscap-1.2.17/src/OVAL/probes/unix/uname.c:66: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 procbuf[SYS_NMLN];
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:484: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(path, O_RDONLY);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:578:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define tmpbuf_def(size) char __tmpbuf[size]
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:640:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (buffer, l_pbeg, l_size);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:697:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char           pathbuf[PATH_MAX+1];
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:915:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (buffer, l_pbeg, l_size);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1043: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   st_key[XICFG_STRANS_MAXKEYLEN+1];
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1193: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             strans_key[XICFG_STRANS_MAXKEYLEN+1];
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1613: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    srv_name[256];
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1614: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    srv_prot[256];
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:291:19:  [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).
		tmp_state_int = atoi(&state[state_idx]);	// look at the current data field (if we're at the end, atoi should return 0)
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:292: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).
		tmp_sys_int = atoi(&syschar[sys_idx]);
data/openscap-1.2.17/src/OVAL/results/oval_cmp_ip_address.c:87: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 addr1[INET6_ADDRSTRLEN];
data/openscap-1.2.17/src/OVAL/results/oval_cmp_ip_address.c:88: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 addr2[INET6_ADDRSTRLEN];
data/openscap-1.2.17/src/OVAL/results/oval_cmp_ip_address.c:206:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char nm[4];
data/openscap-1.2.17/src/OVAL/results/oval_resultCriteriaNode.c:613: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 version[10];
data/openscap-1.2.17/src/OVAL/results/oval_resultCriteriaNode.c:620:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char instance_att[10] = "";
data/openscap-1.2.17/src/OVAL/results/oval_resultCriteriaNode.c:640: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 version_att[10] = "";
data/openscap-1.2.17/src/OVAL/results/oval_resultCriteriaNode.c:646:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char instance_att[10] = "";
data/openscap-1.2.17/src/OVAL/results/oval_resultDefinition.c:253:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int resvsn = atoi((char *)definition_version);
data/openscap-1.2.17/src/OVAL/results/oval_resultDefinition.c:306: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 version_att[10] = "";
data/openscap-1.2.17/src/OVAL/results/oval_resultDefinition.c:313: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 instance_att[10] = "";
data/openscap-1.2.17/src/OVAL/results/oval_resultTest.c:1346: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 version[10];
data/openscap-1.2.17/src/OVAL/results/oval_resultTest.c:1361: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 instance[10];
data/openscap-1.2.17/src/SCE/module_entry.c:80: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 target[2 + strlen(sce_check_result_get_basename(check_result)) + 11 + 1];
data/openscap-1.2.17/src/SCE/sce_engine.c:173: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* f = fopen(target_file, "w");
data/openscap-1.2.17/src/XCCDF/benchmark.c:706: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 foo[2];
data/openscap-1.2.17/src/XCCDF/elements.c:462: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[32];
data/openscap-1.2.17/src/XCCDF/elements.c:465:2:  [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, "%%.%ds", max);
data/openscap-1.2.17/src/XCCDF/result.c:207: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 hostip[NI_MAXHOST];
data/openscap-1.2.17/src/XCCDF/result.c:236: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.
			unsigned char mac[6];
data/openscap-1.2.17/src/XCCDF/result.c:237:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char macbuf[20];
data/openscap-1.2.17/src/XCCDF/result.c:410:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[XCCDF_NUMERIC_SIZE];
data/openscap-1.2.17/src/XCCDF/value.c:223: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 buff[16]; buff[15] = '\0';
data/openscap-1.2.17/src/XCCDF/xccdf_session.c:1239: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 pwd[PATH_MAX];
data/openscap-1.2.17/src/XCCDF/xccdf_session.c:1248:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *par[_paramlist_size(params) + _paramlist_size(stdparams) + 1];
data/openscap-1.2.17/src/XCCDF/xccdf_session.c:1569:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char fname[strlen(sname) + 32];
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c:2028: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 rid[32+strlen(id)];
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c:2036: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 rid[11+strlen(id)];
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:405:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char *const argvp[3] = {
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:411:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char *const envp[2] = {
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:628:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(variable_name, &fix_text[ovector[2]], ovector[3] - ovector[2]);
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:632:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(variable_value, &fix_text[ovector[4]], ovector[5] - ovector[4]);
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:650:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(remediation_part, &fix_text[start_offset], length_between_matches);
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:663:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(remediation_part, &fix_text[start_offset], fix_text_len - start_offset);
data/openscap-1.2.17/src/common/debug.c:104:8:  [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_APPEND | O_WRONLY);
data/openscap-1.2.17/src/common/debug.c:114:8:  [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_APPEND | O_CREAT | O_TRUNC | O_WRONLY,
data/openscap-1.2.17/src/common/debug.c:183: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 thread_name[THREAD_NAME_LEN];
data/openscap-1.2.17/src/common/elements.c:224:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY,
data/openscap-1.2.17/src/common/memusage.c:93:7:  [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).
	fp = fopen(source, "r");
data/openscap-1.2.17/src/common/memusage.c:98: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 linebuf[256];
data/openscap-1.2.17/src/common/oscap_acquire.c:97:7:  [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(*filename);
data/openscap-1.2.17/src/common/oscap_acquire.c:206: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 resolved_name[PATH_MAX];
data/openscap-1.2.17/src/common/oscap_acquire.c:241: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 temp[PATH_MAX + 1]; // +1 for \0
data/openscap-1.2.17/src/common/oscap_buffer.c:92:2:  [2] (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->data + s->length, data, append_length);
data/openscap-1.2.17/src/common/util.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char foo[2];
data/openscap-1.2.17/src/source/oscap_source.c:119:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(source->origin.memory, buffer, size);
data/openscap-1.2.17/src/source/oscap_source.c:281:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			int fd = open(source->origin.filepath, O_RDONLY);
data/openscap-1.2.17/src/source/oscap_source.c:422:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ret, source->origin.memory, source->origin.memory_size);
data/openscap-1.2.17/src/source/xslt.c:82:7:  [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(outfile, "w");
data/openscap-1.2.17/src/source/xslt.c:110: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 *args[argc+1];
data/openscap-1.2.17/tests/API/CPE/name/test_api_cpe_uri.c:47:29:  [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).
		     cpe_example_creation(atoi(argv[2]), argv[3], argv[4], argv[5],
data/openscap-1.2.17/tests/API/CPE/name/test_api_cpe_uri.c:90: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).
						     fopen(argv[3],
data/openscap-1.2.17/tests/API/OVAL/schema_version/test_schema_version.c:48:24:  [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).
	int expected_result = atoi(argv[3]);
data/openscap-1.2.17/tests/API/XCCDF/unittests/test_oscap_common.c:140: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 key[10];
data/openscap-1.2.17/tests/API/XCCDF/unittests/test_oscap_common.c:208: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 key[10];
data/openscap-1.2.17/tests/API/crypt/test_crapi_digest.c:70: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 *orig_md5sum,  comp_md5sum[(sizeof md5_dst * 2) + 1];
data/openscap-1.2.17/tests/API/crypt/test_crapi_digest.c:71: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 *orig_sha1sum, comp_sha1sum[(sizeof sha1_dst * 2) + 1];
data/openscap-1.2.17/tests/API/crypt/test_crapi_digest.c:72: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 *orig_sha256sum, comp_sha256sum[(sizeof sha256_dst * 2) + 1];
data/openscap-1.2.17/tests/API/crypt/test_crapi_digest.c:91:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (filename, O_RDONLY);
data/openscap-1.2.17/tests/API/crypt/test_crapi_mdigest.c:70: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 *orig_md5sum,  comp_md5sum[(sizeof md5_dst * 2) + 1];
data/openscap-1.2.17/tests/API/crypt/test_crapi_mdigest.c:71: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 *orig_sha1sum, comp_sha1sum[(sizeof sha1_dst * 2) + 1];
data/openscap-1.2.17/tests/API/crypt/test_crapi_mdigest.c:72: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 *orig_sha256sum, comp_sha256sum[(sizeof sha256_dst * 2) + 1];
data/openscap-1.2.17/tests/API/crypt/test_crapi_mdigest.c:91:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open (filename, O_RDONLY);
data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c:32: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   buffer[1024];
data/openscap-1.2.17/tests/bz2/test_bz2_memory_source.c:31:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *file = fopen(filename, "rb");
data/openscap-1.2.17/tests/probes/interface/test_probes_interface.c:21: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 host[NI_MAXHOST], broad[NI_MAXHOST], mask[NI_MAXHOST];
data/openscap-1.2.17/tests/probes/xinetd/test_probe_xinetd.c:13: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[8192]; // Ought to be enough for anybody
data/openscap-1.2.17/utils/oscap-ds.c:348: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 target_abs_path[PATH_MAX + 1];
data/openscap-1.2.17/utils/oscap-info.c:74: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 timeStr[ 100 ] = "";
data/openscap-1.2.17/utils/oscap-info.c:163: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 cleaned_profile_id[1024];
data/openscap-1.2.17/utils/oscap-tool.c:81: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 pwd[PATH_MAX];
data/openscap-1.2.17/utils/oscap-tool.c:90:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *par[paramlist_size(params) + paramlist_size(stdparams) + 1];
data/openscap-1.2.17/utils/oscap-tool.c:298:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nargv, *argv, ofs * sizeof(char *));
data/openscap-1.2.17/utils/oscap-tool.c:300:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nargv + ofs, eargv, eargc * sizeof(char *));
data/openscap-1.2.17/utils/oscap-tool.c:302:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nargv + ofs + eargc, *argv + ofs, (*argc - ofs) * sizeof(char *));
data/openscap-1.2.17/utils/oscap-xccdf.c:324:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 custom_stylesheet_path[PATH_MAX];
data/openscap-1.2.17/utils/oscap-xccdf.c:914:20:  [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).
		if ((output_fd = open(action->f_results, O_CREAT|O_TRUNC|O_NOFOLLOW|O_WRONLY, 0700)) < 0) {
data/openscap-1.2.17/utils/oscap.c:159: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 default_cpe_path[PATH_MAX];
data/openscap-1.2.17/lib/getdelim.c:39:41:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc_maybe_unlocked(fp)        getc(fp)
data/openscap-1.2.17/lib/getdelim.c:45:41:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc_maybe_unlocked(fp)        getc(fp)
data/openscap-1.2.17/lib/stdio.in.h:229:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef fgetc
data/openscap-1.2.17/lib/stdio.in.h:230:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define fgetc rpl_fgetc
data/openscap-1.2.17/lib/stdio.in.h:232:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1)));
data/openscap-1.2.17/lib/stdio.in.h:233:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_RPL (fgetc, int, (FILE *stream));
data/openscap-1.2.17/lib/stdio.in.h:235:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_SYS (fgetc, int, (FILE *stream));
data/openscap-1.2.17/lib/stdio.in.h:237:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (fgetc);
data/openscap-1.2.17/lib/stdio.in.h:616:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef getc
data/openscap-1.2.17/lib/stdio.in.h:617:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define getc rpl_fgetc
data/openscap-1.2.17/lib/stdio.in.h:619:19:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1)));
data/openscap-1.2.17/lib/stdio.in.h:620:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream));
data/openscap-1.2.17/lib/stdio.in.h:622:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_SYS (getc, int, (FILE *stream));
data/openscap-1.2.17/lib/stdio.in.h:624:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (getc);
data/openscap-1.2.17/lib/stdio.in.h:630:11:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef getchar
data/openscap-1.2.17/lib/stdio.in.h:631:12:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define getchar rpl_getchar
data/openscap-1.2.17/lib/stdio.in.h:633:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_FUNCDECL_RPL (getchar, int, (void));
data/openscap-1.2.17/lib/stdio.in.h:634:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_RPL (getchar, int, (void));
data/openscap-1.2.17/lib/stdio.in.h:636:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_SYS (getchar, int, (void));
data/openscap-1.2.17/lib/stdio.in.h:638:19:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (getchar);
data/openscap-1.2.17/lib/string.in.h:378:11:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#   undef strncat
data/openscap-1.2.17/lib/string.in.h:379:12:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#   define strncat rpl_strncat
data/openscap-1.2.17/lib/string.in.h:381:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n)
data/openscap-1.2.17/lib/string.in.h:383:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n));
data/openscap-1.2.17/lib/string.in.h:385:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n));
data/openscap-1.2.17/lib/string.in.h:387:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIASWARN (strncat);
data/openscap-1.2.17/lib/string.in.h:389:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
# undef strncat
data/openscap-1.2.17/lib/string.in.h:391:18:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_WARN_ON_USE (strncat, "strncat is unportable - "
data/openscap-1.2.17/lib/unistd.in.h:1239:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef read
data/openscap-1.2.17/lib/unistd.in.h:1240:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define read rpl_read
data/openscap-1.2.17/lib/unistd.in.h:1242:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count)
data/openscap-1.2.17/lib/unistd.in.h:1244:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count));
data/openscap-1.2.17/lib/unistd.in.h:1249:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count));
data/openscap-1.2.17/lib/unistd.in.h:1251:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (read);
data/openscap-1.2.17/lib/unistd.in.h:1511:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#   undef usleep
data/openscap-1.2.17/lib/unistd.in.h:1512:12:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#   define usleep rpl_usleep
data/openscap-1.2.17/lib/unistd.in.h:1514:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_FUNCDECL_RPL (usleep, int, (useconds_t n));
data/openscap-1.2.17/lib/unistd.in.h:1515:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIAS_RPL (usleep, int, (useconds_t n));
data/openscap-1.2.17/lib/unistd.in.h:1518:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_FUNCDECL_SYS (usleep, int, (useconds_t n));
data/openscap-1.2.17/lib/unistd.in.h:1520:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIAS_SYS (usleep, int, (useconds_t n));
data/openscap-1.2.17/lib/unistd.in.h:1522:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIASWARN (usleep);
data/openscap-1.2.17/lib/unistd.in.h:1524:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
# undef usleep
data/openscap-1.2.17/lib/unistd.in.h:1526:18:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_WARN_ON_USE (usleep, "usleep is unportable - "
data/openscap-1.2.17/lib/vasnprintf.c:229:24:  [1] (buffer) wcslen:
  Does not handle 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 local_wcslen wcslen
data/openscap-1.2.17/lib/vasnprintf.c:1731: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).
            tmp_length = strlen (arg);
data/openscap-1.2.17/lib/vasnprintf.c:2563: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).
                      arg_end = arg + strlen (arg);
data/openscap-1.2.17/lib/vasnprintf.c:3650: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).
                                ndigits = strlen (digits);
data/openscap-1.2.17/lib/vasnprintf.c:3710:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/openscap-1.2.17/lib/vasnprintf.c:3746: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).
                                        if (strlen (digits2) == precision + 1)
data/openscap-1.2.17/lib/vasnprintf.c:3846:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/openscap-1.2.17/lib/vasnprintf.c:3882: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).
                                        if (strlen (digits2) == precision)
data/openscap-1.2.17/lib/vasnprintf.c:4112: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).
                                ndigits = strlen (digits);
data/openscap-1.2.17/lib/vasnprintf.c:4169:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/openscap-1.2.17/lib/vasnprintf.c:4204: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).
                                        if (strlen (digits2) == precision + 1)
data/openscap-1.2.17/lib/vasnprintf.c:4317:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                        ndigits = strlen (digits);
data/openscap-1.2.17/lib/vasnprintf.c:4352: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).
                                        if (strlen (digits2) == precision)
data/openscap-1.2.17/lib/wchar.in.h:562:19:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
_GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE);
data/openscap-1.2.17/lib/wchar.in.h:564:19:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
_GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s));
data/openscap-1.2.17/lib/wchar.in.h:565:19:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
_GL_CXXALIASWARN (wcslen);
data/openscap-1.2.17/lib/wchar.in.h:567:9:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
# undef wcslen
data/openscap-1.2.17/lib/wchar.in.h:569:18:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
_GL_WARN_ON_USE (wcslen, "wcslen is unportable - "
data/openscap-1.2.17/lib/wchar.in.h:627:19:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
_GL_FUNCDECL_SYS (wcsncpy, wchar_t *,
data/openscap-1.2.17/lib/wchar.in.h:630:19:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
_GL_CXXALIAS_SYS (wcsncpy, wchar_t *,
data/openscap-1.2.17/lib/wchar.in.h:632:19:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
_GL_CXXALIASWARN (wcsncpy);
data/openscap-1.2.17/lib/wchar.in.h:634:9:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
# undef wcsncpy
data/openscap-1.2.17/lib/wchar.in.h:636:18:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
_GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - "
data/openscap-1.2.17/lib/wchar.in.h:680:19:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
_GL_FUNCDECL_SYS (wcsncat, wchar_t *,
data/openscap-1.2.17/lib/wchar.in.h:683:19:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
_GL_CXXALIAS_SYS (wcsncat, wchar_t *,
data/openscap-1.2.17/lib/wchar.in.h:685:19:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
_GL_CXXALIASWARN (wcsncat);
data/openscap-1.2.17/lib/wchar.in.h:687:9:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
# undef wcsncat
data/openscap-1.2.17/lib/wchar.in.h:689:18:  [1] (buffer) wcsncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or
  automatically resizing strings.
_GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - "
data/openscap-1.2.17/src/CPE/cpename.c:251: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(fields_[i]) >= 2 && fields_[i][0] == '~') {
data/openscap-1.2.17/src/CPE/cpename.c:391: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).
	char *result = malloc(strlen(str) * 3 * sizeof(char) + 1);
data/openscap-1.2.17/src/CPE/cpename.c:455: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).
	char *result = malloc(strlen(str) * 3 * sizeof(char) + 1);
data/openscap-1.2.17/src/CPE/cpename.c:607: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).
	rc = pcre_exec(re, NULL, str, strlen(str), 0, 0, ovector, 30);
data/openscap-1.2.17/src/CPE/cpename.c:616: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).
	rc = pcre_exec(re, NULL, str, strlen(str), 0, 0, ovector, 30);
data/openscap-1.2.17/src/CPE/cpename.c:624: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).
	rc = pcre_exec(re, NULL, str, strlen(str), 0, 0, ovector, 30);
data/openscap-1.2.17/src/CPE/cpename.c:666: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(part[i]);
data/openscap-1.2.17/src/CPE/cpename.c:702: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(part[i]);
data/openscap-1.2.17/src/CVSS/cvss.c:244: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).
        char *vector_end = vector_dup + strlen(vector_dup) - 1;
data/openscap-1.2.17/src/DS/sds.c:366: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 (!xlink_href || strlen(xlink_href) < 2)
data/openscap-1.2.17/src/DS/sds.c:382: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).
		const char *filename = xlink_href + strlen("file:");
data/openscap-1.2.17/src/DS/sds.c:477:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (!str_uri || strlen(str_uri) < 2)
data/openscap-1.2.17/src/DS/sds.c:644:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(file_timestamp, "0000-00-00T00:00:00", sizeof(file_timestamp));
data/openscap-1.2.17/src/DS/sds.c:784: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).
	char* ret = malloc(strlen(filepath) * sizeof(char) * 2);
data/openscap-1.2.17/src/OVAL/adt/oval_string_map.c:90: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).
	char *temp = (char *)malloc((strlen(key) + 1) * sizeof(char) + 1);
data/openscap-1.2.17/src/OVAL/adt/oval_string_map.c:124: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).
	char *temp = (char *)malloc((strlen(item) + 1) * sizeof(char) + 1);
data/openscap-1.2.17/src/OVAL/fts_sun.c:158:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(*argv);
data/openscap-1.2.17/src/OVAL/fts_sun.c:242:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(++cp);
data/openscap-1.2.17/src/OVAL/fts_sun.c:1117:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((len = strlen(*argv)) > max)
data/openscap-1.2.17/src/OVAL/fts_sun.h:61: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).
# define _D_EXACT_NAMLEN(d) (strlen((d)->d_name))
data/openscap-1.2.17/src/OVAL/oval_component.c:1501: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).
		int len_prefix = strlen(prefix);
data/openscap-1.2.17/src/OVAL/oval_component.c:1511: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).
				char concat[len_prefix + strlen(key) + 1];
data/openscap-1.2.17/src/OVAL/oval_component.c:1536: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).
		int len_suffix = strlen(suffix);
data/openscap-1.2.17/src/OVAL/oval_component.c:1546: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).
				int len_key = strlen(key);
data/openscap-1.2.17/src/OVAL/oval_component.c:1613: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).
					len_cat += strlen(texts[idx0]);
data/openscap-1.2.17/src/OVAL/oval_component.c:1753:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len_delim = strlen(delimiter);
data/openscap-1.2.17/src/OVAL/oval_component.c:1763: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).
				char split[strlen(text) + 2], *split0 = split;
data/openscap-1.2.17/src/OVAL/oval_component.c:1766: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).
				split0[strlen(text) + 1] = '\0';	/*last two characters are EOS */
data/openscap-1.2.17/src/OVAL/oval_component.c:1815: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).
			txtlen = strlen(text);
data/openscap-1.2.17/src/OVAL/oval_component.c:1820:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(substr, text + beg, sublen);
data/openscap-1.2.17/src/OVAL/oval_component.c:1957: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).
	match = (pcre_exec(re, NULL, string, strlen(string), 0, 0, ovector, ovector_len) >= 0);
data/openscap-1.2.17/src/OVAL/oval_component.c:2124: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).
			int len = strlen(text);
data/openscap-1.2.17/src/OVAL/oval_component.c:2221: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).
			rc = pcre_exec(re, NULL, text, strlen(text), 0, 0, ovector, ovector_len);
data/openscap-1.2.17/src/OVAL/oval_definition.c:336:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int newsize = strlen(title) + strlen(string) + 1;
data/openscap-1.2.17/src/OVAL/oval_definition.c:336:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int newsize = strlen(title) + strlen(string) + 1;
data/openscap-1.2.17/src/OVAL/oval_definition.c:358: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).
		int newsize = strlen(description) + strlen(string) + 1;
data/openscap-1.2.17/src/OVAL/oval_definition.c:358: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).
		int newsize = strlen(description) + strlen(string) + 1;
data/openscap-1.2.17/src/OVAL/oval_enumerations.c:423: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).
	char family_uri[strlen(schema_ns) + 1 + strlen(family_text) + 1];
data/openscap-1.2.17/src/OVAL/oval_enumerations.c:423: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).
	char family_uri[strlen(schema_ns) + 1 + strlen(family_text) + 1];
data/openscap-1.2.17/src/OVAL/oval_generator.c:203: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).
		size_t namespace_uri_length = strlen(namespace_uri) + 1 + strlen(platform) + 1;
data/openscap-1.2.17/src/OVAL/oval_generator.c:203:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t namespace_uri_length = strlen(namespace_uri) + 1 + strlen(platform) + 1;
data/openscap-1.2.17/src/OVAL/oval_object.c:404: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).
	char object_name[strlen(subtype_text) + 8];
data/openscap-1.2.17/src/OVAL/oval_object.c:469: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).
	oid_len = strlen(obj->id);
data/openscap-1.2.17/src/OVAL/oval_object.c:471: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).
	sid_len = strlen(set_id);
data/openscap-1.2.17/src/OVAL/oval_parser.c:229:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(string) == 1)
data/openscap-1.2.17/src/OVAL/oval_probe.c:514: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).
	probe_dirlen = strlen(probe_dir);
data/openscap-1.2.17/src/OVAL/oval_probe.c:519:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(probe_path, probe_dir, PATH_MAX);
data/openscap-1.2.17/src/OVAL/oval_probe.c:522:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(probe_path, meta[i].pname, PATH_MAX - strlen(probe_dir) - 1);
data/openscap-1.2.17/src/OVAL/oval_probe.c:522: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).
			strncat(probe_path, meta[i].pname, PATH_MAX - strlen(probe_dir) - 1);
data/openscap-1.2.17/src/OVAL/oval_schema_version.c:45:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer, substring, substring_length);
data/openscap-1.2.17/src/OVAL/oval_schema_version.c:68: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).
	int rc = pcre_exec(re, NULL, ver_str, strlen(ver_str), 0, 0, ovector, ovector_size);
data/openscap-1.2.17/src/OVAL/oval_sexp.c:398: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).
			SEXP_list_add(elm_name, r0 = SEXP_string_new(attr_val, strlen(attr_val)));
data/openscap-1.2.17/src/OVAL/oval_sexp.c:439: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).
	obj_attr = probe_attr_creat("id", SEXP_string_new_r(&sm0, obj_id, strlen(obj_id)),
data/openscap-1.2.17/src/OVAL/oval_sexp.c:440: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).
	                            "oval_version", SEXP_string_new_r(&sm1, obj_over, strlen(obj_over)),
data/openscap-1.2.17/src/OVAL/oval_state.c:337: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).
	char state_name[strlen(subtype_text) + 7];
data/openscap-1.2.17/src/OVAL/oval_sysItem.c:260: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).
			char tagname[strlen(subtype_text) + 6];
data/openscap-1.2.17/src/OVAL/oval_test.c:455: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).
	char test_name[strlen(subtype_text) + 6];
data/openscap-1.2.17/src/OVAL/oval_version.c:33:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = strlen(version_str_orig);
data/openscap-1.2.17/src/OVAL/oval_version.c:39:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(version_str, version_str_orig, l);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/rbt/rbt_common.c:470:19:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
        *memptr = memalign(alignment, size);
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strbuf.c:163: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).
        return __strbuf_add (buf, (char *)str, strlen (str));
data/openscap-1.2.17/src/OVAL/probes/SEAP/generic/strbuf.c:176: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).
        ret = __strbuf_add (buf, str, strlen (str));
data/openscap-1.2.17/src/OVAL/probes/SEAP/public/sexp-manip.h:228: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).
SEXP_t *SEXP_string_new  (const void *string, size_t strlen) __attribute__ ((nonnull (1)));
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_cons.c:79:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read (DATA(desc)->ifd, buf, len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_generic.c:88:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read (DATA(desc->scheme_data)->ifd, buf, len);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:78: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).
        ulen = strlen (uri);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:115: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).
                                tlen = strlen (ptok);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:139: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).
                        size_t clen = strlen (path);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sch_pipe.c:287:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if ((ret = read (data->pfd, buf, len)) == 0)
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:229: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).
        sexp = SEXP_list_new (r0 = SEXP_string_new (SEAP_SYM_MSG, strlen (SEAP_SYM_MSG)),
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:247: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).
                                                                   strlen (msg->attrs[i].name)));
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:389: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).
        sexp = SEXP_list_new (r0 = SEXP_string_new (SEAP_SYM_CMD, strlen (SEAP_SYM_CMD)),
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:547: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).
        sexp = SEXP_list_new (r0 = SEXP_string_new (SEAP_SYM_ERR, strlen (SEAP_SYM_ERR)),
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:806: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).
		} else if (SEXP_string_length (psym_sexp) != (strlen (SEAP_SYM_PREFIX) + 3)) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:815: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).
		} else if (SEXP_strncmp (psym_sexp, SEAP_SYM_PREFIX, strlen (SEAP_SYM_PREFIX)) != 0) {
data/openscap-1.2.17/src/OVAL/probes/SEAP/seap-packet.c:827: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).
		psym_cstr = psym_cstr_b + strlen (SEAP_SYM_PREFIX);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-output.c:59: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).
                                   "#d%zu[%s]", strlen (name), name);
data/openscap-1.2.17/src/OVAL/probes/SEAP/sexp-template.c:123: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).
        sexp = SEXP_parse(psetup, tplstr, strlen(tplstr), &pstate);
data/openscap-1.2.17/src/OVAL/probes/crapi/digest.c:147:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((ret = read (fd, fd_buf, sizeof fd_buf)) == sizeof fd_buf) {
data/openscap-1.2.17/src/OVAL/probes/crapi/md5.c:188:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while ((ret = read (fd, buffer, sizeof _buffer)) == sizeof _buffer)
data/openscap-1.2.17/src/OVAL/probes/crapi/rmd160.c:153:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while ((ret = read (fd, buffer, sizeof _buffer)) == sizeof _buffer)
data/openscap-1.2.17/src/OVAL/probes/crapi/sha1.c:185:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while ((ret = read (fd, buffer, sizeof _buffer)) == sizeof _buffer)
data/openscap-1.2.17/src/OVAL/probes/crapi/sha2.c:73:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while ((ret = read (fd, buffer, sizeof _buffer)) == sizeof _buffer)
data/openscap-1.2.17/src/OVAL/probes/crapi/sha2.c:230:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while ((ret = read (fd, buffer, sizeof _buffer)) == sizeof _buffer)
data/openscap-1.2.17/src/OVAL/probes/findfile.c:139: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).
	assert(strlen(path) > 0);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:142:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i = strlen(path) - 1;
data/openscap-1.2.17/src/OVAL/probes/findfile.c:228: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).
	path_len = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:364:4:  [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(path, "/");
data/openscap-1.2.17/src/OVAL/probes/findfile.c:370:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:414: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).
	path_len = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/findfile.c:442: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).
	token_len = strlen(token);
data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c:90: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 (strspn(d_entry->d_name, "0123456789") != strlen(d_entry->d_name))
data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c:121:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((buffer_used = read(fd, buffer, buffer_size - 1)) > 0) {
data/openscap-1.2.17/src/OVAL/probes/independent/environmentvariable58.c:137:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				s = read(fd, buffer + buffer_used, buffer_size - buffer_used);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:92: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).
        plen = strlen (p);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash.c:93: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).
        flen = strlen (f);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:121: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).
	plen = strlen (p);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:122: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).
	flen = strlen (f);
data/openscap-1.2.17/src/OVAL/probes/independent/filehash58.c:299:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				SEXP_t *crapi_hash_type_sexp = SEXP_string_new(p->string, strlen(p->string));
data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c:93: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).
        plen = strlen (p);
data/openscap-1.2.17/src/OVAL/probes/independent/filemd5.c:94: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).
        flen = strlen (f);
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:175: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).
        assume_r(((relative_dn ? strlen(relative_dn) : 0) +
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:176: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).
                  (     suffix ? strlen(suffix)      : 0) + 2) < (sizeof base/sizeof(char)),
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:181: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(base, ",");
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:325:125:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                field = probe_ent_creat1("field", NULL, SEXP_string_new_r(&se_tmp_mem, val, strlen(val)));
data/openscap-1.2.17/src/OVAL/probes/independent/ldap57.c:347:120:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                probe_ent_attr_add(field, "name", SEXP_string_new_r(&se_tmp_mem, attr, strlen(attr)));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:148: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).
		__clearmem(ui->host, strlen(ui->host));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:153: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).
		__clearmem(ui->user, strlen(ui->user));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:158: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).
		__clearmem(ui->pass, strlen(ui->pass));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:163: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).
		__clearmem(ui->db, strlen(ui->db));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:188:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp((rest), ++(tok), strlen(rest)) == 0) {	\
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:189: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).
			tok += strlen(rest);			\
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:199: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 (strncasecmp((rest1), (tok)+1, strlen(rest1)) == 0) {	\
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:200: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).
			tok += 1+strlen(rest1);				\
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:205: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).
		else if (strncasecmp((rest2), (tok)+1, strlen(rest2)) == 0) {	\
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:206: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).
			tok += 1+strlen(rest2);				\
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:344: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 (odbx_query(sql_dbh, sql, strlen (sql)) != ODBX_ERR_SUCCESS) {
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:372: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).
							   r0 = SEXP_string_newf(sql_dbv, strlen(sql_dbv)));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:441: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).
		__clearmem(conn, strlen(engine));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:446: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).
		__clearmem(sqlexp, strlen(sqlexp));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:451: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).
		__clearmem(conn, strlen(conn));
data/openscap-1.2.17/src/OVAL/probes/independent/sql.c:456: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).
		__clearmem(version, strlen(version));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:148: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).
		__clearmem(ui->host, strlen(ui->host));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:153: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).
		__clearmem(ui->user, strlen(ui->user));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:158: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).
		__clearmem(ui->pass, strlen(ui->pass));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:163: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).
		__clearmem(ui->db, strlen(ui->db));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:188:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strncasecmp((rest), ++(tok), strlen(rest)) == 0) {	\
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:189: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).
			tok += strlen(rest);			\
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:199: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 (strncasecmp((rest1), (tok)+1, strlen(rest1)) == 0) {	\
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:200: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).
			tok += 1+strlen(rest1);				\
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:205: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).
		else if (strncasecmp((rest2), (tok)+1, strlen(rest2)) == 0) {	\
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:206: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).
			tok += 1+strlen(rest2);				\
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:343: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 (odbx_query(sql_dbh, sql, strlen (sql)) != ODBX_ERR_SUCCESS) {
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:408:141:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                        field    = probe_ent_creat1(col_name, NULL, SEXP_string_new_r(&se_tmp_mem, col_val, strlen(col_val)));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:496: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).
		__clearmem(conn, strlen(engine));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:501: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).
		__clearmem(sqlexp, strlen(sqlexp));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:506: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).
		__clearmem(conn, strlen(conn));
data/openscap-1.2.17/src/OVAL/probes/independent/sql57.c:511: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).
		__clearmem(version, strlen(version));
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:128:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
       strncpy(ifr.ifr_name, ifa->ifa_name, IFNAMSIZ);
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:329: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).
	for (; i < strlen(s); ++i) {
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:485: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).
	rc = pcre_exec(re, NULL, os, strlen(os), 0, 0, ovec, _REGEX_RES_VECSIZE);
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:493:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	ptr = strncpy(ptr, os + ovec[0], len);
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:516:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	ptr = strncpy(ptr, os + pmatch->rm_so+1, len);
data/openscap-1.2.17/src/OVAL/probes/independent/system_info.c:551:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(saved_entry);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:95: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).
	rc = pcre_exec(re, NULL, str, strlen(str), 0, 0,
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:190: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).
        if (strlen(path) + strlen(filename) + 1 > PATH_MAX) {
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:190: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 (strlen(path) + strlen(filename) + 1 > PATH_MAX) {
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:205: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).
		const size_t path_len = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:225:100:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                probe_item_ent_add (item, "subexpression", NULL, r0 = SEXP_string_new (substrs[i], strlen (substrs[i])));
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:267: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).
	path_len = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent.c:268: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).
	filename_len = strlen(filename);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:78: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).
	rc = pcre_exec(re, NULL, str, strlen(str), *ofs, PCRE_NO_UTF8_CHECK, ovector, ovector_len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:80: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).
	rc = pcre_exec(re, NULL, str, strlen(str), *ofs, 0, ovector, ovector_len);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:175: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).
        if (strlen(path) + strlen(filename) + 1 > PATH_MAX) {
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:175: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 (strlen(path) + strlen(filename) + 1 > PATH_MAX) {
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:190: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).
		const size_t path_len = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:210:100:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                probe_item_ent_add (item, "subexpression", NULL, r0 = SEXP_string_new (substrs[i], strlen (substrs[i])));
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:241: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).
	path_len   = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:242: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).
	file_len   = strlen(file);
data/openscap-1.2.17/src/OVAL/probes/independent/textfilecontent54.c:284:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + buf_used, buf_inc);
data/openscap-1.2.17/src/OVAL/probes/independent/xmlfilecontent.c:121: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).
	path_len     = strlen(path);
data/openscap-1.2.17/src/OVAL/probes/independent/xmlfilecontent.c:122: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).
	filename_len = strlen(filename);
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:111: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).
	const size_t shift = ofts->prefix ? strlen(ofts->prefix) : 0;
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:116:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(ofts_ent->path, fts_ent->fts_path + shift, ofts_ent->path_len);
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:506: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).
	ret = pcre_exec(regex, NULL, test_path1, strlen(test_path1), 0,
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:539: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).
		plen = strlen(path) + 1;
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:558: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).
	ret = pcre_exec(regex, NULL, test_path1, strlen(test_path1), 0,
data/openscap-1.2.17/src/OVAL/probes/oval_fts.c:1022: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).
		const size_t shift = ofts->prefix ? strlen(ofts->prefix) : 0;
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:141: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).
			ns = SEXP_string_new(name, strlen(name));
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:160: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).
			ns = SEXP_string_new(name, strlen(name));
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:315: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).
			ns = SEXP_string_new(name, strlen(name));
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1418: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).
        if (strlen(subtype_name) + strlen("_item") < sizeof item_name) {
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1418:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(subtype_name) + strlen("_item") < sizeof item_name) {
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1445:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        value_sexp = SEXP_string_new_r(&value_sexp_mem, value_str, strlen(value_str));
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1462:94:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                SEXP_string_new_r(value_sexp + value_i, value_stra[value_i], strlen(value_stra[value_i]));
data/openscap-1.2.17/src/OVAL/probes/probe-api.c:1500:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        value_sexp = SEXP_string_new_r(&value_sexp_mem, value_str, strlen(value_str));
data/openscap-1.2.17/src/OVAL/probes/probe/main.c:238: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 ((rootdir != NULL) && (strlen(rootdir) > 0)) {
data/openscap-1.2.17/src/OVAL/probes/probe/ncache.c:132: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).
        ref = SEXP_string_new (name, strlen (name));
data/openscap-1.2.17/src/OVAL/probes/probe/ncache.c:187: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).
                return SEXP_string_new (name, strlen (name));
data/openscap-1.2.17/src/OVAL/probes/unix/file.c:277: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).
		const size_t p_len = strlen(p);
data/openscap-1.2.17/src/OVAL/probes/unix/file.c:315: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).
				SEXP_string_new_r(&gr_lastpath, p, strlen(p));
data/openscap-1.2.17/src/OVAL/probes/unix/file.c:318: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).
			SEXP_string_new_r(&gr_lastpath, p, strlen(p));
data/openscap-1.2.17/src/OVAL/probes/unix/file.c:401: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).
#define STRLEN_PAIR(str) (str), strlen(str)
data/openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c:102: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).
		const size_t p_len = strlen(p);
data/openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c:150: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).
                        SEXP_string_new_r(&gr_lastpath, p, strlen(p));
data/openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c:153: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).
                SEXP_string_new_r(&gr_lastpath, p, strlen(p));
data/openscap-1.2.17/src/OVAL/probes/unix/fileextendedattribute.c:158:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                SEXP_string_new_r(&xattr_name, xattr_buf + i, strlen(xattr_buf +i));
data/openscap-1.2.17/src/OVAL/probes/unix/interface.c:326:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(host, host_tmp, NI_MAXHOST);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:201:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof buf - 1);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/iflisteners.c:348:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(interface->interface_name, d_ent->d_name, sizeof interface->interface_name);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:206:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof buf - 1);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:380:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(src) > 8) {
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:418:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(buf, "%d: %64[0-9A-Fa-f]:%X %64[0-9A-Fa-f]:%X %X "
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:469:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(buf, "%d: %64[0-9A-Fa-f]:%X %64[0-9A-Fa-f]:%X %X "
data/openscap-1.2.17/src/OVAL/probes/unix/linux/inetlisteningservers.c:520:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(buf, "%d: %64[0-9A-Fa-f]:%X %64[0-9A-Fa-f]:%X %X "
data/openscap-1.2.17/src/OVAL/probes/unix/linux/partition.c:370: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).
                                               strlen(mnt_entp->mnt_dir), 0, 0, NULL, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:130:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = (strlen(epoch_override) +
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:131: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).
               strlen (r->release) +
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:132: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).
               strlen (r->version) + 2);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:154: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).
			keyid_start = keyid_match[0].rm_so + strlen("Key ID ");
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:372:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(filepath)
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpminfo.c:521:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							strlen(reply_st[i].extended_name)
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverify.c:378:64:  [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.
        PROBE_ENT_STRVAL(name_ent, name, name_len, /* void */, strcpy(name, ""););
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverify.c:379:64:  [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.
        PROBE_ENT_STRVAL(file_ent, file, file_len, /* void */, strcpy(file, ""););
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:108:62:  [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.
		PROBE_ENT_STRVAL(ent, ent_str, sizeof ent_str, /* void */, strcpy(ent_str, ""););
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:202: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).
				probe_ent_getdatatype(XXX ## _ent), res.XXX, strlen(res.XXX) \
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:258: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).
		      ret = pcre_exec(re, NULL, res.file, strlen(res.file), 0, 0, NULL, 0);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:356: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).
	SEXP_t *sexp_str = SEXP_string_new(value, strlen(value));
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifyfile.c:487:57:  [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.
	PROBE_ENT_STRVAL(file_ent, file, file_len, /* void */, strcpy(file, ""););
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c:127:62:  [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.
		PROBE_ENT_STRVAL(ent, ent_str, sizeof ent_str, /* void */, strcpy(ent_str, ""););
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c:208: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).
				probe_ent_getdatatype(XXX ## _ent), res.XXX, strlen(res.XXX) \
data/openscap-1.2.17/src/OVAL/probes/unix/linux/rpmverifypackage.c:322: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).
	if ((root!= NULL) && (strlen(root) == 0)) {
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxboolean.c:75: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).
		boolean = SEXP_string_new(booleans[i], strlen(booleans[i]));
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:125: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).
		if (strspn(dir_entry->d_name, "0123456789") != strlen(dir_entry->d_name))
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:198: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).
		flen = strlen (f);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/selinuxsecuritycontext.c:203: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).
	plen = strlen (p);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitdependency.c:125: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).
	const size_t suffix_len = strlen(suffix);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitdependency.c:130: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).
	const size_t len = strlen(unit);
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitdependency.c:203: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).
	SEXP_t *se_dependency = SEXP_string_new(dependency, strlen(dependency));
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitdependency.c:211: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).
	SEXP_t *se_unit = SEXP_string_new(unit, strlen(unit));
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitproperty.c:191: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).
			SEXP_t *se_value = SEXP_string_new(value, strlen(value));
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitproperty.c:203: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).
	SEXP_t *se_property = SEXP_string_new(property, strlen(property));
data/openscap-1.2.17/src/OVAL/probes/unix/linux/systemdunitproperty.c:222: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).
	SEXP_t *se_unit = SEXP_string_new(unit, strlen(unit));
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:221:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof buf - 1);
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:400:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof buf);
data/openscap-1.2.17/src/OVAL/probes/unix/process.c:422:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(r.scheduling_class, (psinfo->pr_lwp).pr_clname, sizeof(r.scheduling_class));
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:74:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  bytes = read(fd, buf, sizeof(buf) - 1);
data/openscap-1.2.17/src/OVAL/probes/unix/process58-devname.c:298:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
  strcpy(ret, "?");
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:393:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t read_size = read(fd, chunk, chunk_size );
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:444: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).
	size_t len = strlen(cmd_buffer);
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:501:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof buf - 1);
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:720:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		len = read(fd, buf, sizeof buf);
data/openscap-1.2.17/src/OVAL/probes/unix/process58.c:742:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(r.scheduling_class, (psinfo->pr_lwp).pr_clname, sizeof(r.scheduling_class));
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:102: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).
	rt_dst = SEXP_string_new(rt->ip_dst, strlen(rt->ip_dst));
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:188: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 (proc_ip4_to_string(TOK_dst, strlen(TOK_dst), rt->ip_dst, sizeof rt->ip_dst) != 0 ||
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:189: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).
        proc_ip4_to_string(TOK_gw, strlen(TOK_gw), rt->ip_gw, sizeof rt->ip_gw) != 0)
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:192:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(rt->if_name, TOK_ifname, IF_NAME_MAXLEN); /* interface name */
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:193: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).
    rt_flags = strto_uint16_hex(TOK_flags, strlen(TOK_flags), NULL);
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:252: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 (proc_ip6_to_string(TOK_dst, strlen(TOK_dst), rt->ip_dst, sizeof rt->ip_dst) != 0 ||
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:253: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).
        proc_ip6_to_string(TOK_gw, strlen(TOK_gw), rt->ip_gw, sizeof rt->ip_gw) != 0)
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:256:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(rt->if_name, TOK_ifname, IF_NAME_MAXLEN); /* interface name */
data/openscap-1.2.17/src/OVAL/probes/unix/routingtable.c:257: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).
    rt_flags = strto_uint32_hex(TOK_flags, strlen(TOK_flags), NULL);
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:313:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = fgetc(osrelease);
data/openscap-1.2.17/src/OVAL/probes/unix/runlevel.c:322: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).
	ret = strncmp(releasename, cpe, strlen(cpe)) == 0;
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:62:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t ipv6_conf_path_len = strlen(ipv6_conf_path);
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:90:94:  [1] (buffer) strlen:
  Does not handle 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_entity = probe_ent_creat1("path", ent_attrs, r1 = SEXP_string_new(PROC_SYS_DIR, strlen(PROC_SYS_DIR)));
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:132: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).
                mib    = strdup(mibpath + strlen(PROC_SYS_DIR) + 1);
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:133: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).
                miblen = strlen(mib);
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:142: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).
                se_mib = SEXP_string_new(mib, strlen(mib));
data/openscap-1.2.17/src/OVAL/probes/unix/sysctl.c:220: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 (strlen(sysvals[s]) == 0)
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:158:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	char *umask;
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:528:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read (file->fd, file->inmem, file->inlen) != (ssize_t)file->inlen) {
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:700: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).
				incllen = strlen (buffer + bufidx);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:721: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).
				bufidx += strlen("includedir");
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:760: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).
					incllen = strlen(inclarg);
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:949: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).
			op  = key + strlen(key) + 1;
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1201:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(name) + strlen(prot) > XICFG_STRANS_MAXKEYLEN)
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1201: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(name) + strlen(prot) > XICFG_STRANS_MAXKEYLEN)
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1567: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).
	xres_service_name = SEXP_string_new(xsrv->name, strlen(xsrv->name));
data/openscap-1.2.17/src/OVAL/probes/unix/xinetd.c:1568: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).
	xres_protocol = SEXP_string_new(xsrv->protocol, strlen(xsrv->protocol));
data/openscap-1.2.17/src/OVAL/results/oval_cmp_basic.c:143: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).
	ret = pcre_exec(re, NULL, test_str, strlen(test_str), 0, 0, NULL, 0);
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:177: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).
	str1 = alloca(strlen(a) + 1);
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:178: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).
	str2 = alloca(strlen(b) + 1);
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:248:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(one) > strlen(two))
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:248: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).
			if (strlen(one) > strlen(two))
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:250:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(two) > strlen(one))
data/openscap-1.2.17/src/OVAL/results/oval_cmp_evr_string.c:250: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).
			if (strlen(two) > strlen(one))
data/openscap-1.2.17/src/SCE/module_entry.c:80: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).
		char target[2 + strlen(sce_check_result_get_basename(check_result)) + 11 + 1];
data/openscap-1.2.17/src/SCE/sce_engine.c:192: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).
	size_t ret = fwrite(v->std_out, 1, strlen(v->std_out), f);
data/openscap-1.2.17/src/SCE/sce_engine.c:193: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).
	if (ret < strlen(v->std_out))
data/openscap-1.2.17/src/SCE/sce_engine.c:197: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).
	ret = fwrite(v->std_err, 1, strlen(v->std_err), f);
data/openscap-1.2.17/src/SCE/sce_engine.c:198: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).
	if (ret < strlen(v->std_err))
data/openscap-1.2.17/src/SCE/sce_engine.c:322:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const int read_status = read(fd, &readbuf, 1);
data/openscap-1.2.17/src/SCE/sce_engine.c:593:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
				usleep(10 * 1000);
data/openscap-1.2.17/src/XCCDF/elements.c:287: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).
			    strncmp(XCCDF_XMLNS_PREFIX, nsuri, strlen(XCCDF_XMLNS_PREFIX)) == 0)
data/openscap-1.2.17/src/XCCDF/elements.c:461: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).
	int len = strlen("(null)");;
data/openscap-1.2.17/src/XCCDF/elements.c:464:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(str);
data/openscap-1.2.17/src/XCCDF/item.c:1325: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).
    doc = xmlParseMemory(input, strlen(input));
data/openscap-1.2.17/src/XCCDF/result.c:232:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifr.ifr_name, ifa->ifa_name, IFNAMSIZ);
data/openscap-1.2.17/src/XCCDF/value.c:183: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 ((selector) && (strlen(selector) > 0)) xmlNewProp(node, BAD_CAST "selector", BAD_CAST selector);
data/openscap-1.2.17/src/XCCDF/value.c:238:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if ((inst->selector)&&(strlen(inst->selector) > 0)) xmlNewProp(choices, BAD_CAST "selector", BAD_CAST inst->selector);
data/openscap-1.2.17/src/XCCDF/xccdf_session.c:676: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).
		const char *filename = benchmark_ref + strlen("file:");
data/openscap-1.2.17/src/XCCDF/xccdf_session.c:1569: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).
				char fname[strlen(sname) + 32];
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c:858:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(platform_shifted) >= 1 && *platform_shifted == '#')
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c:2028: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).
        char rid[32+strlen(id)];
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy.c:2036: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).
        char rid[11+strlen(id)];
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:75: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).
	const ssize_t length = strlen(text);
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:315: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).
        xmlDoc *doc = xmlReadMemory(str, strlen(str), NULL, NULL, XML_PARSE_RECOVER |
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_remediate.c:609: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).
	const size_t fix_text_len = strlen(fix_text);
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_substitute.c:120: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 (object_data == NULL || strncmp(object_data, "#xccdf:", strlen("#xccdf:")) != 0) {
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_substitute.c:130: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).
		if (strncmp(object_data, "#xccdf:value:", strlen("#xccdf:value:")) == 0) {
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_substitute.c:131:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			const char *value_id = object_data + strlen("#xccdf:value:");
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_substitute.c:143: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).
		else if (strncmp(object_data, "#xccdf:title:", strlen("#xccdf:title:")) == 0) {
data/openscap-1.2.17/src/XCCDF_POLICY/xccdf_policy_substitute.c:144:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			const char *title_id = object_data + strlen("#xccdf:title:");
data/openscap-1.2.17/src/common/elements.c:73: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).
		int size = strlen(platform) + strlen(text) + 1;
data/openscap-1.2.17/src/common/elements.c:73:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int size = strlen(platform) + strlen(text) + 1;
data/openscap-1.2.17/src/common/elements.c:193: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).
	xmlDoc *doc = xmlReadMemory(str, strlen(str), NULL, NULL,
data/openscap-1.2.17/src/common/err_queue.c:113: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).
			int pom = strlen(err->desc);
data/openscap-1.2.17/src/common/error.c:88: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).
	int len = strlen(error->message);
data/openscap-1.2.17/src/common/oscap_acquire.c:96:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_mode = umask(077); /* Override unusual umask. Ensure 0700 permissions. */
data/openscap-1.2.17/src/common/oscap_acquire.c:98:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void) umask(old_mode);
data/openscap-1.2.17/src/common/oscap_acquire.c:189:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(fd, &readbuf, 1) > 0) {
data/openscap-1.2.17/src/common/oscap_acquire.c:237:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) > PATH_MAX) {
data/openscap-1.2.17/src/common/oscap_acquire.c:244: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).
		for (i = 0; i <= strlen(path); i++) {
data/openscap-1.2.17/src/common/oscap_acquire.c:246:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(temp, path, i);
data/openscap-1.2.17/src/common/oscap_acquire.c:250: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(temp) == 0)
data/openscap-1.2.17/src/common/oscap_buffer.c:101:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t append_length = strlen(t);
data/openscap-1.2.17/src/common/text.c:180: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).
	xmlDoc *doc = xmlParseMemory(str, strlen(str));
data/openscap-1.2.17/src/common/util.c:156: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).
	for (char *pos = str + strlen(str) - 1; pos >= str; --pos) {
data/openscap-1.2.17/src/common/util.c:242:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t path1_len = strlen(path1);
data/openscap-1.2.17/src/common/util.c:243:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t path2_len = strlen(path2);
data/openscap-1.2.17/src/common/util.c:254:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(joined_path, path1, path1_len);
data/openscap-1.2.17/src/common/util.c:256:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(joined_path + path1_len, path2 + path2_shift, path2_len);
data/openscap-1.2.17/src/common/util.h:371: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).
	return strncmp(str, prefix, strlen(prefix)) == 0;
data/openscap-1.2.17/src/common/util.h:376: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).
	const size_t str_len = strlen(str);
data/openscap-1.2.17/src/common/util.h:377: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).
	const size_t suffix_len = strlen(suffix);
data/openscap-1.2.17/src/common/xml_iterate.c:57: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 ((doc = xmlParseMemory(input_document, strlen(input_document))) == NULL) {
data/openscap-1.2.17/src/source/bz2.c:208:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is_bzip = (fgetc(file) == (int)magic_number[0]) && (fgetc(file) == (int)magic_number[1]);
data/openscap-1.2.17/src/source/bz2.c:208:55:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		is_bzip = (fgetc(file) == (int)magic_number[0]) && (fgetc(file) == (int)magic_number[1]);
data/openscap-1.2.17/src/source/oscap_source.c:229:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ( fgetc(file) != (int)'#' ) is_exec = false;
data/openscap-1.2.17/src/source/oscap_source.c:230:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ( fgetc(file) != (int)'!' ) is_exec = false;
data/openscap-1.2.17/tests/API/SEAP/test_api_seap_parser.c:80: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_exp = SEXP_parse (psetup, argv[i + 1], strlen (argv[i + 1]), &pstate);
data/openscap-1.2.17/tests/API/SEAP/test_api_seap_string.c:19: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).
        s_exp = SEXP_string_new (s1, strlen (s1));
data/openscap-1.2.17/tests/API/SEAP/test_api_sexp_ID.c:70: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_exp = SEXP_parse (psetup, argv[i + 1], strlen (argv[i + 1]), &pstate);
data/openscap-1.2.17/tests/API/SEAP/test_api_strto.c:16: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 (strto_uint8_hex(input, strlen(input), NULL) != (expected_result)) {\
data/openscap-1.2.17/tests/API/SEAP/test_api_strto.c:36: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 (strto_uint16_hex(input, strlen(input), NULL) != (expected_result)) {\
data/openscap-1.2.17/tests/API/XCCDF/unittests/test_oscap_common.c:152: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).
		assume(strlen(key) == 1);
data/openscap-1.2.17/tests/API/XCCDF/unittests/test_oscap_common.c:220: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).
		assume(strlen(key) == 1);
data/openscap-1.2.17/tests/API/probes/oval_fts_list.c:24: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).
	path      = SEXP_list_first(SEXP_parse(psetup, argv[1], strlen(argv[1]), &pstate));
data/openscap-1.2.17/tests/API/probes/oval_fts_list.c:25: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).
	filename  = SEXP_list_first(SEXP_parse(psetup, argv[2], strlen(argv[2]), &pstate));
data/openscap-1.2.17/tests/API/probes/oval_fts_list.c:26: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).
	filepath  = SEXP_list_first(SEXP_parse(psetup, argv[3], strlen(argv[3]), &pstate));
data/openscap-1.2.17/tests/API/probes/oval_fts_list.c:27: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).
	behaviors = SEXP_list_first(SEXP_parse(psetup, argv[4], strlen(argv[4]), &pstate));
data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c:53: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).
        if (buflen != strlen ("test_object"))
data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c:54: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).
                FAIL(1, "getname_r: buflen=%zu != %zu\n", buflen, strlen ("test_object"));
data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c:515: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).
			                                  strlen(__test_array[i].v));
data/openscap-1.2.17/tests/API/probes/test_api_probes_smoke.c:520: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).
				             strlen(__test_array[i].v));
data/openscap-1.2.17/tests/bz2/test_bz2_memory_source.c:65: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).
		assume(strlen(err)==0);
data/openscap-1.2.17/tests/oscap_string/test_oscap_string.c:47:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(oscap_string_get_cstr(s)) != limit) {
data/openscap-1.2.17/tests/oscap_string/test_oscap_string.c:72: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).
		length += strlen(strings[i]);
data/openscap-1.2.17/tests/oscap_string/test_oscap_string.c:74:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(oscap_string_get_cstr(s)) != length) {
data/openscap-1.2.17/utils/oscap-info.c:164:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cleaned_profile_id, profile_id, sizeof(cleaned_profile_id) - 1);

ANALYSIS SUMMARY:

Hits = 1303
Lines analyzed = 160483 in approximately 4.32 seconds (37147 lines/second)
Physical Source Lines of Code (SLOC) = 102852
Hits@level = [0] 749 [1] 412 [2] 507 [3]  98 [4] 263 [5]  23
Hits@level+ = [0+] 2052 [1+] 1303 [2+] 891 [3+] 384 [4+] 286 [5+]  23
Hits/KSLOC@level+ = [0+] 19.951 [1+] 12.6687 [2+] 8.66293 [3+] 3.73352 [4+] 2.78069 [5+] 0.223622
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.