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/vboot-utils-0~R87-13505.B/cgpt/cgpt.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt.h
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_boot.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_create.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_edit.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_endian.h
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_legacy.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_nor.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_nor.h
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_prioritize.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_repair.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_add.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_boot.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_create.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_edit.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_find.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_legacy.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_prioritize.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_repair.c
Examining data/vboot-utils-0~R87-13505.B/cgpt/cmd_show.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2api.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2auxfw_sync.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2common.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2context.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2crc8.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2crypto.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2ec_sync.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2gbb.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2hmac.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2kernel.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2misc.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2nvstorage.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2recovery_reasons.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2rsa.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2secdata_firmware.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2secdata_fwmp.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2secdata_kernel.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha1.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha256.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha512.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha_utility.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2stub.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2stub_hwcrypto.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2tpm_bootmode.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2ui.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/2ui_screens.c
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2api.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2common.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2constants.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2crc8.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2crypto.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2fw_hash_tags.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2gbb.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2gbb_flags.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2hmac.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2id.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2kernel.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2misc.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2nvstorage.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2nvstorage_fields.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2recovery_reasons.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2return_codes.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2rsa.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2secdata.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2secdata_struct.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2sha.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2struct.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2sysincludes.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2tpm_bootmode.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2ui.h
Examining data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2ui_private.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/gpt.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/gpt_misc.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/tlcl.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/tpm1_tss_constants.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/tpm2_marshaling.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/tpm2_tss_constants.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/tss_constants.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/vb2_api.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/vb2_constants.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/vb2_internals_please_do_not_use.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/vb2_sha.h
Examining data/vboot-utils-0~R87-13505.B/firmware/include/vboot_api.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/cgptlib.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/cgptlib_internal.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/crc32.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/include/cgptlib.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/include/cgptlib_internal.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/include/crc32.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/gpt_misc.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/load_kernel_fw.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/vboot_audio.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/vboot_kernel.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/vboot_struct.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/vboot_test.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/vboot_ui_legacy.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/vboot_ui_legacy_menu_private.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/include/vboot_ui_legacy_wilco.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/marshaling.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/include/tlcl_internal.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/include/tlcl_structures.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/include/tpm_error_messages.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/mocked_tlcl.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_api_kernel.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_audio.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_kernel.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy_clamshell.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy_menu.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy_wilco.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib20/api_kernel.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib20/include/vb2_common.h
Examining data/vboot-utils-0~R87-13505.B/firmware/lib20/kernel.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib20/misc.c
Examining data/vboot-utils-0~R87-13505.B/firmware/lib20/packed_key.c
Examining data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c
Examining data/vboot-utils-0~R87-13505.B/firmware/stub/vboot_api_stub.c
Examining data/vboot-utils-0~R87-13505.B/firmware/stub/vboot_api_stub_disk.c
Examining data/vboot-utils-0~R87-13505.B/firmware/stub/vboot_api_stub_init.c
Examining data/vboot-utils-0~R87-13505.B/firmware/stub/vboot_api_stub_stream.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_create.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_dump_kernel_config.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_load_fmap.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_pcr.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_show.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_update.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_validate_rec_mrc.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_firmware.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_key.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_keyblock.c
Examining data/vboot-utils-0~R87-13505.B/futility/dump_kernel_config_lib.c
Examining data/vboot-utils-0~R87-13505.B/futility/file_type.c
Examining data/vboot-utils-0~R87-13505.B/futility/file_type.h
Examining data/vboot-utils-0~R87-13505.B/futility/file_type_bios.c
Examining data/vboot-utils-0~R87-13505.B/futility/file_type_bios.h
Examining data/vboot-utils-0~R87-13505.B/futility/file_type_rwsig.c
Examining data/vboot-utils-0~R87-13505.B/futility/file_type_usbpd1.c
Examining data/vboot-utils-0~R87-13505.B/futility/futility.c
Examining data/vboot-utils-0~R87-13505.B/futility/futility.h
Examining data/vboot-utils-0~R87-13505.B/futility/futility_options.h
Examining data/vboot-utils-0~R87-13505.B/futility/kernel_blob.h
Examining data/vboot-utils-0~R87-13505.B/futility/misc.c
Examining data/vboot-utils-0~R87-13505.B/futility/ryu_root_header.c
Examining data/vboot-utils-0~R87-13505.B/futility/updater.c
Examining data/vboot-utils-0~R87-13505.B/futility/updater.h
Examining data/vboot-utils-0~R87-13505.B/futility/updater_archive.c
Examining data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c
Examining data/vboot-utils-0~R87-13505.B/futility/updater_utils.c
Examining data/vboot-utils-0~R87-13505.B/futility/updater_utils.h
Examining data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c
Examining data/vboot-utils-0~R87-13505.B/futility/vb1_helper.h
Examining data/vboot-utils-0~R87-13505.B/futility/vb2_helper.c
Examining data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_kernel.c
Examining data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c
Examining data/vboot-utils-0~R87-13505.B/host/arch/mips/lib/crossystem_arch.c
Examining data/vboot-utils-0~R87-13505.B/host/arch/stub/lib/crossystem_arch.c
Examining data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c
Examining data/vboot-utils-0~R87-13505.B/host/include/cgpt_params.h
Examining data/vboot-utils-0~R87-13505.B/host/include/crossystem.h
Examining data/vboot-utils-0~R87-13505.B/host/include/crossystem_vbnv.h
Examining data/vboot-utils-0~R87-13505.B/host/include/openssl_compat.h
Examining data/vboot-utils-0~R87-13505.B/host/include/vboot_host.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/chromeos_config.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/crypto.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/extract_vmlinuz.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/file_keys.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/fmap.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/host_common.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/host_key2.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/host_keyblock.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/host_misc.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/host_signature.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/host_signature2.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/chromeos_config.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/crossystem_arch.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/file_keys.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/flashrom.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/fmap.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/host_common.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/host_key.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/host_keyblock.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/host_misc.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/host_signature.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/signature_digest.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/subprocess.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/include/util_misc.h
Examining data/vboot-utils-0~R87-13505.B/host/lib/signature_digest.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/subprocess.c
Examining data/vboot-utils-0~R87-13505.B/host/lib/util_misc.c
Examining data/vboot-utils-0~R87-13505.B/host/lib21/host_common.c
Examining data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c
Examining data/vboot-utils-0~R87-13505.B/host/lib21/host_misc.c
Examining data/vboot-utils-0~R87-13505.B/host/lib21/host_signature.c
Examining data/vboot-utils-0~R87-13505.B/host/lib21/include/host_common21.h
Examining data/vboot-utils-0~R87-13505.B/host/lib21/include/host_key21.h
Examining data/vboot-utils-0~R87-13505.B/host/lib21/include/host_misc21.h
Examining data/vboot-utils-0~R87-13505.B/host/lib21/include/host_signature21.h
Examining data/vboot-utils-0~R87-13505.B/host/lib21/include/host_struct21.h
Examining data/vboot-utils-0~R87-13505.B/tests/cgpt_fuzzer.c
Examining data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c
Examining data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.h
Examining data/vboot-utils-0~R87-13505.B/tests/chromeos_config_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/crc32_test.c
Examining data/vboot-utils-0~R87-13505.B/tests/crc32_test.h
Examining data/vboot-utils-0~R87-13505.B/tests/futility/binary_editor.c
Examining data/vboot-utils-0~R87-13505.B/tests/futility/test_file_types.c
Examining data/vboot-utils-0~R87-13505.B/tests/futility/test_not_really.c
Examining data/vboot-utils-0~R87-13505.B/tests/hmac_test.c
Examining data/vboot-utils-0~R87-13505.B/tests/rsa_padding_test.h
Examining data/vboot-utils-0~R87-13505.B/tests/sha_benchmark.c
Examining data/vboot-utils-0~R87-13505.B/tests/sha_test_vectors.h
Examining data/vboot-utils-0~R87-13505.B/tests/sha_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/test_common.c
Examining data/vboot-utils-0~R87-13505.B/tests/test_common.h
Examining data/vboot-utils-0~R87-13505.B/tests/timer_utils.c
Examining data/vboot-utils-0~R87-13505.B/tests/timer_utils.h
Examining data/vboot-utils-0~R87-13505.B/tests/tlcl_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/lock.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/readonly.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/startup.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tlcl_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tlcl_tests.h
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_earlyextend.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_earlynvram.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_earlynvram2.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_enable.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_fastenable.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_globallock.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_redefine_unowned.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_spaceperm.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_testsetup.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_timing.c
Examining data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_writelimit.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb20_api_kernel_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb20_kernel_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb20_misc_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb20_rsa_padding_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb20_verify_fw.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb21_host_common_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb21_host_misc_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb21_host_sig_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_api_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_auxfw_sync_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_common_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_ec_sync_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_host_key_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_kernel_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_keyblock_fuzzer.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_misc_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_nvstorage_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_preamble_fuzzer.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_recovery_reasons_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_rsa_utility_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_secdata_firmware_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_secdata_fwmp_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_secdata_kernel_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_sha_api_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vb2_ui_utility_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vboot_api_kernel4_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vboot_api_kernel_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_clamshell_beep_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_clamshell_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_menu_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_tests.c
Examining data/vboot-utils-0~R87-13505.B/tests/verify_kernel.c
Examining data/vboot-utils-0~R87-13505.B/utility/crossystem.c
Examining data/vboot-utils-0~R87-13505.B/utility/dumpRSAPublicKey.c
Examining data/vboot-utils-0~R87-13505.B/utility/include/gbb_utility.h
Examining data/vboot-utils-0~R87-13505.B/utility/include/tpmextras.h
Examining data/vboot-utils-0~R87-13505.B/utility/load_kernel_test.c
Examining data/vboot-utils-0~R87-13505.B/utility/pad_digest_utility.c
Examining data/vboot-utils-0~R87-13505.B/utility/signature_digest_utility.c
Examining data/vboot-utils-0~R87-13505.B/utility/tlcl_generator.c
Examining data/vboot-utils-0~R87-13505.B/utility/tpmc.c
Examining data/vboot-utils-0~R87-13505.B/utility/verify_data.c

