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/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkmodule.c
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/module_compiler.c
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/module_compiler.h
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/parse_util.c
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/parse_util.h
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.h
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/queue.c
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/queue.h
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c
Examining data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/android.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/av_permissions.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/avc.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/context.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/flask.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/get_context_list.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/get_default_type.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/label.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/restorecon.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/selinux.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_common.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_host.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_vendor.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_sidtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_sidtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/callbacks.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/callbacks.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/canonicalize_context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/checkAccess.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/check_context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/checkreqprot.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_av.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_create.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_member.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_relabel.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_user.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/context_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/deny_unknown.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/disable.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/dso.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/enabled.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/fgetfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/file_path_suffixes.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/freecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/freeconary.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/fsetfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_initial_context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getenforce.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getpeercon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/init.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/is_customizable_type.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_backends_android.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_db.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_media.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_support.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_x.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/lgetfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/lsetfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/mapping.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/mapping.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchmediacon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/policyvers.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/procattr.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/regex.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/regex.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/reject_unknown.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_check_securetty_context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_netlink.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sestatus.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setenforce.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setexecfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setrans_client.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setrans_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/seusers.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sha1.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sha1.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/compute_av.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/compute_create.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/compute_member.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/compute_relabel.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/compute_user.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getconlist.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getdefaultcon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getenforce.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getpidcon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getsebool.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getseuser.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/matchpathcon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/policyvers.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_lookup.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_lookup_best_match.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_partial_match.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selinux_check_access.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selinux_check_securetty_context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selinuxenabled.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selinuxexeccon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/setenforce.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/setfilecon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/togglesebool.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/example/test_fcontext.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/boolean_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/booleans_active.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/booleans_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/booleans_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/context_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/debug.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/fcontext_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/fcontexts_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/fcontexts_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/handle.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ibendport_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ibendports_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ibendports_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ibpkey_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ibpkeys_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ibpkeys_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/iface_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/interfaces_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/interfaces_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/modules.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/node_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/nodes_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/nodes_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/port_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ports_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/ports_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/semanage.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/seuser_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/seusers_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/seusers_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/user_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/users_local.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/users_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/boolean_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/boolean_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/booleans_active.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/booleans_activedb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/booleans_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/booleans_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/booleans_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/booleans_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/context_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/context_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_activedb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_activedb.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_file.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_join.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_join.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_llist.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_llist.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_policydb.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/dso.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/fcontext_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/fcontext_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/fcontexts_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/fcontexts_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/fcontexts_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/handle.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/handle.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/handle_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibendport_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibendport_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibendports_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibendports_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibendports_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibendports_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibpkey_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibpkey_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibpkeys_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibpkeys_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibpkeys_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ibpkeys_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/iface_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/iface_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/interfaces_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/interfaces_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/interfaces_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/interfaces_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/module_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/modules.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/modules.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/node_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/node_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/nodes_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/nodes_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/nodes_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/nodes_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/parse_utils.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/parse_utils.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/policy_components.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/port_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/port_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ports_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ports_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ports_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/ports_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_conf.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seuser_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seuser_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/user_base_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/user_extra_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/user_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/user_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/users_base_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/users_base_policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/users_extra_file.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/users_join.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/users_local.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/users_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/libsemanage-tests.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_utilities.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_utilities.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/utilities.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/utilities.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/include/cil/android.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/include/cil/cil.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/include/cil/cil_write_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/android.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_binary.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_binary.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_build_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_build_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_copy_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_copy_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_find.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_find.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_flavor.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_lexer.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_list.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_list.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_mem.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_mem.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_parser.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_parser.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_post.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_post.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_reset_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_reset_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_resolve_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_resolve_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_stack.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_stack.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_strpool.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_strpool.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_symtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_symtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_verify.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_verify.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/dso.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/AllTests.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CilTest.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CilTest.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_build_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_build_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_copy_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_copy_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_fqn.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_fqn.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_lexer.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_lexer.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_list.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_list.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_parser.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_parser.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_post.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_post.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_resolve_ast.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_resolve_ast.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_symtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_symtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_tree.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_tree.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_integration.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_integration.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/boolean_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/booleans.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/context.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/context_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/debug.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/errcodes.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/handle.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/ibendport_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/ibendports.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/ibpkey_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/ibpkeys.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/iface_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/interfaces.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/kernel_to_cil.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/kernel_to_conf.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/module.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/module_to_cil.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/node_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/nodes.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/avrule_block.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/avtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/conditional.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/constraint.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/context.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/ebitmap.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/expand.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/flask.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/flask_types.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/hashtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/hierarchy.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/link.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/mls_types.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/module.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/polcaps.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/policydb.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/services.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/sidtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/symtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/util.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/port_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/ports.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/roles.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/sepol.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/user_record.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/users.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/assertion.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/av_permissions.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/avrule_block.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/avtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/boolean_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/boolean_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/booleans.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/conditional.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/constraint.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/debug.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/debug.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/dso.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ebitmap.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/expand.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genusers.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/handle.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/handle.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/hashtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/hierarchy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendport_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendport_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendports.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibpkey_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibpkey_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibpkeys.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/iface_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/iface_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/interfaces.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/link.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/nodes.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/polcaps.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb_convert.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb_public.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/port_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/port_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ports.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/roles.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/sidtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/symtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/user_internal.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/user_record.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/users.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/private.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/util.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/debug.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/debug.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/helpers.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/helpers.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/libsepol-tests.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-common.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-common.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-cond.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-cond.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-deps.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-deps.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-downgrade.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-downgrade.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander-attr-map.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander-attr-map.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander-roles.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander-roles.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander-users.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander-users.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-cond-map.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-cond-map.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-roles.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-roles.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-types.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-types.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker.c
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker.h
Examining data/android-platform-external-libselinux-10.0.0+r36/libsepol/utils/chkcon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcscolor.c
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.h
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstransd.c
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.h
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/utils/transcon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/mcstrans/utils/untranscon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/hll/pp/pp.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/load_policy/load_policy.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/hashtab.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/hashtab.h
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/open_init_pty.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/semodule/semodule.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/restore.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/restore.h
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/restorecon_xattr.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/setfiles.c
Examining data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setsebool/setsebool.c
Examining data/android-platform-external-libselinux-10.0.0+r36/python/audit2allow/sepolgen-ifgen-attr-helper.c
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/restore.c
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/restore.h
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/restorecond.c
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/restorecond.h
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/stringslist.c
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/stringslist.h
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/user.c
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/utmpwatcher.c
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/utmpwatcher.h
Examining data/android-platform-external-libselinux-10.0.0+r36/restorecond/watch.c
Examining data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c
Examining data/android-platform-external-libselinux-10.0.0+r36/secilc/secil2conf.c
Examining data/android-platform-external-libselinux-10.0.0+r36/secilc/secilc.c
Examining data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_expand/semodule_expand.c
Examining data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_link/semodule_link.c
Examining data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_package/semodule_package.c
Examining data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_package/semodule_unpackage.c

FINAL RESULTS:

