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/embree-3.12.1+dfsg/common/algorithms/parallel_any_of.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_filter.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_filter.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_for.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_for.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_for_for.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_for_for.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_for_for_prefix_sum.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_for_for_prefix_sum.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_map.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_map.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_partition.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_partition.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_prefix_sum.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_prefix_sum.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_reduce.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_reduce.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_set.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_set.h
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_sort.cpp
Examining data/embree-3.12.1+dfsg/common/algorithms/parallel_sort.h
Examining data/embree-3.12.1+dfsg/common/cmake/check_isa.cpp
Examining data/embree-3.12.1+dfsg/common/lexers/parsestream.h
Examining data/embree-3.12.1+dfsg/common/lexers/stream.h
Examining data/embree-3.12.1+dfsg/common/lexers/streamfilters.h
Examining data/embree-3.12.1+dfsg/common/lexers/stringstream.cpp
Examining data/embree-3.12.1+dfsg/common/lexers/stringstream.h
Examining data/embree-3.12.1+dfsg/common/lexers/tokenstream.cpp
Examining data/embree-3.12.1+dfsg/common/lexers/tokenstream.h
Examining data/embree-3.12.1+dfsg/common/math/affinespace.h
Examining data/embree-3.12.1+dfsg/common/math/bbox.h
Examining data/embree-3.12.1+dfsg/common/math/col3.h
Examining data/embree-3.12.1+dfsg/common/math/col4.h
Examining data/embree-3.12.1+dfsg/common/math/color.h
Examining data/embree-3.12.1+dfsg/common/math/constants.cpp
Examining data/embree-3.12.1+dfsg/common/math/constants.h
Examining data/embree-3.12.1+dfsg/common/math/interval.h
Examining data/embree-3.12.1+dfsg/common/math/lbbox.h
Examining data/embree-3.12.1+dfsg/common/math/linearspace2.h
Examining data/embree-3.12.1+dfsg/common/math/linearspace3.h
Examining data/embree-3.12.1+dfsg/common/math/math.h
Examining data/embree-3.12.1+dfsg/common/math/obbox.h
Examining data/embree-3.12.1+dfsg/common/math/quaternion.h
Examining data/embree-3.12.1+dfsg/common/math/range.h
Examining data/embree-3.12.1+dfsg/common/math/transcendental.h
Examining data/embree-3.12.1+dfsg/common/math/vec2.h
Examining data/embree-3.12.1+dfsg/common/math/vec2fa.h
Examining data/embree-3.12.1+dfsg/common/math/vec3.h
Examining data/embree-3.12.1+dfsg/common/math/vec3ba.h
Examining data/embree-3.12.1+dfsg/common/math/vec3fa.h
Examining data/embree-3.12.1+dfsg/common/math/vec3ia.h
Examining data/embree-3.12.1+dfsg/common/math/vec4.h
Examining data/embree-3.12.1+dfsg/common/simd/avx.h
Examining data/embree-3.12.1+dfsg/common/simd/avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/simd.h
Examining data/embree-3.12.1+dfsg/common/simd/sse.cpp
Examining data/embree-3.12.1+dfsg/common/simd/sse.h
Examining data/embree-3.12.1+dfsg/common/simd/varying.h
Examining data/embree-3.12.1+dfsg/common/simd/vboold4_avx.h
Examining data/embree-3.12.1+dfsg/common/simd/vboold4_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vboold8_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vboolf16_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vboolf4_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vboolf4_sse2.h
Examining data/embree-3.12.1+dfsg/common/simd/vboolf8_avx.h
Examining data/embree-3.12.1+dfsg/common/simd/vboolf8_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vdouble4_avx.h
Examining data/embree-3.12.1+dfsg/common/simd/vdouble8_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vfloat16_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vfloat4_sse2.h
Examining data/embree-3.12.1+dfsg/common/simd/vfloat8_avx.h
Examining data/embree-3.12.1+dfsg/common/simd/vint16_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vint4_sse2.h
Examining data/embree-3.12.1+dfsg/common/simd/vint8_avx.h
Examining data/embree-3.12.1+dfsg/common/simd/vint8_avx2.h
Examining data/embree-3.12.1+dfsg/common/simd/vllong4_avx2.h
Examining data/embree-3.12.1+dfsg/common/simd/vllong8_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vuint16_avx512.h
Examining data/embree-3.12.1+dfsg/common/simd/vuint4_sse2.h
Examining data/embree-3.12.1+dfsg/common/simd/vuint8_avx.h
Examining data/embree-3.12.1+dfsg/common/simd/vuint8_avx2.h
Examining data/embree-3.12.1+dfsg/common/sys/alloc.cpp
Examining data/embree-3.12.1+dfsg/common/sys/alloc.h
Examining data/embree-3.12.1+dfsg/common/sys/array.h
Examining data/embree-3.12.1+dfsg/common/sys/atomic.h
Examining data/embree-3.12.1+dfsg/common/sys/barrier.cpp
Examining data/embree-3.12.1+dfsg/common/sys/barrier.h
Examining data/embree-3.12.1+dfsg/common/sys/condition.cpp
Examining data/embree-3.12.1+dfsg/common/sys/condition.h
Examining data/embree-3.12.1+dfsg/common/sys/filename.cpp
Examining data/embree-3.12.1+dfsg/common/sys/filename.h
Examining data/embree-3.12.1+dfsg/common/sys/intrinsics.h
Examining data/embree-3.12.1+dfsg/common/sys/library.cpp
Examining data/embree-3.12.1+dfsg/common/sys/library.h
Examining data/embree-3.12.1+dfsg/common/sys/mutex.cpp
Examining data/embree-3.12.1+dfsg/common/sys/mutex.h
Examining data/embree-3.12.1+dfsg/common/sys/platform.h
Examining data/embree-3.12.1+dfsg/common/sys/ref.h
Examining data/embree-3.12.1+dfsg/common/sys/regression.cpp
Examining data/embree-3.12.1+dfsg/common/sys/regression.h
Examining data/embree-3.12.1+dfsg/common/sys/string.cpp
Examining data/embree-3.12.1+dfsg/common/sys/string.h
Examining data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp
Examining data/embree-3.12.1+dfsg/common/sys/sysinfo.h
Examining data/embree-3.12.1+dfsg/common/sys/thread.cpp
Examining data/embree-3.12.1+dfsg/common/sys/thread.h
Examining data/embree-3.12.1+dfsg/common/sys/vector.h
Examining data/embree-3.12.1+dfsg/common/tasking/taskscheduler.h
Examining data/embree-3.12.1+dfsg/common/tasking/taskschedulerinternal.cpp
Examining data/embree-3.12.1+dfsg/common/tasking/taskschedulerinternal.h
Examining data/embree-3.12.1+dfsg/common/tasking/taskschedulerppl.cpp
Examining data/embree-3.12.1+dfsg/common/tasking/taskschedulerppl.h
Examining data/embree-3.12.1+dfsg/common/tasking/taskschedulertbb.cpp
Examining data/embree-3.12.1+dfsg/common/tasking/taskschedulertbb.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_buffer.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_builder.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_common.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_device.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_geometry.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_quaternion.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_ray.h
Examining data/embree-3.12.1+dfsg/include/embree3/rtcore_scene.h
Examining data/embree-3.12.1+dfsg/kernels/builders/bvh_builder_hair.h
Examining data/embree-3.12.1+dfsg/kernels/builders/bvh_builder_morton.h
Examining data/embree-3.12.1+dfsg/kernels/builders/bvh_builder_msmblur.h
Examining data/embree-3.12.1+dfsg/kernels/builders/bvh_builder_msmblur_hair.h
Examining data/embree-3.12.1+dfsg/kernels/builders/bvh_builder_sah.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_binning.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_binning_array_aligned.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_binning_array_unaligned.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_openmerge_array.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_spatial.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_spatial_array.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_strand_array.h
Examining data/embree-3.12.1+dfsg/kernels/builders/heuristic_timesplit_array.h
Examining data/embree-3.12.1+dfsg/kernels/builders/priminfo.h
Examining data/embree-3.12.1+dfsg/kernels/builders/primrefgen.cpp
Examining data/embree-3.12.1+dfsg/kernels/builders/primrefgen.h
Examining data/embree-3.12.1+dfsg/kernels/builders/primrefgen_presplit.h
Examining data/embree-3.12.1+dfsg/kernels/builders/splitter.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh4_factory.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh4_factory.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh8_factory.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh8_factory.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_hair.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_hair_mb.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_morton.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_sah.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_sah_mb.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_sah_spatial.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_subdiv.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_twolevel.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_twolevel.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_builder_twolevel_internal.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_collider.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_collider.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_factory.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector1.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector1.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector1_bvh4.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector1_bvh8.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid16_bvh4.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid16_bvh8.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid4_bvh4.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid4_bvh8.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid8_bvh4.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_hybrid8_bvh8.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_stream.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_stream.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_stream_bvh4.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_stream_bvh8.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_stream_filters.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_intersector_stream_filters.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_aabb.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_aabb_mb.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_aabb_mb4d.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_base.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_obb.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_obb_mb.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_qaabb.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_node_ref.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_refit.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_refit.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_rotate.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_rotate.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_statistics.cpp
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_statistics.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_traverser1.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/bvh_traverser_stream.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/node_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/node_intersector1.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/node_intersector_frustum.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/node_intersector_packet.h
Examining data/embree-3.12.1+dfsg/kernels/bvh/node_intersector_packet_stream.h
Examining data/embree-3.12.1+dfsg/kernels/common/accel.h
Examining data/embree-3.12.1+dfsg/kernels/common/accelinstance.h
Examining data/embree-3.12.1+dfsg/kernels/common/acceln.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/acceln.h
Examining data/embree-3.12.1+dfsg/kernels/common/accelset.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/accelset.h
Examining data/embree-3.12.1+dfsg/kernels/common/alloc.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/alloc.h
Examining data/embree-3.12.1+dfsg/kernels/common/buffer.h
Examining data/embree-3.12.1+dfsg/kernels/common/builder.h
Examining data/embree-3.12.1+dfsg/kernels/common/context.h
Examining data/embree-3.12.1+dfsg/kernels/common/default.h
Examining data/embree-3.12.1+dfsg/kernels/common/device.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/device.h
Examining data/embree-3.12.1+dfsg/kernels/common/geometry.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/geometry.h
Examining data/embree-3.12.1+dfsg/kernels/common/hit.h
Examining data/embree-3.12.1+dfsg/kernels/common/instance_stack.h
Examining data/embree-3.12.1+dfsg/kernels/common/isa.h
Examining data/embree-3.12.1+dfsg/kernels/common/motion_derivative.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/motion_derivative.h
Examining data/embree-3.12.1+dfsg/kernels/common/point_query.h
Examining data/embree-3.12.1+dfsg/kernels/common/primref.h
Examining data/embree-3.12.1+dfsg/kernels/common/primref_mb.h
Examining data/embree-3.12.1+dfsg/kernels/common/profile.h
Examining data/embree-3.12.1+dfsg/kernels/common/ray.h
Examining data/embree-3.12.1+dfsg/kernels/common/rtcore.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/rtcore.h
Examining data/embree-3.12.1+dfsg/kernels/common/rtcore_builder.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_curves.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_curves.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_grid_mesh.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_grid_mesh.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_instance.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_instance.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_line_segments.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_line_segments.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_points.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_points.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_quad_mesh.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_quad_mesh.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_subdiv_mesh.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_subdiv_mesh.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_triangle_mesh.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_triangle_mesh.h
Examining data/embree-3.12.1+dfsg/kernels/common/scene_user_geometry.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/scene_user_geometry.h
Examining data/embree-3.12.1+dfsg/kernels/common/stack_item.h
Examining data/embree-3.12.1+dfsg/kernels/common/stat.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/stat.h
Examining data/embree-3.12.1+dfsg/kernels/common/state.cpp
Examining data/embree-3.12.1+dfsg/kernels/common/state.h
Examining data/embree-3.12.1+dfsg/kernels/common/vector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/cone.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/coneline_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/conelinei_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curveNi.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curveNi_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curveNi_mb.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curveNi_mb_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curveNv.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curveNv_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_distance.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_oriented.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_precalculations.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_ribbon.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_sweep.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_virtual.cpp
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_virtual.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/curve_intersector_virtual2.cpp
Examining data/embree-3.12.1+dfsg/kernels/geometry/cylinder.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/disc_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/disci_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/filter.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/grid_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/grid_soa.cpp
Examining data/embree-3.12.1+dfsg/kernels/geometry/grid_soa.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/grid_soa_intersector1.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/grid_soa_intersector_packet.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/instance.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/instance_intersector.cpp
Examining data/embree-3.12.1+dfsg/kernels/geometry/instance_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/intersector_epilog.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/intersector_iterators.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/line_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/linei.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/linei_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/object.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/object_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/plane.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/pointi.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/primitive.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/primitive4.cpp
Examining data/embree-3.12.1+dfsg/kernels/geometry/primitive8.cpp
Examining data/embree-3.12.1+dfsg/kernels/geometry/quad_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/quad_intersector_moeller.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/quad_intersector_pluecker.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/quadi.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/quadi_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/quadv.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/quadv_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/roundline_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/roundlinei_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/sphere_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/spherei_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/subdivpatch1.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/subdivpatch1_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/subgrid.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/subgrid_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/subgrid_intersector_moeller.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/subgrid_intersector_pluecker.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/subgrid_mb_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/triangle.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/triangle_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/triangle_intersector_moeller.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/triangle_intersector_pluecker.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/triangle_intersector_woop.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/triangle_triangle_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/trianglei.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/trianglei_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/trianglev.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/trianglev_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/trianglev_mb.h
Examining data/embree-3.12.1+dfsg/kernels/geometry/trianglev_mb_intersector.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/bezier_curve.cpp
Examining data/embree-3.12.1+dfsg/kernels/subdiv/bezier_curve.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/bezier_patch.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/bilinear_patch.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/bspline_curve.cpp
Examining data/embree-3.12.1+dfsg/kernels/subdiv/bspline_curve.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/bspline_patch.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/catmullclark_coefficients.cpp
Examining data/embree-3.12.1+dfsg/kernels/subdiv/catmullclark_coefficients.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/catmullclark_patch.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/catmullclark_ring.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/catmullrom_curve.cpp
Examining data/embree-3.12.1+dfsg/kernels/subdiv/catmullrom_curve.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/feature_adaptive_eval.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/feature_adaptive_eval_grid.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/feature_adaptive_eval_simd.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/gregory_patch.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/gregory_patch_dense.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/gridrange.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/half_edge.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/hermite_curve.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/linear_bezier_patch.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/patch.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/patch_eval.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/patch_eval_grid.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/patch_eval_simd.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/subdivpatch1base.cpp
Examining data/embree-3.12.1+dfsg/kernels/subdiv/subdivpatch1base.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/subdivpatch1base_eval.cpp
Examining data/embree-3.12.1+dfsg/kernels/subdiv/tessellation.h
Examining data/embree-3.12.1+dfsg/kernels/subdiv/tessellation_cache.cpp
Examining data/embree-3.12.1+dfsg/kernels/subdiv/tessellation_cache.h
Examining data/embree-3.12.1+dfsg/tutorials/buildbench/buildbench.cpp
Examining data/embree-3.12.1+dfsg/tutorials/buildbench/buildbench_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/bvh_access/bvh_access.cpp
Examining data/embree-3.12.1+dfsg/tutorials/bvh_builder/bvh_builder.cpp
Examining data/embree-3.12.1+dfsg/tutorials/bvh_builder/bvh_builder_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/closest_point/closest_point.cpp
Examining data/embree-3.12.1+dfsg/tutorials/closest_point/closest_point_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/collide/clothModel.h
Examining data/embree-3.12.1+dfsg/tutorials/collide/collide.cpp
Examining data/embree-3.12.1+dfsg/tutorials/collide/collide_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/collide/constraints.cpp
Examining data/embree-3.12.1+dfsg/tutorials/collide/constraints.h
Examining data/embree-3.12.1+dfsg/tutorials/collide/pbd.h
Examining data/embree-3.12.1+dfsg/tutorials/common/core/differential_geometry.h
Examining data/embree-3.12.1+dfsg/tutorials/common/core/ray.h
Examining data/embree-3.12.1+dfsg/tutorials/common/default.h
Examining data/embree-3.12.1+dfsg/tutorials/common/glfw/include/GLFW/glfw3.h
Examining data/embree-3.12.1+dfsg/tutorials/common/glfw/include/GLFW/glfw3native.h
Examining data/embree-3.12.1+dfsg/tutorials/common/image/image.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/image/image.h
Examining data/embree-3.12.1+dfsg/tutorials/common/image/jpeg.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/image/oiio.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/image/pfm.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/image/png.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/image/tga.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imconfig.h
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl2.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl2.h
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl3.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl3.h
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_internal.h
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_rect_pack.h
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_textedit.h
Examining data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/ambient_light.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/ambient_light.h
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/directional_light.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/directional_light.h
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/light.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/light.h
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/point_light.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/point_light.h
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/quad_light.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/quad_light.h
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/spot_light.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/lights/spot_light.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/affinespace.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/closest_point.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/linearspace.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/math.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/quaternion.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/random_sampler.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/sampling.h
Examining data/embree-3.12.1+dfsg/tutorials/common/math/vec.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/corona_loader.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/corona_loader.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/geometry_creation.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/geometry_creation.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/lights.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/materials.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/ply_loader.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/ply_loader.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/texture.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/texture.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_parser.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_parser.h
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.h
Examining data/embree-3.12.1+dfsg/tutorials/common/texture/texture.h
Examining data/embree-3.12.1+dfsg/tutorials/common/texture/texture2d.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/texture/texture2d.h
Examining data/embree-3.12.1+dfsg/tutorials/common/texture/texture_param.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/application.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/application.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/camera.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/noise.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/noise.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/optics.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/scene.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/scene.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/scene_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/scene_device.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/statistics.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/tasksys.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/tutorial.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/tutorial.h
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/tutorial_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/common/tutorial/tutorial_device.h
Examining data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp
Examining data/embree-3.12.1+dfsg/tutorials/convert/default.h
Examining data/embree-3.12.1+dfsg/tutorials/convert/distribution1d.cpp
Examining data/embree-3.12.1+dfsg/tutorials/convert/distribution1d.h
Examining data/embree-3.12.1+dfsg/tutorials/convert/distribution2d.cpp
Examining data/embree-3.12.1+dfsg/tutorials/convert/distribution2d.h
Examining data/embree-3.12.1+dfsg/tutorials/curve_geometry/curve_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/curve_geometry/curve_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/displacement_geometry/displacement_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/displacement_geometry/displacement_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/dynamic_scene/dynamic_scene.cpp
Examining data/embree-3.12.1+dfsg/tutorials/dynamic_scene/dynamic_scene_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/common/algorithms/algorithms_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/common/algorithms/parallel_any_of.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/common/common_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/embree_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/kernels/common/common_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/kernels/common/scene_line_segments_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/kernels/geometry/geometry_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/kernels/geometry/sphere_intersector_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/embree_tests/kernels/kernels_tests.cpp
Examining data/embree-3.12.1+dfsg/tutorials/external/catch.hpp
Examining data/embree-3.12.1+dfsg/tutorials/find_embree/find_embree.cpp
Examining data/embree-3.12.1+dfsg/tutorials/find_embree/find_embree_ispc.cpp
Examining data/embree-3.12.1+dfsg/tutorials/grid_geometry/grid_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/grid_geometry/grid_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/grid_geometry/grid_geometry_device.h
Examining data/embree-3.12.1+dfsg/tutorials/hair_geometry/hair_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/hair_geometry/hair_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/instanced_geometry/instanced_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/instanced_geometry/instanced_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/instanced_geometry/instanced_geometry_device.h
Examining data/embree-3.12.1+dfsg/tutorials/interpolation/interpolation.cpp
Examining data/embree-3.12.1+dfsg/tutorials/interpolation/interpolation_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/intersection_filter/intersection_filter.cpp
Examining data/embree-3.12.1+dfsg/tutorials/intersection_filter/intersection_filter_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/intersection_filter/intersection_filter_device.h
Examining data/embree-3.12.1+dfsg/tutorials/lazy_geometry/lazy_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/lazy_geometry/lazy_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/minimal/minimal.cpp
Examining data/embree-3.12.1+dfsg/tutorials/motion_blur_geometry/motion_blur_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/motion_blur_geometry/motion_blur_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/motion_blur_geometry/motion_blur_geometry_device.h
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/geometry/ground.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/geometry/tree.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/geometry/trees.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/geometry/twig.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/multi_instanced_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/multi_instanced_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/scene.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multi_instanced_geometry/scene.h
Examining data/embree-3.12.1+dfsg/tutorials/multiscene_geometry/multiscene_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/multiscene_geometry/multiscene_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/next_hit/next_hit.cpp
Examining data/embree-3.12.1+dfsg/tutorials/next_hit/next_hit_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/pathtracer/pathtracer.cpp
Examining data/embree-3.12.1+dfsg/tutorials/pathtracer/pathtracer_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/point_geometry/point_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/point_geometry/point_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/point_geometry/point_geometry_device.h
Examining data/embree-3.12.1+dfsg/tutorials/quaternion_motion_blur/quaternion_motion_blur.cpp
Examining data/embree-3.12.1+dfsg/tutorials/quaternion_motion_blur/quaternion_motion_blur_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/subdivision_geometry/subdivision_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/subdivision_geometry/subdivision_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/triangle_geometry/triangle_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/triangle_geometry/triangle_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/triangle_geometry/triangle_geometry_device.h
Examining data/embree-3.12.1+dfsg/tutorials/user_geometry/user_geometry.cpp
Examining data/embree-3.12.1+dfsg/tutorials/user_geometry/user_geometry_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/user_geometry/user_geometry_device.h
Examining data/embree-3.12.1+dfsg/tutorials/verify/api_c99.c
Examining data/embree-3.12.1+dfsg/tutorials/verify/rtcore_helpers.h
Examining data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp
Examining data/embree-3.12.1+dfsg/tutorials/verify/verify.h
Examining data/embree-3.12.1+dfsg/tutorials/viewer/viewer.cpp
Examining data/embree-3.12.1+dfsg/tutorials/viewer/viewer_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/viewer/viewer_device.h
Examining data/embree-3.12.1+dfsg/tutorials/viewer_anim/viewer_anim.cpp
Examining data/embree-3.12.1+dfsg/tutorials/viewer_anim/viewer_anim_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/viewer_stream/viewer_stream.cpp
Examining data/embree-3.12.1+dfsg/tutorials/viewer_stream/viewer_stream_device.cpp
Examining data/embree-3.12.1+dfsg/tutorials/voronoi/voronoi.cpp
Examining data/embree-3.12.1+dfsg/tutorials/voronoi/voronoi_device.cpp

