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/pocl-1.5/bin/poclcc.c
Examining data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c
Examining data/pocl-1.5/examples/accel/accel_example.cpp
Examining data/pocl-1.5/examples/boxadd/boxadd.c
Examining data/pocl-1.5/examples/boxadd/boxadd_exec.c
Examining data/pocl-1.5/examples/example0/example0.c
Examining data/pocl-1.5/examples/example0/example0_exec.c
Examining data/pocl-1.5/examples/example1/example1.c
Examining data/pocl-1.5/examples/example1/example1_exec.c
Examining data/pocl-1.5/examples/example2/example2.c
Examining data/pocl-1.5/examples/example2a/example2a.c
Examining data/pocl-1.5/examples/matadd/matadd.c
Examining data/pocl-1.5/examples/matadd/matadd_exec.c
Examining data/pocl-1.5/examples/matrix1/matrix1.c
Examining data/pocl-1.5/examples/pocl-android-sample/jni/vectorAdd.cpp
Examining data/pocl-1.5/examples/pocl-android-sample/jni/vectorAdd.h
Examining data/pocl-1.5/examples/scalarwave/scalarwave.c
Examining data/pocl-1.5/examples/trig/trig.c
Examining data/pocl-1.5/examples/trig/trig_exec.c
Examining data/pocl-1.5/examples/vecadd/vecadd.c
Examining data/pocl-1.5/examples/vecadd/vecadd_exec.c
Examining data/pocl-1.5/include/CL/cl.h
Examining data/pocl-1.5/include/CL/cl.hpp
Examining data/pocl-1.5/include/CL/cl2.hpp
Examining data/pocl-1.5/include/CL/cl_d3d10.h
Examining data/pocl-1.5/include/CL/cl_d3d11.h
Examining data/pocl-1.5/include/CL/cl_dx9_media_sharing.h
Examining data/pocl-1.5/include/CL/cl_dx9_media_sharing_intel.h
Examining data/pocl-1.5/include/CL/cl_egl.h
Examining data/pocl-1.5/include/CL/cl_ext.h
Examining data/pocl-1.5/include/CL/cl_ext_intel.h
Examining data/pocl-1.5/include/CL/cl_gl.h
Examining data/pocl-1.5/include/CL/cl_gl_ext.h
Examining data/pocl-1.5/include/CL/cl_platform.h
Examining data/pocl-1.5/include/CL/cl_va_api_media_sharing_intel.h
Examining data/pocl-1.5/include/CL/cl_version.h
Examining data/pocl-1.5/include/CL/opencl.h
Examining data/pocl-1.5/include/OpenCL/cl.h
Examining data/pocl-1.5/include/OpenCL/cl.hpp
Examining data/pocl-1.5/include/OpenCL/cl_ext.h
Examining data/pocl-1.5/include/OpenCL/cl_gl.h
Examining data/pocl-1.5/include/OpenCL/cl_gl_ext.h
Examining data/pocl-1.5/include/OpenCL/cl_platform.h
Examining data/pocl-1.5/include/OpenCL/opencl.h
Examining data/pocl-1.5/include/_builtin_renames.h
Examining data/pocl-1.5/include/_clang_opencl.h
Examining data/pocl-1.5/include/_enable_all_exts.h
Examining data/pocl-1.5/include/_kernel_c.h
Examining data/pocl-1.5/include/_kernel_constants.h
Examining data/pocl-1.5/include/pocl_cache.h
Examining data/pocl-1.5/include/pocl_compiler_features.h
Examining data/pocl-1.5/include/pocl_context.h
Examining data/pocl-1.5/include/pocl_device.h
Examining data/pocl-1.5/include/pocl_file_util.h
Examining data/pocl-1.5/include/pocl_image_types.h
Examining data/pocl-1.5/include/pocl_spir.h
Examining data/pocl-1.5/include/pocl_types.h
Examining data/pocl-1.5/include/pocl_workgroup_func.h
Examining data/pocl-1.5/include/poclu.h
Examining data/pocl-1.5/include/utlist.h
Examining data/pocl-1.5/include/vccompat.hpp
Examining data/pocl-1.5/include/_libclang_versions_checks.h
Examining data/pocl-1.5/include/_kernel.h
Examining data/pocl-1.5/include/pocl.h
Examining data/pocl-1.5/lib/CL/clBuildProgram.c
Examining data/pocl-1.5/lib/CL/clCompileProgram.c
Examining data/pocl-1.5/lib/CL/clCreateBuffer.c
Examining data/pocl-1.5/lib/CL/clCreateCommandQueue.c
Examining data/pocl-1.5/lib/CL/clCreateCommandQueueWithProperties.c
Examining data/pocl-1.5/lib/CL/clCreateContext.c
Examining data/pocl-1.5/lib/CL/clCreateContextFromType.c
Examining data/pocl-1.5/lib/CL/clCreateFromGLTexture2D.c
Examining data/pocl-1.5/lib/CL/clCreateFromGLTexture3D.c
Examining data/pocl-1.5/lib/CL/clCreateImage2D.c
Examining data/pocl-1.5/lib/CL/clCreateImage3D.c
Examining data/pocl-1.5/lib/CL/clCreateKernel.c
Examining data/pocl-1.5/lib/CL/clCreateKernelsInProgram.c
Examining data/pocl-1.5/lib/CL/clCreateProgramWithBinary.c
Examining data/pocl-1.5/lib/CL/clCreateProgramWithBuiltInKernels.c
Examining data/pocl-1.5/lib/CL/clCreateProgramWithIL.c
Examining data/pocl-1.5/lib/CL/clCreateProgramWithSource.c
Examining data/pocl-1.5/lib/CL/clCreateSampler.c
Examining data/pocl-1.5/lib/CL/clCreateSubBuffer.c
Examining data/pocl-1.5/lib/CL/clCreateSubDevices.c
Examining data/pocl-1.5/lib/CL/clCreateUserEvent.c
Examining data/pocl-1.5/lib/CL/clEnqueueBarrier.c
Examining data/pocl-1.5/lib/CL/clEnqueueBarrierWithWaitList.c
Examining data/pocl-1.5/lib/CL/clEnqueueCopyBuffer.c
Examining data/pocl-1.5/lib/CL/clEnqueueCopyBufferRect.c
Examining data/pocl-1.5/lib/CL/clEnqueueCopyBufferToImage.c
Examining data/pocl-1.5/lib/CL/clEnqueueCopyImage.c
Examining data/pocl-1.5/lib/CL/clEnqueueCopyImageToBuffer.c
Examining data/pocl-1.5/lib/CL/clEnqueueFillBuffer.c
Examining data/pocl-1.5/lib/CL/clEnqueueFillImage.c
Examining data/pocl-1.5/lib/CL/clEnqueueMapBuffer.c
Examining data/pocl-1.5/lib/CL/clEnqueueMapImage.c
Examining data/pocl-1.5/lib/CL/clEnqueueMarker.c
Examining data/pocl-1.5/lib/CL/clEnqueueMarkerWithWaitList.c
Examining data/pocl-1.5/lib/CL/clEnqueueMigrateMemObjects.c
Examining data/pocl-1.5/lib/CL/clEnqueueNativeKernel.c
Examining data/pocl-1.5/lib/CL/clEnqueueReadBuffer.c
Examining data/pocl-1.5/lib/CL/clEnqueueReadBufferRect.c
Examining data/pocl-1.5/lib/CL/clEnqueueReadImage.c
Examining data/pocl-1.5/lib/CL/clEnqueueSVMFree.c
Examining data/pocl-1.5/lib/CL/clEnqueueSVMMap.c
Examining data/pocl-1.5/lib/CL/clEnqueueSVMMemFill.c
Examining data/pocl-1.5/lib/CL/clEnqueueSVMMemcpy.c
Examining data/pocl-1.5/lib/CL/clEnqueueSVMUnmap.c
Examining data/pocl-1.5/lib/CL/clEnqueueTask.c
Examining data/pocl-1.5/lib/CL/clEnqueueUnmapMemObject.c
Examining data/pocl-1.5/lib/CL/clEnqueueWaitForEvents.c
Examining data/pocl-1.5/lib/CL/clEnqueueWriteBuffer.c
Examining data/pocl-1.5/lib/CL/clEnqueueWriteBufferRect.c
Examining data/pocl-1.5/lib/CL/clEnqueueWriteImage.c
Examining data/pocl-1.5/lib/CL/clFinish.c
Examining data/pocl-1.5/lib/CL/clFlush.c
Examining data/pocl-1.5/lib/CL/clGetCommandQueueInfo.c
Examining data/pocl-1.5/lib/CL/clGetContextInfo.c
Examining data/pocl-1.5/lib/CL/clGetDeviceIDs.c
Examining data/pocl-1.5/lib/CL/clGetDeviceInfo.c
Examining data/pocl-1.5/lib/CL/clGetEventInfo.c
Examining data/pocl-1.5/lib/CL/clGetEventProfilingInfo.c
Examining data/pocl-1.5/lib/CL/clGetExtensionFunctionAddress.c
Examining data/pocl-1.5/lib/CL/clGetExtensionFunctionAddressForPlatform.c
Examining data/pocl-1.5/lib/CL/clGetImageInfo.c
Examining data/pocl-1.5/lib/CL/clGetKernelArgInfo.c
Examining data/pocl-1.5/lib/CL/clGetKernelInfo.c
Examining data/pocl-1.5/lib/CL/clGetKernelWorkGroupInfo.c
Examining data/pocl-1.5/lib/CL/clGetMemObjectInfo.c
Examining data/pocl-1.5/lib/CL/clGetPlatformIDs.c
Examining data/pocl-1.5/lib/CL/clGetPlatformInfo.c
Examining data/pocl-1.5/lib/CL/clGetProgramBuildInfo.c
Examining data/pocl-1.5/lib/CL/clGetProgramInfo.c
Examining data/pocl-1.5/lib/CL/clGetSamplerInfo.c
Examining data/pocl-1.5/lib/CL/clGetSupportedImageFormats.c
Examining data/pocl-1.5/lib/CL/clIcdGetPlatformIDsKHR.c
Examining data/pocl-1.5/lib/CL/clLinkProgram.c
Examining data/pocl-1.5/lib/CL/clReleaseCommandQueue.c
Examining data/pocl-1.5/lib/CL/clReleaseDevice.c
Examining data/pocl-1.5/lib/CL/clReleaseEvent.c
Examining data/pocl-1.5/lib/CL/clReleaseKernel.c
Examining data/pocl-1.5/lib/CL/clReleaseMemObject.c
Examining data/pocl-1.5/lib/CL/clReleaseProgram.c
Examining data/pocl-1.5/lib/CL/clReleaseSampler.c
Examining data/pocl-1.5/lib/CL/clRetainCommandQueue.c
Examining data/pocl-1.5/lib/CL/clRetainContext.c
Examining data/pocl-1.5/lib/CL/clRetainDevice.c
Examining data/pocl-1.5/lib/CL/clRetainEvent.c
Examining data/pocl-1.5/lib/CL/clRetainKernel.c
Examining data/pocl-1.5/lib/CL/clRetainMemObject.c
Examining data/pocl-1.5/lib/CL/clRetainProgram.c
Examining data/pocl-1.5/lib/CL/clRetainSampler.c
Examining data/pocl-1.5/lib/CL/clSVMAlloc.c
Examining data/pocl-1.5/lib/CL/clSVMFree.c
Examining data/pocl-1.5/lib/CL/clSetEventCallback.c
Examining data/pocl-1.5/lib/CL/clSetKernelArg.c
Examining data/pocl-1.5/lib/CL/clSetKernelArgSVMPointer.c
Examining data/pocl-1.5/lib/CL/clSetKernelExecInfo.c
Examining data/pocl-1.5/lib/CL/clSetMemObjectDestructorCallback.c
Examining data/pocl-1.5/lib/CL/clSetUserEventStatus.c
Examining data/pocl-1.5/lib/CL/clUnloadCompiler.c
Examining data/pocl-1.5/lib/CL/clUnloadPlatformCompiler.c
Examining data/pocl-1.5/lib/CL/clWaitForEvents.c
Examining data/pocl-1.5/lib/CL/devices/accel/accel.cc
Examining data/pocl-1.5/lib/CL/devices/accel/accel.h
Examining data/pocl-1.5/lib/CL/devices/basic/basic.h
Examining data/pocl-1.5/lib/CL/devices/basic/basic.c
Examining data/pocl-1.5/lib/CL/devices/bufalloc.c
Examining data/pocl-1.5/lib/CL/devices/bufalloc.h
Examining data/pocl-1.5/lib/CL/devices/common.h
Examining data/pocl-1.5/lib/CL/devices/cpuinfo.c
Examining data/pocl-1.5/lib/CL/devices/cpuinfo.h
Examining data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c
Examining data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.h
Examining data/pocl-1.5/lib/CL/devices/cuda/pocl-ptx-gen.cc
Examining data/pocl-1.5/lib/CL/devices/cuda/pocl-ptx-gen.h
Examining data/pocl-1.5/lib/CL/devices/devices.c
Examining data/pocl-1.5/lib/CL/devices/devices.h
Examining data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c
Examining data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.h
Examining data/pocl-1.5/lib/CL/devices/pthread/pocl-pthread.h
Examining data/pocl-1.5/lib/CL/devices/pthread/pocl-pthread_scheduler.h
Examining data/pocl-1.5/lib/CL/devices/pthread/pocl-pthread_utils.h
Examining data/pocl-1.5/lib/CL/devices/pthread/pthread.c
Examining data/pocl-1.5/lib/CL/devices/pthread/pthread_utils.c
Examining data/pocl-1.5/lib/CL/devices/pthread/pthread_scheduler.c
Examining data/pocl-1.5/lib/CL/devices/tce/tce_common.cc
Examining data/pocl-1.5/lib/CL/devices/tce/tce_common.h
Examining data/pocl-1.5/lib/CL/devices/tce/tta_device_main.c
Examining data/pocl-1.5/lib/CL/devices/tce/tta_device_main_dthread.c
Examining data/pocl-1.5/lib/CL/devices/tce/ttasim/ttasim.cc
Examining data/pocl-1.5/lib/CL/devices/tce/ttasim/ttasim.h
Examining data/pocl-1.5/lib/CL/devices/topology/pocl_topology.c
Examining data/pocl-1.5/lib/CL/devices/topology/pocl_topology.h
Examining data/pocl-1.5/lib/CL/devices/common.c
Examining data/pocl-1.5/lib/CL/dummy.c
Examining data/pocl-1.5/lib/CL/pocl_binary.c
Examining data/pocl-1.5/lib/CL/pocl_binary.h
Examining data/pocl-1.5/lib/CL/pocl_cl.h
Examining data/pocl-1.5/lib/CL/pocl_cq_profiling.h
Examining data/pocl-1.5/lib/CL/pocl_debug.c
Examining data/pocl-1.5/lib/CL/pocl_debug.h
Examining data/pocl-1.5/lib/CL/pocl_file_util.c
Examining data/pocl-1.5/lib/CL/pocl_hash.c
Examining data/pocl-1.5/lib/CL/pocl_hash.h
Examining data/pocl-1.5/lib/CL/pocl_icd.h
Examining data/pocl-1.5/lib/CL/pocl_image_util.c
Examining data/pocl-1.5/lib/CL/pocl_image_util.h
Examining data/pocl-1.5/lib/CL/pocl_img_buf_cpy.c
Examining data/pocl-1.5/lib/CL/pocl_intfn.h
Examining data/pocl-1.5/lib/CL/pocl_llvm.h
Examining data/pocl-1.5/lib/CL/pocl_llvm_api.h
Examining data/pocl-1.5/lib/CL/pocl_llvm_metadata.cc
Examining data/pocl-1.5/lib/CL/pocl_llvm_utils.cc
Examining data/pocl-1.5/lib/CL/pocl_lttng.c
Examining data/pocl-1.5/lib/CL/pocl_lttng.h
Examining data/pocl-1.5/lib/CL/pocl_mem_management.c
Examining data/pocl-1.5/lib/CL/pocl_mem_management.h
Examining data/pocl-1.5/lib/CL/pocl_mkstemp.c
Examining data/pocl-1.5/lib/CL/pocl_opengl.c
Examining data/pocl-1.5/lib/CL/pocl_runtime_config.c
Examining data/pocl-1.5/lib/CL/pocl_runtime_config.h
Examining data/pocl-1.5/lib/CL/pocl_shared.h
Examining data/pocl-1.5/lib/CL/pocl_timing.h
Examining data/pocl-1.5/lib/CL/pocl_tracing.c
Examining data/pocl-1.5/lib/CL/pocl_tracing.h
Examining data/pocl-1.5/lib/CL/pocl_util.h
Examining data/pocl-1.5/lib/CL/pocl_llvm_wg.cc
Examining data/pocl-1.5/lib/CL/clEnqueueNDRangeKernel.c
Examining data/pocl-1.5/lib/CL/pocl_cq_profiling.c
Examining data/pocl-1.5/lib/CL/clReleaseContext.c
Examining data/pocl-1.5/lib/CL/pocl_util.c
Examining data/pocl-1.5/lib/CL/pocl_build.c
Examining data/pocl-1.5/lib/CL/clCreateImage.c
Examining data/pocl-1.5/lib/CL/pocl_timing.c
Examining data/pocl-1.5/lib/CL/pocl_llvm_build.cc
Examining data/pocl-1.5/lib/CL/pocl_cache.c
Examining data/pocl-1.5/lib/kernel/cuda/get_global_id.c
Examining data/pocl-1.5/lib/kernel/cuda/get_global_offset.c
Examining data/pocl-1.5/lib/kernel/cuda/get_global_size.c
Examining data/pocl-1.5/lib/kernel/cuda/get_group_id.c
Examining data/pocl-1.5/lib/kernel/cuda/get_local_id.c
Examining data/pocl-1.5/lib/kernel/cuda/get_local_size.c
Examining data/pocl-1.5/lib/kernel/cuda/get_num_groups.c
Examining data/pocl-1.5/lib/kernel/cuda/printf.c
Examining data/pocl-1.5/lib/kernel/errol/enum3.h
Examining data/pocl-1.5/lib/kernel/errol/enum4.h
Examining data/pocl-1.5/lib/kernel/errol/errol.c
Examining data/pocl-1.5/lib/kernel/errol/errol.h
Examining data/pocl-1.5/lib/kernel/errol/itoa_c.h
Examining data/pocl-1.5/lib/kernel/errol/lookup.h
Examining data/pocl-1.5/lib/kernel/get_global_id.c
Examining data/pocl-1.5/lib/kernel/get_global_offset.c
Examining data/pocl-1.5/lib/kernel/get_global_size.c
Examining data/pocl-1.5/lib/kernel/get_group_id.c
Examining data/pocl-1.5/lib/kernel/get_local_id.c
Examining data/pocl-1.5/lib/kernel/get_local_size.c
Examining data/pocl-1.5/lib/kernel/get_num_groups.c
Examining data/pocl-1.5/lib/kernel/get_work_dim.c
Examining data/pocl-1.5/lib/kernel/hsail64/barrier.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_global_id.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_global_offset.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_global_size.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_group_id.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_local_id.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_local_size.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_num_groups.c
Examining data/pocl-1.5/lib/kernel/hsail64/get_work_dim.c
Examining data/pocl-1.5/lib/kernel/hsail64/hsail_templates.h
Examining data/pocl-1.5/lib/kernel/hsail64/vml_constants.h
Examining data/pocl-1.5/lib/kernel/libclc/ep_log.h
Examining data/pocl-1.5/lib/kernel/libclc/misc.h
Examining data/pocl-1.5/lib/kernel/libclc/ocml_helpers.h
Examining data/pocl-1.5/lib/kernel/libclc/sincos_helpers_fp32.h
Examining data/pocl-1.5/lib/kernel/libclc/sincos_helpers_fp64.h
Examining data/pocl-1.5/lib/kernel/libclc/singlevec.h
Examining data/pocl-1.5/lib/kernel/libclc/vtables.h
Examining data/pocl-1.5/lib/kernel/libclc/vtables_macros.h
Examining data/pocl-1.5/lib/kernel/mem_fence.c
Examining data/pocl-1.5/lib/kernel/ocml/inc/irif.h
Examining data/pocl-1.5/lib/kernel/ocml/inc/oclc.h
Examining data/pocl-1.5/lib/kernel/ocml/inc/ocml.h
Examining data/pocl-1.5/lib/kernel/ocml/src/besselD_table.h
Examining data/pocl-1.5/lib/kernel/ocml/src/besselF_table.h
Examining data/pocl-1.5/lib/kernel/ocml/src/builtins.h
Examining data/pocl-1.5/lib/kernel/ocml/src/ep.h
Examining data/pocl-1.5/lib/kernel/ocml/src/expD_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/expF_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/logD_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/logF_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/mathD.h
Examining data/pocl-1.5/lib/kernel/ocml/src/mathF.h
Examining data/pocl-1.5/lib/kernel/ocml/src/mathH.h
Examining data/pocl-1.5/lib/kernel/ocml/src/opts.h
Examining data/pocl-1.5/lib/kernel/ocml/src/powD_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/powF_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/powH_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/privD.h
Examining data/pocl-1.5/lib/kernel/ocml/src/privF.h
Examining data/pocl-1.5/lib/kernel/ocml/src/privH.h
Examining data/pocl-1.5/lib/kernel/ocml/src/remainderD_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/remainderF_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/remainderH_base.h
Examining data/pocl-1.5/lib/kernel/ocml/src/tables.h
Examining data/pocl-1.5/lib/kernel/ocml/src/trigpiredD.h
Examining data/pocl-1.5/lib/kernel/ocml/src/trigpiredF.h
Examining data/pocl-1.5/lib/kernel/ocml/src/trigpiredH.h
Examining data/pocl-1.5/lib/kernel/ocml/src/trigredD.h
Examining data/pocl-1.5/lib/kernel/ocml/src/trigredF.h
Examining data/pocl-1.5/lib/kernel/ocml/src/trigredH.h
Examining data/pocl-1.5/lib/kernel/pocl_image_rw_utils.h
Examining data/pocl-1.5/lib/kernel/pocl_run_all_wgs.c
Examining data/pocl-1.5/lib/kernel/pocl_spawn_wg.c
Examining data/pocl-1.5/lib/kernel/pocl_wg_spawn.c
Examining data/pocl-1.5/lib/kernel/printf.c
Examining data/pocl-1.5/lib/kernel/printf_base.c
Examining data/pocl-1.5/lib/kernel/printf_base.h
Examining data/pocl-1.5/lib/kernel/printf_constant.c
Examining data/pocl-1.5/lib/kernel/sleef/arch/helperadvsimd.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helperavx.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helperavx2.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helperavx2_128.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helperavx512f.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helperneon32.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helperpurec.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helpers.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helpersse2.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/helpervecext.h
Examining data/pocl-1.5/lib/kernel/sleef/arch/misc.h
Examining data/pocl-1.5/lib/kernel/sleef/fma_test.c
Examining data/pocl-1.5/lib/kernel/sleef/include/sleef.h
Examining data/pocl-1.5/lib/kernel/sleef/include/sleef_cl.h
Examining data/pocl-1.5/lib/kernel/sleef/libm/dd.h
Examining data/pocl-1.5/lib/kernel/sleef/libm/df.h
Examining data/pocl-1.5/lib/kernel/sleef/libm/rename.h
Examining data/pocl-1.5/lib/kernel/sleef/libm/rename_vec128.h
Examining data/pocl-1.5/lib/kernel/sleef/libm/rename_vec256.h
Examining data/pocl-1.5/lib/kernel/sleef/libm/rename_vec512.h
Examining data/pocl-1.5/lib/kernel/sleef/libm/sleef_builtin.c
Examining data/pocl-1.5/lib/kernel/sleef/libm/sleef_glue_auto.c
Examining data/pocl-1.5/lib/kernel/sleef/libm/sleefdp.c
Examining data/pocl-1.5/lib/kernel/sleef/libm/sleefsimddp.c
Examining data/pocl-1.5/lib/kernel/sleef/libm/sleefsimdsp.c
Examining data/pocl-1.5/lib/kernel/sleef/libm/sleefsp.c
Examining data/pocl-1.5/lib/kernel/sleef/test.c
Examining data/pocl-1.5/lib/kernel/svm_atomics.h
Examining data/pocl-1.5/lib/kernel/templates.h
Examining data/pocl-1.5/lib/kernel/vload_store_half_f16c.c
Examining data/pocl-1.5/lib/llvmopencl/AllocasToEntry.cc
Examining data/pocl-1.5/lib/llvmopencl/AllocasToEntry.h
Examining data/pocl-1.5/lib/llvmopencl/AutomaticLocals.cc
Examining data/pocl-1.5/lib/llvmopencl/Barrier.h
Examining data/pocl-1.5/lib/llvmopencl/BarrierTailReplication.cc
Examining data/pocl-1.5/lib/llvmopencl/BarrierTailReplication.h
Examining data/pocl-1.5/lib/llvmopencl/BreakConstantGEPs.cpp
Examining data/pocl-1.5/lib/llvmopencl/BreakConstantGEPs.h
Examining data/pocl-1.5/lib/llvmopencl/CanonicalizeBarriers.cc
Examining data/pocl-1.5/lib/llvmopencl/CanonicalizeBarriers.h
Examining data/pocl-1.5/lib/llvmopencl/CompilerWarnings.h
Examining data/pocl-1.5/lib/llvmopencl/DebugHelpers.cc
Examining data/pocl-1.5/lib/llvmopencl/DebugHelpers.h
Examining data/pocl-1.5/lib/llvmopencl/Flatten.cc
Examining data/pocl-1.5/lib/llvmopencl/ImplicitConditionalBarriers.cc
Examining data/pocl-1.5/lib/llvmopencl/ImplicitConditionalBarriers.h
Examining data/pocl-1.5/lib/llvmopencl/ImplicitLoopBarriers.cc
Examining data/pocl-1.5/lib/llvmopencl/ImplicitLoopBarriers.h
Examining data/pocl-1.5/lib/llvmopencl/IsolateRegions.cc
Examining data/pocl-1.5/lib/llvmopencl/IsolateRegions.h
Examining data/pocl-1.5/lib/llvmopencl/Kernel.cc
Examining data/pocl-1.5/lib/llvmopencl/Kernel.h
Examining data/pocl-1.5/lib/llvmopencl/LLVMFileUtils.cc
Examining data/pocl-1.5/lib/llvmopencl/LLVMUtils.cc
Examining data/pocl-1.5/lib/llvmopencl/LLVMUtils.h
Examining data/pocl-1.5/lib/llvmopencl/LoopBarriers.cc
Examining data/pocl-1.5/lib/llvmopencl/LoopBarriers.h
Examining data/pocl-1.5/lib/llvmopencl/OptimizeWorkItemFuncCalls.cc
Examining data/pocl-1.5/lib/llvmopencl/OptimizeWorkItemFuncCalls.h
Examining data/pocl-1.5/lib/llvmopencl/PHIsToAllocas.cc
Examining data/pocl-1.5/lib/llvmopencl/PHIsToAllocas.h
Examining data/pocl-1.5/lib/llvmopencl/RemoveBarrierCalls.cc
Examining data/pocl-1.5/lib/llvmopencl/RemoveBarrierCalls.h
Examining data/pocl-1.5/lib/llvmopencl/RemoveOptnoneFromWIFunc.cc
Examining data/pocl-1.5/lib/llvmopencl/RemoveOptnoneFromWIFunc.h
Examining data/pocl-1.5/lib/llvmopencl/VariableUniformityAnalysis.cc
Examining data/pocl-1.5/lib/llvmopencl/VariableUniformityAnalysis.h
Examining data/pocl-1.5/lib/llvmopencl/WorkItemAliasAnalysis.cc
Examining data/pocl-1.5/lib/llvmopencl/Workgroup.h
Examining data/pocl-1.5/lib/llvmopencl/WorkitemHandler.cc
Examining data/pocl-1.5/lib/llvmopencl/WorkitemHandler.h
Examining data/pocl-1.5/lib/llvmopencl/WorkitemHandlerChooser.cc
Examining data/pocl-1.5/lib/llvmopencl/WorkitemHandlerChooser.h
Examining data/pocl-1.5/lib/llvmopencl/WorkitemLoops.h
Examining data/pocl-1.5/lib/llvmopencl/WorkitemReplication.cc
Examining data/pocl-1.5/lib/llvmopencl/WorkitemReplication.h
Examining data/pocl-1.5/lib/llvmopencl/linker.cpp
Examining data/pocl-1.5/lib/llvmopencl/linker.h
Examining data/pocl-1.5/lib/llvmopencl/HandleSamplerInitialization.cc
Examining data/pocl-1.5/lib/llvmopencl/HandleSamplerInitialization.h
Examining data/pocl-1.5/lib/llvmopencl/ParallelRegion.cc
Examining data/pocl-1.5/lib/llvmopencl/ParallelRegion.h
Examining data/pocl-1.5/lib/llvmopencl/WorkitemLoops.cc
Examining data/pocl-1.5/lib/llvmopencl/FlattenBarrierSubs.cc
Examining data/pocl-1.5/lib/llvmopencl/FlattenGlobals.cc
Examining data/pocl-1.5/lib/llvmopencl/Workgroup.cc
Examining data/pocl-1.5/lib/poclu/bswap.c
Examining data/pocl-1.5/lib/poclu/cl_half.c
Examining data/pocl-1.5/lib/poclu/misc.c
Examining data/pocl-1.5/tests/kernel/image_query_funcs.c
Examining data/pocl-1.5/tests/kernel/kernel.c
Examining data/pocl-1.5/tests/kernel/sampler_address_clamp.c
Examining data/pocl-1.5/tests/kernel/test_shuffle.cc
Examining data/pocl-1.5/tests/regression/test_alignment_with_dynamic_wg.cpp
Examining data/pocl-1.5/tests/regression/test_alignment_with_dynamic_wg2.cpp
Examining data/pocl-1.5/tests/regression/test_alignment_with_dynamic_wg3.cpp
Examining data/pocl-1.5/tests/regression/test_assign_loop_variable_to_privvar_makes_it_local.c
Examining data/pocl-1.5/tests/regression/test_assign_loop_variable_to_privvar_makes_it_local_2.c
Examining data/pocl-1.5/tests/regression/test_autolocals_in_constexprs.cpp
Examining data/pocl-1.5/tests/regression/test_barrier_before_return.cpp
Examining data/pocl-1.5/tests/regression/test_barrier_between_for_loops.cpp
Examining data/pocl-1.5/tests/regression/test_constant_array.cpp
Examining data/pocl-1.5/tests/regression/test_early_return.cpp
Examining data/pocl-1.5/tests/regression/test_flatten_barrier_subs.cpp
Examining data/pocl-1.5/tests/regression/test_for_with_var_iteration_count.cpp
Examining data/pocl-1.5/tests/regression/test_fors_with_var_iteration_counts.cpp
Examining data/pocl-1.5/tests/regression/test_id_dependent_computation.cpp
Examining data/pocl-1.5/tests/regression/test_infinite_loop.cpp
Examining data/pocl-1.5/tests/regression/test_issue_231.cpp
Examining data/pocl-1.5/tests/regression/test_issue_445.cpp
Examining data/pocl-1.5/tests/regression/test_issue_553.cpp
Examining data/pocl-1.5/tests/regression/test_issue_577.cpp
Examining data/pocl-1.5/tests/regression/test_locals.cpp
Examining data/pocl-1.5/tests/regression/test_loop_phi_replication.cpp
Examining data/pocl-1.5/tests/regression/test_multi_level_loops_with_barriers.cpp
Examining data/pocl-1.5/tests/regression/test_null_arg.cpp
Examining data/pocl-1.5/tests/regression/test_program_from_binary_with_local_1_1_1.c
Examining data/pocl-1.5/tests/regression/test_setargs.cpp
Examining data/pocl-1.5/tests/regression/test_simple_for_with_a_barrier.cpp
Examining data/pocl-1.5/tests/regression/test_structs_as_args.cpp
Examining data/pocl-1.5/tests/regression/test_undominated_variable.cpp
Examining data/pocl-1.5/tests/regression/test_vectors_as_args.cpp
Examining data/pocl-1.5/tests/regression/test_issue_757.cpp
Examining data/pocl-1.5/tests/runtime/test_buffer-image-copy.c
Examining data/pocl-1.5/tests/runtime/test_clBuildProgram.c
Examining data/pocl-1.5/tests/runtime/test_clCreateKernel.c
Examining data/pocl-1.5/tests/runtime/test_clCreateKernelsInProgram.c
Examining data/pocl-1.5/tests/runtime/test_clCreateProgramWithBinary.c
Examining data/pocl-1.5/tests/runtime/test_clEnqueueNativeKernel.c
Examining data/pocl-1.5/tests/runtime/test_clFinish.c
Examining data/pocl-1.5/tests/runtime/test_clGetDeviceInfo.c
Examining data/pocl-1.5/tests/runtime/test_clGetEventInfo.c
Examining data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c
Examining data/pocl-1.5/tests/runtime/test_clGetSupportedImageFormats.c
Examining data/pocl-1.5/tests/runtime/test_clSetEventCallback.c
Examining data/pocl-1.5/tests/runtime/test_clSetMemObjectDestructorCallback.c
Examining data/pocl-1.5/tests/runtime/test_data/test_kernel_src_in_another_dir.h
Examining data/pocl-1.5/tests/runtime/test_enqueue_kernel_from_binary.c
Examining data/pocl-1.5/tests/runtime/test_event_cycle.c
Examining data/pocl-1.5/tests/runtime/test_event_free.c
Examining data/pocl-1.5/tests/runtime/test_kernel_cache_includes.c
Examining data/pocl-1.5/tests/runtime/test_kernel_src_in_pwd.h
Examining data/pocl-1.5/tests/runtime/test_link_error.c
Examining data/pocl-1.5/tests/runtime/test_read-copy-write-buffer.c
Examining data/pocl-1.5/tests/runtime/test_user_event.c
Examining data/pocl-1.5/tests/runtime/test_version.c
Examining data/pocl-1.5/tests/runtime/test_clCreateSubDevices.c
Examining data/pocl-1.5/tests/tce/fp16/host.cpp
Examining data/pocl-1.5/tests/tce/multi_AS_copy/host.cpp
Examining data/pocl-1.5/tests/tce/tcemc/host.cpp
Examining data/pocl-1.5/tests/tce/ttasim/host.cpp
Examining data/pocl-1.5/tests/workgroup/run_kernel.c