data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:163:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, 0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:165:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(readlockpath, 0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:167:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, 0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:174:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, S_IRUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:176:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(readlockpath, S_IRUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:178:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, S_IRUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:185:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, S_IRUSR | S_IWUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:187:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(readlockpath, S_IRUSR | S_IWUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:189:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:196:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, S_IRUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:198:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(readlockpath, 0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:200:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, S_IRUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:207:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, S_IRUSR | S_IWUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:209:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(readlockpath, 0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:211:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:222:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, 0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:224:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, 0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:231:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, S_IRUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:233:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, S_IRUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:240:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, S_IRUSR | S_IWUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:247:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(polpath, S_IRUSR | S_IWUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:249:8:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	err = chmod(modpath, S_IRUSR | S_IWUSR | S_IXUSR);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstransd.c:505:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(SETRANS_UNIX_SOCKET, S_IRWXU | S_IRWXG | S_IRWXO)) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:49:6:  [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 (readlink(filename, buf, BUFSIZE) < 0)
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1115:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(name, ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1267:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(name, ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/module_compiler.c:43:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:93:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:98:2:  [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.
	vsnprintf(errormsg, ERRORMSG_LEN, fmt, ap);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:129: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(newid, id);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:490:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(name, ans);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/android.h:43:28:  [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.
    __attribute__ ((format(printf, 2, 3)));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/android.h:47:28:  [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.
    __attribute__ ((format(printf, 2, 3)));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/avc.h:135:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/selinux.h:152:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:80:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_service_plat[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:86:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_service_product[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:92:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_service_vendor[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:107:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_hwservice_plat[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:113:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_hwservice_product[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:119:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_hwservice_vendor[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:125:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_hwservice_odm[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android.c:136: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(seopts_vndservice.value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:177:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_file_plat[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:183:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_file_product[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:189:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_file_vendor[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:195:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_file_odm[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:210:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_prop_plat[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:216:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_prop_product[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:222:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_prop_vendor[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:228:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(seopts_prop_odm[i].value, R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:486: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(seapp_contexts_plat[i], R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:492: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(seapp_contexts_product[i], R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:498: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(seapp_contexts_vendor[i], R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:504: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(seapp_contexts_odm[i], R_OK) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.h:23:75:  [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.
extern void (*avc_func_log) (const char *, ...) __attribute__((__format__(printf,1,2))) hidden;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.h:153:3:  [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+strlen(buf), AVC_AUDIT_BUFSIZE-strlen(buf), format)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/callbacks.c:14:35:  [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.
static int __attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/callbacks.c:20:7:  [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.
	rc = vfprintf(stderr, fmt, ap);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/callbacks.c:58:28:  [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.
int __attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/callbacks.h:15:35:  [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.
extern int __attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/context.c:167: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(t, str);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c:68: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(t, ptr);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/init.c:156:24:  [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.
	has_selinux_config = (access(SELINUXCONFIG, F_OK) == 0);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:442: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(to, suffix);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:496:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(save_path, path);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:516:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(save_path, path);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:942: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(clean_key + sofar, prev_slash);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_internal.h:126:36:  [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.
extern void __attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:144: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(selinux_booleans_path(), F_OK) == 0)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:147: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(path, F_OK) == 0)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:150: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(path, F_OK) == 0)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:15:28:  [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.
    __attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:21: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(stderr, fmt, ap);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:27:28:  [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.
    __attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:215:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(fl->file, file);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:232:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(fl->file, file);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:248: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(fl->file, file);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:425: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(resolved_path, last_component);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:356: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(policy_path, F_OK) == 0 ) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:365:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	} while ((rc = access(policy_path, F_OK)) && --vers > 0);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setrans_client.c:283:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	has_setrans = (access(SETRANS_UNIX_SOCKET, F_OK) == 0);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:313:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ptr += sprintf(ptr, "%s ", security_av_perm_to_string(
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:46:34:  [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.
static __attribute__((__format__(printf,1,2),__noreturn__)) void die(const char *msg, ...)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:53: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(stderr, msg, args);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:417:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	rc = sprintf(tmp, "%sXXXXXX", stack_path);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:35:7:  [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.
	fp = popen(cmd, "r");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:176:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(cmd_ptr, "%s ", specfiles[i]);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_lookup_best_match.c:110:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(links[num_links], argv[i]);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/include/semanage/debug.h:45:34:  [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.
				      __attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.c:52:28:  [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.
    __attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.c:82: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(stream, fmt, ap);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.c:92:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.c:106:2:  [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.
	vsnprintf(buffer, sizeof(buffer), fmt, ap);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.c:118:34:  [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.
				      __attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.h:63:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.h:70:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:881:12:  [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.
		retval = execl(path, path, NULL);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:439:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	if (fprintf(out, COMMENT_FILE_CONTEXT_HEADER) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:691:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		if (fprintf(out, COMMENT_USER_HOME_CONTEXT, FALLBACK_SENAME) < 0)
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:694:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		if (fprintf(out, COMMENT_USER_HOME_CONTEXT, user->name) < 0)
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/handle.h:44:25:  [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.
	__attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:180:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(semanage_files[i], "%s%s", root,
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:208:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(semanage_paths[i][j], "%s%s%s", root,
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:240:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(semanage_final[SEMANAGE_FINAL_TMP],
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:259:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(semanage_final[SEMANAGE_FINAL_SELINUX],
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:402:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(semanage_final_paths[i][j],
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:660: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(path, R_OK | X_OK) != 0)
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:671: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(path, R_OK) != 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:672: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(path, F_OK) == 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:677: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(path, R_OK | W_OK | X_OK) != 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:687: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(path, R_OK | W_OK | X_OK) != 0)
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:876:11:  [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).
	for (c = strcpy(fn, path) + 1; *c != '\0'; c++) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1015: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(fn, semanage_final_path(SEMANAGE_FINAL_TMP, i));
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1637: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(fn, dst);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:43: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(roles,roles_arr[0]);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:46:8:  [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(roles,roles_arr[i]);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:88: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(msg,sep);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:93: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(msg,sep);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:98: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(msg,sep);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:284: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(pres, psrc);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/include/cil/cil.h:73:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1398:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	buf_pos = sprintf(str_tmp, "%s", lvl->sens->datum.fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1416:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					buf_pos = sprintf(str_tmp, "%s,%s", str1, cat->datum.fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1419:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					buf_pos = sprintf(str_tmp, "%s,%s,%s", str1, str2, cat->datum.fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1422:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					buf_pos = sprintf(str_tmp, "%s.%s,%s",str1, str2, cat->datum.fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1435:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				buf_pos = sprintf(str_tmp, "%s", str1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1438:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				buf_pos = sprintf(str_tmp, "%s,%s", str1, str2);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1441:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				buf_pos = sprintf(str_tmp, "%s.%s",str1, str2);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1489:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_pos = sprintf(str_tmp, "%s:%s", selinuxuser->name_str, user->datum.fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1573:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_pos = sprintf(str_tmp, "%s", filecon->path_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1602:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		buf_pos = sprintf(str_tmp, "%s", str_type);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1610:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			buf_pos = sprintf(str_tmp, "\t%s:%s:%s", user->datum.fqn, role->datum.fqn,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:63: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(prefix, fqn_args->prefix);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:64: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(prefix, datum->name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:94: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(child_args.prefix, fqn_args->prefix);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:95: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(child_args.prefix, datum->name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_list.c:38:50:  [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.
__attribute__((noreturn)) __attribute__((format (printf, 1, 2))) void cil_list_error(const char* msg, ...)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.c:52:25:  [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.
__attribute__ ((format (printf, 2, 0))) void cil_vlog(enum cil_log_level lvl, const char *msg, va_list args)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.c:56:3:  [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.
		vsnprintf(buff, MAX_LOG_SIZE, msg, args);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.c:61:25:  [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.
__attribute__ ((format (printf, 2, 3))) void cil_log(enum cil_log_level lvl, const char *msg, ...)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.h:38:24:  [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.
__attribute__ ((format(printf, 2, 0))) void cil_vlog(enum cil_log_level lvl, const char *msg, va_list args);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.h:39:24:  [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.
__attribute__ ((format(printf, 2, 3))) void cil_log(enum cil_log_level lvl, const char *msg, ...);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_mem.c:103:25:  [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.
__attribute__ ((format (printf, 2, 3))) int cil_asprintf(char **strp, const char *fmt, ...)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:523:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(new, o_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:592: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(new, op_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_post.c:205: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(a_path, a_filecon->path_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_post.c:206: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(b_path, b_filecon->path_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_symtab.c:45:50:  [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.
__attribute__((noreturn)) __attribute__((format (printf, 1, 2))) void cil_symtab_error(const char* msg, ...)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:53:50:  [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.
__attribute__((noreturn)) __attribute__((format (printf, 1, 2))) void cil_tree_error(const char* msg, ...)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:116:24:  [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.
__attribute__((format (printf, 3, 4))) void cil_tree_log(struct cil_tree_node *node, enum cil_log_level lvl, const char* msg, ...)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.h:55:24:  [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.
__attribute__((format (printf, 3, 4))) void cil_tree_log(struct cil_tree_node *node, enum cil_log_level lvl, const char* msg, ...);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:134:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(*out_str, "(%s)", op_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:142:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(*out_str, "(%s %s)", op_str, operand1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:155:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(*out_str, "(%s %s %s)", op_str, operand1, operand2);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:282:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		if (sprintf(*out_str, "(%s)", sens) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:288:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		if (sprintf(*out_str, "(%s %s)", sens, cats) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:330:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	if (sprintf(*out_str, "(%s %s)", low, high) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:366:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	if (sprintf(*out_str, "(%s %s %s %s)", user_str, role_str, type_str, range_str) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:399:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	if (sprintf(*out_str, "(%s %s %s)", kind, obj, expr) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:971:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(*out_str, "(%s %s)", class_str, perms_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:47: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(newStr, old);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:98: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(str->buffer, text);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:109:25:  [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.
__attribute__ ((format (printf, 2, 3))) void CuStringAppendFormat(CuString* str, const char* format, ...)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:114:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(buf, format, argp);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:175:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s:%d: ", file, line);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_lexer.c:57:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(buffer, test_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_integration.c:43: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.
	status = system("./secilc -M -c 24 test/integration.cil &> /dev/null");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_integration.c:48: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.
	status1 = system("checkpolicy -M -c 24 -o policy.conf.24 test/policy.conf &> /dev/null");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_integration.c:53: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.
	status2 = system("sediff -q policy.24 \\; policy.conf.24 &> /dev/null");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_integration.c:69: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.
	status = system("./secilc -M -c 24 test/policy.cil &> /dev/null");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/debug.h:31:31:  [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.
				   __attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:119:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ptr, "%s:%s:%s",
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/debug.c:42:28:  [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.
    __attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/debug.c:68: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(stream, fmt, ap);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/debug.c:76:31:  [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.
				   __attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/debug.h:63:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/handle.h:12:25:  [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.
	__attribute__ ((format(printf, 3, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:1061: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.
			len = snprintf(p, remaining, fmt,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:3003: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.
			rc = snprintf(low_high_str, 40, "0x%"PRIx64, low);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:28:6:  [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.
	if (vfprintf(stderr, fmt, argptr) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:48:6:  [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.
	if (vfprintf(out, fmt, argptr) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:54:24:  [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.
__attribute__ ((format(printf, 1, 0)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:78:7:  [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.
	rc = vsnprintf(str, len, fmt, vargs2);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.h:86:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.h:89:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.h:92:24:  [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.
__attribute__ ((format(printf, 1, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.h:99:24:  [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.
__attribute__ ((format(printf, 2, 4)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:1038: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.
			len = snprintf(p, remaining, fmt,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:1042: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.
			len = snprintf(p, remaining, fmt, val_to_name[start]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2867: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.
			rc = snprintf(low_high_str, 40, "0x%"PRIx64, low);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2869: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.
			rc = snprintf(low_high_str, 40, "0x%"PRIx64"-0x%"PRIx64, low, high);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:63: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(ptr2, ptr + 1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:186: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(scontextp,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:206:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(scontextp,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:218: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(scontextp,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:235:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(scontextp, policydb->p_cat_val_to_name[i - 1]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:73:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:78:6:  [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.
	if (vfprintf(stderr, fmt, argptr) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:95:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:99:6:  [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.
	if (vfprintf(out_file, fmt, argptr) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:106:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:112:6:  [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.
	if (vfprintf(out_file, fmt, argptr) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1352: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.
			rlen = snprintf(new_val, len, fmt_str, op, val1, val2);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1889: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.
			rlen = snprintf(new_val, len, fmt_str, op, val1, val2);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb.c:742: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(key, OBJECT_R);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:729:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(answer_list[answer_counter], "%s %s %s", a,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:748:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(answer_list[answer_counter], "%s (%s)",
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:751:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(answer_list[answer_counter], "%s%s",
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:765:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tmp_buf, "%s %s\n",
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:41:29:  [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 log_error(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:44:29:  [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 log_debug(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:951: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(buffer, whitespace);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1011: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(buffer, sortable[i]);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1024: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(buffer, a->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1056: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(buffer, g->sword[i]->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1062: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(buffer, g->whitespace);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1076: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(buffer, a->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1426: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(buffer, bc->trans);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1430:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
						strcat(buffer, g->prefixes->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1435:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
						strcat(buffer, w->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1437:8:  [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(buffer, g->join);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1441:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
						strcat(buffer, g->suffixes->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstransd.c:41:29:  [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 log_debug(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/hll/pp/pp.c:35:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/hll/pp/pp.c:40:6:  [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.
	if (vfprintf(stderr, fmt, argptr) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:367:33:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
	if (!(unencrypted_password_s = getpass(PASSWORD_PROMPT))) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:373:25:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	encrypted_password_s = crypt(unencrypted_password_s,
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:1329:2:  [4] (shell) execv:
  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.
	execv(pw.pw_shell, argv + optind - 1);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/open_init_pty.c:295:7:  [4] (shell) execvp:
  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 (execvp(argv[1], argv + 1)) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:202:33:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
	if (!(unencrypted_password_s = getpass(PASSWORD_PROMPT))) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:210:25:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
	encrypted_password_s = crypt(unencrypted_password_s,
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:409: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("/usr/sbin/open_init_pty", X_OK) != 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:410:7:  [4] (shell) execvp:
  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 (execvp(argv[1], argv + 1)) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:424:6:  [4] (shell) execvp:
  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 (execvp("/usr/sbin/open_init_pty", argv)) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/semodule/semodule.c:493: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(output_path, F_OK) == 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:47:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s/%d/exe", PROC_BASE, pid);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:175: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, outp);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/setfiles.c:141:35:  [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.
static int __attribute__ ((format(printf, 2, 3)))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/setfiles.c:156:7:  [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.
	rc = vfprintf(out, fmt, ap);
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:156: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.
		status = system(cmd);
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:848:3:  [4] (shell) execv:
  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.
		execv(argv[optind], argv + optind);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkmodule.c:166:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt_long(argc, argv, "ho:bVU:mMC", long_options, NULL)) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:426:15:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt_long(argc, argv, "o:t:dbU:MCFSVc:h", long_options, NULL)) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:1604: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.
        pathname = realpath(pathname_orig, NULL);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:1609:22:  [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.
        pathdnamer = realpath(pathdname, NULL);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:400:7:  [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.
		p = realpath(tmp_path, resolved_path);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:403:7:  [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.
		p = realpath("./", resolved_path);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:442:7:  [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.
		p = realpath(path, stackpath);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:502:7:  [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.
		p = realpath(path, stackpath);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:820:15:  [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.
			pathname = realpath(pathname_orig, NULL);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:832:17:  [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.
			pathdnamer = realpath(pathdname, NULL);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:107:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((i = getopt(argc, argv, "cf:h?-")) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getconlist.c:26:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "l:")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getdefaultcon.c:28:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "l:r:s:v")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/getsebool.c:20:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "a")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/matchpathcon.c:79:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "m:Nnf:P:p:Vq")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:311:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "io:p:r")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:82:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "ib:Bvf:")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_lookup.c:47:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "b:f:vrk:t:")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_lookup_best_match.c:69:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "f:vrp:m:")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_partial_match.c:42:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "f:vp:")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selinux_check_access.c:28:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "a:")) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/libsemanage-tests.c:91: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 ((i = getopt_long(argc, argv, "vi", opts, NULL)) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/libsepol-tests.c:94: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 ((i = getopt_long(argc, argv, "vi", opts, NULL)) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstransd.c:540:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "hf")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/hll/pp/pp.c:83:16:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt_long(argc, argv, "h", long_opts, NULL)) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/load_policy/load_policy.c:36:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "bqi")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:491:13:  [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.
	term_env = getenv("TERM");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:492:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	display_env = getenv("DISPLAY");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:493:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	xauthority_env = getenv("XAUTHORITY");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:844:12:  [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.
		clflag = getopt_long(argc, argv, "r:t:l:pV", long_options,
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:201:20:  [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 ((optchar = getopt_long(argc, argv, SECON_OPTS_GO,
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/semodule/semodule.c:212:3:  [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.
		getopt_long(argc, argv, "s:b:hi:l::vr:u:RnNBDCPX:e:d:p:S:E:cH", opts,
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:76:6:  [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.
	p = realpath(command, stackpath);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:208:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		opt = getopt(argc, argv, "vb");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/restorecon_xattr.c:62:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "vnrmdDe:f:")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/setfiles.c:244:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, opts)) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setsebool/setsebool.c:42:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		clflag = getopt(argc, argv, "PNV");
data/android-platform-external-libselinux-10.0.0+r36/restorecond/restorecond.c:168:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "hdf:uv")) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:668:12:  [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.
		clflag = getopt_long(argc, argv, "Ccvh:t:Z:", long_options, NULL);
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:770: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.
		resolved_path = realpath(pwd->pw_dir,NULL);
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:787:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((display = getenv("DISPLAY")) != NULL) {
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:795:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((LANG = getenv("LANG")) != NULL) {
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:802: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.
		if ((RUNTIME_DIR = getenv("XDG_RUNTIME_DIR")) != NULL) {
data/android-platform-external-libselinux-10.0.0+r36/secilc/secil2conf.c:85: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.
		opt_char = getopt_long(argc, argv, "o:hvM:P", long_opts, &opt_index);
data/android-platform-external-libselinux-10.0.0+r36/secilc/secilc.c:125: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.
		opt_char = getopt_long(argc, argv, "o:f:U:hvt:M:PDmNc:GX:", long_opts, &opt_index);
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_expand/semodule_expand.c:49:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "c:Vva")) != EOF) {
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_link/semodule_link.c:87:15:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((ch = getopt(argc, argv, "o:Vv")) != EOF) {
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_package/semodule_package.c:117: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 ((i = getopt_long(argc, argv, "m:f:s:u:o:n:h", opts, NULL)) != -1) {
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkmodule.c:59: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(file, O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkmodule.c:305:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *outfp = fopen(outfile, "w");
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:393: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 ans[80 + 1], *outfile = NULL, *path, *fstype;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:531: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(file, O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:629: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).
		outfp = fopen(outfile, "w");
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:723: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).
			ssid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:727: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).
			tsid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:732: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).
				tclass = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:795: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).
			ssid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:840: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).
			ssid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:843: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).
			tsid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:848: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).
				tclass = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:900:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(ans, O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:959: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).
			port = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1045: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).
				tclass = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1073: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).
			ssid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1121:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (atoi(ans))
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1132: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).
			ssid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1136: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).
			tsid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1141: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).
				tclass = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1181:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			oldsid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1185:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			newsid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1189: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).
			tasksid = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1194: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).
				tclass = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1252: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).
				pkey = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1271: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).
			port = atoi(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/module_compiler.c:54:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const flavor_str[SYM_NUM] = {
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/parse_util.c:38: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).
	yyin = fopen(file, "r");
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:73: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.
extern char source_file[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:79: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 errormsg[ERRORMSG_LEN + 1] = {0};
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:1855: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(sorted, r, sizeof(struct av_ioctl_range_list));
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:4656: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(newc->u.name, "%02x:%02x", major, minor);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:5462: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(&newc->u.node6.addr[0], &addr.s6_addr[0], 16);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:5463: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(&newc->u.node6.mask[0], &mask.s6_addr[0], 16);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:62: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 *symbol_labels[9] = {
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:732: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).
	if ((in_fp = fopen(filename, "rb")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:774: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 module_name[80] = { 0 };
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:824: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[64];
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:870: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 ans[81], OutfileName[121];
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:997:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			else if ((out_fp = fopen(OutfileName, "w")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:281: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[64];
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:393: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 ans[81], OutfileName[121];
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:404: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(argv[1], O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:500:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (atoi(ans))
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:532:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			else if ((out_fp = fopen(OutfileName, "w")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/include/selinux/selinux.h:364: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 *perms[sizeof(access_vector_t) * 8 + 1];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:88: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(opts[i].value, O_CLOEXEC | O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:121: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(fc_data + total_size, map, sb.st_size);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:151: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(fc_opts, opts, nopts*sizeof(struct selinux_opt));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:477: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_buf[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:514: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(seapp_contexts_files[i], "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:538: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(seapp_contexts_files[i], "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:920: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 parsedseinfo[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:1048: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 level[255];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:1554: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_node)->digest, calculated_digest, SHA1_HASH_SIZE);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:1580:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char * paths[2] = { NULL , NULL };
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:1810: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(sepolicy_file, O_RDONLY | O_NOFOLLOW | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.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 errormsg[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.c:195: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.c:196: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 errormsg[PATH_MAX+1024+20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.c:204: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, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.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).
		fp = fopen(curpolicy, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc.c:251: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(p, &cache_stats, sizeof(cache_stats));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc.c:487: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(&node->ae.avd, &ae->avd, sizeof(ae->avd));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc.c:809: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(avd, &ae->avd, sizeof(*avd));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.c:49:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char avc_prefix[AVC_PREFIX_SIZE] = "uavc";
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.c:227: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[1024] __attribute__ ((aligned));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.c:254: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[1024] __attribute__ ((aligned));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.h:64: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.
extern char avc_prefix[AVC_PREFIX_SIZE] hidden;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:41: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:101: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).
	cfg = fopen(selinux_booleans_subs_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:169: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(fname, flag);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:189: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(fname, flag);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:239:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (atoi(&buf[1]))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:256:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (atoi(buf))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:267: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[2];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:300: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[2];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:301: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:309: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_WRONLY | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.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 name1[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:374:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*val = atoi(tok);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:389: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 outbuf[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:394: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 local_bool_file[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:395: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_bool_file[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:407: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(tmp_bool_file);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:415:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	boolf = fopen(local_bool_file, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:420: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 boolname[BUFSIZ-3];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:531: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 localbools[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:534: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 name[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:536:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	boolf = fopen(path ? path : selinux_booleans_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:554:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	boolf = fopen(localbools, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/canonicalize_context.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/canonicalize_context.c:26: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/check_context.c:14: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/check_context.c:23: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/checkreqprot.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/checkreqprot.c:16: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/checkreqprot.c:24: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_av.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 path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_av.c:31: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_create.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 path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_create.c:68: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_member.c:18: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_member.c:29: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_relabel.c:18: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_relabel.c:29: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_user.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_user.c:28: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/context.c:14: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 *(component[4]);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/deny_unknown.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/deny_unknown.c:16: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/deny_unknown.c:24: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/disable.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/disable.c:16: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/disable.c:24: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_WRONLY | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/enabled.c:32: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[20], path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/enabled.c:39: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:274: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[255], *ptr;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:278: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(selinux_failsafe_context_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:440: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(fname, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:454: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(selinux_default_context_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c:14: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(selinux_default_type_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c:29: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[250];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_initial_context.c:16: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_initial_context.c:28: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getenforce.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getenforce.c:16: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getenforce.c:24: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/init.c:64: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("/proc/filesystems", "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/init.c:104: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("/proc/mounts", "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/is_customizable_type.c:19: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(selinux_customizable_types_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_backends_android.c:145: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_buf[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_backends_android.c:154: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).
	if ((fp = fopen(path, "re")) == NULL)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_db.c:280:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((filp = fopen(path, "rb")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:464: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 stack_path[len];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:525: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(sb, &found->sb, sizeof(*sb));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:526: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).
	return fopen(save_path, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:537: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 found_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:606: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[1024];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:607:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *cfg = fopen(path, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:767: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 subs_file[PATH_MAX + 1];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:937: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(clean_key + sofar, prev_slash, next_slash - prev_slash);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:1049: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(digest, sha1_hash.bytes, SHA1_HASH_SIZE);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:212: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(&spec_copy[front++], &data->spec_arr[i], len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:214: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(&spec_copy[back--], &data->spec_arr[i], len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:225: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(&spec, &spec_copy[front], len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:227: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(&spec_copy[front], &spec_copy[back], len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:229: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(&spec_copy[back], &spec, len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:332: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, fp->next_addr, bytes);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:343: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 regex_error_format_buffer[256];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:393: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(cp, reg_buf, len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_media.c:93: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).
	if ((fp = fopen(path, "re")) == NULL)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_support.c:174:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		tmp_buf = memcpy(digest->hashbuf +
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_x.c:120: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).
	if ((fp = fopen(path, "re")) == NULL)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:28:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:37: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:61: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:176: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:182: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, O_RDONLY | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:339: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).
	cfg = fopen("/proc/cmdline", "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/load_policy.c:351: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).
				    atoi(tmp + sizeof("enforcing=") - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchmediacon.c:20: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 current_line[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchmediacon.c:21:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((infile = fopen(path, "re")) == NULL)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:433: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 stackpath[PATH_MAX + 1];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:495: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 stackpath[PATH_MAX + 1];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/policyvers.c:16: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/policyvers.c:17: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/policyvers.c:26: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/procattr.c:93: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, flags | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/procattr.c:106: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, flags | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c:16: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 response[10];	/* string to hold the user's response */
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c:40: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 response[10];	/* The user's response                        */
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c:108: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 response[10];	/* Used to get yes or no answers from user */
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.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 role[100];		/* The role requested by the user          */
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.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 type[100];		/* The type requested by the user          */
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c:113: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 level[100];	/* The level requested by the user         */
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/regex.c:35: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 arch_string_buffer[32];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/regex.c:102: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 version_buf[256];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/reject_unknown.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/reject_unknown.c:16: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/reject_unknown.c:24: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_check_securetty_context.c:17: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(selinux_securetty_types_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:62: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 *file_paths[NEL];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:67:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define S_(n, s) char L1(__LINE__)[sizeof(s)];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:71: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 str[0];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:91:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *cfg = fopen(SELINUXCONFIG, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:166: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(SELINUXCONFIG, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:208: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).
				*intptr = atoi(value);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:352: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 policy_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:239: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 *mount_info[4];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:248: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("/proc/mounts", "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:332: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((&sha1_buf[i * 2]), "%02x", xattr_value[i]);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:789: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 *paths[2] = { NULL, NULL };
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:1156: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 *paths[2] = { NULL, NULL };
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sestatus.c:258: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sestatus.c:271: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setenforce.c:15: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setenforce.c:16: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setenforce.c:24: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_RDWR | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/seusers.c:188: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).
	cfg = fopen(selinux_usersconf_path(), "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/seusers.c:281: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(path, "re");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sha1.c:81: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( block, buffer, 64 );
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sha1.c:172: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( &Context->Buffer[j], Buffer, i );
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/sha1.c:185:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy( &Context->Buffer[j], &((uint8_t*)Buffer)[i], BufferSize - i );
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:53: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/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:54: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[20];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:83: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 | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:108: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, O_RDONLY | O_CLOEXEC);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:306: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(ptr, "null");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:310:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	ptr += sprintf(ptr, "{ ");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:41: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 buf[DEF_BUF_SIZE];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:100: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 avcstatfile[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:150: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(avcstatfile, O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:41:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	context_file = fopen(filename, "r");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:300: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 stack_path[PATH_MAX + 1];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:342: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).
		policy_fp = fopen(policy_file, "r");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:423:8:  [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(tmp);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:31: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 files_digest[128];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:68: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_buf[4096];
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:165: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(&(sha1_buf[i * 2]), "%02x", sha1_digest[i]);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:172: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(cmd_ptr, "/usr/bin/cat ");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:180: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(cmd_ptr, "| /usr/bin/openssl dgst -sha1 -hex");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_lookup.c:81: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).
			type = atoi(optarg);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/setenforce.c:28:28:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		rc = security_setenforce(atoi(argv[1]));
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_file.c:34: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 *path[2];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_file.c:130: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).
	str = fopen(fname, "w");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_policydb.c:29: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.
        const char *path[2];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_policydb.c:114: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(fname, "rb");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/debug.c:100: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[1024];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:466: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).
	if ((f = fopen(filename, "wb")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:562: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(&uncompress[total], buf, nBuf);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:596: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:616: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(*data, uncompress, size);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:645: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).
	     open(filename, O_WRONLY | O_CREAT | O_TRUNC,
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:998: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 fn[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1010: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(fn, "w");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1042: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 cil_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1043: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 hll_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1149: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 cil_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1263: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).
		touch = fopen(path, "w");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1295: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).
		touch = fopen(path, "w");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1834: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 module_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1835: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 input_file[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2009: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2065: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 fn[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2131: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).
			fp = fopen(fn, "w");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2222: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 fn[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2318: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(fn, "r");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2408: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 fn[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2583: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 priority_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2784: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2911: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:219: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).
	shells = fopen(PATH_SHELLS_FILE, "r");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:336:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		temp = atoi(path);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:345:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		temp = atoi(path);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:353:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		temp = atoi(path);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:504: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).
	template_file = fopen(s->homedir_template_path, "r");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:975: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 uid[11];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:976: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 gid[11];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:1404:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(out = fopen(s.fcfilepath, "w"))) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/parse_utils.c:48:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	info->file_stream = fopen(info->filename, "r");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:76: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 *semanage_paths[SEMANAGE_NUM_STORES][SEMANAGE_STORE_NUM_PATHS];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:77: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 *semanage_files[SEMANAGE_NUM_FILES] = { NULL };
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:81: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 *semanage_relative_files[SEMANAGE_NUM_FILES] = {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:87: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 *semanage_store_paths[SEMANAGE_NUM_STORES] = {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:95: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 *semanage_sandbox_paths[SEMANAGE_STORE_NUM_PATHS] = {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:124: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 const * const semanage_final_prefix[SEMANAGE_FINAL_NUM] = {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:129: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 *semanage_final[SEMANAGE_FINAL_NUM] = { NULL };
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:130: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 *semanage_final_suffix[SEMANAGE_FINAL_PATH_NUM] = { NULL };
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:131: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 *semanage_final_paths[SEMANAGE_FINAL_NUM][SEMANAGE_FINAL_PATH_NUM] = {{ NULL }};
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:282: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:434: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 root[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:713: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[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:714: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[4192];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:721: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).
	if ((in = open(src, O_RDONLY)) == -1) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:729: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 ((out = open(tmp, O_WRONLY | O_CREAT | O_TRUNC, mode)) == -1) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:778: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], path2[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:841: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 s[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:868: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 fn[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:976: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 fn[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1041: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1244: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 + s_len, t, t_len);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1440:12:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	forkval = vfork();
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1486: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[PATH_MAX] = { 0 };
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1489:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file_con = fopen(semanage_path(SEMANAGE_TMP, SEMANAGE_FC_TMPL), "r");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1496: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).
	fc = open(semanage_path(SEMANAGE_TMP, SEMANAGE_STORE_FC),
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1503: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).
	hd = open(semanage_path(SEMANAGE_TMP, SEMANAGE_HOMEDIR_TMPL),
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1616: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 fn[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1697: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 write_buf[32];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1715: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).
	     open(commit_filename, O_WRONLY | O_CREAT | O_TRUNC,
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1851: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).
	if ((fd = open(lock_file, O_RDONLY)) == -1) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1853: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).
		     open(lock_file, O_RDWR | O_CREAT | O_TRUNC,
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1984: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1998: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).
	if ((fd = open(commit_filename, O_RDONLY)) == -1) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2045:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(filename, "rb")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2111:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((infile = fopen(kernel_filename, "r")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2154:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((outfile = fopen(kernel_filename, "wb")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:70: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[1024];
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:73:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(msg, "login");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:89:4:  [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(msg,"sename");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:94:4:  [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(msg,"role");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:99:4:  [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(msg,"range");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:43: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).
	if ((fd = fopen(file, "r")) == NULL)
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:269: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(pres, psrc, length);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:274: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(pres, replace, rlen);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:315: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).
	sourcefd = open("nc_sort_unsorted", O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:327: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).
	goodfd = open("nc_sort_sorted", O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_semanage_store.c:338:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	badfd = open("nc_sort_malformed", O_RDONLY);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/tests/test_utilities.c:56: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(fname);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:365: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(buffer, data, size);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1629: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.
			buf_pos = sprintf(str_tmp, "\t<<none>>");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_binary.c:3384: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(new_ocon->u.node6.addr, &cil_nodecon->addr->ip.v6.s6_addr[0], 16);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_binary.c:3385: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(new_ocon->u.node6.mask, &cil_nodecon->mask->ip.v6.s6_addr[0], 16);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_copy_ast.c:1594: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->ip, &data->ip, sizeof(data->ip));
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:40: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 prefix[CIL_MAX_NAME_LENGTH];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:50: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 prefix[CIL_MAX_NAME_LENGTH];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_log.c:55: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 buff[MAX_LOG_SIZE];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:462:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new, str, len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:535: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(new, o_str, o_len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:547:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(new, o_str, o_len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:609:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(new, "not ");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:617:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(new, " and ");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:625:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(new, " or ");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:671: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(curr, DATUM(classperms->class)->fqn, len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:679: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(curr, DATUM(i1->data)->fqn, len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:338: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 *stack[COND_EXPR_MAXDEPTH] = {};
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:1455: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[256];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:1721: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[256];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:40: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(p, curr->data, src_len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:1487: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).
	cil_out = fopen(path, "we");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CilTest.c:62: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).
	file = fopen("test/policy.cil", "r");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.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 text[2];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:112: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[HUGE_STRING_LEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:128: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(str->buffer + pos, text, length);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:173: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[HUGE_STRING_LEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:231: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[STRING_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:233: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, "expected <%d> but was <%d>", expected, actual);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:240: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[STRING_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:242: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, "expected <%f> but was <%f>", expected, actual); 
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:250: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[STRING_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:252: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, "expected pointer <0x%p> but was <0x%p>", expected, actual);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/include/sepol/policydb/policydb.h:532: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 **sym_val_to_name[SYM_NUM];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/assertion.c:157: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(&tmp_key, k, sizeof(avtab_key_t));
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/assertion.c:345: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(&tmp_key, k, sizeof(avtab_key_t));
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:313: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(con_cpy, con_str, con_str_len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/expand.c:2716: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(xperms, source_rule->xperms, sizeof(av_extended_perms_t));
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:35: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 name1[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:65:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*val = atoi(tok);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:82: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 localbools[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.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 name[BUFSIZ];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:88:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	boolf = fopen(path, "r");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:122:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	boolf = fopen(localbools, "r");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genusers.c:45: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(path, "r");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genusers.c:297: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/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genusers.c:326: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/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibpkey_record.c:46: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(subnet_prefix, in_addr.s6_addr, sizeof(*subnet_prefix));
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibpkey_record.c:62: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(&addr.s6_addr[0], &subnet_prefix, sizeof(subnet_prefix));
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibpkey_record.c:147: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 subnet_prefix_str[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:539: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 unknown[18];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:551: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.
			sid = (char *)sid_to_str[i];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:1587: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 xpermsbuf[2048];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2501: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 unknown[18];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2514: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.
			sid = (char *)sid_to_str[i];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2650: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 low_high_str[44]; /* 2^64 <= 20 digits so "(low high)" <= 44 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2736: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 addr[INET_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2737: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 mask[INET_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2776: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 addr[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2777: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 mask[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2816: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 subnet_prefix_str[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2820: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 low_high_str[44]; /* 2^64 <= 20 digits so "(low high)" <= 44 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2826: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(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2873: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 port_str[4];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2915: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 pirq_str[21]; /* 2^64-1 <= 20 digits */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2952: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 low_high_str[40]; /* 2^64-1 <= 16 digits (hex) so (low high) < 40 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:2995: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 low_high_str[40]; /* 2^64-1 <= 16 digits (hex) so (low high) < 40 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:3036: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 device_str[20]; /* 2^64-1 <= 16 digits (hex) so (low high) < 19 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:437: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 unknown[18];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:449: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.
			sid = (char *)sid_to_str[i];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2361: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 unknown[18];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2374: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.
			sid = (char *)sid_to_str[i];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2510: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 low_high_str[44]; /* 2^64 <= 20 digits so "low-high" <= 44 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2596: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 addr[INET_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2597: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 mask[INET_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2637: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 addr[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2638: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 mask[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2677: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 subnet_prefix_str[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2681: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 low_high_str[44]; /* 2^64 <= 20 digits so "low-high" <= 44 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2687: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(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2735: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 port_str[4];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2777: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 pirq_str[21]; /* 2^64-1 <= 20 digits */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2816: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 low_high_str[40]; /* 2^64-1 <= 16 digits (hex) so low-high < 40 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2859: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 low_high_str[40]; /* 2^64-1 <= 16 digits (hex) so low-high < 40 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2900: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 device_str[20]; /* 2^64-1 <= 16 digits (hex) so < 19 chars */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/link.c:81: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 *symtab_names[SYM_NUM] = {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/link.c:193: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(newmap, mod->perm_map[sclassi],
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/link.c:1333: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(new_rule->xperms, cur->xperms,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module.c:113: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(*field, data, len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module.c:263: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(base->file_contexts + base->file_contexts_len,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module.c:296: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(base->netfilter_contexts + base->netfilter_contexts_len,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:149: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(*line, *start, len);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:2565: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 unknown[18];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:2683: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 subnet_prefix_str[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:2691: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(&subnet_prefix.s6_addr, &ibpkeycon->u.ibpkey.subnet_prefix,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:2737: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 addr[INET_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:2738: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 mask[INET_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:2769: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 addr[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:2770: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 mask[INET6_ADDRSTRLEN];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:60: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(addr_bytes, &in_addr.s_addr, 4);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:73: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(addr_bytes, in_addr.s6_addr, 16);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:144: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(&addr.s_addr, addr_bytes, 4);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:161: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(&addr.s6_addr[0], addr_bytes, 16);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:291: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(tmp_key->addr, node->addr, node->addr_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:292: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(tmp_key->mask, node->mask, node->mask_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:391: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(tmp_buf, node->addr, node->addr_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:436: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(tmp_addr, addr, addr_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:480: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(tmp_buf, node->mask, node->mask_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:524: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(tmp_mask, mask, mask_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:604: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_node->addr, node->addr, node->addr_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/node_record.c:605: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_node->mask, node->mask, node->mask_sz);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/nodes.c:39: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(&tmp_node->u.node.addr, addr_buf, addr_bsize);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/nodes.c:40: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(&tmp_node->u.node.mask, mask_buf, mask_bsize);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/nodes.c:43: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(tmp_node->u.node6.addr, addr_buf, addr_bsize);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/nodes.c:44: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(tmp_node->u.node6.mask, mask_buf, mask_bsize);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb.c:424: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 *symtab_name[SYM_NUM] = {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:218: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[128];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:279: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[128];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:401: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[128];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:1714: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, fp->data, bytes);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:1739: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(fp->data, ptr, bytes);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:1849: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(&oldpolicydb, policydb, sizeof *policydb);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:1853: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(policydb, &newpolicydb, sizeof *policydb);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:2240: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(mysids2, mysids,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/util.c:85: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 avbuf[1024];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/util.c:132: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 xpermsbuf[2048];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1417: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, &c->u.ibpkey.subnet_prefix,
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/helpers.c:37: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 filename[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-downgrade.c:210: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).
	if ((in_fp = fopen(path, "rb")) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-downgrade.c:254:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((out_fp = fopen(path, "w" )) == NULL) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-expander.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 *filename[num_modules + 1];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-roles.c:75: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 *types[2];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-roles.c:105: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 *types[3];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-types.c:128: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 *types[2];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker-types.c:166: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 *types[2];
data/android-platform-external-libselinux-10.0.0+r36/libsepol/tests/test-linker.c:48:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *policies[NUM_POLICIES] = {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/utils/chkcon.c:24: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(argv[1], "r");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcscolor.c:216: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 rule[10], pat[256], f[256], b[256];
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcscolor.c:252: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).
	cfg = fopen(selinux_colors_path(), "r");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcscolor.c:290: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 *result, *components[N_COLOR];
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcscolor.c:291: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[CHARS_PER_COLOR + 1];
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:863:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *cfg = fopen(filename,"r");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:986: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[1024 * 128];
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1022:4:  [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(buffer,"(?:");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1028:4:  [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(buffer,"[ 	]+");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1035:3:  [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(buffer, "(?:");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1055:4:  [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(buffer,"\\b");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1057:4:  [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(buffer,"\\b");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1061:4:  [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(buffer,"|[");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1063:4:  [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(buffer, "]+");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1066:3:  [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(buffer, ")+");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1073:4:  [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(buffer,"[ 	]+");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1074:4:  [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(buffer,"(?:");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1424:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[9999];
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:28: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).
	l->sens = atoi(scontextp + 1);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:48: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).
			int bit = atoi(scontextp + 1);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:56: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).
				int ubit = atoi(lptr + 1);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:84: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 temp[16];
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:129: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.
	p += sprintf(p, "s%d", l->sens);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:144:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			p += sprintf(p, "c%d", i);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:153:10:  [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.
				p += sprintf(p, "c%d", i-1);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mls_level.c:165:8:  [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.
		p += sprintf(p, "c%d", i-1);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/hll/pp/pp.c:95: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).
		in = fopen(ifile, "rb");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/hll/pp/pp.c:108: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).
		out = fopen(ofile, "w");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:310: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).
	cfg = fopen(config_file_path, "r");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:716: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(ttyn, O_RDWR | O_NONBLOCK);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:1252: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(ttyn, O_RDWR | O_NONBLOCK);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:1259: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(ttyn, O_RDWR | O_NONBLOCK);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:1266: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(ttyn, O_RDWR | O_NONBLOCK);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/open_init_pty.c:240: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 inbuf_mem[BUFSIZE];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/open_init_pty.c:241: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 outbuf_mem[BUFSIZE];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:302: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[255], *bufp;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:304: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 context_file[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:307: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(context_file, "r");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:292:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			opts->f.pid = atoi(optarg);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:296:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			opts->f.pid = atoi(optarg);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:300:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			opts->f.pid = atoi(optarg);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:304:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			opts->f.pid = atoi(optarg);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:346: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[4096];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:353:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fp = fopen(buf, "rb")))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:389: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 dummy_NIL[1] = "";
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:406: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[4096] = "";
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/semodule/semodule.c:429:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char output_path[PATH_MAX];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/semodule/semodule.c:499:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				output_fd = fopen(output_path, "w");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:41: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[BUFSIZE];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:42: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 filename[BUFSIZE];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:65: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 stackpath[PATH_MAX + 1], *p;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:98:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(CONF, "r");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:99: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[255], *bufp;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:143:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(pc[*npc], bufp, buf_len);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:153:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(fc[*nfc], bufp, buf_len);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:173: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[20];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c: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 *fc[MAX_CHECK];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:192: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 *pc[MAX_CHECK];
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/restorecon_xattr.c:146:4:  [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((&sha1_buf[i * 2]), "%02x", fc_digest[i]);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/setfiles.c:255: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).
				policystream = fopen(policyfile, "r");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/setfiles.c:451: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).
			f = fopen(input_filename, "r");
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setsebool/setsebool.c:72: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 *bool_list[1];
data/android-platform-external-libselinux-10.0.0+r36/python/audit2allow/sepolgen-ifgen-attr-helper.c:152: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(filename, "r");
data/android-platform-external-libselinux-10.0.0+r36/python/audit2allow/sepolgen-ifgen-attr-helper.c:211: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(argv[2], "w");
data/android-platform-external-libselinux-10.0.0+r36/restorecond/restorecond.c:92: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 val[16];
data/android-platform-external-libselinux-10.0.0+r36/restorecond/restorecond.c:100:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	pidfd = open(pidfile, O_CREAT | O_TRUNC | O_NOFOLLOW | O_WRONLY, 0644);
data/android-platform-external-libselinux-10.0.0+r36/restorecond/user.c:116: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 buffer[BUF_LEN+1];
data/android-platform-external-libselinux-10.0.0+r36/restorecond/user.c:205: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).
	local_lock_fd = open(ptr, O_CREAT | O_WRONLY | O_NOFOLLOW | O_CLOEXEC, S_IRUSR | S_IWUSR);
data/android-platform-external-libselinux-10.0.0+r36/restorecond/utmpwatcher.c:58:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *cfg = fopen(utmp_path, "r");
data/android-platform-external-libselinux-10.0.0+r36/restorecond/watch.c:180: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[BUF_LEN];
data/android-platform-external-libselinux-10.0.0+r36/restorecond/watch.c:274: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).
	cfg = fopen(watch_file_path, "r");
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:447:15:  [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_s = open(src, O_RDONLY)) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:491: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).
	if ((fd_t = open(tmpdir, O_RDONLY)) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/sandbox/seunshare.c:577:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (!(pid = (pid_t)atoi(de->d_name)) || pid == self)
data/android-platform-external-libselinux-10.0.0+r36/secilc/secil2conf.c:131:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen(argv[i], "r");
data/android-platform-external-libselinux-10.0.0+r36/secilc/secil2conf.c:170:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen("policy.conf", "w");
data/android-platform-external-libselinux-10.0.0+r36/secilc/secil2conf.c:172:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen(output, "w");
data/android-platform-external-libselinux-10.0.0+r36/secilc/secilc.c:251:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file = fopen(argv[i], "r");
data/android-platform-external-libselinux-10.0.0+r36/secilc/secilc.c:312: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).
	binary = fopen(output, "w");
data/android-platform-external-libselinux-10.0.0+r36/secilc/secilc.c:343:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file_contexts = fopen("file_contexts", "w+");
data/android-platform-external-libselinux-10.0.0+r36/secilc/secilc.c:345:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		file_contexts = fopen(filecontexts, "w+");
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_expand/semodule_expand.c:123: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(basename, "r");
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_expand/semodule_expand.c:169: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).
	outfile = fopen(outname, "w");
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_link/semodule_link.c:50: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(filename, "r");
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_link/semodule_link.c:151:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		outfile = fopen(outname, "w");
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_package/semodule_package.c:50: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(filename, mode);
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_package/semodule_package.c:64: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/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_package/semodule_unpackage.c:32: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(filename, mode);
data/android-platform-external-libselinux-10.0.0+r36/semodule-utils/semodule_package/semodule_unpackage.c:88: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(fcfile, "w");
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:741: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:816: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).
			scontext_len = strlen(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:855: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:898: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).
			pathlen = strlen(ans);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:937: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:944: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:966: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:978: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:990: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1012: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1036: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1040: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1052: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1072: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1077: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1108: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1110: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).
			name = malloc((strlen(ans) + 1) * sizeof(char));
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1119: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1150: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1203: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1241: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).
				ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1260: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/checkpolicy.c:1262: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).
			name = malloc((strlen(ans) + 1) * sizeof(char));
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:124: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).
	newid = (char *)malloc(strlen(id) + 1);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:5216: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(newc->u.ibendport.dev_name) > IB_DEVICE_NAME_MAX - 1) {
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:5647: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(newc->u.name);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/policy_define.c:5648: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).
		len2 = strlen(c->u.name);
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:789: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).
	module_name[strlen(module_name) - 1] = '\0';	/* remove LF */
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:994: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).
			OutfileName[strlen(OutfileName) - 1] = '\0';	/* fix_string (remove LF) */
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dismod.c:995: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(OutfileName) == 0)
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:483: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:485: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).
			name = malloc((strlen(ans) + 1) * sizeof(char));
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:498: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).
			ans[strlen(ans) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:529: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).
			OutfileName[strlen(OutfileName) - 1] = '\0';	/* fix_string (remove LF) */
data/android-platform-external-libselinux-10.0.0+r36/checkpolicy/test/dispol.c:530: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(OutfileName) == 0)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:546: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).
			len = strlen(line_buf);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:627: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).
					cur->user.len = strlen(cur->user.str);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:654: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).
					cur->name.len = strlen(cur->name.str);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:727: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).
					cur->path.len = strlen(cur->path.str);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:867: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).
		substr = substr + strlen(TARGETSDKVERSION_STR);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:889: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(src);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/android/android_platform.c:894:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.c:203:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(path, init_path, PATH_MAX-1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.c:339: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).
	rc = sepol_context_to_sid(scon, strlen(scon) + 1, &ssid);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/audit2why.c:343: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).
	rc = sepol_context_to_sid(tcon, strlen(tcon) + 1, &tsid);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc.c:176:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(avc_prefix, prefix, AVC_PREFIX_SIZE - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc.c:721: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).
	avc_suppl_audit(a, tclass, avc_audit_buf + strlen(avc_audit_buf),
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc.c:722: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).
			AVC_AUDIT_BUFSIZE - strlen(avc_audit_buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.h:153: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).
  snprintf(buf+strlen(buf), AVC_AUDIT_BUFSIZE-strlen(buf), format)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_internal.h:153: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).
  snprintf(buf+strlen(buf), AVC_AUDIT_BUFSIZE-strlen(buf), format)
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/avc_sidtab.c:24: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).
	size = strlen(keyp);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:159: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(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:159:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:178: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(alt_name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:178:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(alt_name) + strlen(selinux_mnt) + sizeof(SELINUX_BOOL_DIR);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:218:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, *buf, STRBUF_SIZE);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:334:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, ptr, size);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:335: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).
	for (i = strlen(dest) - 1; i > 0; i--) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:360:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name1, tok, BUFSIZ - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:444:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						len = strlen(outbuf);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:457:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					len = strlen(outbuf);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/booleans.c:472: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).
			len = strlen(outbuf);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/canonicalize_context.c:36:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, con, size);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/canonicalize_context.c:38: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).
	ret = write(fd, buf, strlen(buf) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/canonicalize_context.c:43:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, size - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/canonicalize_context.c:47:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, con, size);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/check_context.c:27: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).
	ret = write(fd, con, strlen(con) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/checkreqprot.c:29:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf) - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_av.c:46: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).
	ret = write(fd, buf, strlen(buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_av.c:51:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, len - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_create.c:87: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).
	ret = write(fd, buf, strlen(buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_create.c:92:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, size - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_member.c:41: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).
	ret = write(fd, buf, strlen(buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_member.c:46:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, size - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_relabel.c:41: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).
	ret = write(fd, buf, strlen(buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_relabel.c:46:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, size - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_user.c:40: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).
	ret = write(fd, buf, strlen(buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_user.c:45:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, size - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_user.c:60: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).
	ptr = buf + strlen(buf) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/compute_user.c:68: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).
		ptr += strlen(ptr) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/context.c:74:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(n->component[i], tok, p - tok);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/context.c:129: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).
			total += strlen(n->component[i]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/context.c:155: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).
		t = (char *)malloc(strlen(str) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/deny_unknown.c:29:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf) - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/disable.c:30: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).
	ret = write(fd, buf, strlen(buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/enabled.c:46:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, sizeof buf - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/fgetfilecon.c:69: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).
		return strlen(*context) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/fsetfilecon.c:12: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).
	int rc = fsetxattr(fd, XATTR_NAME_SELINUX, context, strlen(context) + 1,
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:287: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(ptr);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:291: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).
	nlen = strlen(user) + 1 + plen + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:435: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).
	fname_len = strlen(user_contexts_path) + strlen(user) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_context_list.c:435: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).
	fname_len = strlen(user_contexts_path) + strlen(user) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c:35: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(role);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c:41:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (buf[strlen(buf) - 1])
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c:42: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).
			buf[strlen(buf) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_default_type.c:65: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).
	t = malloc(strlen(buf) - len);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/get_initial_context.c:39:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, size - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getenforce.c:29:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof buf - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/getfilecon.c:68: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).
		return strlen(*context) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/init.c:118:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(tmp + 1, SELINUXFS" ", strlen(SELINUXFS)+1)) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/is_customizable_type.c:40: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).
				buf[strlen(buf) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_backends_android.c:41: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).
	size_t L1 = strlen(sp1->property_key);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_backends_android.c:42:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t L2 = strlen(sp2->property_key);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_backends_android.c:311: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(spec_arr[i].property_key)) == 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:168: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(reg_version);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:197: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).
			len = strlen(reg_arch);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:423: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).
	current_size = strlen(current);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:424: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).
	suffix_size = strlen(suffix);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:658: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).
		sub->slen = strlen(src);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:932: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).
		clean_key = (char *) malloc(strlen(key) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:1042: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).
		Sha1Update(&context, regex_str, strlen(regex_str) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.c:1044: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).
		Sha1Update(&context, ctx_raw, strlen(ctx_raw) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:102: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(mode);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:160: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(spec->regex_str);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_file.h:382: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(reg_buf);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_media.c:181:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(spec_arr[i].key, key, strlen(key) + 1))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/label_support.c:74: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(line_buf);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/lgetfilecon.c:69: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).
		return strlen(*context) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/lsetfilecon.c:12: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).
	int rc = lsetxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1,
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchmediacon.c:27: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 (current_line[strlen(current_line) - 1])
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchmediacon.c:28: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).
			current_line[strlen(current_line) - 1] = 0;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:212: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).
				fl->file = malloc(strlen(file) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:229: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).
			fl->file = malloc(strlen(file) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:245: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).
	fl->file = malloc(strlen(file) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:396:7:  [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.
		p = strcpy(resolved_path, "");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:413: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(p);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:414: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 (len + strlen(last_component) + 2 > PATH_MAX) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/matchpathcon.c:423:2:  [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(resolved_path, "/");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/policyvers.c:34:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof buf - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/procattr.c:170:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, size - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/procattr.c:258: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 = write(fd, context2, strlen(context2) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c:88:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (newfield[strlen(newfield) - 1] == '\n')
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c:89: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).
			newfield[strlen(newfield) - 1] = '\0';
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/query_user_context.c:91: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(newfield) == 0) {
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/regex.c:457: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).
		       subject, strlen(subject), 0,
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/regex.c:549: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).
	if ((size_t)rc < strlen(error_data->error_buffer))
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/reject_unknown.c:29:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf) - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_config.c:183: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).
				end = type + strlen(type) - 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:178: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(directory);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/selinux_restorecon.c:1129: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(rootpath);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setenforce.c:29: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).
	ret = write(fd, buf, strlen(buf));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setfilecon.c:12:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int rc = setxattr(path, XATTR_NAME_SELINUX, context, strlen(context) + 1,
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setrans_client.c:70:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, SETRANS_UNIX_SOCKET, sizeof(addr.sun_path));
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setrans_client.c:98: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).
	data1_size = strlen(data1) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/setrans_client.c:99: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).
	data2_size = strlen(data2) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/seusers.c:293: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(service);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/seusers.c:314: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(level);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:88:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf) - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:124:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, sizeof(buf) - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:283:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len += strlen(str) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/src/stringrep.c:318:2:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
	sprintf(ptr, "}");
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:113:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(avcstatfile, optarg, sizeof(avcstatfile) - 1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/avcstat.c:159:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, DEF_BUF_SIZE-1);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/matchpathcon.c:150: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).
		int len = strlen(path);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:129: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).
	section_len = strlen(reg_version);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:141: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).
	section_len = strlen(reg_arch);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:187: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).
		to_write = strlen(context) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:198: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).
		to_write = strlen(regex_str) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/sefcontext_compile.c:411: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).
	tmp = malloc(strlen(stack_path) + 7);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:173: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).
		cmd_ptr = &cmd_buf[0] + strlen(cmd_buf);
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_digest.c:177: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).
			cmd_ptr += strlen(specfiles[i]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/selabel_lookup_best_match.c:104: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).
			string_len = strlen(argv[i]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libselinux/utils/setenforce.c:27: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(argv[1]) == 1 && (argv[1][0] == '0' || argv[1][0] == '1')) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_file.c:129:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/database_file.c:131:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:784:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((read_len = read(fd, data_read + data_read_len, max_len - data_read_len)) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1211:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:1683:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2130:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2132:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2785:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/direct_api.c:2897:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:252: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(oexpr);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:373: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).
		int len = strlen(pwbuf->pw_dir) -1;
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:536: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).
	off = strlen(p);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/genhomedircon.c:1018: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(pwent->pw_dir) -1;
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/handle.c:162: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(sh->conf->compiler_directory_path) + strlen("/") + strlen(lower_lang_ext) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/handle.c:162: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).
	len = strlen(sh->conf->compiler_directory_path) + strlen("/") + strlen(lower_lang_ext) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/handle.c:162: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).
	len = strlen(sh->conf->compiler_directory_path) + strlen("/") + strlen(lower_lang_ext) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/parse_utils.c:194: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(assert_str);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/parse_utils.c:225: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(str);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/parse_utils.c:299:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_str, start, len);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:173: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).
	prefix_len = strlen(root);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:176: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).
		len = (strlen(semanage_relative_files[i]) + prefix_len);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:199: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).
	prefix_len = strlen(root);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:203:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = prefix_len + strlen(semanage_store_paths[i])
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:204: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).
			    + strlen(semanage_sandbox_paths[j]);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:226: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 store_len = strlen(store_path);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:229: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(semanage_root()) +
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:230: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(prefix) +
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:231: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("/") +
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:232: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(semanage_final_prefix[SEMANAGE_FINAL_TMP]) +
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:249: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(semanage_root()) +
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.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).
	      strlen(selinux_root) +
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:251: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(semanage_final_prefix[SEMANAGE_FINAL_SELINUX]) +
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:283:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t offset = strlen(selinux_policy_root());
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:392:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = 	  strlen(semanage_final[i])
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:393: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(semanage_final_suffix[j]);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:519: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(semanage_root()) + strlen(selinux_path()) + strlen(SEMANAGE_CONF_FILE);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:519: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).
	len = strlen(semanage_root()) + strlen(selinux_path()) + strlen(SEMANAGE_CONF_FILE);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:519: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).
	len = strlen(semanage_root()) + strlen(selinux_path()) + strlen(SEMANAGE_CONF_FILE);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:548:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:550:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:555:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:574:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:576:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:582:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:600:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:602:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:608:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:626:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:628:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:633:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:728:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:730:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:736:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:737:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (retval == 0 && (amount_read = read(in, buf, sizeof(buf))) > 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:787:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:789:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:793:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:805:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:808:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:811:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:813:11:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:815:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
				umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:818:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:872: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:903:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:905:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:911:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:953:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:957:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:961:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1010: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(semanage_final_path(SEMANAGE_FINAL_TMP, i)) >= sizeof(fn)) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1213: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).
	size_t len = (s == NULL ? 0 : strlen(s));
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1231: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).
	size_t s_len = (s == NULL ? 0 : strlen(s));
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1238: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).
	t_len = strlen(t);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1516: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 (write(hd, buf, strlen(buf)) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1523: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 (write(fc, buf, strlen(buf)) < 0) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:1632: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(dst) >= sizeof(fn)) {
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2011:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	amount_read = read(fd, buf, sizeof(buf));
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2148:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t mask = umask(0077);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2177:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2813: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).
			i = strlen(current->file_type) + 1;	/* +1 for tab */
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/semanage_store.c:2820: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).
		i = strlen(current->context) + 1;	/* +1 for newline */
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:36: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 += (strlen(roles_arr[i]) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/seusers_local.c:45:8:  [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(roles,",");
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:69: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/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.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).
	return strdup(retval + strlen(delim));
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:223: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(str);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:240: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).
	slen = strlen(search);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:241: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).
	rlen = strlen(replace);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:257: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).
	newsize = strlen(src) + 1 + count * (rlen - slen);
data/android-platform-external-libselinux-10.0.0+r36/libsemanage/src/utilities.c:283: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).
	assert(pres + strlen(psrc) + 1 == result + newsize);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/android.c:42: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).
	size = strlen(keyp);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/android.c:193: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(old) + strlen(vers) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/android.c:193:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len += strlen(old) + strlen(vers) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1232: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).
		str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->prefix_str) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1232: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).
		str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->prefix_str) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1232: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).
		str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->prefix_str) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1232:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->prefix_str) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1345: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).
	str_len += strlen(lvl->sens->datum.fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1360: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).
					str_len += strlen(str1) + strlen(cat->datum.fqn) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1360: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).
					str_len += strlen(str1) + strlen(cat->datum.fqn) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1362: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).
					str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1362: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).
					str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1362: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).
					str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1364: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).
					str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1364: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).
					str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1364: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).
					str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1375: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).
				str_len += strlen(str1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1377: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).
				str_len += strlen(str1) + strlen(str2) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1377: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).
				str_len += strlen(str1) + strlen(str2) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1379: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).
				str_len += strlen(str1) + strlen(str2) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1379: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).
				str_len += strlen(str1) + strlen(str2) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1402:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		buf_pos = sprintf(str_tmp, ":");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1428:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
					buf_pos = sprintf(str_tmp, ",");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1471: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).
		str_len += strlen(selinuxuser->name_str) + strlen(user->datum.fqn) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1471: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).
		str_len += strlen(selinuxuser->name_str) + strlen(user->datum.fqn) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1494:14:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			buf_pos = sprintf(str_tmp, ":");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1498:14:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
			buf_pos = sprintf(str_tmp, "-");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1504:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		buf_pos = sprintf(str_tmp, "\n");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1534: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).
		str_len += strlen(filecon->path_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1547: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).
			str_len += (strlen(user->datum.fqn) + strlen(role->datum.fqn) + strlen(type->datum.fqn) + 3);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1547: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).
			str_len += (strlen(user->datum.fqn) + strlen(role->datum.fqn) + strlen(type->datum.fqn) + 3);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1547: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).
			str_len += (strlen(user->datum.fqn) + strlen(role->datum.fqn) + strlen(type->datum.fqn) + 3);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1558: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).
			str_len += strlen("\t<<none>>");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1616:15:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
				buf_pos = sprintf(str_tmp, ":");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1622:16:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
					buf_pos = sprintf(str_tmp, "-");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil.c:1633:13:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
		buf_pos = sprintf(str_tmp, "\n");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:57: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).
	newlen = fqn_args->len + strlen(datum->name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:85: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).
	int newlen = fqn_args->len + strlen(datum->name) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_fqn.c:96:2:  [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(child_args.prefix, ".");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_parser.c:158: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).
			tok.value[strlen(tok.value) - 1] = '\0';
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_parser.c:252: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).
			tok.value[strlen(tok.value) - 1] = '\0';
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:348: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).
		len += strlen(DATUM(db->val_to_user[i])->fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:369: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).
			len = strlen(DATUM(operand->data)->fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:378:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len += strlen(DATUM(operand->data)->fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:461: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/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:534: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).
			o_len = strlen(o_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:546: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).
				o_len = strlen(o_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:659: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(DATUM(classperms->class)->fqn) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:661: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).
		len += strlen(DATUM(i1->data)->fqn) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:670: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(DATUM(classperms->class)->fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_policy.c:678: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(DATUM(i1->data)->fqn);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_post.c:201: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).
	char *a_path = cil_malloc(strlen(a_filecon->path_str) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_post.c:203: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).
	char *b_path = cil_malloc(strlen(b_filecon->path_str) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_strpool.c:56: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).
	size = strlen(keyp);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:412: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(stack[pos-1]) + strlen(op_str) + 4;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:412: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).
				len = strlen(stack[pos-1]) + strlen(op_str) + 4;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:423: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(stack[pos-1]) + strlen(stack[pos-2]) + strlen(op_str) + 5;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:423: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).
				len = strlen(stack[pos-1]) + strlen(stack[pos-2]) + strlen(op_str) + 5;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_tree.c:423:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(stack[pos-1]) + strlen(stack[pos-2]) + strlen(op_str) + 5;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_verify.c:61: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(name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:27: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).
		len += strlen((char *)curr->data);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:39:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t src_len = strlen((char *)curr->data);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:131: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(op_str) + 3;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:140: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(operand1) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:148: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(operand1) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:153: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(operand2) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:273: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(sens) + 3; // '()\0'
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:278: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).
		len += strlen(cats) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:328: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(low) + strlen(high) + 4;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:328: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).
	len = strlen(low) + strlen(high) + 4;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:363: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(user_str) + strlen(role_str) + strlen(type_str)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:363:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(user_str) + strlen(role_str) + strlen(type_str)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:363: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).
	len = strlen(user_str) + strlen(role_str) + strlen(type_str)
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:364:5:  [1] (buffer) strlen:
  Does not handle 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(range_str) + 6;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:397: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(kind) + strlen(obj) + strlen(expr) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:397: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).
	len += strlen(kind) + strlen(obj) + strlen(expr) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:397: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).
	len += strlen(kind) + strlen(obj) + strlen(expr) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:963: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(class_str) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/src/cil_write_ast.c:969: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(perms_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:45: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(old);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:94: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).
	length = strlen(text);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/CuTest.c:121: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).
	int length = strlen(text);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_lexer.c:39: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).
   uint32_t str_size = strlen(test_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_lexer.c:43:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
   strncpy(buffer, test_str, str_size);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/cil/test/unit/test_cil_lexer.c:53: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).
   uint32_t str_size = strlen(test_str);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:26: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).
				    strlen(context) + 1, NULL);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:100: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).
	    strlen(policydb->p_user_val_to_name[context->user - 1]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:102: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).
	    strlen(policydb->p_role_val_to_name[context->role - 1]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:103: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).
	scontext_len += strlen(policydb->p_type_val_to_name[context->type - 1]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:125: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).
	    strlen(policydb->p_user_val_to_name[context->user - 1]) + 1 +
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:126: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).
	    strlen(policydb->p_role_val_to_name[context->role - 1]) + 1 +
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context.c:127: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).
	    strlen(policydb->p_type_val_to_name[context->type - 1]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context_record.c:308:4:  [1] (buffer) strlen:
  Does not handle 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(con->user),                 /* user length */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context_record.c:309:4:  [1] (buffer) strlen:
  Does not handle 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(con->role),                 /* role length */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context_record.c:310:4:  [1] (buffer) strlen:
  Does not handle 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(con->type),                 /* type length */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/context_record.c:311: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).
			(con->mls) ? strlen(con->mls) : 0, /* mls length */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:24:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, ptr, size);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:25: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).
	for (i = strlen(dest) - 1; i > 0; i--) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genbools.c:51:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name1, tok, BUFSIZ - 1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/genusers.c:56: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).
		nread = strlen(buffer);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendport_record.c:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_key->ibdev_name, ibdev_name, IB_DEVICE_NAME_MAX);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendport_record.c:173:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_ibdev_name, ibendport->ibdev_name, IB_DEVICE_NAME_MAX);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendport_record.c:194:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp, ibdev_name, IB_DEVICE_NAME_MAX);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendport_record.c:240:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(new_ibendport->ibdev_name, ibendport->ibdev_name, IB_DEVICE_NAME_MAX);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/ibendports.c:37:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp_ibendport->u.ibendport.dev_name, ibdev_name, IB_DEVICE_NAME_MAX);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:1008: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).
		len += strlen(val_to_name[start]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:1010: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(val_to_name[i-1]) + strlen("(range  ) ");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:1010: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).
			len += strlen(val_to_name[i-1]) + strlen("(range  ) ");
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_cil.c:1012: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(val_to_name[i-1]) + 2;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:65: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(fmt) + 1; /* +1 for '\0' */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:69: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).
		len += strlen(s) - 2; /* -2 for each %s in fmt */
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:276: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).
		len += strlen(strs->list[i]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_common.c:305: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(strs->list[i]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:993: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).
		len += strlen(val_to_name[start]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:995: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(val_to_name[i]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:1476: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(strs->list[i]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/kernel_to_conf.c:2144: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(types) > 900) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:123: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(policydb->
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:135: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).
				    strlen(policydb->p_cat_val_to_name[i]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:140: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).
					    strlen(policydb->
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:148: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(policydb->p_cat_val_to_name[i - 1]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:190: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(policydb->
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:209: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).
				    strlen(policydb->p_cat_val_to_name[i]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:222: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).
					    strlen(policydb->
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/mls.c:236: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).
			scontextp += strlen(policydb->p_cat_val_to_name[i - 1]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module.c:742: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).
			if (len != strlen(POLICYDB_MOD_STRING)) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:760: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(pdb->name) + strlen(infix) + num_digits(num_attrs) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:760: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).
	len = strlen(pdb->name) + strlen(infix) + num_digits(num_attrs) + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1149: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).
		len += strlen(names[i]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1150: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 (len < strlen(names[i])) {
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1287: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).
			len = strlen(val1) + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1341: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).
			len = strlen(val1) + strlen(val2) + strlen(op) + (num_params * 1) + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1341: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).
			len = strlen(val1) + strlen(val2) + strlen(op) + (num_params * 1) + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1341:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(val1) + strlen(val2) + strlen(op) + (num_params * 1) + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1784: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(op) + strlen(attr1) + strlen(attr2) + 2 + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1784: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).
				len = strlen(op) + strlen(attr1) + strlen(attr2) + 2 + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1784:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(op) + strlen(attr1) + strlen(attr2) + 2 + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1821: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(op) + strlen(attr1) +  strlen(names) + 2 + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1821: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).
				len = strlen(op) + strlen(attr1) +  strlen(names) + 2 + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1821:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(op) + strlen(attr1) +  strlen(names) + 2 + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1878: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).
			len = strlen(val1) + strlen(val2) + strlen(op) + (num_params * 1) + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1878: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).
			len = strlen(val1) + strlen(val2) + strlen(op) + (num_params * 1) + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:1878:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen(val1) + strlen(val2) + strlen(op) + (num_params * 1) + 2 + 1;
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/module_to_cil.c:3235: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).
		prefix_len = strlen(prefix);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb.c:737:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	key = malloc(strlen(OBJECT_R) + 1);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb.c:3060: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(newc->u.name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/policydb.c:3061: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).
				len2 = strlen(c->u.name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:716: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).
			b_len = strlen(b);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:718: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).
			a_len = strlen(a);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:737: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).
			b_len = strlen(b);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/services.c:2284: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(c->u.name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/symtab.c:22: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).
	size = strlen(keyp);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:456: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:484: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:576: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(ft->name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:664: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:866: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:891: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:974: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:976: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).
		len2 = strlen(cladatum->comkey);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1080: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1155: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1224: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(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1358: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(c->u.name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1402: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(c->u.name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1431: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(c->u.ibendport.dev_name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1468: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(c->u.name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1525: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(genfs->fstype);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1541: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).
			len = strlen(c->u.name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:1850: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(ftr->name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:2012:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t key_len = strlen(key);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:2115: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(policydb_target_strings[p->target_platform]);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:2119: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(POLICYDB_MOD_STRING);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:2154: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(p->name);
data/android-platform-external-libselinux-10.0.0+r36/libsepol/src/write.c:2162: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(p->version);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcscolor.c:224:8:  [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.
	ret = sscanf(buffer, "%8s %255s = %255s %255s", rule, pat, f, b);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcscolor.c:335:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat(result, buf, result_size-1);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:668: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 *p = str + strlen(str);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:950:2:  [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(buffer, "[");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:952:2:  [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(buffer, "]");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:957: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).
	return strlen(*(char **)p2) - strlen(*(char **)p1);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:957: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).
	return strlen(*(char **)p2) - strlen(*(char **)p1);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:964: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).
	int w1_len=strlen(w1->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:965: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).
	int w2_len=strlen(w2->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1012: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.
		if (i < n_el) strcat(buffer,"|");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1025:18:  [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.
				if (a->next) strcat(buffer,"|");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1027: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(buffer,")");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1034: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(buffer, "^");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1054:11:  [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.
			if (i) strcat(buffer,"|");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1068: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(buffer, "$");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1077:18:  [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.
				if (a->next) strcat(buffer,"|");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1079: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(buffer,")");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1115: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).
	work_len = strlen(work);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1127:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		log_debug(" compute_raw_from_trans match = %s len = %u\n", match, strlen(match));
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1197: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 plen = strlen(p);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1201: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 wlen = strlen(w->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1202: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 (plen >= wlen && !strncmp(w->text, p, strlen(w->text))){
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1217: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).
									p += strlen(w->text);
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1427:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat(buffer, " ");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1431:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
						strcat(buffer, " ");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1440:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
						strcat(buffer, " ");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstrans.c:1446:8:  [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(buffer, " ");
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstransd.c:95: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).
	data_size = strlen(data) + 1;
data/android-platform-external-libselinux-10.0.0+r36/mcstrans/src/mcstransd.c:491:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, SETRANS_UNIX_SOCKET, sizeof(addr.sun_path) - 1);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:125:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!range || !strlen(range) || !newlevel || !strlen(newlevel))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:125: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 (!range || !strlen(range) || !newlevel || !strlen(newlevel))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:138: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(newlevel) + 1 + strlen(tmpptr + 1) + 1;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:138:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(newlevel) + 1 + strlen(tmpptr + 1) + 1;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:148: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).
			len = strlen(newlevel) + 1 + strlen(range) + 1;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:148: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).
			len = strlen(newlevel) + 1 + strlen(range) + 1;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:239: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).
	size = strlen(keyp);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/newrole/newrole.c:375: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).
	memset(unencrypted_password_s, 0, strlen(unencrypted_password_s));
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/open_init_pty.c:153:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t n = read(fd, b->wptr, rb_space(b));
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:212: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).
	memset(unencrypted_password_s, 0, strlen(unencrypted_password_s));
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/run_init/run_init.c:318: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).
		buf_len = strlen(buf);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:120: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(def) > strlen("lt-"))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:120: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(def) > strlen("lt-"))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:121: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).
		    && !memcmp("lt-", def, strlen("lt-")))
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/secon/secon.c:562: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 ansi_len = strlen("\e[99;99m") + 1;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/semodule/semodule.c:601: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).
						size = strlen(tmp);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/semodule/semodule.c:607: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).
						size = strlen(tmp);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:101:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int proclen = strlen(PROCS);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:102:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int filelen = strlen(FILES);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:113: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).
		buf_len = strlen(buf);
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:266: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).
	root_path[strlen(root_path) - 1] = '\0';
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:368: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(bools[i]) + 1 > COL)
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/sestatus/sestatus.c:369: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).
					COL = strlen(bools[i]) + 1;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/restore.c:93: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(globbuf.gl_pathv[i]) - 2;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setfiles/setfiles.c:71: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(arg) == 1 && strncmp(arg, "/", 1) == 0) {
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setsebool/setsebool.c:78: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(argv[optind]) + strlen(argv[optind + 1]) + 2;
data/android-platform-external-libselinux-10.0.0+r36/policycoreutils/setsebool/setsebool.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).
		len = strlen(argv[optind]) + strlen(argv[optind + 1]) + 2;
data/android-platform-external-libselinux-10.0.0+r36/restorecond/restore.c:87: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(globbuf.gl_pathv[i]) - 2;
data/android-platform-external-libselinux-10.0.0+r36/restorecond/watch.c:67: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).
			len = strlen(globbuf.gl_pathv[i]) - 2;
data/android-platform-external-libselinux-10.0.0+r36/restorecond/watch.c:184:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, BUF_LEN);
data/android-platform-external-libselinux-10.0.0+r36/restorecond/watch.c:237: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).
		int l = strlen(buffer) - 1;

ANALYSIS SUMMARY:

Hits = 1312
Lines analyzed = 195245 in approximately 4.57 seconds (42754 lines/second)
Physical Source Lines of Code (SLOC) = 147111
Hits@level = [0] 1807 [1] 489 [2] 533 [3]  48 [4] 218 [5]  24
Hits@level+ = [0+] 3119 [1+] 1312 [2+] 823 [3+] 290 [4+] 242 [5+]  24
Hits/KSLOC@level+ = [0+] 21.2017 [1+] 8.91844 [2+] 5.59442 [3+] 1.9713 [4+] 1.64502 [5+] 0.163142
Dot directories skipped = 2 (--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.