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/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/dma_buf_lock/src/dma_buf_lock.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/dma_buf_lock/src/dma_buf_lock.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/dma_buf_test_exporter/dma-buf-test-exporter.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/kds/kds.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/example_kernel_api.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/example_user_api.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/arch-arm/config.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/arch-arm64/config.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_core.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_core.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_descriptor_mapping.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_descriptor_mapping.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_priv.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/imports/ion/ump_kernel_import_ion.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/linux/ump_kernel_linux.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/linux/ump_kernel_linux_mem.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/linux/ump_kernel_linux_mem.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/ump_arch.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/ump_ref_drv.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_backend_config.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_cache_policy_backend.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_cache_policy_backend.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_debug_job_fault_backend.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_devfreq.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_device_hw.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_device_internal.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_gpu.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_gpuprops_backend.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_instr_backend.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_instr_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_instr_internal.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_irq_internal.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_irq_linux.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_as.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_hw.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_internal.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_rb.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_rb.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_js_affinity.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_js_affinity.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_js_backend.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_js_internal.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_mmu_hw_direct.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_mmu_hw_direct.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_always_on.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_always_on.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_backend.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_ca.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_ca.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_ca_fixed.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_ca_fixed.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_coarse_demand.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_coarse_demand.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_demand.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_demand.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_driver.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_internal.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_metrics.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_policy.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_policy.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_time.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_time.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/ipa/mali_kbase_ipa.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/ipa/mali_kbase_ipa_generic.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_base_hwconfig_features.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_base_hwconfig_issues.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_base_kernel.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_base_mem_priv.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_base_vendor_specific_func.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_10969_workaround.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_10969_workaround.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_as_fault_debugfs.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_as_fault_debugfs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_cache_policy.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_cache_policy.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_config.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_config.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_config_defaults.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_context.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_context.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_core_linux.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_debug.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_debug.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_debug_job_fault.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_debug_job_fault.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_debug_mem_view.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_debug_mem_view.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_device.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_disjoint_events.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_dma_fence.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_dma_fence.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_event.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gator.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gator_api.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gator_api.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gator_hwcnt_names.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gator_hwcnt_names_thex.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gator_hwcnt_names_tmix.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gator_hwcnt_names_tsix.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gpuprops.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gpuprops.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gpuprops_types.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gpu_id.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gpu_memory_debugfs.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_gpu_memory_debugfs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hw.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hw.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwaccess_backend.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwaccess_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwaccess_gpuprops.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwaccess_instr.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwaccess_jm.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwaccess_pm.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwaccess_time.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_hwcnt_reader.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_jd.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_jm.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_jm.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_js.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_js.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_js_ctx_attr.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_js_ctx_attr.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_js_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_linux.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_lowlevel.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_pool.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_pool_debugfs.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_pool_debugfs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_profile_debugfs.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_profile_debugfs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_profile_debugfs_buf_size.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu_hw.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu_mode.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu_mode_aarch64.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu_mode_lpae.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_platform_fake.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_pm.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_pm.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_profiling_gator_api.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_regs_history_debugfs.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_regs_history_debugfs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_replay.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_smc.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_smc.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_softjobs.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_strings.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_strings.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_sync.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_sync.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_sync_user.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_trace_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_trace_timeline.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_trace_timeline.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_trace_timeline_defs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_uku.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_utility.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_utility.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_linux_kbase_trace.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_linux_trace.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_malisw.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_midg_coherency.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_midg_regmap.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_timeline.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_uk.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/devicetree/mali_kbase_config_devicetree.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/devicetree/mali_kbase_config_platform.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/devicetree/mali_kbase_runtime_pm.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/juno_soc/juno_mali_opp.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/juno_soc/mali_kbase_config_juno_soc.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/juno_soc/mali_kbase_config_platform.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/mali_kbase_platform_common.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/mali_kbase_platform_fake.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_config_platform.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_config_vexpress.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress/mali_kbase_cpu_vexpress.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress_1xv7_a57/mali_kbase_config_platform.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress_1xv7_a57/mali_kbase_config_vexpress.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress_6xvirtex7_10mhz/mali_kbase_config_platform.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress_6xvirtex7_10mhz/mali_kbase_config_vexpress.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress_6xvirtex7_10mhz/mali_kbase_cpu_vexpress.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform/vexpress_6xvirtex7_10mhz/mali_kbase_cpu_vexpress.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/platform_dummy/mali_ukk_os.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_clcd_ext.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_connector.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_crtc.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_cursor.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_device.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_dma_buf.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_encoder.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_fb.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_funcs.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_gem.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_pl111.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_platform.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_suspend.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_vma.c
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/include/linux/dma-buf-test-exporter.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/include/linux/kds.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/include/linux/ump-common.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/include/linux/ump-import.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/include/linux/ump-ioctl.h
Examining data/mali-midgard-16.0+pristine/driver/product/kernel/include/linux/ump.h

FINAL RESULTS:

data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_device_hw.c:141:58:  [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.
		dev_err(kbdev->dev, "%6i: %c: reg 0x%p val %08x\n", i, access,
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_base_kernel.h:996:148:  [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.
static inline void base_external_resource_init(struct base_external_resource *res, struct base_import_handle handle, base_external_resource_access access)
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_base_kernel.h:1006:33:  [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.
	res->ext_resource = address | (access & LOCAL_PAGE_LSB);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_device.c:74: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(poke_name, sizeof(poke_name), poke_format, i);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_device.c:76: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(name, sizeof(name), format, i);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_regs_history_debugfs.c:83:56:  [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.
		seq_printf(sfile, "%6i: %c: reg 0x%p val %08x\n", i, access,
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_defs.h:135:36:  [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 kbasep_pm_ca_policy_random random;
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/dma_buf_test_exporter/dma-buf-test-exporter.c:261:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	dma_buf_te_vm_ops.open(vma);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_core.c:677:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(alloc->block_array, blocks, sizeof(ump_dd_physical_block_64) * num_blocks);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_descriptor_mapping.c:97:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 		memcpy(new_table->usage, old_table->usage, (sizeof(unsigned long)*map->current_nr_mappings) / BITS_PER_LONG);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/base/ump/src/common/ump_kernel_descriptor_mapping.c:98:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
 		memcpy(new_table->mappings, old_table->mappings, map->current_nr_mappings * sizeof(void*));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_hw.c:162: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 js_string[16];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_rb.c:1443: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 js_string[16];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_jm_rb.c:1454: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 js_string[16];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_js_affinity.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(new_affinities, js_devdata->runpool_irq.slot_affinities,
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/backend/gpu/mali_kbase_pm_defs.h:442:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[KBASE_PM_CA_MAX_POLICY_NAME_LEN + 1];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_10969_workaround.c:96:2:  [2] (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, page_1, copy_size);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_10969_workaround.c:108: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 + copy_size, page_2, JOB_HEADER_SIZE - copy_size);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_10969_workaround.c:183: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(page_1, dst, copy_size);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_10969_workaround.c:191: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(page_2, dst + copy_size,
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_as_fault_debugfs.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char as_name[64];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_core_linux.c:721: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(get_version->version_buffer, KERNEL_SIDE_DDK_VERSION_STRING, sizeof(KERNEL_SIDE_DDK_VERSION_STRING));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_core_linux.c:1135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_core_linux.c:1168:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_core_linux.c:1191:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char kctx_name[64];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_core_linux.c:3079:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_SERIALIZE_JOBS_NAME_LEN];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_defs.h:975:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char devname[DEVNAME_SIZE];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_device.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 name[sizeof(format)];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_device.c:71:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char poke_name[sizeof(poke_format)];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_device.c:429:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[DEBUG_MESSAGE_SIZE];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_device.c:564:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[DEBUG_MESSAGE_SIZE];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem.c:1084: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, src, size);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem.c:1684:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[50];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu.c:1236:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pgd_page_buffer, pgd_page, PAGE_SIZE);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu.c:1344:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*buffer, &m_pgd, sizeof(m_pgd));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu.c:1348:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*buffer, pgd_page, sizeof(u64) * KBASE_MMU_PAGE_ENTRIES);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu.c:1413:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buffer, &config, sizeof(config));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mmu.c:1442: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(mmu_dump_buffer, &end_marker, sizeof(u64));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_softjobs.c:187:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(user_result, &data, sizeof(data));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_softjobs.c:853:2:  [2] (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_page + offset, extres_page, chunk);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_softjobs.c:872:2:  [2] (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_page, extres_page + PAGE_SIZE-offset, chunk);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c:200:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char     data[PACKET_SIZE]; /* buffer's data */
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c:608:2:  [2] (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[pos], bytes, len);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c:647:2:  [2] (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[pos], &string_len, sizeof(string_len));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c:741:2:  [2] (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[0],             &word0, sizeof(word0));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c:742:2:  [2] (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[sizeof(word0)], &word1, sizeof(word1));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c:769:2:  [2] (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[sizeof(word0)], &word1, sizeof(word1));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_tlstream.c:784:2:  [2] (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[PACKET_HEADER_SIZE], &counter, sizeof(counter));
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_uku.h:206:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[32];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_uku.h:256:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char version_buffer[KBASE_GET_VERSION_BUFFER_SIZE];
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:738: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[group + SC0_BASE], &src[group + SC0_BASE],
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:740: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[group + SC1_BASE], &src[group + SC1_BASE],
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:742: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[group + SC2_BASE], &src[group + SC2_BASE],
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:744: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[group + SC3_BASE], &src[group + SC3_BASE],
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:748: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[group + TILER_BASE], &src[group + TILER_BASE],
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:752: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[group + MMU_L2_BASE], &src[group + MMU_L2_BASE],
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:756: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[group + JM_BASE], &src[group + JM_BASE],
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:800:2:  [2] (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, src, NR_BYTES_PER_HDR);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:807:2:  [2] (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, src, NR_BYTES_PER_HDR);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:816: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, src, NR_BYTES_PER_HDR);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:826: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, src, NR_BYTES_PER_HDR);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:1016:2:  [2] (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, cli->accum_buffer, cli->dump_size);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_vinstr.c:1054:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(cli->kernel_buffer, cli->accum_buffer, cli->dump_size);
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_cursor.c:144:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char
data/mali-midgard-16.0+pristine/driver/product/kernel/drivers/gpu/drm/pl111/pl111_drm_cursor.c:214:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char string_cursor[PL111_MAX_CURSOR_WIDTH + 1];

ANALYSIS SUMMARY:

Hits = 65
Lines analyzed = 75713 in approximately 1.70 seconds (44653 lines/second)
Physical Source Lines of Code (SLOC) = 44078
Hits@level = [0]  22 [1]   0 [2]  58 [3]   1 [4]   6 [5]   0
Hits@level+ = [0+]  87 [1+]  65 [2+]  65 [3+]   7 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 1.97377 [1+] 1.47466 [2+] 1.47466 [3+] 0.158809 [4+] 0.136122 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.