FINAL RESULTS:

data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp:495:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    if (readlink(pid.c_str(), buf, sizeof(buf)-1) == -1)
data/embree-3.12.1+dfsg/common/tasking/taskschedulerppl.h:15:20:  [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 PPL tasking system only available under windows
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1095:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int w = vsnprintf(buf, buf_size, fmt, args);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1107:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int w = vsnprintf(buf, buf_size, fmt, args);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:4162:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(g.LogFile, fmt, args);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8530:19:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (op && sscanf(initial_value_buf, scalar_format, &arg0i) < 1)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8537:35:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        else                { if (sscanf(buf, scalar_format, &arg0i) == 1) *v = arg0i; }                       // Assign integer constant
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8545:19:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (op && sscanf(initial_value_buf, scalar_format, &arg0f) < 1)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8547:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(buf, scalar_format, &arg1f) < 1)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8559:19:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (op && sscanf(initial_value_buf, scalar_format, &arg0f) < 1)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8561:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(buf, scalar_format, &arg1f) < 1)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:39:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define IM_FMTARGS(FMT)             __attribute__((format(printf, FMT, FMT+1))) // Apply printf-style warnings to user functions.
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:40:59:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define IM_FMTLIST(FMT)             __attribute__((format(printf, FMT, 0)))
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl3.cpp:366:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(g_GlslVersion, glsl_version);
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:617:13:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (system(command.c_str()) == 0)
data/embree-3.12.1+dfsg/common/math/math.h:236:26:  [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.
  template<typename T> T random() { return T(0); }
data/embree-3.12.1+dfsg/common/math/math.h:238:37:  [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.
  template<> __forceinline int      random() { return int(rand()) ^ (int(rand()) << 8) ^ (int(rand()) << 16); }
data/embree-3.12.1+dfsg/common/math/math.h:239:37:  [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.
  template<> __forceinline uint32_t random() { return uint32_t(rand()) ^ (uint32_t(rand()) << 8) ^ (uint32_t(rand()) << 16); }
data/embree-3.12.1+dfsg/common/math/math.h:241:37:  [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.
  template<> __forceinline int      random() { return int(rand()); }
data/embree-3.12.1+dfsg/common/math/math.h:242:37:  [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.
  template<> __forceinline uint32_t random() { return uint32_t(rand()) ^ (uint32_t(rand()) << 16); }
data/embree-3.12.1+dfsg/common/math/math.h:244:35:  [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.
  template<> __forceinline float  random() { return rand()/float(RAND_MAX); }
data/embree-3.12.1+dfsg/common/math/math.h:245:35:  [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.
  template<> __forceinline double random() { return rand()/double(RAND_MAX); }
data/embree-3.12.1+dfsg/common/math/math.h:248:24:  [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.
  __forceinline double drand48() {
data/embree-3.12.1+dfsg/common/math/math.h:253:12:  [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.
    return srand(seed);
data/embree-3.12.1+dfsg/common/sys/filename.cpp:42:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* home = getenv("UserProfile");
data/embree-3.12.1+dfsg/common/sys/filename.cpp:44:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* home = getenv("HOME");
data/embree-3.12.1+dfsg/common/sys/library.cpp:24:21:  [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.
    HANDLE handle = LoadLibrary((executable.path() + fullName).c_str());
data/embree-3.12.1+dfsg/common/sys/mutex.cpp:14:56:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  MutexSys::MutexSys() { mutex = new CRITICAL_SECTION; InitializeCriticalSection((CRITICAL_SECTION*)mutex); }
data/embree-3.12.1+dfsg/common/sys/mutex.cpp:16:27:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  void MutexSys::lock() { EnterCriticalSection((CRITICAL_SECTION*)mutex); }
data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp:419:20:  [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.
    HMODULE hlib = LoadLibrary("Kernel32");
data/embree-3.12.1+dfsg/common/sys/thread.cpp:33:20:  [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.
    HMODULE hlib = LoadLibrary("Kernel32");
data/embree-3.12.1+dfsg/tutorials/bvh_builder/bvh_builder_device.cpp:151:29:  [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.
      const float x = float(drand48());
data/embree-3.12.1+dfsg/tutorials/bvh_builder/bvh_builder_device.cpp:152:29:  [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.
      const float y = float(drand48());
data/embree-3.12.1+dfsg/tutorials/bvh_builder/bvh_builder_device.cpp:153:29:  [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.
      const float z = float(drand48());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:1207:11:  [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.
      if (random<float>() <= prop) return convert_triangles_to_quads(tmesh);
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:107:25:  [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.
        Vec2f r = Vec2f(random<float>(),random<float>());
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:107:41:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        Vec2f r = Vec2f(random<float>(),random<float>());
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:110:38:  [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.
        float angle = 2.0f*float(pi)*random<float>();
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:160:17:  [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.
            if (random<int>()%4 == 0) model = "barbarian_msmblur_translate.xml";
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:161:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            else if (random<int>()%32 == 0) model = "barbarian_msmblur_rotate0_5.xml";
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:162:22:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            else if (random<int>()%32 == 0) model = "barbarian_msmblur.xml";
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:163:134:  [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.
            printf("<Transform><AffineSpace translate=\"%7.2f %7.2f %7.2f\"/><extern src=\"%s\"/></Transform>\n",float(x*400)+200.0f*drand48(),0.0f,float(y*400)+200.0f*drand48(),model);
data/embree-3.12.1+dfsg/tutorials/convert/convert.cpp:163:169:  [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.
            printf("<Transform><AffineSpace translate=\"%7.2f %7.2f %7.2f\"/><extern src=\"%s\"/></Transform>\n",float(x*400)+200.0f*drand48(),0.0f,float(y*400)+200.0f*drand48(),model);
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:4107:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:4116:1:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
random(T a, T b) {
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:9961:18:  [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.
            std::srand( config.rngSeed() );
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:17:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define random  use_random_function_of_test // do use random_int() and random_float() from Test class
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:18: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 use_random_function_of_test // do use random_int() and random_float() from Test class
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:4232:7:  [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(task->sceneIndex*23565+i*2242); // FIXME: required?
data/embree-3.12.1+dfsg/common/algorithms/parallel_reduce.h:75: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 storage[__alignof(Value)+sizeof(Value)];
data/embree-3.12.1+dfsg/common/lexers/parsestream.h:44:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      return atoi(get().c_str());
data/embree-3.12.1+dfsg/common/lexers/parsestream.h:48:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int x = atoi(get().c_str());
data/embree-3.12.1+dfsg/common/lexers/parsestream.h:49:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int y = atoi(get().c_str());
data/embree-3.12.1+dfsg/common/lexers/parsestream.h:54:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int x = atoi(get().c_str());
data/embree-3.12.1+dfsg/common/lexers/parsestream.h:55:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int y = atoi(get().c_str());
data/embree-3.12.1+dfsg/common/lexers/parsestream.h:56:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int z = atoi(get().c_str());
data/embree-3.12.1+dfsg/common/lexers/stream.h:132:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      file = fopen(fileName.c_str(),"r");
data/embree-3.12.1+dfsg/common/lexers/tokenstream.cpp:130: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).
      token = Token(atoi(str.c_str()),loc);
data/embree-3.12.1+dfsg/common/sys/alloc.cpp:201:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open("/proc/meminfo",std::ios::in);
data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp:406: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 filename[1024];
data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp:493: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[4096];
data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp:532: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[4096];
data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp:563: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[4096];
data/embree-3.12.1+dfsg/common/sys/thread.cpp:180:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fs.open (cpu.c_str(), std::fstream::in);
data/embree-3.12.1+dfsg/common/tasking/taskschedulerinternal.h:162:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      __aligned(64) char stack[CLOSURE_STACK_SIZE];
data/embree-3.12.1+dfsg/kernels/builders/heuristic_spatial_array.h:92:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        __aligned(64) char data[sizeof(ObjectSplit) > sizeof(SpatialSplit) ? sizeof(ObjectSplit) : sizeof(SpatialSplit)];
data/embree-3.12.1+dfsg/kernels/common/alloc.h:930: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 align[maxAlignment-5*sizeof(size_t)-sizeof(AllocationType)-sizeof(bool)]; //!< align data to maxAlignment
data/embree-3.12.1+dfsg/kernels/common/alloc.h:931: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 data[1];              //!< here starts memory to use for allocations
data/embree-3.12.1+dfsg/kernels/common/ray.h:765: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 data[MAX_K / 4 * sizeof(RayHit4)];
data/embree-3.12.1+dfsg/kernels/common/state.cpp:187: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(fileName.c_str(),"r");
data/embree-3.12.1+dfsg/kernels/geometry/curveNi.h:125: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.
    unsigned char data[4+25*M+16];
data/embree-3.12.1+dfsg/kernels/geometry/curveNi_mb.h:148: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.
    unsigned char data[4+37*M+24];
data/embree-3.12.1+dfsg/kernels/geometry/curveNv.h:91: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.
    unsigned char data[4*16*M];
data/embree-3.12.1+dfsg/kernels/geometry/grid_soa.h:272: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 data[1];        //!< after the struct we first store the BVH, then the grid, and finally the roots
data/embree-3.12.1+dfsg/kernels/subdiv/half_edge.h:369: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 align[2];
data/embree-3.12.1+dfsg/tutorials/common/image/jpeg.cpp:101: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).
        FILE *file = fopen(filename.c_str(), "rb");  if (!file) THROW_RUNTIME_ERROR("Unable to open \"" + filename.str() + "\".");
data/embree-3.12.1+dfsg/tutorials/common/image/jpeg.cpp:148: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).
        FILE *file = fopen(filename.c_str(), "wb");  if (!file) THROW_RUNTIME_ERROR("Unable to open \"" + filename.str() + "\".");
data/embree-3.12.1+dfsg/tutorials/common/image/oiio.cpp:18:50:  [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).
    std::unique_ptr<ImageInput> in = ImageInput::open(fileName.str().c_str());
data/embree-3.12.1+dfsg/tutorials/common/image/oiio.cpp:66:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!out->open(fileName.c_str(), spec))
data/embree-3.12.1+dfsg/tutorials/common/image/pfm.cpp:30:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open (fileName.c_str(), std::fstream::in | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/image/pfm.cpp:33: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 cty[2]; file.read(cty,2);
data/embree-3.12.1+dfsg/tutorials/common/image/pfm.cpp:75:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open (fileName.c_str(), std::fstream::out | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/image/png.cpp:31:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* fp = fopen(fileName.c_str(), "rb");
data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp:31:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open (fileName.c_str(), std::fstream::in | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp:34: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 cty[2]; file.read(cty,2);
data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp:66: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 rgb[3];
data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp:100:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open (fileName.c_str(), std::fstream::out | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/image/tga.cpp:18:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open (fileName.c_str(), std::fstream::out | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/image/tga.cpp:52:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open (fileName.c_str(), std::fstream::in | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1028: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.
    return (char*)memcpy(buf, (const void*)str, len);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1452:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(filename, mode);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:2252: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[128];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:3012: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(g.IO.NavInputsDownDurationPrev, g.IO.NavInputsDownDuration, sizeof(g.IO.NavInputsDownDuration));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:3254:159:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 (g.NavWindow) { ImU32 col = (g.NavWindow->HiddenFrames == 0) ? IM_COL32(255,0,255,255) : IM_COL32(255,0,0,255); ImVec2 p = NavCalcPreferredMousePos(); char buf[32]; ImFormatString(buf, 32, "%d", g.NavLayer); g.OverlayDrawList.AddCircleFilled(p, 3.0f, col); g.OverlayDrawList.AddText(NULL, 13.0f, p + ImVec2(8,-4), col, buf); }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:3489: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(g.IO.KeysDownDurationPrev, g.IO.KeysDownDuration, sizeof(g.IO.KeysDownDuration));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:3963: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(&Layers[0][n], &layer[0], layer.Size * sizeof(ImDrawList*));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:4801: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 window_name[16];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:4973:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[20];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:5128: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 title[256];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8522: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(data_backup, data_ptr, GDataTypeSize[data_type]);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8585: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[32];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8877: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 value_buf[64];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:8923: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 value_buf[64];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:9184: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 value_buf[64];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:9510: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 overlay_buf[32];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:9775: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(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:9842:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:10536: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[64];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:10586: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 display_format[16];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:10770:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[16];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:11588: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 buf[64];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:11632: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(&dummy_ref_col, ref_col, sizeof(float) * (picker_flags & ImGuiColorEditFlags_NoAlpha ? 3 : 4));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:11738: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 buf[64];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:11830: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((float*)col, payload->Data, sizeof(float) * 3);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:11835: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((float*)col, payload->Data, sizeof(float) * components);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:11919: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(backup_initial_col, col, components * sizeof(float));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:12039: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(col, ref_col, components * sizeof(float));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:12820: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 fmt[64];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:12976: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((void*)(intptr_t)payload.Data, data, data_size);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:12983: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((void*)(intptr_t)payload.Data, data, data_size);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:13176: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(&g.PrivateClipboard[0], text, (size_t)(text_end - text));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:13274:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[300];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1164:94:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    inline ImVector& operator=(const ImVector<T>& src)          { clear(); resize(src.Size); memcpy(Data, src.Data, (size_t)Size * sizeof(value_type)); return *this; }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1185:186:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    inline void         resize(int new_size,const value_type& v){ if (new_size > Capacity) reserve(_grow_capacity(new_size)); if (new_size > Size) for (int n = Size; n < new_size; n++) memcpy(&Data[n], &v, sizeof(v)); Size = new_size; }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1192: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(new_data, Data, (size_t)Size * sizeof(value_type));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1199:132:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    inline void         push_back(const value_type& v)                  { if (Size == Capacity) reserve(_grow_capacity(Size + 1)); memcpy(&Data[Size], &v, sizeof(v)); Size++; }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1203:316:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    inline iterator     insert(const_iterator it, const value_type& v)  { IM_ASSERT(it >= Data && it <= Data+Size); const ptrdiff_t off = it - Data; if (Size == Capacity) reserve(_grow_capacity(Size + 1)); if (off < (int)Size) memmove(Data + off + 1, Data + off, ((size_t)Size - (size_t)off) * sizeof(value_type)); memcpy(&Data[off], &v, sizeof(v)); Size++; return Data + off; }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1250: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                InputBuf[256];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1378: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            DataType[32+1];     // Data type tag (short user-supplied string, 32 characters max)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.h:1662:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            Name[40];               // Name (strictly to ease debugging)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:538:43:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (int sz = ch.CmdBuffer.Size) { memcpy(cmd_write, ch.CmdBuffer.Data, sz * sizeof(ImDrawCmd)); cmd_write += sz; }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:539:43:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (int sz = ch.IdxBuffer.Size) { memcpy(_IdxWritePtr, ch.IdxBuffer.Data, sz * sizeof(ImDrawIdx)); _IdxWritePtr += sz; }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:549: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(&_Channels.Data[_ChannelsCurrent].CmdBuffer, &CmdBuffer, sizeof(CmdBuffer)); // copy 12 bytes, four times
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:550: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(&_Channels.Data[_ChannelsCurrent].IdxBuffer, &IdxBuffer, sizeof(IdxBuffer));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1333: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 FONT_ATLAS_DEFAULT_TEX_DATA_PIXELS[FONT_ATLAS_DEFAULT_TEX_DATA_W_HALF * FONT_ATLAS_DEFAULT_TEX_DATA_H + 1] =
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1502:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(new_font_cfg.FontData, font_cfg->FontData, (size_t)new_font_cfg.FontDataSize);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1535:35:  [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.
    if (font_cfg.Name[0] == '\0') strcpy(font_cfg.Name, "ProggyClean.ttf, 13px");
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1663:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void    ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_brighten_factor)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1672:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void    ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride)
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1814:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 multiply_table[256];
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:2075: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(full_ranges, base_ranges, sizeof(base_ranges));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:2782: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(stb__dout, data, length);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:2880: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 proggy_clean_ttf_compressed_data_base85[11980+1] =
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl3.cpp:60: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         g_GlslVersion[32] = "#version 150";
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_internal.h:657: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.
    unsigned char           DragDropPayloadBufLocal[8];         // Local buffer for small payloads
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_internal.h:695: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                    TempBuffer[1024*3+1];               // temporary text buffer
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_internal.h:1137:78:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
IMGUI_API void              ImFontAtlasBuildMultiplyCalcLookupTable(unsigned char out_table[256], float in_multiply_factor);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_internal.h:1138:79:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
IMGUI_API void              ImFontAtlasBuildMultiplyRectAlpha8(const unsigned char table[256], unsigned char* pixels, int x, int y, int w, int h, int stride);
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:278:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char ttf_buffer[1<<20];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:279:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char temp_bitmap[512*512];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:286:32:  [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).
   fread(ttf_buffer, 1, 1<<20, fopen("c:/windows/fonts/times.ttf", "rb"));
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:327: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 ttf_buffer[1<<25];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:333:32:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20);
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:333:70:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   int w,h,i,j,c = (argc > 1 ? atoi(argv[1]) : 'a'), s = (argc > 2 ? atoi(argv[2]) : 20);
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:335:32:  [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).
   fread(ttf_buffer, 1, 1<<25, fopen(argc > 3 ? argv[3] : "c:/windows/fonts/arialbd.ttf", "rb"));
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:367: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 buffer[24<<20];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:368:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char screen[20][79];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:377: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).
   fread(buffer, 1, 1000000, fopen("c:/windows/fonts/arialbd.ttf", "rb"));
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:431: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.
   typedef char stbtt__check_size32[sizeof(stbtt_int32)==4 ? 1 : -1];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:432: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.
   typedef char stbtt__check_size16[sizeof(stbtt_int16)==2 ? 1 : -1];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:482:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   #define STBTT_memcpy       memcpy
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:2821:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char scanline_data[512], *scanline;
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:3822:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer[STBTT_MAX_OVERSAMPLE];
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:3884:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   unsigned char buffer[STBTT_MAX_OVERSAMPLE];
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp:70:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int n = atoi(token);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp:153:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    cin.open(fileName.c_str());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp:352:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    cin.open(fileName.c_str());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp:467:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    v.v = fix_v(atoi(token));
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp:475: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).
      v.vn = fix_vn(atoi(token));
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp:481: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).
    v.vt = fix_vt(atoi(token));
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/obj_loader.cpp:487: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).
    v.vn = fix_vn(atoi(token));
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/ply_loader.cpp:107:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fs.open (fileName.c_str(), std::fstream::in | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:444: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).
    size_t ofs = atol(xml->parm("ofs").c_str());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:448:19:  [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).
    size_t size = atol(xml->parm("size").c_str());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:449:27:  [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).
    if (size == 0) size = atol(xml->parm("num").c_str()); // version for BGF format
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:1109:33:  [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).
      mesh->tessellation_rate = atoi(tessellation_rate.c_str());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:1186:33:  [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).
      mesh->tessellation_rate = atoi(tessellation_rate.c_str());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:1532:26:  [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).
    const size_t child = atoi(xml->parm("child").c_str()); 
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:1543:23:  [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).
    const size_t N  = atoi(xml->parm("numChildren").c_str());
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:1603: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).
    binFile = fopen(binFileName.c_str(),"rb");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_loader.cpp:1606: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).
      binFile = fopen(binFileName.c_str(),"rb");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:16:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(std::string str);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:17:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open(std::string str, size_t id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:85:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void XMLWriter::open(std::string str)
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:91:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  void XMLWriter::open(std::string str, size_t id)
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:177: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).
    open("PointLight",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:185: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).
    open("SpotLight",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:195: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).
    open("DirectionalLight",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:203: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).
    open("DistantLight",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:212: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).
    open("AmbientLight");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:219: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).
    open("TriangleLight",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:231: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).
    open("QuadLight",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:259: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:261: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:269: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:271: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:279: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:281: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:291: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:293: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:306: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:308: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:319: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:321: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:332: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:334: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:345: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:347: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:358: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).
    open("material",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:360: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).
    open("parameters");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:399: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).
    open("TriangleMesh",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:402:36:  [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 (mesh->numTimeSteps() != 1) open("animated_positions");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:406:36:  [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 (mesh->numTimeSteps() != 1) open("animated_normals");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:417: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).
    open("QuadMesh",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:420:36:  [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 (mesh->numTimeSteps() != 1) open("animated_positions");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:424:36:  [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 (mesh->numTimeSteps() != 1) open("animated_normals");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:435: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).
    open("SubdivisionMesh",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:438:36:  [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 (mesh->numTimeSteps() != 1) open("animated_positions");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:442:36:  [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 (mesh->numTimeSteps() != 1) open("animated_normals");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:511: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).
    open("Curves type=\""+str_subtype+"\" basis=\""+str_type+"\"",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:513:36:  [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 (mesh->numTimeSteps() != 1) open("animated_positions");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:517:38:  [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 (mesh->numTimeSteps() != 1) open("animated_normals");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:542:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      open("Transform",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:549:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      open("TransformAnimation",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:567: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).
    open("MultiTransform");
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:584: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).
    open("Group",id);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:642:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    xml.open (fileName, std::fstream::out);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:644:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bin.open (binFileName, std::fstream::out | std::fstream::binary);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/xml_writer.cpp:648: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).
    open("scene");
data/embree-3.12.1+dfsg/tutorials/common/tutorial/tutorial.cpp:350:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        listFile.open(listFilename.c_str());
data/embree-3.12.1+dfsg/tutorials/curve_geometry/curve_geometry_device.cpp:70: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 hair_flags_linear[NUM_CURVES] = {
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:1816:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:4869:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        alignas(alignof(T)) char storage[sizeof(T)];
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:5331: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.
        static char line[CATCH_CONFIG_CONSOLE_WIDTH] = {0};
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:5893:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        void open();
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:9336:14:  [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(&i, &f, sizeof(f));
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:9345:14:  [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(&i, &d, sizeof(d));
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:9760: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 m_buffer[L_tmpnam] = { 0 };
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:9847:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[100];
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:9856:23:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
        m_file = std::tmpfile();
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:9880:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[100] = {};
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:10296:30:  [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).
                    tracker->open();
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11054:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char **utf8Argv = new char *[ argc ];
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11208:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char data[bufferSize];
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11257:23:  [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).
                m_ofs.open( filename.c_str() );
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11488: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( m_data, m_start, m_size );
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:12005:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void TrackerBase::open() {
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:12105:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open();
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:12390:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char asChar[sizeof (int)];
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:13047:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[maxDoubleSize];
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:13054: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.
        std::sprintf(buffer, "%.3f", duration);
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:13637:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open() {
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:13666:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        tp.open();
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:14021:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timeStamp[timeStampSize];
data/embree-3.12.1+dfsg/tutorials/verify/rtcore_helpers.h:683: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.
    __aligned(64) char data[1024*sizeof(RTCRayHit)+64];
data/embree-3.12.1+dfsg/tutorials/verify/rtcore_helpers.h:712: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.
    __aligned(64) char data[1024 * sizeof(RTCRayHit) + 64];
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:456:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    db.open(base.addExt(".txt"), std::fstream::in);
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:484:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    hashFile.open(FileName::executableFolder()+FileName("hash"), std::fstream::in);
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:493:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    db.open(base.addExt(".txt"), std::fstream::out | std::fstream::app);
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:502:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    plot.open(base.addExt(".plot"), std::fstream::out | std::fstream::trunc);
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:3053:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          __aligned(64) char data[maxStreamSize*sizeof(RTCRayHit)]; 
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:5963:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    plot.open(outFileName, std::fstream::out | std::fstream::trunc);
data/embree-3.12.1+dfsg/tutorials/verify/verify.cpp:5985:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      data.open(outFileName.name()+"."+benchmark->name+".txt", std::fstream::out | std::fstream::trunc);
data/embree-3.12.1+dfsg/common/lexers/stream.h:143:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int c = fgetc(file);
data/embree-3.12.1+dfsg/common/sys/sysinfo.cpp:625: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(1000000.0*t);
data/embree-3.12.1+dfsg/tutorials/common/image/pfm.cpp:33:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char cty[2]; file.read(cty,2);
data/embree-3.12.1+dfsg/tutorials/common/image/pfm.cpp:56:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          file.read((char*)rgb,sizeof(rgb));
data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp:34:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    char cty[2]; file.read(cty,2);
data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp:69:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          file.read((char*)rgb,sizeof(rgb));
data/embree-3.12.1+dfsg/tutorials/common/image/ppm.cpp:81:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          file.read((char*)rgb,sizeof(rgb));
data/embree-3.12.1+dfsg/tutorials/common/image/tga.cpp:43:83:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline unsigned char  fread_uchar (std::fstream& file) { unsigned char  v; file.read((char*)&v,sizeof(v)); return v; }
data/embree-3.12.1+dfsg/tutorials/common/image/tga.cpp:44:83:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  inline unsigned short fread_ushort(std::fstream& file) { unsigned short v; file.read((char*)&v,sizeof(v)); return v; }
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1020:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dst, src, count-1);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1026: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(str) + 1;
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1056: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).
        needle_end = needle + strlen(needle);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:1699: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).
    TextRange input_range(InputBuf, InputBuf+strlen(InputBuf));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:3772: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* buf_end = buf + strlen(buf);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:4239: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).
            text_end = text + strlen(text); // FIXME-OPT
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:4258: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).
        text_end = text + strlen(text); // FIXME-OPT
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:7409: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).
        text_end = text + strlen(text); // FIXME-OPT
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:9836:83:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    const int new_text_len = new_text_end ? (int)(new_text_end - new_text) : (int)strlen(new_text);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:10197:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                const int clipboard_len = (int)strlen(clipboard);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:10307:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        IM_ASSERT(callback_data.BufTextLen == (int)strlen(callback_data.Buf)); // You need to maintain BufTextLen if you change the text!
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:10870: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).
        p += strlen(p) + 1;
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:10894: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).
        p += strlen(p) + 1;
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:12961: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).
    IM_ASSERT(strlen(type) < IM_ARRAYSIZE(payload.DataType) && "Payload type can be at most 12 characters long");
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui.cpp:13174: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).
    const char* text_end = text + strlen(text);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1117: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).
        text_end = text_begin + strlen(text_begin);
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1558: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).
        for (p = filename + strlen(filename); p > filename && p[-1] != '/' && p[-1] != '\\'; p--) {}
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:1591: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).
    int compressed_ttf_size = (((int)strlen(compressed_ttf_data_base85) + 4) / 5) * 4;
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:2403: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).
        text_end = text_begin + strlen(text_begin); // FIXME-OPT: Need to avoid this.
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_draw.cpp:2511: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).
        text_end = text_begin + strlen(text_begin); // ImGui functions generally already provides a valid text_end, so this is merely to handle direct calls.
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl3.cpp:365: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).
    IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(g_GlslVersion));
data/embree-3.12.1+dfsg/tutorials/common/imgui/imgui_impl_glfw_gl3.cpp:367:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(g_GlslVersion, "\n");
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:477: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).
   #define STBTT_strlen(x)    strlen(x)
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:4243:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
static int equal(float *a, float *b)
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:4292:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (equal(q0,q1) || equal(q1,q2)) {
data/embree-3.12.1+dfsg/tutorials/common/imgui/stb_truetype.h:4292:33:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            if (equal(q0,q1) || equal(q1,q2)) {
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/ply_loader.cpp:234:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (format == BINARY_LITTLE_ENDIAN) fs.read((char*)dst,num);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/ply_loader.cpp:235:76:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        else if (format == BINARY_BIG_ENDIAN) for (int i=0; i<num; i++) fs.read((char*)dst+num-i-1,1);
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:879:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= mesh->positions[0] == mesh->positions[i];
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:881:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (equal)
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:888:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= mesh->positions[0] == mesh->positions[i];
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:890:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (equal)
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:897:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= mesh->positions[0] == mesh->positions[i];
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:899:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (equal)
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:906:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= mesh->positions[0] == mesh->positions[i];
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:908:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (equal)
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:915:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= mesh->positions[0] == mesh->positions[i];
data/embree-3.12.1+dfsg/tutorials/common/scenegraph/scenegraph.cpp:917:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (equal)
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:3323:29:  [1] (buffer) is_permutation:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                return std::is_permutation(m_target.begin(), m_target.end(), vec.begin());
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11083:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11088:36:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            static_cast<void>(std::getchar());
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11379:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin());
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11385:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        return s.size() >= suffix.size() && std::equal(suffix.rbegin(), suffix.rend(), s.rbegin());
data/embree-3.12.1+dfsg/tutorials/external/catch.hpp:11456:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    : StringRef( rawChars, static_cast<StringRef::size_type>(std::strlen(rawChars) ) )

ANALYSIS SUMMARY:

Hits = 316
Lines analyzed = 222492 in approximately 9.31 seconds (23889 lines/second)
Physical Source Lines of Code (SLOC) = 176781
Hits@level = [0]  57 [1]  53 [2] 214 [3]  34 [4]  14 [5]   1
Hits@level+ = [0+] 373 [1+] 316 [2+] 263 [3+]  49 [4+]  15 [5+]   1
Hits/KSLOC@level+ = [0+] 2.10996 [1+] 1.78752 [2+] 1.48772 [3+] 0.277179 [4+] 0.0848507 [5+] 0.00565672
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.