FINAL RESULTS:

data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:802:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
  strncat (ptx_filename, ".ptx", POCL_FILENAME_LENGTH - 1);
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1155:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
  strncat (brigfile, ".brig", POCL_FILENAME_LENGTH-1);
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1157:3:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
  strncat (hsailfile, ".hsail", POCL_FILENAME_LENGTH-1);
data/pocl-1.5/bin/poclcc.c:102: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(output_file, filename);
data/pocl-1.5/bin/poclcc.c:103:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(output_file, ext);
data/pocl-1.5/examples/matrix1/matrix1.c:319:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy (extra_opts, fma);
data/pocl-1.5/include/vccompat.hpp:42: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.
#define snprintf _snprintf
data/pocl-1.5/include/vccompat.hpp:42:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/pocl-1.5/lib/CL/clGetProgramInfo.c:212:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy (param_value, program->kernel_meta[i].name); /* copy including NULL */
data/pocl-1.5/lib/CL/clGetProgramInfo.c:214:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat ((char*)param_value, program->kernel_meta[i].name);
data/pocl-1.5/lib/CL/devices/common.c:228: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 (objfile_path, final_binary_path);
data/pocl-1.5/lib/CL/devices/cpuinfo.c:82: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 (cpufreq_file, R_OK) != 0)
data/pocl-1.5/lib/CL/devices/cpuinfo.c:118: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 (cpuinfo, R_OK) != 0) 
data/pocl-1.5/lib/CL/devices/cpuinfo.c:167: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 (cpuinfo, R_OK) != 0) 
data/pocl-1.5/lib/CL/devices/cpuinfo.c:305: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 (cpuinfo, R_OK) != 0)
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:801: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 (ptx_filename, bc_filename);
data/pocl-1.5/lib/CL/devices/cuda/pocl-ptx-gen.cc:505:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      size_t ps = snprintf(LibDevicePath, PATH_MAX - 1, PathFormat, bp, np);
data/pocl-1.5/lib/CL/devices/cuda/pocl-ptx-gen.cc:516:12:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      ps = snprintf(LibDevicePath, PATH_MAX - 1, OldPathFormat, bp, np,
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1154: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 (brigfile, parallel_bc_path);
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1156: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 (hsailfile, parallel_bc_path);
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1323: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 (symbol_name, launcher_name_length, launcher_name_tmpl,
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:228:14:  [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.
      assert(access(deviceMainSrc.c_str(), R_OK) == 0);
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:482:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(AssemblyFileName.c_str(), F_OK) != 0) {
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:491:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      Error = system(BuildCmd.c_str());
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:751:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  error = system (tceopgenCmd.c_str());
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:758:11:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  error = system (extgenCmd.c_str());
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:795: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(result, device->llvm_target_triplet);
data/pocl-1.5/lib/CL/devices/topology/pocl_topology.c:271:59:  [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.
#error Dont know how to get HWLOC-provided values on this system!
data/pocl-1.5/lib/CL/pocl_binary.c:329:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (p, entry->d_name);
data/pocl-1.5/lib/CL/pocl_binary.c:446: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 (p, relpath);
data/pocl-1.5/lib/CL/pocl_build.c:102:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (modded_options, token);                                         \
data/pocl-1.5/lib/CL/pocl_build.c:111:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(program->main_build_log + l, (640 - l), __VA_ARGS__); \
data/pocl-1.5/lib/CL/pocl_build.c:231: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 (temp_options, options);
data/pocl-1.5/lib/CL/pocl_build.c:255:19:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                  strcat (link_options, token);
data/pocl-1.5/lib/CL/pocl_build.c:564:11:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
          strcpy (temp_options, options);
data/pocl-1.5/lib/CL/pocl_build.c:567:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (temp_options, extra_build_options);
data/pocl-1.5/lib/CL/pocl_cache.c:358:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat (kernel_parallel_path, POCL_PARALLEL_BC_FILENAME);
data/pocl-1.5/lib/CL/pocl_debug.c:120:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf (stderr, formatstring, year, mon, day, hour, min, sec,
data/pocl-1.5/lib/CL/pocl_debug.c:134:11:  [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, __VA_ARGS__);                                      \
data/pocl-1.5/lib/CL/pocl_debug.h:83:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr,                                                \
data/pocl-1.5/lib/CL/pocl_debug.h:90:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( stderr,                                                \
data/pocl-1.5/lib/CL/pocl_debug.h:97:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(stderr, __VA_ARGS__);                                   \
data/pocl-1.5/lib/CL/pocl_debug.h:159:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf (stderr, __VA_ARGS__);                              \
data/pocl-1.5/lib/CL/pocl_debug.h:170:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf  (stderr, __VA_ARGS__);                             \
data/pocl-1.5/lib/CL/pocl_file_util.c:107:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return !access(path, R_OK);
data/pocl-1.5/lib/CL/pocl_llvm_metadata.cc:159:16:  [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).
          std::strcpy(current_arg->type_name, val.c_str());
data/pocl-1.5/lib/CL/pocl_llvm_metadata.cc:177:16:  [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).
          std::strcpy(current_arg->name, val.c_str());
data/pocl-1.5/lib/CL/pocl_llvm_metadata.cc:387:10:  [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).
    std::strcpy(current_arg->type_name, val.c_str());
data/pocl-1.5/lib/CL/pocl_llvm_metadata.cc:428:12:  [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).
      std::strcpy(current_arg->name, val.c_str());
data/pocl-1.5/lib/CL/pocl_timing.c:157:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#error Unknown system variant
data/pocl-1.5/lib/CL/pocl_tracing.c:196:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  text_size = sprintf (cur_buf, "%"PRIu64" %s %s ", ts,
data/pocl-1.5/lib/CL/pocl_tracing.c:218:20:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      text_size += sprintf (cur_buf, "name=%s\n",
data/pocl-1.5/lib/CL/pocl_util.c:1138:36:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
#error Must have fork() or vfork() system calls for HSA
data/pocl-1.5/lib/CL/pocl_util.c:1142:14:  [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.
      return execv (args[0], args);
data/pocl-1.5/lib/kernel/cuda/printf.c:28:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int vprintf(const char*, char*);
data/pocl-1.5/lib/kernel/cuda/printf.c:31:1:  [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(__attribute__((address_space(4))) char* restrict format, ...)
data/pocl-1.5/lib/kernel/errol/errol.c:100:1:  [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 *dest, const char *src)
data/pocl-1.5/lib/kernel/errol/errol.c:383:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(buf, errol_enum3_data[i].str);
data/pocl-1.5/lib/kernel/errol/errol.c:502:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(buf, errol_enum4_data[i].str);
data/pocl-1.5/lib/kernel/printf.c:720:1:  [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 (const OCL_CONSTANT_AS char *restrict fmt, ...)
data/pocl-1.5/lib/kernel/printf_base.c:39:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf (char *str, size_t size, const char *format, ...);
data/pocl-1.5/lib/kernel/printf_base.c:367: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(outfmt, sizeof outfmt,
data/pocl-1.5/lib/kernel/printf_base.c:380: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 (p->bf, BUFSIZE, outfmt, f);
data/pocl-1.5/lib/kernel/printf_constant.c:55:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int vprintf(const char *, __builtin_va_list);
data/pocl-1.5/lib/kernel/printf_constant.c:58:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef printf
data/pocl-1.5/lib/kernel/printf_constant.c:61:1:  [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(__attribute__((address_space(POCL_ADDRESS_SPACE_CONSTANT)))
data/pocl-1.5/lib/kernel/printf_constant.c:77:12:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  retval = vprintf(format_private, ap);
data/pocl-1.5/lib/poclu/misc.c:303:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(final_opts, extra_build_opts);
data/pocl-1.5/lib/poclu/misc.c:366:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access (path, F_OK))
data/pocl-1.5/lib/poclu/misc.c:370:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
          if (access (path, F_OK))
data/pocl-1.5/tests/kernel/test_shuffle.cc:81:16:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            rv=sprintf(buf,
data/pocl-1.5/tests/kernel/test_shuffle.cc:86:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            rv+=sprintf(buf+rv,
data/pocl-1.5/tests/regression/test_constant_array.cpp:127:9:  [4] (shell) execlp:
  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.
        execlp("true", "true", NULL);
data/pocl-1.5/tests/regression/test_infinite_loop.cpp:122:9:  [4] (shell) execlp:
  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.
        execlp("true", "true", NULL);
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:70:36:  [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.
    cl_kernel_arg_access_qualifier access;
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:123:52:  [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.
                              BUF_LEN, &kernel_arg.access, &retsize);
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:274:50:  [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.
                            BUF_LEN, &kernel_arg.access, &retsize);
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:279:50:  [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.
                            BUF_LEN, &kernel_arg.access, &retsize);
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:284:50:  [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.
                            BUF_LEN, &kernel_arg.access, &retsize);
data/pocl-1.5/examples/example0/example0.c:59:3:  [3] (random) srand:
  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.
  srand (time (NULL));
data/pocl-1.5/examples/example2/example2.c:75:40:  [3] (random) drand48:
  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.
      input[i * WIDTH + j] = (cl_float)drand48();
data/pocl-1.5/examples/example2a/example2a.c:76:40:  [3] (random) drand48:
  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.
      input[i * WIDTH + j] = (cl_float)drand48();
data/pocl-1.5/examples/matrix1/matrix1.c:408:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srandom (time (NULL));
data/pocl-1.5/examples/matrix1/matrix1.c:414:20:  [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.
          long r = random ();
data/pocl-1.5/include/vccompat.hpp:59:20:  [3] (random) srand:
  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.
#define srand48(x) srand(x)
data/pocl-1.5/include/vccompat.hpp:60:9:  [3] (random) drand48:
  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.
#define drand48() (double(rand()) / RAND_MAX)
data/pocl-1.5/include/vccompat.hpp:73:17:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (void*)LoadLibrary(filename);
data/pocl-1.5/lib/CL/devices/devices.c:122:25:  [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 *dev_env = getenv(POCL_DEVICES_ENV);
data/pocl-1.5/lib/CL/devices/devices.c:549:44:  [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.
              j, &pocl_devices[dev_index], getenv (env_name));
data/pocl-1.5/lib/CL/pocl_cache.c:470:20:  [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.
        tmp_path = getenv("LOCALAPPDATA");
data/pocl-1.5/lib/CL/pocl_cache.c:472:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            tmp_path = getenv("TEMP");
data/pocl-1.5/lib/CL/pocl_cache.c:480:20:  [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.
        tmp_path = getenv("XDG_CACHE_HOME");
data/pocl-1.5/lib/CL/pocl_cache.c:491:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        else if ((tmp_path = getenv("HOME")) != NULL) {
data/pocl-1.5/lib/CL/pocl_runtime_config.c:59: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.
  if ((value = getenv(key)))
data/pocl-1.5/lib/llvmopencl/WorkitemHandlerChooser.cc:84:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv("POCL_WORK_GROUP_METHOD") != NULL)
data/pocl-1.5/lib/llvmopencl/WorkitemHandlerChooser.cc:86: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.
      method = getenv("POCL_WORK_GROUP_METHOD");
data/pocl-1.5/lib/llvmopencl/WorkitemHandlerChooser.cc:101: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.
      if (getenv("POCL_FULL_REPLICATION_THRESHOLD") != NULL) 
data/pocl-1.5/lib/llvmopencl/WorkitemHandlerChooser.cc:103:30:  [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.
        ReplThreshold = atoi(getenv("POCL_FULL_REPLICATION_THRESHOLD"));
data/pocl-1.5/lib/llvmopencl/WorkitemLoops.cc:504:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("POCL_WILOOPS_MAX_UNROLL_COUNT") != NULL)
data/pocl-1.5/lib/llvmopencl/WorkitemLoops.cc:505:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            unrollCount = atoi(getenv("POCL_WILOOPS_MAX_UNROLL_COUNT"));
data/pocl-1.5/tests/regression/test_flatten_barrier_subs.cpp:207:51:  [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.
    for(unsigned i = 0; i < n; ++i) res.push_back(random()&1);
data/pocl-1.5/bin/poclcc.c:169: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).
  opencl_device_id = atoi(argv[arg]);
data/pocl-1.5/bin/poclcc.c:299: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 str[DEVICE_INFO_MAX_LENGTH];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:494: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 platform_name[platform_name_length];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:501: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 platform_vendor[platform_vendor_length];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:555: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 device_name[device_name_length];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:565: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 platform_name[platform_name_length];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:572: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 platform_vendor[platform_vendor_length];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:609: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 build_log[log_size];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:1428:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *const source1_file = fopen(SRCDIR "/ML_BSSN_CL_RHS1.cl", "r");
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:1433: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 source1[source1_size + 1];
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:1438:30:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *const source2_file = fopen(SRCDIR "/ML_BSSN_CL_RHS2.cl", "r");
data/pocl-1.5/examples/EinsteinToolkit/EinsteinToolkit.c:1443: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 source2[source2_size + 1];
data/pocl-1.5/examples/matrix1/matrix1.c:308: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 extra_opts[1024];
data/pocl-1.5/examples/scalarwave/scalarwave.c:154:29:  [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 *const source_file = fopen(SRCDIR "/examples/scalarwave/scalarwave.cl", "r");
data/pocl-1.5/examples/trig/trig.c:46:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  source_file = fopen("trig.cl", "r");
data/pocl-1.5/examples/trig/trig.c:48:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    source_file = fopen (SRCDIR "/trig.cl", "r");
data/pocl-1.5/examples/vecadd/vecadd.c:79:21:  [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).
        vec_width = atoi(argv[l * 2 + 1]);
data/pocl-1.5/examples/vecadd/vecadd.c:82:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        wg_size = atoi(argv[l * 2 + 2]);
data/pocl-1.5/include/CL/cl.hpp:507:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(str_, str, size_  * sizeof(char));
data/pocl-1.5/include/CL/cl.hpp:531:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(str_, str, (size_ + 1) * sizeof(char));
data/pocl-1.5/include/CL/cl.hpp:557:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(newString, str_, (copySize + 1) * sizeof(char));
data/pocl-1.5/include/CL/cl.hpp:606:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(str_, rhs.str_, (size_ + 1) * sizeof(char));
data/pocl-1.5/lib/CL/clCreateContext.c:102: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(context->properties, properties, 
data/pocl-1.5/lib/CL/clCreateProgramWithBinary.c:130: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 program_bc_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/clCreateProgramWithBinary.c:139:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      if (!strncmp((const char *)binaries[i], "BC", 2))
data/pocl-1.5/lib/CL/clCreateProgramWithBinary.c:143:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (program->binaries[i], binaries[i], lengths[i]);
data/pocl-1.5/lib/CL/clCreateProgramWithBinary.c:154:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (program->pocl_binaries[i], binaries[i], lengths[i]);
data/pocl-1.5/lib/CL/clCreateProgramWithIL.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char program_bc_spirv[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/clCreateProgramWithIL.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 program_bc_temp[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/clCreateProgramWithIL.c:127: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 (program->program_il, il, length);
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:81:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(source, strings[i], strlen(strings[i]));
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:86:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(source, strings[i], strlen(strings[i]));
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:91:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(source, strings[i], lengths[i]);
data/pocl-1.5/lib/CL/clCreateSubDevices.c:139:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
       memcpy(new_devs[i], in_device, sizeof(struct _cl_device_id));
data/pocl-1.5/lib/CL/clCreateSubDevices.c:164:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
       memcpy(new_devs[i]->partition_type, properties, num_props*sizeof(*properties));
data/pocl-1.5/lib/CL/clCreateSubDevices.c:175:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy(out_devices, new_devs, count_devices*sizeof(cl_device_id));
data/pocl-1.5/lib/CL/clEnqueueFillBuffer.c:97:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(p, pattern, pattern_size);
data/pocl-1.5/lib/CL/clEnqueueNDRangeKernel.c:539: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 (&new_event_wait_list[b_migrate_count], event_wait_list,
data/pocl-1.5/lib/CL/clEnqueueNDRangeKernel.c:600:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (arg->value, kernel->dyn_arguments[i].value, arg->size);
data/pocl-1.5/lib/CL/clEnqueueNativeKernel.c:71: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 (args_copy, args, cb_args);
data/pocl-1.5/lib/CL/clEnqueueNativeKernel.c:77:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *loc = (const char *) args_mem_loc[i];
data/pocl-1.5/lib/CL/clEnqueueSVMMemFill.c:84:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (p, pattern, pattern_size);
data/pocl-1.5/lib/CL/clGetDeviceInfo.c:210: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 res[1000];
data/pocl-1.5/lib/CL/clGetPlatformInfo.c:158: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(param_value, ret, retlen);
data/pocl-1.5/lib/CL/clGetProgramInfo.c:75:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(binaries[i], program->pocl_binaries[i], program->pocl_binary_sizes[i]);
data/pocl-1.5/lib/CL/clGetProgramInfo.c:130:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (param_value, program->program_il, program->program_il_size));
data/pocl-1.5/lib/CL/clGetSupportedImageFormats.c:51: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 (image_formats, context->image_formats[idx],
data/pocl-1.5/lib/CL/clSetKernelArg.c:146: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 (value, arg_value, arg_size);
data/pocl-1.5/lib/CL/devices/accel/accel.cc:462: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).
  int mem_fd = open("/dev/mem", O_RDWR | O_SYNC);
data/pocl-1.5/lib/CL/devices/accel/accel.cc:564: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(target, (pocl_kernel_metadata_t *)Desc,
data/pocl-1.5/lib/CL/devices/accel/accel.cc:572:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&target->arg_info[Arg], &Desc->arg_info[Arg],
data/pocl-1.5/lib/CL/devices/accel/accel.cc:778: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(current_arg, &al->value, size);
data/pocl-1.5/lib/CL/devices/basic/basic.c:509:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (b, host_ptr, mem_obj->size);
data/pocl-1.5/lib/CL/devices/basic/basic.c:547: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 (host_ptr, (char *)device_ptr + offset, size);
data/pocl-1.5/lib/CL/devices/basic/basic.c:561: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 ((char *)device_ptr + offset, host_ptr, size);
data/pocl-1.5/lib/CL/devices/basic/basic.c:633:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (devptr, &di, sizeof (dev_image_t));
data/pocl-1.5/lib/CL/devices/basic/basic.c:745: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_ptr + dst_offset, src_ptr + src_offset, size);
data/pocl-1.5/lib/CL/devices/basic/basic.c:794: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 (adjusted_dst_ptr, adjusted_src_ptr,
data/pocl-1.5/lib/CL/devices/basic/basic.c:801:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (adjusted_dst_ptr + dst_row_pitch * j + dst_slice_pitch * k,
data/pocl-1.5/lib/CL/devices/basic/basic.c:854: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 (adjusted_device_ptr,
data/pocl-1.5/lib/CL/devices/basic/basic.c:862:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (adjusted_device_ptr
data/pocl-1.5/lib/CL/devices/basic/basic.c:917: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 (adjusted_host_ptr,
data/pocl-1.5/lib/CL/devices/basic/basic.c:925:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (adjusted_host_ptr
data/pocl-1.5/lib/CL/devices/basic/basic.c:1046: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 ((char *)host_ptr, (char *)src_device_ptr + offset, size);
data/pocl-1.5/lib/CL/devices/basic/basic.c:1077: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 ((char *)dst_device_ptr + offset, (char *)host_ptr, size);
data/pocl-1.5/lib/CL/devices/basic/basic.c:1431:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (adjusted_device_ptr
data/pocl-1.5/lib/CL/devices/basic/basic.c:1458: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/pocl-1.5/lib/CL/devices/common.c:97: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_module[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/common.c:98:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp_objfile[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/common.c:108: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 parallel_bc_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/common.c:113: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 final_binary_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/common.c:141: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 kernel_parallel_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/common.c:202: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.
  const char *cmd_line[64] =
data/pocl-1.5/lib/CL/devices/common.c:227: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 objfile_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/common.c:229:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat (objfile_path, ".o");
data/pocl-1.5/lib/CL/devices/common.c:250: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 (output, final_binary_path, POCL_FILENAME_LENGTH);
data/pocl-1.5/lib/CL/devices/common.c:1053: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 workgroup_string[WORKGROUP_STRING_LENGTH];
data/pocl-1.5/lib/CL/devices/common.c:1068: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 (ci->hash, run_cmd->hash, sizeof (pocl_kernel_hash_t));
data/pocl-1.5/lib/CL/devices/common.c:1336: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 (program->kernel_meta[kernel_i].build_hash[device_i], digest,
data/pocl-1.5/lib/CL/devices/cpuinfo.c:85: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 (cpufreq_file, "r");
data/pocl-1.5/lib/CL/devices/cpuinfo.c:122:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *f = fopen (cpuinfo, "r");
data/pocl-1.5/lib/CL/devices/cpuinfo.c:123: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 contents[MAX_CPUINFO_SIZE];
data/pocl-1.5/lib/CL/devices/cpuinfo.c:171:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *f = fopen (cpuinfo, "r");
data/pocl-1.5/lib/CL/devices/cpuinfo.c:172: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 contents[MAX_CPUINFO_SIZE];
data/pocl-1.5/lib/CL/devices/cpuinfo.c:308: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 (cpuinfo, "r");
data/pocl-1.5/lib/CL/devices/cpuinfo.c:309: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[MAX_CPUINFO_SIZE];
data/pocl-1.5/lib/CL/devices/cpuinfo.c:349: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(_vendor, start, end-start);
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:51: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 libdevice[PATH_MAX];
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:796: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 bc_filename[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:800: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 ptx_filename[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/cuda/pocl-ptx-gen.cc:456:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int findLibDevice(char LibDevicePath[PATH_MAX], const char *Arch) {
data/pocl-1.5/lib/CL/devices/cuda/pocl-ptx-gen.h:40:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int findLibDevice(char LibDevicePath[PATH_MAX], const char *Arch);
data/pocl-1.5/lib/CL/devices/devices.c:444: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 env_name[1024];
data/pocl-1.5/lib/CL/devices/devices.c:445: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 dev_name[MAX_DEV_NAME_LEN] = { 0 };
data/pocl-1.5/lib/CL/devices/devices.c:484: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 random_empty_file[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1037:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (write_pos, &buf_size, sizeof (size_t));
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1043:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (write_pos, total_group_size, sizeof (uint32_t));
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1059:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (write_pos, &temp, sizeof (uint64_t));
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1085:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (write_pos, &dev_ptr, sizeof (uint64_t));
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1107:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (write_pos, al->value, al->size);
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1126: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 (event_data->context, &cmd->command.run.pc, sizeof (struct pocl_context));
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1130: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 (write_pos, &event_data->context, sizeof (event_data->context));
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1146: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 hsailfile[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1147: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 parallel_bc_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1239: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).
  elf_file = fopen(binary_fn, "rb");
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1263: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 (wpos, &elf_size, sizeof (elf_size));
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1296: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 (d->kernel_cache[i].kernel_hash, cmd->command.run.hash,
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1360: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 brigfile[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1440: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 (d->kernel_cache[i].kernel_hash, cmd->command.run.hash,
data/pocl-1.5/lib/CL/devices/pthread/pthread_scheduler.c:264: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 (&pc, &k->pc, sizeof (struct pocl_context));
data/pocl-1.5/lib/CL/devices/pthread/pthread_utils.c:154:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (devptr, &di, sizeof (dev_image_t));
data/pocl-1.5/lib/CL/devices/pthread/pthread_utils.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 (arguments2, k->arguments2, ARGS_SIZE);
data/pocl-1.5/lib/CL/devices/pthread/pthread_utils.c:184: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 (arguments, k->arguments, ARGS_SIZE);
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:464: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 ByteCode[POCL_FILENAME_LENGTH + 13];
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:469: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 CacheDir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:776:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* adf_file = fopen (tce_dev->machine_file.c_str(), "r");
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:830: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_mem_id->mem_ptr, src_mem_id->mem_ptr, size);
data/pocl-1.5/lib/CL/devices/tce/ttasim/ttasim.cc:123: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 dev_name[256];
data/pocl-1.5/lib/CL/devices/topology/pocl_topology.c:201:18:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long val = atol (content);
data/pocl-1.5/lib/CL/devices/topology/pocl_topology.c:209:22:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          long val = atol (content);
data/pocl-1.5/lib/CL/pocl_binary.c:109: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 pocl_id[POCLCC_STRING_ID_LENGTH];
data/pocl-1.5/lib/CL/pocl_binary.c:142: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 (buffer, &b_s_tmp, sizeof (type));   \
data/pocl-1.5/lib/CL/pocl_binary.c:148: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 (&elem, buffer, sizeof (type));          \
data/pocl-1.5/lib/CL/pocl_binary.c:157:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buffer, elem, len);                \
data/pocl-1.5/lib/CL/pocl_binary.c:169:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (elem, buffer, len);             \
data/pocl-1.5/lib/CL/pocl_binary.c:202: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(b->pocl_id, buffer, POCLCC_STRING_ID_LENGTH);
data/pocl-1.5/lib/CL/pocl_binary.c:208: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(b->program_build_hash, buffer, sizeof(SHA1_digest_t));
data/pocl-1.5/lib/CL/pocl_binary.c:274: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(program->build_hash[device_i],
data/pocl-1.5/lib/CL/pocl_binary.c:319: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 subpath[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_binary.c:346:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_binary.c:347: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 basedir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_binary.c:607: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, POCLCC_STRING_ID, POCLCC_STRING_ID_LENGTH);
data/pocl-1.5/lib/CL/pocl_binary.c:617: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, program->build_hash[device_i], sizeof(SHA1_digest_t));
data/pocl-1.5/lib/CL/pocl_binary.c:622: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 basedir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_binary.c:625: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 program_bc_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_binary.c:658: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 basedir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_binary.c:706: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(program->pocl_binaries[device_i], temp_buf, res);
data/pocl-1.5/lib/CL/pocl_build.c:503: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 program_bc_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_build.c:504: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 link_options[512];
data/pocl-1.5/lib/CL/pocl_build.c:741:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          unsigned char *cur_device_binaries[num_input_programs];
data/pocl-1.5/lib/CL/pocl_cache.c:55: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 cache_topdir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:56: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 tempfile_pattern[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:57: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 tempdir_pattern[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:131: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 tempstring[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:159: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 tempstring[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:195: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 final_binary_name[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:264: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 last_accessed_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:275: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 device_cachedir_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:288: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 devdir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:291: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 descriptor[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:310: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 buildlog_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:333: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 buildlog_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:349: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 kernel_parallel_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:598: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 random_dir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cache.c:603:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy (program->build_hash[device_i], random_dir + s, 16);
data/pocl-1.5/lib/CL/pocl_cache.c:624: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 cachedir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_cl.h:1097: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 main_build_log[640];
data/pocl-1.5/lib/CL/pocl_file_util.c:113: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(path, "w");
data/pocl-1.5/lib/CL/pocl_file_util.c:143: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 (path, "r");
data/pocl-1.5/lib/CL/pocl_file_util.c:209:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(path, "a");
data/pocl-1.5/lib/CL/pocl_file_util.c:211:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(path, "w");
data/pocl-1.5/lib/CL/pocl_file_util.c:287:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp (output);
data/pocl-1.5/lib/CL/pocl_hash.c:118:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&block, buffer, 64);
data/pocl-1.5/lib/CL/pocl_hash.c:184:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&context->buffer[j], data, (i = 64-j));
data/pocl-1.5/lib/CL/pocl_hash.c:192:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&context->buffer[j], &data[i], len - i);
data/pocl-1.5/lib/CL/pocl_img_buf_cpy.c:131: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(mod_region, region, 3*sizeof(size_t));
data/pocl-1.5/lib/CL/pocl_img_buf_cpy.c:132: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(mod_src_origin, src_origin, 3*sizeof(size_t));
data/pocl-1.5/lib/CL/pocl_img_buf_cpy.c:133: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(mod_dst_origin, dst_origin, 3*sizeof(size_t));
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:109: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 source_file[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:152: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(newlog, program->build_log[device_i], len);
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:153: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(newlog + len, s.c_str(), len2);
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:216: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 tempfile[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:219:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp_include_dir[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:621:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(program->binaries[device_i], content.c_str(), n);
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:690: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.
    concated_binaries.append(std::string((char *)cur_device_binaries[i],
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:766:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(program->binaries[device_i], content.c_str(), n);
data/pocl-1.5/lib/CL/pocl_llvm_metadata.cc:602:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(meta->attributes, r.c_str(), r.size());
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:457: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 ParallelBCPath[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:464: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 FinalBinaryPath[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:492: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 program_bc_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:532: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 program_bc_path[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:566:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(program->binaries[i], content.c_str(), n);
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:633: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(*Output, Cstr, S);
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:670: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 AsmFileName[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_llvm_wg.cc:671: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 ObjFileName[POCL_FILENAME_LENGTH];
data/pocl-1.5/lib/CL/pocl_mkstemp.c:63:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char xtra[2] = "aa";
data/pocl-1.5/lib/CL/pocl_mkstemp.c:119: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).
        if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0)
data/pocl-1.5/lib/CL/pocl_runtime_config.c:84:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return (ed = find_env (env_cache, key)) ? atoi(ed->value) : default_value;
data/pocl-1.5/lib/CL/pocl_tracing.c:162:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  text_tracer_file = fopen (text_tracer_output, "w");
data/pocl-1.5/lib/CL/pocl_tracing.c:187: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_buffer[512];
data/pocl-1.5/lib/CL/pocl_tracing.c:204:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      text_size += sprintf (cur_buf, "size=%" PRIuS ", host_ptr=%p\n",
data/pocl-1.5/lib/CL/pocl_tracing.c:209:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      text_size += sprintf (cur_buf, "size=%" PRIuS ", host_ptr=%p\n\n",
data/pocl-1.5/lib/CL/pocl_tracing.c:215:14:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          += sprintf (cur_buf, "size=%" PRIuS "\n", node->command.copy.size);
data/pocl-1.5/lib/CL/pocl_tracing.c:222:20:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      text_size += sprintf (cur_buf, "size=%"PRIuS"\n", 
data/pocl-1.5/lib/CL/pocl_util.c:175: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.
        unsigned char bytes[4];
data/pocl-1.5/lib/CL/pocl_util.c:193: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.
        unsigned char bytes[4];
data/pocl-1.5/lib/CL/pocl_util.c:406:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy ((*event)->mem_objs, buffers, num_buffers * sizeof(cl_mem));
data/pocl-1.5/lib/CL/pocl_util.c:911: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 (*context_formats, dev_formats,
data/pocl-1.5/lib/CL/pocl_util.c:937:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy (ctf + ncf, dev_formats + i, sizeof (cl_image_format));
data/pocl-1.5/lib/CL/pocl_util.c:1134:13:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
  pid_t p = vfork ();
data/pocl-1.5/lib/CL/pocl_util.c:1138:28:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
#error Must have fork() or vfork() system calls for HSA
data/pocl-1.5/lib/CL/pocl_util.h:253: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(param_value, __POINTER__, __SIZE__))
data/pocl-1.5/lib/CL/pocl_util.h:260:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(param_value, __STR__, value_size));            \
data/pocl-1.5/lib/CL/pocl_util.h:271:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy (param_value, __STR__, value_size);                        \
data/pocl-1.5/lib/CL/pocl_util.h:298:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                  memcpy(param_value, __VALUE__, value_size));          \
data/pocl-1.5/lib/kernel/cuda/printf.c:34: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 arg_data[8];
data/pocl-1.5/lib/kernel/errol/errol.c:122:17:  [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(buf, "17976931348623157");
data/pocl-1.5/lib/kernel/errol/errol.c:204:17:  [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(buf, "17976931348623157");
data/pocl-1.5/lib/kernel/errol/errol.c:316: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 lstr[42], hstr[42], mstr[41];
data/pocl-1.5/lib/kernel/errol/errol.h:33: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 str[18];
data/pocl-1.5/lib/kernel/errol/errol.h:38: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 str[18];
data/pocl-1.5/lib/kernel/errol/itoa_c.h:21: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 cDigitsLut[200]
data/pocl-1.5/lib/kernel/printf.c:85:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *NANs[2] = { "nan", "NAN" };                                   \
data/pocl-1.5/lib/kernel/printf.c:86:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *INFs[2] = { "inf", "INF" };                                   \
data/pocl-1.5/lib/kernel/printf.c:173: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 bf[BUFSIZE];
data/pocl-1.5/lib/kernel/printf_base.c:84:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[SMALL_BUF_SIZE];
data/pocl-1.5/lib/kernel/printf_base.c:111:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[SMALL_BUF_SIZE];
data/pocl-1.5/lib/kernel/printf_base.c:160:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[SMALL_BUF_SIZE];
data/pocl-1.5/lib/kernel/printf_base.c:196:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[SMALL_BUF_SIZE];
data/pocl-1.5/lib/kernel/printf_base.c:361: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 outfmt[128];
data/pocl-1.5/lib/kernel/printf_base.c:834: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 float_digits[BUFSIZE];
data/pocl-1.5/lib/kernel/printf_constant.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char format_private[MAX_FORMAT_STR_SIZE];
data/pocl-1.5/lib/llvmopencl/DebugHelpers.cc:152:5:  [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).
  s.open(fname.c_str(), std::ios::trunc);
data/pocl-1.5/lib/llvmopencl/Workgroup.cc:820: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 TempStr[STRING_LENGTH];
data/pocl-1.5/lib/llvmopencl/WorkitemHandlerChooser.cc:103:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ReplThreshold = atoi(getenv("POCL_FULL_REPLICATION_THRESHOLD"));
data/pocl-1.5/lib/llvmopencl/WorkitemLoops.cc:505:27:  [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).
            unrollCount = atoi(getenv("POCL_WILOOPS_MAX_UNROLL_COUNT"));
data/pocl-1.5/lib/llvmopencl/WorkitemLoops.cc:975: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 GlobalName[32];
data/pocl-1.5/lib/poclu/bswap.c:34:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char bytes[sizeof(__DTYPE)];                       \
data/pocl-1.5/lib/poclu/misc.c:147:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (filename, "r");
data/pocl-1.5/lib/poclu/misc.c:182:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen (filemane, "w");
data/pocl-1.5/lib/poclu/misc.c:285: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 extensions[1024];
data/pocl-1.5/lib/poclu/misc.c:286:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char path[1024];
data/pocl-1.5/lib/poclu/misc.c:288: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 final_opts[2048];
data/pocl-1.5/lib/poclu/misc.c:308:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat (final_opts, " -x spir -spir-std=1.2");
data/pocl-1.5/tests/kernel/test_shuffle.cc:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/pocl-1.5/tests/kernel/test_shuffle.cc:171: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 kern_name[128], kern_name2[128];
data/pocl-1.5/tests/regression/test_flatten_barrier_subs.cpp:33: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* f = fopen(path.c_str(), "rb");
data/pocl-1.5/tests/regression/test_vectors_as_args.cpp:81:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char const* const kernelName[5] =
data/pocl-1.5/tests/runtime/test_clCreateProgramWithBinary.c:159: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((void*)binaries[1], (void*)binaries[0], binary_sizes[0]);      
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:72: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 string[BUF_LEN];
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:413: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 extensions[1024];
data/pocl-1.5/tests/runtime/test_version.c:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char result[1024];
data/pocl-1.5/tests/tce/multi_AS_copy/host.cpp:60:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char output[64] = {0};
data/pocl-1.5/tests/tce/multi_AS_copy/host.cpp:61: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 formattedInput[64] = {1, 1, 1, 1, 1, 1, 1, 1,
data/pocl-1.5/tests/tce/multi_AS_copy/host.cpp:70: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 expectedResult[64] = {0, 0, 0, 0, 0, 0, 0, 0,
data/pocl-1.5/tests/tce/tcemc/host.cpp:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char output[OUTPUT_SIZE];
data/pocl-1.5/tests/tce/ttasim/host.cpp:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char output[OUTPUT_SIZE];
data/pocl-1.5/tests/workgroup/run_kernel.c:66: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 kernel_path[2048];
data/pocl-1.5/tests/workgroup/run_kernel.c:73:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  local_work_size[0] = atoi(argv[3]);
data/pocl-1.5/tests/workgroup/run_kernel.c:74:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  local_work_size[1] = atoi(argv[4]);
data/pocl-1.5/tests/workgroup/run_kernel.c:75:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  local_work_size[2] = atoi(argv[5]);
data/pocl-1.5/tests/workgroup/run_kernel.c:77:46:  [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).
  global_work_size[0] = local_work_size[0] * atoi(argv[2]);
data/pocl-1.5/bin/poclcc.c:101:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      output_file = malloc(strlen(filename)+strlen(ext));
data/pocl-1.5/bin/poclcc.c:101:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      output_file = malloc(strlen(filename)+strlen(ext));
data/pocl-1.5/examples/pocl-android-sample/jni/vectorAdd.cpp:57:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t strSize = strlen(vector_add_str);
data/pocl-1.5/include/CL/cl.hpp:526:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            size_= ::strlen(str);
data/pocl-1.5/include/pocl.h:329:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  _cl_command_read read;
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:61:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size += strlen(strings[i]);
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:63:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size += strlen(strings[i]);
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:81:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memcpy(source, strings[i], strlen(strings[i]));
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:82: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).
          source += strlen(strings[i]);
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:86:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          memcpy(source, strings[i], strlen(strings[i]));
data/pocl-1.5/lib/CL/clCreateProgramWithSource.c:87: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).
          source += strlen(strings[i]);
data/pocl-1.5/lib/CL/clEnqueueReadBuffer.c:85:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cmd->command.read.dst_host_ptr = ptr;
data/pocl-1.5/lib/CL/clEnqueueReadBuffer.c:86:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cmd->command.read.src_mem_id = &buffer->device_ptrs[device->dev_id];
data/pocl-1.5/lib/CL/clEnqueueReadBuffer.c:87:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cmd->command.read.offset = offset;
data/pocl-1.5/lib/CL/clEnqueueReadBuffer.c:88:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  cmd->command.read.size = size;
data/pocl-1.5/lib/CL/clGetPlatformInfo.c:151:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  retlen = strlen(ret) + 1;
data/pocl-1.5/lib/CL/clGetProgramInfo.c:195:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          size += strlen (program->kernel_meta[i].name);
data/pocl-1.5/lib/CL/clGetProgramInfo.c:216:17:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                strcat ((char*)param_value, ";");
data/pocl-1.5/lib/CL/clReleaseContext.c:98:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep (100000);
data/pocl-1.5/lib/CL/devices/accel/accel.cc:720:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(20000);
data/pocl-1.5/lib/CL/devices/common.c:120: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).
  assert (strlen (final_binary_path) < (POCL_FILENAME_LENGTH - 3));
data/pocl-1.5/lib/CL/devices/common.c:317:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      src_dev->ops->read 
data/pocl-1.5/lib/CL/devices/common.c:391:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      assert (dev->ops->read);
data/pocl-1.5/lib/CL/devices/common.c:392:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      dev->ops->read
data/pocl-1.5/lib/CL/devices/common.c:394:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         cmd->read.dst_host_ptr,
data/pocl-1.5/lib/CL/devices/common.c:395:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         cmd->read.src_mem_id,
data/pocl-1.5/lib/CL/devices/common.c:397:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         cmd->read.offset,
data/pocl-1.5/lib/CL/devices/common.c:398:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         cmd->read.size);
data/pocl-1.5/lib/CL/devices/common.c:1331: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).
  pocl_SHA1_Update (&hash_ctx, (uint8_t *)n, strlen (n));
data/pocl-1.5/lib/CL/devices/cpuinfo.c:326:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    start += strlen(VENDORSTRING"\t: ");
data/pocl-1.5/lib/CL/devices/cpuinfo.c:339: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).
                end = start + strlen (vendor_list[i].name);
data/pocl-1.5/lib/CL/devices/cpuinfo.c:359:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  start += strlen (MODELSTRING"\t: ");
data/pocl-1.5/lib/CL/devices/cpuinfo.c:388: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).
              end = start + strlen (part_list[i].name);
data/pocl-1.5/lib/CL/devices/cpuinfo.c:396: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 (device->short_name) + (end-start) + 2;
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:1111:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          stream, cmd->read.dst_host_ptr, cmd->read.src_mem_id->mem_ptr,
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:1111:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          stream, cmd->read.dst_host_ptr, cmd->read.src_mem_id->mem_ptr,
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:1112:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          node->command.read.offset, node->command.read.size);
data/pocl-1.5/lib/CL/devices/cuda/pocl-cuda.c:1112:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          node->command.read.offset, node->command.read.size);
data/pocl-1.5/lib/CL/devices/cuda/pocl-ptx-gen.cc:460:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!SM || strlen(End)) {
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1320:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strlen (kernel->name) + strlen (launcher_name_tmpl) + 1;
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1320: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).
    strlen (kernel->name) + strlen (launcher_name_tmpl) + 1;
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1395:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read != 0)
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1450: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).
  size_t kernel_name_length = strlen (kernel->name);
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1455:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  strncat (symbol, kernel->name, kernel_name_length);
data/pocl-1.5/lib/CL/devices/hsa/pocl-hsa.c:1779:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(2000);
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:671:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(20000);
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:796: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).
  char *temp = result + strlen(result);
data/pocl-1.5/lib/CL/devices/tce/tce_common.cc:810:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(temp, extra_flags, (1000-(temp-result)) );
data/pocl-1.5/lib/CL/devices/tce/ttasim/ttasim.cc:177:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      unsigned char val =  globalMem->read (src_addr + i);
data/pocl-1.5/lib/CL/devices/tce/ttasim/ttasim.cc:188:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ((char*)host_ptr)[i] = globalMem->read (src_addr + i);
data/pocl-1.5/lib/CL/devices/tce/ttasim/ttasim.cc:272:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              unsigned char val = globalMem->read (start_addr + c);
data/pocl-1.5/lib/CL/devices/tce/ttasim/ttasim.cc:291:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              unsigned char val = globalMem->read (start_addr + c);
data/pocl-1.5/lib/CL/pocl_binary.c:176:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  do { uint32_t len = strlen(elem);               \
data/pocl-1.5/lib/CL/pocl_binary.c:223:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int i, length = strlen(dev_hash);
data/pocl-1.5/lib/CL/pocl_binary.c:321:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (subpath, path, POCL_FILENAME_LENGTH-1);
data/pocl-1.5/lib/CL/pocl_binary.c:322:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char* p = subpath + strlen(subpath);
data/pocl-1.5/lib/CL/pocl_binary.c:350: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).
  size_t basedir_len = strlen (basedir);
data/pocl-1.5/lib/CL/pocl_binary.c:373:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  uint32_t namelen = strlen (meta->name);
data/pocl-1.5/lib/CL/pocl_binary.c:389:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  uint32_t attrlen = meta->attributes ? strlen (meta->attributes) : 0;
data/pocl-1.5/lib/CL/pocl_binary.c:471:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t offset = strlen (basedir);
data/pocl-1.5/lib/CL/pocl_binary.c:624: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).
  size_t basedir_len = strlen (basedir);
data/pocl-1.5/lib/CL/pocl_binary.c:660: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).
  size_t basedir_len = strlen (basedir);
data/pocl-1.5/lib/CL/pocl_build.c:99: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).
      needed = strlen (token) + 1;                                            \
data/pocl-1.5/lib/CL/pocl_build.c:103:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat (modded_options, " ");                                           \
data/pocl-1.5/lib/CL/pocl_build.c:110:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t l = strlen(program->main_build_log); \
data/pocl-1.5/lib/CL/pocl_build.c:230: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).
  char *temp_options = (char*) malloc (strlen (options) + 1);
data/pocl-1.5/lib/CL/pocl_build.c:311:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen (token) == 2)
data/pocl-1.5/lib/CL/pocl_build.c:319:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      else if (strncmp (token, "-x", 2) == 0 && strlen (token) == 2)
data/pocl-1.5/lib/CL/pocl_build.c:405:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  i = strlen (modded_options);
data/pocl-1.5/lib/CL/pocl_build.c:557: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).
      size_t len = (options != NULL) ? strlen (options) : 0;
data/pocl-1.5/lib/CL/pocl_build.c:558:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      len += strlen (extra_build_options) + 2;
data/pocl-1.5/lib/CL/pocl_build.c:565:11:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
          strcat (temp_options, " ");
data/pocl-1.5/lib/CL/pocl_build.c:574: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).
      i = strlen (temp_options);
data/pocl-1.5/lib/CL/pocl_cache.c:235: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).
                              strlen (program->source), NULL);
data/pocl-1.5/lib/CL/pocl_cache.c:356: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).
  assert (strlen (kernel_parallel_path)
data/pocl-1.5/lib/CL/pocl_cache.c:357: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).
          < (POCL_FILENAME_LENGTH - strlen (POCL_PARALLEL_BC_FILENAME)));
data/pocl-1.5/lib/CL/pocl_cache.c:407:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                         strlen(program->compiler_options));
data/pocl-1.5/lib/CL/pocl_cache.c:414:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pocl_SHA1_Update(&hash_ctx, (uint8_t*) wg_method, strlen(wg_method));
data/pocl-1.5/lib/CL/pocl_cache.c:416:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(PACKAGE_VERSION));
data/pocl-1.5/lib/CL/pocl_cache.c:418:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(LLVM_VERSION));
data/pocl-1.5/lib/CL/pocl_cache.c:420:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(POCL_BUILD_TIMESTAMP));
data/pocl-1.5/lib/CL/pocl_cache.c:422:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(POCL_KERNELLIB_SHA1));
data/pocl-1.5/lib/CL/pocl_cache.c:427:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        pocl_SHA1_Update(&hash_ctx, (const uint8_t *)dev_hash, strlen(dev_hash));
data/pocl-1.5/lib/CL/pocl_cache.c:508:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    assert(strlen(cache_topdir) > 0);
data/pocl-1.5/lib/CL/pocl_cache.c:527:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (tempfile_pattern, cache_topdir, POCL_FILENAME_LENGTH);
data/pocl-1.5/lib/CL/pocl_cache.c:528:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen (tempfile_pattern);
data/pocl-1.5/lib/CL/pocl_cache.c:529:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy (tempfile_pattern + len, "/tempfile",
data/pocl-1.5/lib/CL/pocl_cache.c:532: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).
    assert (strlen (tempfile_pattern) < POCL_FILENAME_LENGTH);
data/pocl-1.5/lib/CL/pocl_cache.c:578:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            hs_len = strlen(program->source);
data/pocl-1.5/lib/CL/pocl_cache.c:601: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 s = strlen (cache_topdir) + 1;
data/pocl-1.5/lib/CL/pocl_cache.c:602:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert (strlen (random_dir) == (s + 16));
data/pocl-1.5/lib/CL/pocl_cl.h:418:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void (*read) (void *data,
data/pocl-1.5/lib/CL/pocl_debug.c:36:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen (debug) == 1)
data/pocl-1.5/lib/CL/pocl_file_util.c:36:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t path_len = strlen(path);
data/pocl-1.5/lib/CL/pocl_file_util.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).
          size_t len = path_len + strlen(p->d_name) + 2;
data/pocl-1.5/lib/CL/pocl_file_util.c:86:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (previous_path, path, previous_path_length);
data/pocl-1.5/lib/CL/pocl_file_util.c:266:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (output, prefix, POCL_FILENAME_LENGTH);
data/pocl-1.5/lib/CL/pocl_file_util.c:267:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (prefix);
data/pocl-1.5/lib/CL/pocl_file_util.c:268:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy (output + len, "_XXXXXX", (POCL_FILENAME_LENGTH - len));
data/pocl-1.5/lib/CL/pocl_file_util.c:276:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (output + len, suffix, (POCL_FILENAME_LENGTH - len));
data/pocl-1.5/lib/CL/pocl_file_util.c:278: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).
      fd = mkostemps (output, strlen (suffix), O_CLOEXEC);
data/pocl-1.5/lib/CL/pocl_file_util.c:280:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      fd = mkstemps (output, strlen (suffix));
data/pocl-1.5/lib/CL/pocl_file_util.c:317:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (output, prefix, POCL_FILENAME_LENGTH);
data/pocl-1.5/lib/CL/pocl_file_util.c:318:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (prefix);
data/pocl-1.5/lib/CL/pocl_file_util.c:319:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
  strncpy (output + len, "_XXXXXX", (POCL_FILENAME_LENGTH - len));
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:149: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 len = strlen(program->build_log[device_i]);
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:150:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t len2 = strlen(s.c_str());
data/pocl-1.5/lib/CL/pocl_llvm_build.cc:239:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t input_header_size = strlen(input_header);
data/pocl-1.5/lib/CL/pocl_llvm_utils.cc:126:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(cpu_name, r.data(), r.size());
data/pocl-1.5/lib/CL/pocl_tracing.c:205:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            node->command.read.size,
data/pocl-1.5/lib/CL/pocl_tracing.c:206:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            node->command.read.dst_host_ptr);
data/pocl-1.5/lib/CL/pocl_tracing.c:282:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  node->command.read.dst_host_ptr, node->command.read.size);
data/pocl-1.5/lib/CL/pocl_tracing.c:282:66:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  node->command.read.dst_host_ptr, node->command.read.size);
data/pocl-1.5/lib/CL/pocl_util.c:249:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
  ptr = memalign (align_width, size);
data/pocl-1.5/lib/CL/pocl_util.h:258:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t const value_size = strlen(__STR__) + 1;                    \
data/pocl-1.5/lib/CL/pocl_util.h:267:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t const value_size = strlen (__STR__) + 1;                         \
data/pocl-1.5/lib/llvmopencl/LLVMFileUtils.cc:205:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(output, TmpPath.c_str(), POCL_FILENAME_LENGTH);
data/pocl-1.5/lib/llvmopencl/LLVMFileUtils.cc:230:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(output, TmpPath.c_str(), POCL_FILENAME_LENGTH);
data/pocl-1.5/lib/llvmopencl/LLVMFileUtils.cc:269:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      actually_read = read(fd, ptr + total_size, CHUNK_SIZE);
data/pocl-1.5/lib/llvmopencl/LLVMFileUtils.cc:385:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(output_path, TmpPath.c_str(), POCL_FILENAME_LENGTH);
data/pocl-1.5/tests/kernel/image_query_funcs.c:52: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).
  srcdir_length = strlen(SRCDIR);
data/pocl-1.5/tests/kernel/image_query_funcs.c:53:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  name_length = strlen(name);
data/pocl-1.5/tests/kernel/kernel.c:33: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).
  srcdir_length = strlen(SRCDIR);
data/pocl-1.5/tests/kernel/kernel.c:34:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  name_length = strlen(name);
data/pocl-1.5/tests/kernel/sampler_address_clamp.c:49: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).
  srcdir_length = strlen(SRCDIR);
data/pocl-1.5/tests/kernel/sampler_address_clamp.c:50:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  name_length = strlen(name);
data/pocl-1.5/tests/regression/test_assign_loop_variable_to_privvar_makes_it_local.c:67:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t length = strlen(kernel_src);
data/pocl-1.5/tests/regression/test_assign_loop_variable_to_privvar_makes_it_local_2.c:62:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t length = strlen(kernel_src);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:98:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:113:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(invalid_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:129:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(preprocess_fail);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:192:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(valid_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:221: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).
      size_t  kernel_size = strlen(valid_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:251:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(valid_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:322:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(valid_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:351:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(valid_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:380:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(valid_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:410:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t s = strlen(macro_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:430:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      size_t kernel_size = strlen(warning_kernel);
data/pocl-1.5/tests/runtime/test_clBuildProgram.c:460:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t kernel_size = strlen (missing_symbol_kernel);
data/pocl-1.5/tests/runtime/test_clCreateProgramWithBinary.c:42: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).
  size_t kernel_size = strlen(kernel);
data/pocl-1.5/tests/runtime/test_clFinish.c:99: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).
                                strlen (inputB)+1, (void *) inputA, &err);
data/pocl-1.5/tests/runtime/test_clFinish.c:105: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).
                                strlen (inputA)+1, (void *) inputB, &err);
data/pocl-1.5/tests/runtime/test_clFinish.c:111: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).
                                strlen (inputA)+1, (void *) inputC, &err);
data/pocl-1.5/tests/runtime/test_clFinish.c:116: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).
  size_t kernel_size = strlen (kernelASourceCode);
data/pocl-1.5/tests/runtime/test_clGetKernelArgInfo.c:392: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).
  program_size = strlen (kernelSourceCode);
data/pocl-1.5/tests/runtime/test_clSetEventCallback.c:108: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).
                               strlen (input)+1, (void *) input, &err);
data/pocl-1.5/tests/runtime/test_clSetEventCallback.c:111: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).
  size_t kernel_size = strlen (kernelASourceCode);
data/pocl-1.5/tests/runtime/test_link_error.c:53:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t program_size = strlen(program_src);
data/pocl-1.5/tests/runtime/test_version.c:36:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp (result, expected, strlen (expected)) != 0)
data/pocl-1.5/tests/tce/tcemc/host.cpp:104: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).
            strlen (input), (void *) &input[0]);
data/pocl-1.5/tests/tce/ttasim/host.cpp:106: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).
            strlen (input) + 1, (void *) &input[0]);

ANALYSIS SUMMARY:

Hits = 505
Lines analyzed = 133233 in approximately 3.73 seconds (35723 lines/second)
Physical Source Lines of Code (SLOC) = 95450
Hits@level = [0] 336 [1] 152 [2] 252 [3]  22 [4]  76 [5]   3
Hits@level+ = [0+] 841 [1+] 505 [2+] 353 [3+] 101 [4+]  79 [5+]   3
Hits/KSLOC@level+ = [0+] 8.8109 [1+] 5.29073 [2+] 3.69827 [3+] 1.05815 [4+] 0.827658 [5+] 0.0314301
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.