FINAL RESULTS:

data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c:169:7:  [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(exe_link, resolved_cgpt, sizeof(resolved_cgpt) - 1) == -1) {
data/vboot-utils-0~R87-13505.B/futility/futility.c:136: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.
	r = readlink(buf, caller_buf, sizeof(caller_buf) - 1);
data/vboot-utils-0~R87-13505.B/futility/futility.c:144: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.
	r = readlink(buf, caller_buf, sizeof(caller_buf) - 1);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:37:3:  [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, format, ap);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:698: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(buf, supported_types[i].description);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:92:7:  [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(format, filename, partnum);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:193:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(pathname, "%s/%s", devdirs[i], basename);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:202:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmpname, "%s/%s/device", SYS_BLOCK_DIR, basename);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:254: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(partname_prev, partname);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_nor.c:61:5:  [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[0], (char *const *)argv);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:111:3:  [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(PARTITION_FMT, (uint64_t)entry->starting_lba,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:116:5:  [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(PARTITION_MORE, "Type: ", type);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:119:5:  [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(PARTITION_MORE, "Type: ", type);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:122:3:  [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(PARTITION_MORE, "UUID: ", unique);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:164:5:  [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(PARTITION_MORE, "Attr: ", contents);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:246:7:  [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(TITLE_FMT, "start", "size", "part", "contents");
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:265:7:  [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(PARTITION_FMT, (uint64_t)entry->starting_lba,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:294:5:  [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(TITLE_FMT, "start", "size", "part", "contents");
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:297:5:  [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(GPT_FMT, (uint64_t)0, (uint64_t)GPT_PMBR_SECTORS, "", buf);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:300:7:  [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(GPT_FMT, (uint64_t)GPT_PMBR_SECTORS,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:304:9:  [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(GPT_FMT, (uint64_t)GPT_PMBR_SECTORS,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:307:9:  [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(GPT_FMT, (uint64_t)GPT_PMBR_SECTORS,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:316:17:  [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.
        require(snprintf(indent, sizeof(indent), GPT_MORE) < sizeof(indent));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:323:7:  [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(GPT_FMT, (uint64_t)primary_header->entries_lba,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:336:7:  [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(GPT_FMT,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:341:7:  [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(GPT_FMT, (uint64_t)secondary_header->entries_lba,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:362:9:  [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(GPT_FMT,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:366:9:  [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(GPT_FMT, (uint64_t)GPT_PMBR_SECTORS,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:384:17:  [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.
        require(snprintf(indent, sizeof(indent), GPT_MORE) < sizeof(indent));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c:129: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(size, sizeof(size), "%" PRIu64, drive_size);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c:191:7:  [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.
  if (execv(argv[0], (char * const *)argv) == -1) {
data/vboot-utils-0~R87-13505.B/firmware/2lib/2misc.c:605: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.
		used += snprintf(buf + used, DEBUG_INFO_MAX_LENGTH - used, \
data/vboot-utils-0~R87-13505.B/firmware/2lib/2stub.c:23: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/vboot-utils-0~R87-13505.B/firmware/2lib/include/2api.h:924:23:  [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/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy.c:48: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.
		used += snprintf(buf + used, DEBUG_INFO_SIZE - used, format, \
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.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, format, ap);
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:394: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(outfile, s);
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:206:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(buf, "  // gap in %s", name);
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:415: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(usage, argv[0]);
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:585: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((char *)(gbb_base + gbb->hwid_offset),
data/vboot-utils-0~R87-13505.B/futility/cmd_load_fmap.c:43: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(usage, argv[0], argv[0]);
data/vboot-utils-0~R87-13505.B/futility/cmd_pcr.c:40: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(usage, argv[0], argv[0], argv[0]);
data/vboot-utils-0~R87-13505.B/futility/cmd_show.c:425: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(usage, "show");
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:310: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(usage_pubkey, VB2_ALG_COUNT - 1);
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:364: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(usage_bios, sign_option.version);
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:395: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(usage_new_kpart, sign_option.kloadaddr, sign_option.padding);
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:421: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(usage_old_kpart, sign_option.padding);
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:551: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(usage_default, argv[0], argv[0]);
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_kernel.c:146: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(usage, argv[0], argv[0], argv[0], argv[0]);
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_keyblock.c:82: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(usage, argv[0]);
data/vboot-utils-0~R87-13505.B/futility/futility.h:78:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "FATAL: %s: " format, __func__, \
data/vboot-utils-0~R87-13505.B/futility/futility.h:84:28:  [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 ERROR(format, ...) fprintf(stderr, "ERROR: %s: " format, __func__, \
data/vboot-utils-0~R87-13505.B/futility/futility.h:86:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define WARN(format, ...) fprintf(stderr, "WARNING: %s: " format, __func__, \
data/vboot-utils-0~R87-13505.B/futility/futility.h:88:27:  [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 INFO(format, ...) fprintf(stderr, "INFO: %s: " format, __func__, \
data/vboot-utils-0~R87-13505.B/futility/futility.h:90: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 STATUS(format, ...) fprintf(stderr, ">> " format, ##__VA_ARGS__ )
data/vboot-utils-0~R87-13505.B/futility/misc.c:42: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, format, ap);
data/vboot-utils-0~R87-13505.B/futility/misc.c:228:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("/bin/cp", "/bin/cp", infile, outfile, NULL);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:169: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.
	r = access(path, R_OK);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:210: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(dirname, W_OK) != 0) {
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:101:6:  [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.
	r = system(cmd);
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:374:13:  [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.
	FILE *fp = popen(command, "r");
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:592:7:  [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.
		r = system(command);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:79:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(filename, sizeof(filename), FDT_BASE_PATH "/%s", property);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:111: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(path, size, FDT_BASE_PATH "/%s", property);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:335:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(nvctx_path, sizeof(nvctx_path), NVCTX_PATH, emmc_dev);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:378:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(nvctx_path, sizeof(nvctx_path), NVCTX_PATH, emmc_dev);
data/vboot-utils-0~R87-13505.B/host/lib/chromeos_config.c:45:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(filepath, sizeof(filepath), CHROMEOS_CONFIG_BASE "%s/%s", path,
data/vboot-utils-0~R87-13505.B/host/lib/host_signature.c:104:7:  [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.
		if (execl(external_signer, external_signer, pem_file,
data/vboot-utils-0~R87-13505.B/host/lib/subprocess.c:302:3:  [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.
		execvp(*argv, (char *const *)argv);
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:223: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((char *)buf + pkey.c.fixed_size, key->desc);
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:451: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((char *)(buf + key.c.fixed_size), pubk->desc);
data/vboot-utils-0~R87-13505.B/host/lib21/host_signature.c:149: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((char *)buf + s.c.fixed_size, desc);
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1643:4:  [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(COL_RED "[ERROR]\n\n" COL_STOP);
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1646:4:  [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(COL_GREEN "[PASS]\n\n" COL_STOP);
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1652:3:  [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(COL_RED "The following %d test cases are failed:\n"
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.h:24:3:  [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(COL_RED " fail " COL_STOP \
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:51:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(test_name, "%s: HMAC-%s (key_size=%d)",
data/vboot-utils-0~R87-13505.B/tests/test_common.c:23:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, "%s: %s ... " COL_GREEN "PASSED\n" COL_STOP,
data/vboot-utils-0~R87-13505.B/tests/test_common.c:30:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, "%s: %s ... " COL_RED "FAILED\n" COL_STOP,
data/vboot-utils-0~R87-13505.B/tests/test_common.c:124:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, "%s: %s, %s ... " COL_GREEN "PASSED\n" COL_STOP,
data/vboot-utils-0~R87-13505.B/tests/test_common.c:199:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, COL_RED "Unexpected ABORT encountered, "
data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_timing.c:30:3:  [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(#op ": error %#x\n", __result);          \
data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_timing.c:36: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(#op ": %d ms\n", time);                           \
data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tpmtest_timing.c:38:3:  [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(#op " exceeded " #time_limit " ms\n");    \
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c:24:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(test_name, "%s (alg=%d)",
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c:40:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(test_name, "%s (alg=%d)",
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c:58:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(test_name, "%s (alg=%d)",
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c:80:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(test_name, "%s (alg=%d)",
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:183: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((char *)&test.hash.raw[sizeof(value) - 1], sentinel); \
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:240:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s missing screen %s",
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:247:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s screen of %s", text_info, text);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:252:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s locale_id of %s", text_info, text);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:257:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s selected_item of %s",
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:263:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s disabled_item_mask of %s",
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:278:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s no screen", text_info);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:280:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s no extra screens", text_info);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:166:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s missing screen %s",
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:173:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s screen of %s", text_info, text);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:178:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s locale_id of %s", text_info, text);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:183:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s selected_item of %s",
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:189:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s disabled_item_mask of %s",
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:195:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s current_page of %s",
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:210:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s no screen", text_info);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:212:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(text_buf, "  %s no extra screens", text_info);
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:27:31:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define LOGCALL(fmt, args...) sprintf(call_log + strlen(call_log), fmt, ##args)
data/vboot-utils-0~R87-13505.B/utility/crossystem.c:209:5:  [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(p->format ? p->format : "%d", v);
data/vboot-utils-0~R87-13505.B/utility/crossystem.c:235: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.
        snprintf(buf, sizeof(buf), p->format ? p->format : "%d", v);
data/vboot-utils-0~R87-13505.B/utility/tpmc.c:72:11:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  int n = sscanf(string, format, value, tail);
data/vboot-utils-0~R87-13505.B/cgpt/cmd_add.c:51:13:  [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 ((c=getopt(argc, argv, ":hi:b:s:t:u:l:S:T:P:R:B:A:D:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_boot.c:41:13:  [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 ((c=getopt(argc, argv, ":hi:b:pD:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_create.c:37:13:  [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 ((c=getopt(argc, argv, ":hzp:D:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_edit.c:35:13:  [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 ((c=getopt(argc, argv, ":hu:D:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_find.c:84:13:  [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 ((c=getopt(argc, argv, ":hv1nt:u:l:M:O:D:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_legacy.c:36:13:  [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 ((c=getopt(argc, argv, ":hepD:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_prioritize.c:50:13:  [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 ((c=getopt(argc, argv, ":hi:fP:D:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_repair.c:35:13:  [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 ((c=getopt(argc, argv, ":hvD:")) != -1)
data/vboot-utils-0~R87-13505.B/cgpt/cmd_show.c:56:13:  [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 ((c=getopt(argc, argv, ":hnvqi:bstulSTPRBAdD:")) != -1)
data/vboot-utils-0~R87-13505.B/firmware/include/tpm2_tss_constants.h:280:30:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		struct get_random_response random;
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/marshaling.c:262:34:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				 struct get_random_response *random)
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/marshaling.c:801:21:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				     &response->random);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:583:29:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	struct tpm2_get_random_cmd random;
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:584:52:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	struct get_random_response *response = &tpm2_resp.random;
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:587:42:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	offset = offsetof(struct tpm2_response, random.random_bytes.buffer);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:593:2:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	random.bytes_requested = length;
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:595:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	rv = tpm_send_receive(TPM2_GetRandom, &random, &tpm2_resp);
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:177:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *no_exit = getenv("TPM_NO_EXIT");
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:201: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.
	device_path = getenv("TPM_DEVICE_PATH");
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:308: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, "", long_opts, NULL)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:435:14:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt_long(argc, argv, ":xpFhH", long_opts, 0)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_kernel_config.c:43: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 (((i = getopt_long(argc, argv, ":", long_opts, NULL)) != -1) &&
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:379: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, short_opts, long_opts, 0)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_load_fmap.c:106: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, short_opts, long_opts, 0)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_pcr.c:119: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, ":i2", long_opts, NULL)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_show.c:487: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, short_opts, long_opts, 0)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:663: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, short_opts, long_opts,
data/vboot-utils-0~R87-13505.B/futility/cmd_update.c:155: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, short_opts, long_opts, 0)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_validate_rec_mrc.c:188: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 (((i = getopt_long(argc, argv, ":", long_opts, NULL)) != -1) &&
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_firmware.c:342: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, "", long_opts, NULL)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_kernel.c:255: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 (((i = getopt_long(argc, argv, ":", long_opts, NULL)) != -1) &&
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_key.c:172: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, "", long_opts, NULL)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_keyblock.c:262: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, "", long_opts, NULL)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/futility.c:326: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, "+:", long_opts, NULL)) != -1) {
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:464:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *servo_port = getenv(ENV_SERVOD_PORT);
data/vboot-utils-0~R87-13505.B/tests/futility/test_file_types.c:54:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	srcdir = getenv("SRCDIR");
data/vboot-utils-0~R87-13505.B/tests/tpm_lite/tlcl_tests.c:20:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		resilient_startup = getenv("TLCL_RESILIENT_STARTUP");
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:86: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, (char *const *)argv,
data/vboot-utils-0~R87-13505.B/utility/load_kernel_test.c:105: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 ((c = getopt(argc, argv, ":b:")) != -1) {
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c:15:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[64];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c:60: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(&entry->unique, &params->unique_guid, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c:68: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(&entry->type, &params->type_guid, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c:236: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(&params->type_guid, &entry->type, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c:237: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(&params->unique_guid, &entry->unique, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c:259: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(entry, &backup, sizeof(*entry));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_add.c:270: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(entry, &backup, sizeof(*entry));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_boot.c:41:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[GUID_STRLEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_boot.c:122: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(&drive.pmbr.boot_guid, &entry->unique, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_boot.c:126:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = open(params->bootfile, O_RDONLY);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_boot.c:142:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[GUID_STRLEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:327: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).
  drive->fd = open(drive_path, mode |
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:709:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(type, supported_types[i].type, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:967:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(gpt->secondary_entries, gpt->primary_entries, entries_size);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:971: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(gpt->secondary_entries, gpt->primary_entries, entries_size);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:974: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(gpt->primary_entries, gpt->secondary_entries, entries_size);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:988: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(&target->disk_uuid, &source->disk_uuid, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:1015: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(secondary_header, primary_header, sizeof(GptHeader));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:1022: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(primary_header, secondary_header, sizeof(GptHeader));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:1079:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[GUID_STRLEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_create.c:52: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(h->signature, GPT_HEADER_SIGNATURE, GPT_HEADER_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:121: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 partlabel[GPT_PARTNAME_LEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:188:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char pathname[BUFSIZE];        // we'll return this.
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:189:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmpname[BUFSIZE];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:221: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 partname[MAX_PARTITION_NAME_LEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:222: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 partname_prev[MAX_PARTITION_NAME_LEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:226:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen(PROC_PARTITIONS, "re");
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:259: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(PROC_MTD, "re");
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:268:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:285:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char nor_file[64];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_legacy.c:34: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(h1->signature, GPT_HEADER_SIGNATURE, GPT_HEADER_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_legacy.c:35: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(h2->signature, GPT_HEADER_SIGNATURE, GPT_HEADER_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_legacy.c:47: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(h1->signature, GPT_HEADER_SIGNATURE_IGNORED,
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_legacy.c:51: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(h1->signature, GPT_HEADER_SIGNATURE2, GPT_HEADER_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_legacy.c:52: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(h2->signature, GPT_HEADER_SIGNATURE2, GPT_HEADER_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_nor.c:41: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 *fp = fopen(sysfs_name, "r");
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_nor.c:115:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int dest_fd = open(dest, O_WRONLY | O_CLOEXEC | O_CREAT, 0600);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_nor.c:164:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int fd = open(source, O_RDONLY | O_CLOEXEC);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:85:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[GUID_STRLEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:102: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 contents[256];                   // scratch buffer for formatting output
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:104: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 type[GUID_STRLEN], unique[GUID_STRLEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:198:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];                      // scratch buffer for string conversion
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:253:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[GUID_STRLEN];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:295:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];                      // buffer for formatted PMBR content
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:314:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char indent[64];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_show.c:382:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char indent[64];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c:88: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 rw_gpt_path[PATH_MAX];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.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(my_argv, argv, sizeof(char *) * argc);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c:128: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 size[32];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c:156: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 resolved_cgpt[PATH_MAX];
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_wrapper.c:158: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 exe_link[40];
data/vboot-utils-0~R87-13505.B/cgpt/cmd_find.c:43:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen(filename, "rb");
data/vboot-utils-0~R87-13505.B/firmware/2lib/2api.c:193: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(dest, digest, digest_size);
data/vboot-utils-0~R87-13505.B/firmware/2lib/2api.c:370: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(digest_out, digest, digest_size);
data/vboot-utils-0~R87-13505.B/firmware/2lib/2crypto.c:23: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 *vb2_sig_names[VB2_SIG_ALG_COUNT] = {
data/vboot-utils-0~R87-13505.B/firmware/2lib/2crypto.c:34: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 *vb2_hash_names[VB2_HASH_ALG_COUNT] = {
data/vboot-utils-0~R87-13505.B/firmware/2lib/2hmac.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(k, key, key_size);
data/vboot-utils-0~R87-13505.B/firmware/2lib/2misc.c:617:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sha1sum[VB2_SHA1_DIGEST_SIZE * 2 + 1];
data/vboot-utils-0~R87-13505.B/firmware/2lib/2misc.c:630: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 hwid[VB2_GBB_HWID_MAX_SIZE];
data/vboot-utils-0~R87-13505.B/firmware/2lib/2misc.c:634:4:  [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(hwid, "{INVALID}");
data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha1.c:147: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(&ctx->buf.b[i], p, sizeof(ctx->buf) - i);
data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha256.c:265: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(&ctx->block[ctx->size], data, rem_size);
data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha256.c:282: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(ctx->block, &shifted_data[block_nb << 6],
data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha512.c:297: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(&ctx->block[ctx->size], data, rem_size);
data/vboot-utils-0~R87-13505.B/firmware/2lib/2sha512.c:314: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(ctx->block, &shifted_data[block_nb << 7],
data/vboot-utils-0~R87-13505.B/firmware/2lib/2ui.c:349: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(&prev_state, ui.state, sizeof(*ui.state));
data/vboot-utils-0~R87-13505.B/firmware/2lib/2ui_screens.c:980: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(&items[0],
data/vboot-utils-0~R87-13505.B/firmware/2lib/2ui_screens.c:992: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(&items[num_items - menu_after_len],
data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2crypto.h:83: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.
extern const char *vb2_sig_names[VB2_SIG_ALG_COUNT];
data/vboot-utils-0~R87-13505.B/firmware/2lib/include/2crypto.h:84: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.
extern const char *vb2_hash_names[VB2_HASH_ALG_COUNT];
data/vboot-utils-0~R87-13505.B/firmware/include/gpt.h:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char signature[GPT_HEADER_SIGNATURE_SIZE];
data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/cgptlib_internal.c:344: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(header2, header1, sizeof(GptHeader));
data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/cgptlib_internal.c:354: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(header1, header2, sizeof(GptHeader));
data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/cgptlib_internal.c:369: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(entries2, entries1, entries_size);
data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/cgptlib_internal.c:374: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(entries1, entries2, entries_size);
data/vboot-utils-0~R87-13505.B/firmware/lib/cgptlib/cgptlib_internal.c:445:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest, &e->unique, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/marshaling.c:285: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, blob, blob_size);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/marshaling.c:414: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->buffer, data->size);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:371: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(auth_policy, resp->nvPublic.authPolicy.buffer,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:534: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(data, response->nvr.buffer.t.buffer, length);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:603: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(data, response->random_bytes.buffer, *size);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm2_lite/tlcl.c:668: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(vendor_specific_buf, prop_string, total_size);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/mocked_tlcl.c:178: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(out_digest, in_digest, kPcrDigestLength);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:181: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(session->nonce_even.nonce, cursor, sizeof(TPM_NONCE));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:185: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(session->shared_secret, secret, TPM_AUTH_DATA_LEN);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:227: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(session->nonce_even.nonce, cursor, sizeof(TPM_NONCE));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:235: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(hmac_input, nonce_even_osap, sizeof(TPM_NONCE));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:236: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(hmac_input + sizeof(TPM_NONCE), cmd.buffer + cmd.nonceOddOSAP,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:294: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(cursor, auth_session->nonce_odd.nonce, sizeof(TPM_NONCE));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:299: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(buf + TPM_SHA1_160_HASH_LEN, auth_session->nonce_even.nonce,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:301: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(buf + TPM_SHA1_160_HASH_LEN + sizeof(TPM_NONCE),
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:357: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(hmac_input + TPM_SHA1_160_HASH_LEN, cursor, sizeof(TPM_NONCE));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:359: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(hmac_input + TPM_SHA1_160_HASH_LEN + sizeof(TPM_NONCE),
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:379: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(auth_session->nonce_even.nonce, response_buffer + auth_offset,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:466:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd, &tpm_nv_definespace_cmd, sizeof(tpm_nv_definespace_cmd));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:476: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(cmd + tpm_nv_definespace_cmd.pcr_info_read,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:478: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(cmd + tpm_nv_definespace_cmd.pcr_info_write,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:609: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(&policy->pcr_info_write, &policy->pcr_info_read,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:629:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd.buffer + tpm_nv_write_cmd.data, data, length);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:652: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(data, nv_read_cursor, result_length);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:675: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(data, pcr_read_cursor, kPcrDigestLength);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:778: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(pflags,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:797: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(vflags,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:839:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd.buffer + cmd.inDigest, in_digest, kPcrDigestLength);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:845: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(out_digest, response + kTpmResponseHeaderLength,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:884: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(&pcr_info->pcrSelection, *cursor, pcr_selection_size);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:890: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(&pcr_info->digestAtRelease, *cursor, sizeof(TPM_COMPOSITE_HASH));
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:970: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(owned,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:1001: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(data, get_random_cursor, *size);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:1049: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(vendor_specific_buf, cursor,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:1202: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(modulus, *buffer, actual_modulus_size);
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:1294:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd.buffer + tpm_takeownership_cmd.encOwnerAuth, enc_owner_auth,
data/vboot-utils-0~R87-13505.B/firmware/lib/tpm_lite/tlcl.c:1296:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cmd.buffer + tpm_takeownership_cmd.encSrkAuth, enc_srk_auth,
data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_kernel.c:387: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(body_readptr, kbuf + body_offset, body_copied);
data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy.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 buf[DEBUG_INFO_SIZE] = "";
data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy.c:58:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sha1sum[VB2_SHA1_DIGEST_SIZE * 2 + 1];
data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy.c:67: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 hwid[VB2_GBB_HWID_MAX_SIZE];
data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy.c:71:4:  [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(hwid, "{INVALID}");
data/vboot-utils-0~R87-13505.B/firmware/lib/vboot_ui_legacy_wilco.c:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data_value[VENDOR_DATA_LENGTH + 1];
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:148:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(out, response, n);
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:179: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).
		exit_on_failure = !atoi(no_exit);
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:209: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).
		tpm_fd = open(device_path, O_RDWR | O_CLOEXEC);
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:296:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		urandom_fd = open("/dev/urandom", O_RDONLY);
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:94: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(infile, "rb");
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:129: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(outext, ".vbprivk");
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:146: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((uint8_t *)vb2_packed_key_data(pubkey), keyb_data, keyb_size);
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:149: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(outext, ".vbpubk");
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:181: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(infile, "rb");
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:249: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(pubkey_buf, keyb_data, keyb_size);
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:270:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((struct vb2_id *)pubkey->id, &opt_id, sizeof(opt_id));
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:275: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(outext, ".vbprik2");
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:283: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(outext, ".vbpubk2");
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80];		/* DWR: magic number */
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.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 *extract_names[argc >= 1 ? argc : 1];
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:122:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			FILE *fp = fopen(outname, "wb");
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:204:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80];
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:317:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[FMAP_NAMELEN + 1];
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:477: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[optind], O_RDONLY);
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:177: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(gbb->signature, VB2_GBB_SIGNATURE, VB2_GBB_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:210:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "rb");
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:265: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, "wb");
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:303: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, "rb");
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:565: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(outbuf, inbuf, filesize);
data/vboot-utils-0~R87-13505.B/futility/cmd_load_fmap.c:63: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(file, "r");
data/vboot-utils-0~R87-13505.B/futility/cmd_load_fmap.c:152: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(outfile, O_RDWR);
data/vboot-utils-0~R87-13505.B/futility/cmd_pcr.c:176: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(accum, pcr, sizeof(pcr));
data/vboot-utils-0~R87-13505.B/futility/cmd_show.c:585: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).
		ifd = open(infile, O_RDONLY);
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:242: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(kpart_data, vblock_data, vblock_size);
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:1019: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).
		ifd = open(infile, O_RDONLY);
data/vboot-utils-0~R87-13505.B/futility/cmd_sign.c:1033: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).
		ifd = open(sign_option.outfile, O_RDWR);
data/vboot-utils-0~R87-13505.B/futility/cmd_validate_rec_mrc.c:225: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(infile, O_RDONLY);
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_firmware.c:153:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(outfile, "wb");
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_kernel.c:177:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(filename, O_RDONLY);
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_kernel.c:191: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, "rb");
data/vboot-utils-0~R87-13505.B/futility/cmd_vbutil_kernel.c:591:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(vmlinuz_out_file, "wb");
data/vboot-utils-0~R87-13505.B/futility/dump_kernel_config_lib.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/vboot-utils-0~R87-13505.B/futility/dump_kernel_config_lib.c:127:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(infile, O_RDONLY | O_CLOEXEC
data/vboot-utils-0~R87-13505.B/futility/file_type.c:110: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).
	ifd = open(filename, O_RDONLY);
data/vboot-utils-0~R87-13505.B/futility/file_type_bios.c:182:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ah_name[FMAP_NAMELEN + 1];
data/vboot-utils-0~R87-13505.B/futility/file_type_bios.c:338: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(vblock->buf, keyblock, more);
data/vboot-utils-0~R87-13505.B/futility/file_type_bios.c:340: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(vblock->buf + more, preamble, preamble->preamble_size);
data/vboot-utils-0~R87-13505.B/futility/file_type_bios.c:350:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/vboot-utils-0~R87-13505.B/futility/file_type_bios.c:360: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(filename, "w");
data/vboot-utils-0~R87-13505.B/futility/file_type_bios.c:447:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ah_name[FMAP_NAMELEN + 1];
data/vboot-utils-0~R87-13505.B/futility/file_type_rwsig.c:302: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_sig, old_sig, old_sig->c.total_size);
data/vboot-utils-0~R87-13505.B/futility/file_type_rwsig.c:314: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(old_sig, tmp_sig, tmp_sig->c.total_size);
data/vboot-utils-0~R87-13505.B/futility/file_type_rwsig.c:358: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(pubkey_buf, keyb_data, keyb_size);
data/vboot-utils-0~R87-13505.B/futility/file_type_rwsig.c:371: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((struct vb2_id *)pubkey->id, &sign_option.prikey->id,
data/vboot-utils-0~R87-13505.B/futility/file_type_rwsig.c:392: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_pubkey, packedkey, packedkey->c.total_size);
data/vboot-utils-0~R87-13505.B/futility/file_type_usbpd1.c:153: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(buf + sig_offset,
data/vboot-utils-0~R87-13505.B/futility/file_type_usbpd1.c:223: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(buf + dst_ofs_n,
data/vboot-utils-0~R87-13505.B/futility/file_type_usbpd1.c:227: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(buf + dst_ofs_rr,
data/vboot-utils-0~R87-13505.B/futility/file_type_usbpd1.c:231: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(buf + dst_ofs_n0inv,
data/vboot-utils-0~R87-13505.B/futility/file_type_usbpd1.c:326: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(buf, &s, sizeof(s));
data/vboot-utils-0~R87-13505.B/futility/file_type_usbpd1.c:327: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(buf + sizeof(s), o_sig, o_sig_size);
data/vboot-utils-0~R87-13505.B/futility/futility.c:90: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).
	log_fd = open(LOGFILE, O_WRONLY | O_APPEND | O_CREAT, 0666);
data/vboot-utils-0~R87-13505.B/futility/futility.c:92: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).
	log_fd = open(LOGFILE, O_WRONLY | O_APPEND);
data/vboot-utils-0~R87-13505.B/futility/futility.c:101: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).
		log_fd = open(LOGFILE, O_WRONLY | O_APPEND | O_CREAT, 0666);
data/vboot-utils-0~R87-13505.B/futility/futility.c:124:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[80];
data/vboot-utils-0~R87-13505.B/futility/futility.c:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char caller_buf[PATH_MAX];
data/vboot-utils-0~R87-13505.B/futility/futility.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(buf, "r");
data/vboot-utils-0~R87-13505.B/futility/misc.c:197: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(to, hwid, len);
data/vboot-utils-0~R87-13505.B/futility/ryu_root_header.c:32: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 magic_inv[RYU_ROOT_KEY_HASH_MAGIC_SIZE] =
data/vboot-utils-0~R87-13505.B/futility/updater.c:374: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(to.data, from.data, to_write);
data/vboot-utils-0~R87-13505.B/futility/updater.c:733: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_block, block, block->keyblock_size);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:85: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).
	void * (*open)(const char *name);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *fts_argv[2] = {};
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:391:19:  [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).
	ar->handle = ar->open(path);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:636: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(gbb_rootkey, rootkey, rootkey_len);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:660: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(section.data, vblock, vblock_len);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:765: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(model, cfg, sizeof(*model));
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:1013: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_manifest, &manifest, sizeof(manifest));
data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c:184: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(tmp_path, "ab");
data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c:224: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(section.data + flash_master_offset, flash_master,
data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c:254: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(section.data + flash_master_offset, flash_master,
data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c:351: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 arch[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:68:27:  [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 *in = stdin, *out = fopen(output, "wb");
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:69:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:371:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[COMMAND_BUFFER_SIZE];
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:402:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:720: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(new_path);
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:194: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(&(params->setup_sects), &(lh->setup_sects),
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:230: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(g_kernel_data, kernel_buf + kernel32_start,
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:307: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(g_config_data, config_data, config_size);
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:449: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(outbuf, keyblock, keyblock->keyblock_size);
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:450: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(outbuf + keyblock->keyblock_size,
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:469: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(outfile, "wb");
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:561:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f = fopen(keyblock_outfile, "wb");
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:731: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(g_config_data, config_data, config_size);
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:732: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(g_bootloader_data, bootloader_data, bootloader_size);
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:734: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(g_vmlinuz_header_data,
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:753: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(buf2, buf, len);
data/vboot-utils-0~R87-13505.B/futility/vb1_helper.c:780: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(buf2, buf, len);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FNAME_SIZE];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FNAME_SIZE];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:80: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(filename, "rb");
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FNAME_SIZE];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FNAME_SIZE];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:137: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(filename, "rb");
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:179:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char gpio_name[FNAME_SIZE];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:291:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[5 + NAME_MAX + 1];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:295: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).
		ret = open(buf, O_RDWR);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.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 nvctx_path[FNAME_SIZE];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:340: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).
	nvctx_fd = open(nvctx_path, O_RDONLY);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:354: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(ctx->nvdata, sector+offset, size);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:369:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char nvctx_path[FNAME_SIZE];
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:384: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).
		nvctx_fd = open(nvctx_path, O_RDWR);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:398: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(sector+offset, ctx->nvdata, size);
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:115: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(NVRAM_PATH, "rb");
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:140: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(NVRAM_PATH, "w+b");
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:245:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		int fd = open(filename, O_RDONLY);
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:523:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:524:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chiplabel[128];
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:597: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 uid_file[128];
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:763:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[128];
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:769:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char controller_name[128];
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:814: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* f = fopen(GPIO_EXPORT_PATH, "wt");
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:973: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[32];
data/vboot-utils-0~R87-13505.B/host/lib/chromeos_config.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filepath[PATH_MAX];
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fwid[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.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[4096] = "";
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:184: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(KERNEL_CMDLINE_PATH, "r");
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:455: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 hwid[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:457: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 fwtype_buf[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:715: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(ctx->nvdata, &flash_buf[index * vbnv_size], vbnv_size);
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:746: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(&flash_buf[next_index * vbnv_size], ctx->nvdata, vbnv_size);
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:763:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hexstring[VB2_NVDATA_SIZE_V2 * 2 + 32];
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:776:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hexdigit[3];
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:809:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hexstring[VB2_NVDATA_SIZE_V2 * 2 + 1];
data/vboot-utils-0~R87-13505.B/host/lib/extract_vmlinuz.c:67: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(vmlinuz, kpart_data + vmlinuz_header_offset,
data/vboot-utils-0~R87-13505.B/host/lib/extract_vmlinuz.c:70: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(vmlinuz + vmlinuz_header_size, kblob_data, kblob_size);
data/vboot-utils-0~R87-13505.B/host/lib/file_keys.c:30: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).
	if( (input_fd = open(input_file, O_RDONLY)) == -1 ) {
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:59: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(path);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:109:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	char *tmpfile;
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char region_param[PATH_MAX];
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:116:36:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	VB2_TRY(write_temp_file(NULL, 0, &tmpfile));
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:120:5:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			 tmpfile);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:127:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		region ? "-i" : tmpfile,
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:134:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		rv = vb2_read_file(tmpfile, data_out, size_out);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:136:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	unlink(tmpfile);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:137:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	free(tmpfile);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:144:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	char *tmpfile;
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.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 region_param[PATH_MAX];
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:148:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	VB2_TRY(write_temp_file(data, size, &tmpfile));
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:152:5:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			 tmpfile);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:160:19:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		region ? "-i" : tmpfile,
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:166:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	unlink(tmpfile);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:167:7:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	free(tmpfile);
data/vboot-utils-0~R87-13505.B/host/lib/host_key2.c:86:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(filename, "r");
data/vboot-utils-0~R87-13505.B/host/lib/host_key2.c:141:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(filename, "wb");
data/vboot-utils-0~R87-13505.B/host/lib/host_key2.c:196: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(vb2_packed_key_data_mutable(dest),
data/vboot-utils-0~R87-13505.B/host/lib/host_key2.c:255: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(vb2_packed_key_data_mutable(key), key_data, key_size);
data/vboot-utils-0~R87-13505.B/host/lib/host_keyblock.c:41: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(h->magic, VB2_KEYBLOCK_MAGIC, VB2_KEYBLOCK_MAGIC_SIZE);
data/vboot-utils-0~R87-13505.B/host/lib/host_keyblock.c:109: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(h->magic, VB2_KEYBLOCK_MAGIC, VB2_KEYBLOCK_MAGIC_SIZE);
data/vboot-utils-0~R87-13505.B/host/lib/host_misc.c:30: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, "rb");
data/vboot-utils-0~R87-13505.B/host/lib/host_misc.c:68: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, "rt");
data/vboot-utils-0~R87-13505.B/host/lib/host_misc.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/vboot-utils-0~R87-13505.B/host/lib/host_misc.c:103:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(filename, "wb");
data/vboot-utils-0~R87-13505.B/host/lib/host_signature.c:143: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(signature_digest, digest_info, digest_info_size);
data/vboot-utils-0~R87-13505.B/host/lib/host_signature.c:144: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(signature_digest + digest_info_size, digest, digest_size);
data/vboot-utils-0~R87-13505.B/host/lib/host_signature2.c:60: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(vb2_signature_data_mutable(dest),
data/vboot-utils-0~R87-13505.B/host/lib/host_signature2.c:79: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(vb2_signature_data_mutable(sig), digest, VB2_SHA512_DIGEST_SIZE);
data/vboot-utils-0~R87-13505.B/host/lib/host_signature2.c:107: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(signature_digest, digest_info, digest_info_size);
data/vboot-utils-0~R87-13505.B/host/lib/host_signature2.c:108: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(signature_digest + digest_info_size, digest, digest_size);
data/vboot-utils-0~R87-13505.B/host/lib/include/fmap.h: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        fmap_signature[FMAP_SIGNATURE_SIZE];
data/vboot-utils-0~R87-13505.B/host/lib/include/fmap.h:25:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char        fmap_name[FMAP_NAMELEN];
data/vboot-utils-0~R87-13505.B/host/lib/include/fmap.h: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     area_name[FMAP_NAMELEN];
data/vboot-utils-0~R87-13505.B/host/lib/signature_digest.c:31: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, digestinfo, digestinfo_size);
data/vboot-utils-0~R87-13505.B/host/lib/signature_digest.c:32: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 + digestinfo_size, digest, digest_size);
data/vboot-utils-0~R87-13505.B/host/lib/signature_digest.c:86: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).
	key_fp  = fopen(key_file, "r");
data/vboot-utils-0~R87-13505.B/host/lib/subprocess.c:49: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).
		target_fd = open("/dev/null", flags_for_fd(fd));
data/vboot-utils-0~R87-13505.B/host/lib/subprocess.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 buf[MAX_CB_BUF_SIZE];
data/vboot-utils-0~R87-13505.B/host/lib/subprocess.c:205:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[MAX_CB_BUF_SIZE];
data/vboot-utils-0~R87-13505.B/host/lib/util_misc.c:30: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 dest[VB2_SHA1_DIGEST_SIZE * 2 + 1];
data/vboot-utils-0~R87-13505.B/host/lib/util_misc.c:37:12:  [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.
		dnext += sprintf(dnext, "%02x", digest[i]);
data/vboot-utils-0~R87-13505.B/host/lib/util_misc.c:47: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 dest[VB2_SHA1_DIGEST_SIZE * 2 + 1];
data/vboot-utils-0~R87-13505.B/host/lib/util_misc.c:59:12:  [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.
		dnext += sprintf(dnext, "%02x", digest[i]);
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:145: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, "rb");
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:219: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(buf, &pkey, sizeof(pkey));
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:226: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 + pkey.key_offset, rsabuf, rsalen);
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:360: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(key_buf, key_data, key_size);
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:447: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(buf, &key, sizeof(key));
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:460: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(buf32 + 2, pubk->n, pubk->arrsize * sizeof(uint32_t));
data/vboot-utils-0~R87-13505.B/host/lib21/host_key.c:461: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(buf32 + 2 + pubk->arrsize, pubk->rr,
data/vboot-utils-0~R87-13505.B/host/lib21/host_misc.c:30: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, "rb");
data/vboot-utils-0~R87-13505.B/host/lib21/host_misc.c:67:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(filename, "wb");
data/vboot-utils-0~R87-13505.B/host/lib21/host_signature.c:125:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(sig_digest, info, info_size);
data/vboot-utils-0~R87-13505.B/host/lib21/host_signature.c:145: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(buf, &s, sizeof(s));
data/vboot-utils-0~R87-13505.B/host/lib21/host_signature.c:153: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 + s.sig_offset, sig_digest, sig_digest_size);
data/vboot-utils-0~R87-13505.B/host/lib21/host_signature.c:225: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(buf + sig_offset, sig, sig->c.total_size);
data/vboot-utils-0~R87-13505.B/host/lib21/host_signature.c:251: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 + sig_next, sig, sig->c.total_size);
data/vboot-utils-0~R87-13505.B/tests/cgpt_fuzzer.c:39: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, &mock_disk.data[start], size);
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.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(dest, &g, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:161: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(header->signature, GPT_HEADER_SIGNATURE,
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:174: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(&entries[0].type, &chromeos_kernel, sizeof(chromeos_kernel));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:178: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(&entries[1].type, &chromeos_rootfs, sizeof(chromeos_rootfs));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:182: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(&entries[2].type, &chromeos_rootfs, sizeof(chromeos_rootfs));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:186: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(&entries[3].type, &chromeos_kernel, sizeof(chromeos_kernel));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:194: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(header2, header, sizeof(GptHeader));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:195: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(entries2, entries, PARTITION_ENTRIES_SIZE);
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:840: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(&e[j].type, &guid_kernel, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1079: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(h1->signature, GPT_HEADER_SIGNATURE_IGNORED,
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1091: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(h2->signature, GPT_HEADER_SIGNATURE_IGNORED,
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1101: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(h1->signature, GPT_HEADER_SIGNATURE_IGNORED,
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1103: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(h2->signature, GPT_HEADER_SIGNATURE_IGNORED,
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1115: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(h1->signature, GPT_HEADER_SIGNATURE_IGNORED,
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1199: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(&e->type, &guid_zero, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1203: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(&e->type, &guid_kernel, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1207: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(&e->type, &guid_rootfs, sizeof(Guid));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1224: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(&e->type, (is_kernel ? &guid_kernel : &guid_zero), sizeof(Guid));
data/vboot-utils-0~R87-13505.B/tests/cgptlib_test.c:1413: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(&e[KERNEL_X].type, &guid_rootfs, sizeof(guid_rootfs));
data/vboot-utils-0~R87-13505.B/tests/chromeos_config_tests.c:44: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_ptr, fakefs[i].data, *size_ptr);
data/vboot-utils-0~R87-13505.B/tests/futility/test_file_types.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/vboot-utils-0~R87-13505.B/tests/futility/test_file_types.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char status[80];
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char test_name[256];
data/vboot-utils-0~R87-13505.B/tests/sha_tests.c:24:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		internal_SHA1(test_inputs[i], strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/sha_tests.c:49:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		internal_SHA256(test_inputs[i], strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/sha_tests.c:74:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		internal_SHA512(test_inputs[i], strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.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 output_buffer[__builtin_strlen(TEST_STRING_LN)];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.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 output_buffer[__builtin_strlen(TEST_STRING_LN) + 1];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.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 input_buffer[sizeof(TEST_STRING_2)];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.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 output_buffer[20];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:67:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char error_buffer[20];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_buffer[20];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_buffer[20];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.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 error_buffer[20];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:110: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(input_buffer, TEST_STRING_2, sizeof(TEST_STRING_2));
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:144:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_buffer[3];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:174:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[49 * 1024];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:184: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(buf, ctx->ptr, len);
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.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 output_buffer[sizeof(ctx.buffer)];
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.c:231: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(ctx->ptr, buf, buf_sz);
data/vboot-utils-0~R87-13505.B/tests/subprocess_tests.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 output_buffer[sizeof(ctx.buffer)];
data/vboot-utils-0~R87-13505.B/tests/tlcl_tests.c:20: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 debug_info[4096];
data/vboot-utils-0~R87-13505.B/tests/tlcl_tests.c:94: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(response, c->rsp, c->rsp_size);
data/vboot-utils-0~R87-13505.B/tests/vb20_api_kernel_tests.c:29: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 fw_kernel_key_data[36] = "Test kernel key data";
data/vboot-utils-0~R87-13505.B/tests/vb20_api_kernel_tests.c:30: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 kernel_data[0x4008] = "Sure it's a kernel...";
data/vboot-utils-0~R87-13505.B/tests/vb20_api_kernel_tests.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 recovery_key_data[32];
data/vboot-utils-0~R87-13505.B/tests/vb20_api_kernel_tests.c:82: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(mock_gbb.recovery_key_data, "The recovery key");
data/vboot-utils-0~R87-13505.B/tests/vb20_api_kernel_tests.c:99: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(kdata, fw_kernel_key_data, sizeof(fw_kernel_key_data));
data/vboot-utils-0~R87-13505.B/tests/vb20_api_kernel_tests.c:190: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(buf, rptr + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb20_kernel_tests.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 recovery_key_data[32];
data/vboot-utils-0~R87-13505.B/tests/vb20_kernel_tests.c:39: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 data_key_data[16];
data/vboot-utils-0~R87-13505.B/tests/vb20_kernel_tests.c:110: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(kb->magic, VB2_KEYBLOCK_MAGIC, VB2_KEYBLOCK_MAGIC_SIZE);
data/vboot-utils-0~R87-13505.B/tests/vb20_kernel_tests.c:123: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(mock_vblock.k.data_key_data, "data key data!!");
data/vboot-utils-0~R87-13505.B/tests/vb20_kernel_tests.c:162: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(buf, rptr + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb20_misc_tests.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 rootkey_data[32];
data/vboot-utils-0~R87-13505.B/tests/vb20_misc_tests.c:39: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 data_key_data[16];
data/vboot-utils-0~R87-13505.B/tests/vb20_misc_tests.c:109: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(mock_vblock.k.data_key_data, "data key data!!");
data/vboot-utils-0~R87-13505.B/tests/vb20_misc_tests.c:151: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(buf, rptr + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb20_misc_tests.c:168: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(&last_used_key, key, sizeof(struct vb2_public_key));
data/vboot-utils-0~R87-13505.B/tests/vb20_misc_tests.c:177: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(&last_used_key, key, sizeof(struct vb2_public_key));
data/vboot-utils-0~R87-13505.B/tests/vb20_verify_fw.c:45: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(fname, "rb");
data/vboot-utils-0~R87-13505.B/tests/vb20_verify_fw.c:97: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(body_fname, "rb");
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:34: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:38: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:44: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:50: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:56: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:77: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:82: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:88: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:94: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:100: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:106: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(key2, key, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:126: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:132:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:137: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:144: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:150: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:155: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:160: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:190: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:196: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:204: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:210: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:214: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:219: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:223: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:231: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(buf2, sig, size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.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 filename[1024];
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common2_tests.c:281: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(pubk_buf, keyb_data, keyb_size);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common_tests.c:48: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 test_desc[32] = "test desc";
data/vboot-utils-0~R87-13505.B/tests/vb21_host_common_tests.c:54: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(cbuf + c->fixed_size, test_desc, sizeof(test_desc));
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:99: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(buf2, buf, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:105: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(buf, buf2, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:112: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(buf, buf2, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:118: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(buf, buf2, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:124: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(buf, buf2, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:130: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(buf, buf2, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:136: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(buf, buf2, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_key_tests.c:142: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(buf, buf2, bufsize);
data/vboot-utils-0~R87-13505.B/tests/vb21_host_sig_tests.c:169:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pemfile[1024];
data/vboot-utils-0~R87-13505.B/tests/vb21_host_sig_tests.c:170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keybfile[1024];
data/vboot-utils-0~R87-13505.B/tests/vb2_api_tests.c:28: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 mock_body[320] = "Mock body";
data/vboot-utils-0~R87-13505.B/tests/vb2_api_tests.c:270:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&last_used_key, key, sizeof(struct vb2_public_key));
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:55: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(key, key1, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:65: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(key, key1, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:71: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(key, key1, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:77: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(key, key1, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:83: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(key, key1, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:89: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(key, key1, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:120: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:126: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:133: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:138: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:142: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:147: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:151: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:159: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:165: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:170: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:174: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(sig2, sig, sig_total_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_common2_tests.c:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[1024];
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:48: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:52: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:57: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:61: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:67: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:74: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:81: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:87: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:94: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:101: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:108: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:117: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:158: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:163: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:168: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:175: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:232: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:236: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:241: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:247: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:252:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:259: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:266: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:272: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:280: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:287: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:294: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:301: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:312: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:319: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:377: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:381: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:386: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:392: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:397: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:404: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:411: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:418: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:425: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:432: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:439: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:448: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:456: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:463: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:471: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:495: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(h, hdr, hsize);
data/vboot-utils-0~R87-13505.B/tests/vb2_common3_tests.c:513:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[1024];
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c:21:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char test_name[256];
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.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 test_name[256];
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char test_name[256];
data/vboot-utils-0~R87-13505.B/tests/vb2_crypto_tests.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char test_name[256];
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:13: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 gbb_data[4096 + sizeof(struct vb2_gbb_header)];
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:23: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(gbb_data + gbb->hwid_offset, hwid, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:82: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(buf, rptr + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:193: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((void *)rootkey + rootkey->key_offset,
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:260:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hwid[VB2_GBB_HWID_MAX_SIZE];
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:42:5:  [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).
int mkstemp(char *template_name)
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:45: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).
	return open(template_name, O_RDWR | O_CREAT | O_TRUNC, 0666);
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:60: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(ctx->nvdata, test_nvdata_16b, sizeof(test_nvdata_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:97: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(*data_out, fake_flash_region, sizeof(fake_flash_region));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:112: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(fake_flash_region, data, data_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:121: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(fake_flash_region, test_nvdata2_16b, sizeof(test_nvdata2_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:134:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(fake_flash_region, test_nvdata_16b, sizeof(test_nvdata_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:135: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(fake_flash_region + VB2_NVDATA_SIZE, test_nvdata2_16b,
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:151: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(fake_flash_region + (entry * VB2_NVDATA_SIZE),
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:154: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(fake_flash_region +
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:179: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(fake_flash_region, test_nvdata_16b, sizeof(test_nvdata_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:191: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(fake_flash_region, test_nvdata_16b, sizeof(test_nvdata_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:192: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(ctx.nvdata, test_nvdata2_16b, sizeof(test_nvdata2_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:206: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(fake_flash_region, test_nvdata_16b, sizeof(test_nvdata_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:207: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(fake_flash_region + VB2_NVDATA_SIZE, test_nvdata_16b,
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:209: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(ctx.nvdata, test_nvdata2_16b, sizeof(test_nvdata2_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:226: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(fake_flash_region + (entry * VB2_NVDATA_SIZE),
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:229: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(expected_flash, test_nvdata2_16b, sizeof(test_nvdata2_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:232: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(ctx.nvdata, test_nvdata2_16b, sizeof(test_nvdata2_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_nvdata_flashrom_tests.c:258: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(fake_flash_region, test_nvdata_16b, sizeof(test_nvdata_16b));
data/vboot-utils-0~R87-13505.B/tests/vb2_kernel_tests.c:26: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 fw_kernel_key_data[36] = "Test kernel key data";
data/vboot-utils-0~R87-13505.B/tests/vb2_kernel_tests.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char recovery_key_data[32];
data/vboot-utils-0~R87-13505.B/tests/vb2_kernel_tests.c:78: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(mock_gbb.recovery_key_data, "The recovery key");
data/vboot-utils-0~R87-13505.B/tests/vb2_kernel_tests.c:95: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(kdata, fw_kernel_key_data, sizeof(fw_kernel_key_data));
data/vboot-utils-0~R87-13505.B/tests/vb2_kernel_tests.c:139: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(buf, rptr + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_keyblock_fuzzer.c:58: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(buf, rbase + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_misc_tests.c:81: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(buf, (uint8_t *)mock_resource_ptr + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_misc_tests.c:230: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(workbuf2, workbuf, sd->workbuf_used);
data/vboot-utils-0~R87-13505.B/tests/vb2_preamble_fuzzer.c:38: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(buf, mock_preamble + offset, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_preamble_fuzzer.c:75: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(key, data, datakey_size);
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_api_tests.c:53: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, mock_sha1, size);
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_api_tests.c:107: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(mock_hash.sha1, mock_sha1, sizeof(mock_sha1));
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_api_tests.c:112: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(mock_hash.sha1, mock_sha1, sizeof(mock_sha1));
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_api_tests.c:118: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(mock_hash.sha1, mock_sha1, sizeof(mock_sha1));
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:29: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.
					    strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:38: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.
				  strlen((char *)test_inputs[0]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:72: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.
					    strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:81: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.
				  strlen((char *)test_inputs[0]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:115: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.
					    strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:124: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.
				  strlen((char *)test_inputs[0]),
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:235:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_info[32], text_buf[128];
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:237: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(text_info, "(line #%d, displayed #%d)", line, mock_displayed_i);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:273:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_info[32], text_buf[128];
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_action_tests.c:275: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(text_info, "(line #%d)", line);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:97: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 mock_prepare_log[64][MOCK_PREPARE_LOG_SIZE];
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:161:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_info[32], text_buf[128];
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:163: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(text_info, "(line #%d, displayed #%d)", line, mock_displayed_i);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:205:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_info[32], text_buf[128];
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:207: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(text_info, "(line #%d)", line);
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:538: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 mock_firmware_log_buf[MOCK_PREPARE_LOG_SIZE];
data/vboot-utils-0~R87-13505.B/tests/vboot_api_kernel_tests.c:369: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.
				   ? (char *)mock_disks[num_disks].handle
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:45: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 call_log[4096];
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:82: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(h->signature, GPT_HEADER_SIGNATURE, GPT_HEADER_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:219: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, &mock_disk[lba_start * MOCK_SECTOR_SIZE],
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:233: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(&mock_disk[lba_start * MOCK_SECTOR_SIZE], buffer,
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:265: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(dest, fake_guid, sizeof(fake_guid));
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:285: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((void *)block, &kbh, sizeof(kbh));
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:297: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((void *)block, &kbh, sizeof(kbh));
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:309: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((void *)preamble, &kph, sizeof(kph));
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:328: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, mock_digest, sizeof(mock_digest));
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:508: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(h->signature, GPT_HEADER_SIGNATURE2, GPT_HEADER_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_clamshell_tests.c: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.
static char set_vendor_data[VENDOR_DATA_LENGTH + 2];
data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_tests.c:24: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 debug_info[4096];
data/vboot-utils-0~R87-13505.B/tests/verify_kernel.c:37: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, diskbuf + lba_start * 512, lba_count * 512);
data/vboot-utils-0~R87-13505.B/tests/verify_kernel.c:51: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(diskbuf + lba_start * 512, buffer, lba_count * 512);
data/vboot-utils-0~R87-13505.B/tests/verify_kernel.c:116: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(dst, kernkey, kernkey_size);
data/vboot-utils-0~R87-13505.B/utility/crossystem.c:178:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/utility/crossystem.c:200:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/utility/crossystem.c:222:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[VB_MAX_STRING_PROPERTY];
data/vboot-utils-0~R87-13505.B/utility/dumpRSAPublicKey.c:167: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(argv[2], "r");
data/vboot-utils-0~R87-13505.B/utility/load_kernel_test.c:174: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(gbb->signature, VB2_GBB_SIGNATURE, VB2_GBB_SIGNATURE_SIZE);
data/vboot-utils-0~R87-13505.B/utility/load_kernel_test.c:182: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((uint8_t*)gbb + gbb->rootkey_offset, key_blob, key_size);
data/vboot-utils-0~R87-13505.B/utility/load_kernel_test.c:193: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).
	image_file = fopen(image_name, "rb");
data/vboot-utils-0~R87-13505.B/utility/load_kernel_test.c: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(dst, key_blob, kernkey_size);
data/vboot-utils-0~R87-13505.B/utility/pad_digest_utility.c:39: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).
	algorithm = atoi(argv[1]);
data/vboot-utils-0~R87-13505.B/utility/signature_digest_utility.c:32: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).
	int algorithm = atoi(argv[1]);
data/vboot-utils-0~R87-13505.B/utility/tpmc.c:69: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 tail[1];
data/vboot-utils-0~R87-13505.B/utility/verify_data.c:58: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).
	int algorithm = atoi(argv[1]);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt.c:85:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (0 == strncmp(cmds[i].name, command, strlen(command))) {
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_boot.c:132:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int n = read(fd, drive.pmbr.bootcode, sizeof(drive.pmbr.bootcode));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:105:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  nread = read(drive->fd, buf, count);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_common.c:119:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int nread = read(drive->fd, &drive->pmbr, sizeof(struct pmbr));
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:29:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t bytes_read = read(fd, bufptr, count);
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:83:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (isdigit(filename[strlen(filename) - 1]))
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:245:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strncmp(partname_prev, partname, strlen(partname_prev)) &&
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_find.c:246: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(partname_prev)) {
data/vboot-utils-0~R87-13505.B/cgpt/cgpt_nor.c:129:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nr_read = read(source_fd, buf, to_read);
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:123:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(tpm_fd, response, sizeof(response));
data/vboot-utils-0~R87-13505.B/firmware/stub/tpm_lite_stub.c:302:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (length != read(urandom_fd, buf, length)) {
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:388: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(s) + 20;
data/vboot-utils-0~R87-13505.B/futility/cmd_create.c:407: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).
	outext = outfile + strlen(outfile);
data/vboot-utils-0~R87-13505.B/futility/cmd_dump_fmap.c:318:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(buf, ah[i].area_name, FMAP_NAMELEN);
data/vboot-utils-0~R87-13505.B/futility/cmd_gbb_utility.c:575: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(opt_hwid) + 1 > gbb->hwid_size) {
data/vboot-utils-0~R87-13505.B/futility/dump_kernel_config_lib.c:33:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t chunk = read(fd, buf + nr_read, to_read);
data/vboot-utils-0~R87-13505.B/futility/futility.c:44: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(prefix);
data/vboot-utils-0~R87-13505.B/futility/futility.c:52: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/vboot-utils-0~R87-13505.B/futility/futility.c:55: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/vboot-utils-0~R87-13505.B/futility/misc.c:151: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).
					     strlen(hwid_str), VB2_HASH_SHA256,
data/vboot-utils-0~R87-13505.B/futility/misc.c:179:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	vb2_digest_buffer(buf + gbb->hwid_offset, strlen(hwid_str),
data/vboot-utils-0~R87-13505.B/futility/misc.c:191: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(hwid);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.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).
	root_len = strlen(root);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:271:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (*name && name[strlen(name) - 1] == '/')
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:522: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 name_len = strlen(name), pattern_len = strlen(pattern);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:522: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).
	size_t name_len = strlen(name), pattern_len = strlen(pattern);
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:531: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 strncmp(name, pattern, strlen(pattern)) == 0;
data/vboot-utils-0~R87-13505.B/futility/updater_archive.c:591: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).
				 v + strlen(ENV_VAR_MODEL_DIR));
data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c:494: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).
		if (strncmp(r->match, pattern, strlen(r->match)) != 0)
data/vboot-utils-0~R87-13505.B/futility/updater_quirks.c:515: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).
					  entry_name, strlen(entry_name))) {
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:49: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(s);
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:441:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(result, STR_REV, strlen(STR_REV)) == 0)
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:442: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).
		rev = strtol(result + strlen(STR_REV), NULL, 0);
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:719:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask_save = umask(077);
data/vboot-utils-0~R87-13505.B/futility/updater_utils.c:721:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(umask_save);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:264:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return !strncmp(prefix, d->d_name, strlen(prefix));
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:348:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rv = read(nvctx_fd, sector, SECTOR_SIZE);
data/vboot-utils-0~R87-13505.B/host/arch/arm/lib/crossystem_arch.c:391:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(nvctx_fd, sector, SECTOR_SIZE);
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:546: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(name))) {
data/vboot-utils-0~R87-13505.B/host/arch/x86/lib/crossystem_arch.c:975: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).
			return WriteFile(NEED_FWUPDATE_PATH, buf, strlen(buf));
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:83: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).
	return 0 == strncmp(fwid, start, strlen(start));
data/vboot-utils-0~R87-13505.B/host/lib/crossystem.c:795: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).
			" (need %d)\n", (int)strlen(hexstring), 2 * nvsize);
data/vboot-utils-0~R87-13505.B/host/lib/file_keys.c:35:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((len = read(input_fd, data, sizeof(data))) == sizeof(data))
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:58:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask_save = umask(077);
data/vboot-utils-0~R87-13505.B/host/lib/flashrom.c:60:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(umask_save);
data/vboot-utils-0~R87-13505.B/host/lib/host_misc.c:19:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(dest, src, dest_size);
data/vboot-utils-0~R87-13505.B/host/lib/host_signature.c:65:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				n = read(c_to_p[STDIN_FILENO], outbuf,
data/vboot-utils-0~R87-13505.B/host/lib/subprocess.c:92: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).
		bytes_to_write = strlen(target->buffer.buf);
data/vboot-utils-0~R87-13505.B/host/lib/subprocess.c:186:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_rv = read(
data/vboot-utils-0~R87-13505.B/host/lib/subprocess.c:209:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(target->priv.pipefd[0], buf, MAX_CB_BUF_SIZE);
data/vboot-utils-0~R87-13505.B/host/lib21/host_misc.c:97: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).
	return roundup32(strlen(desc) + 1);
data/vboot-utils-0~R87-13505.B/tests/chromeos_config_tests.c:38:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			*size_ptr = strlen(fakefs[i].data);
data/vboot-utils-0~R87-13505.B/tests/futility/binary_editor.c:28:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for ( curpos = 0; (c = fgetc(stdin)) != EOF; curpos++) {
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:66: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).
		       message, strlen(message), mac, sizeof(mac)),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:68: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).
	TEST_TRUE(hmac(alg, short_key, strlen(short_key),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:71: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).
	TEST_TRUE(hmac(alg, short_key, strlen(short_key),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:72: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).
		       message, strlen(message), NULL, 0),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:74: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).
	TEST_TRUE(hmac(alg, short_key, strlen(short_key),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:75: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).
		       message, strlen(message), mac, 0),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:78: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).
	TEST_TRUE(hmac(alg, short_key, strlen(short_key),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:79: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).
		       message, strlen(message), mac, sizeof(mac)),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:89: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).
		test_hmac_by_openssl(alg, short_key, strlen(short_key),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:90: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).
				     message, strlen(message));
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:92: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).
		test_hmac_by_openssl(alg, long_key, strlen(long_key),
data/vboot-utils-0~R87-13505.B/tests/hmac_test.c:93: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).
				     message, strlen(message));
data/vboot-utils-0~R87-13505.B/tests/sha_tests.c:24: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).
		internal_SHA1(test_inputs[i], strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/sha_tests.c:49: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).
		internal_SHA256(test_inputs[i], strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/sha_tests.c:74: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).
		internal_SHA512(test_inputs[i], strlen((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:314: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).
		TEST_EQ(strlen(hwid) + 1, size, "  HWID size consistent");
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:315: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).
		TEST_EQ(strlen(hwid), strlen("Test HWID"),
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:315: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).
		TEST_EQ(strlen(hwid), strlen("Test HWID"),
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:328: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).
		TEST_EQ(strlen(hwid) + 1, size, "  HWID size consistent");
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:329: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).
		TEST_EQ(strlen(hwid), strlen("Test HWID"),
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:329: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).
		TEST_EQ(strlen(hwid), strlen("Test HWID"),
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:342: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).
		TEST_EQ(strlen(hwid) + 1, size, "  HWID size consistent");
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:343: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).
		TEST_EQ(strlen(hwid), strlen("Test HWID"),
data/vboot-utils-0~R87-13505.B/tests/vb2_gbb_tests.c:343: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).
		TEST_EQ(strlen(hwid), strlen("Test HWID"),
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:44:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(template_name, MOCK_TMPFILE_NAME, strlen(template_name));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:44:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strncpy(template_name, MOCK_TMPFILE_NAME, strlen(template_name));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:136: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(MOCK_ROM_CONTENTS));
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:161: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).
	TEST_EQ(buf_sz, strlen(MOCK_ROM_CONTENTS), "Contents correct size");
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:184: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).
	TEST_EQ(buf_sz, strlen(MOCK_ROM_CONTENTS), "Contents correct size");
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:218:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	TEST_EQ(captured_rom_size, strlen(MOCK_ROM_CONTENTS),
data/vboot-utils-0~R87-13505.B/tests/vb2_host_flashrom_tests.c:241:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	TEST_EQ(captured_rom_size, strlen(MOCK_ROM_CONTENTS),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:29: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((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:38: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((char *)test_inputs[0]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:72: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((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:81: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((char *)test_inputs[0]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:115: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((char *)test_inputs[i]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:124: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((char *)test_inputs[0]),
data/vboot-utils-0~R87-13505.B/tests/vb2_sha_tests.c:156:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	TEST_EQ(vb2_digest_buffer((uint8_t *)oneblock_msg, strlen(oneblock_msg),
data/vboot-utils-0~R87-13505.B/tests/vb2_ui_tests.c:549:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(mock_prepare_log[mock_prepare_log_count],
data/vboot-utils-0~R87-13505.B/tests/vboot_kernel_tests.c:27: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).
#define LOGCALL(fmt, args...) sprintf(call_log + strlen(call_log), fmt, ##args)
data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_clamshell_tests.c:283:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(set_vendor_data, vendor_data_value, sizeof(set_vendor_data) - 1);
data/vboot-utils-0~R87-13505.B/tests/vboot_ui_legacy_tests.c:59:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(debug_info, info_str, sizeof(debug_info));
data/vboot-utils-0~R87-13505.B/utility/tpmc.c:90: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(string);

ANALYSIS SUMMARY:

Hits = 815
Lines analyzed = 80499 in approximately 2.13 seconds (37846 lines/second)
Physical Source Lines of Code (SLOC) = 55941
Hits@level = [0] 1029 [1]  96 [2] 572 [3]  39 [4] 105 [5]   3
Hits@level+ = [0+] 1844 [1+] 815 [2+] 719 [3+] 147 [4+] 108 [5+]   3
Hits/KSLOC@level+ = [0+] 32.9633 [1+] 14.5689 [2+] 12.8528 [3+] 2.62777 [4+] 1.93061 [5+] 0.0536279
Symlinks skipped = 1 (--allowlink overrides but see doc for security issue)
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.