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/nvidia-cg-toolkit-3.1.0013/amd64/include/Cg/cg.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/include/Cg/cgGL.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/01_vertex_program/01_vertex_program.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/03_uniform_parameter/03_uniform_parameter.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/04_varying_parameter/04_varying_parameter.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/05_texture_sampling/05_texture_sampling.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/05_texture_sampling/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/06_vertex_twisting/06_vertex_twisting.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/07_two_texture_accesses/07_two_texture_accesses.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/07_two_texture_accesses/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/08_vertex_transform/08_vertex_transform.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/09_vertex_lighting/09_vertex_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/10_fragment_lighting/10_fragment_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/11_two_lights_with_structs/11_two_lights_with_structs.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/12_light_attenuation/12_light_attenuation.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/13_spotlight/13_spotlight.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/14_bulge/14_bulge.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/15_particle_system/15_particle_system.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/16_keyframe_interpolation.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_convert.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_misc.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_scale.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/loadtex.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2normals.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2render.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/loadtex.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2render.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/21_bump_map_wall/21_bump_map_wall.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/21_bump_map_wall/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/21_bump_map_wall/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/22_specular_bump_map/22_specular_bump_map.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/22_specular_bump_map/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/22_specular_bump_map/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/23_bump_map_floor/23_bump_map_floor.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/23_bump_map_floor/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/23_bump_map_floor/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/24_bump_map_torus/24_bump_map_torus.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/24_bump_map_torus/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/24_bump_map_torus/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/26_toon_shading/26_toon_shading.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/26_toon_shading/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/27_projective_texturing/27_projective_texturing.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/27_projective_texturing/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo2.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo_array/cgfx_bumpdemo_array.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo_array/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo_array/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_latest/cgfx_latest.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_latest/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_procfx.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_procfx/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_procfx/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_texture_array/cgfx_texture_array.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/combine_program/combine_program.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/combine_program/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/combine_program/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/combine_program/combine_info.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/custom_state_assignments/custom_state_assignments.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_convert.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_misc.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_scale.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/loadtex.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2normals.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2render.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/loadtex.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2render.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gs_md2bump.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_convert.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_misc.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_scale.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/loadtex.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2normals.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2render.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/normalmap.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/loadtex.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2render.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/normalmap.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gs_md2shadowvol.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2edge.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/vecutil.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/vecutil.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gs_md2shadow.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_shrinky/gs_shrinky.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_simple/gs_simple.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_quadnormal/gs_quadnormal.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_quadnormal/fast_teapot.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_quadnormal/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_quadnormal/fast_teapot.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_interp_quad/gs_interp_quad.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_interp_quad/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/include_string/include_string.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/interpolation_modifier/interpolation_modifier.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/texture_array/texture_array.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/vertex_texture/vertex_texture.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/vertex_texture/mesh2d.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/vertex_texture/pgm_load.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/vertex_texture/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/vertex_texture/mesh2d.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/vertex_texture/pgm_load.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/buffer_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/materials.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/ubo_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/materials.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/cgfx_tessellation.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/teapot.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/tess_simple/tess_simple.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/tess_bezier/tess_bezier.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/main.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/monkey_head.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/bunny_1k.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/armadillo_500.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/quad_tri_bezier.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/gumbo.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/phong_tess.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/monkey_head.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/bunny_1k.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/armadillo_500.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/terrain_tess.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/terrain.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glew.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glewinfo.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/visualinfo.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glxew.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/wglew.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTenum.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTenum.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/dxstdafx.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/dxstdafx.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/03_uniform_parameter/03_uniform_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/04_varying_parameter/04_varying_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/05_texture_sampling/05_texture_sampling.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/06_vertex_twisting/06_vertex_twisting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/07_two_texture_accesses/07_two_texture_accesses.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/cgfx_simple/cgfx_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/cgfx_texture/cgfx_texture.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/cgfx_buffer/cgfx_buffer.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/combine_programs/combine_programs.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/custom_state_assignments/custom_state_assignments.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/gs_simple/gs_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/gs_shrinky/gs_shrinky.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/include_string/include_string.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/interpolation_modifier/interpolation_modifier.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/03_uniform_parameter/03_uniform_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/04_varying_parameter/04_varying_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/05_texture_sampling/05_texture_sampling.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/06_vertex_twisting/06_vertex_twisting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/07_two_texture_accesses/07_two_texture_accesses.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/cgfx_simple/cgfx_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/cgfx_texture/cgfx_texture.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/cgfx_buffer/cgfx_buffer.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_bumpdemo_array/cgfx_bumpdemo_array.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_latest/cgfx_latest.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/combine_programs/combine_programs.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/custom_state_assignments/custom_state_assignments.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/gs_simple/gs_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/gs_shrinky/gs_shrinky.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/include_string/include_string.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/interpolation_modifier/interpolation_modifier.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/cginfo.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCg.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D9.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D10.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D11.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCg.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgGL.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D9.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D10.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D11.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/cgfxcat.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/register_states.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/register_states.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/StateAssignmentIds.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceOutput.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceTime.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceFilter.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/b64.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/b64.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCg.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/uthash.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCgState.h
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCgGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceWGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLUT.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/include/Cg/cg.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/include/Cg/cgGL.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/01_vertex_program/01_vertex_program.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/03_uniform_parameter/03_uniform_parameter.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/04_varying_parameter/04_varying_parameter.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/05_texture_sampling/05_texture_sampling.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/05_texture_sampling/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/06_vertex_twisting/06_vertex_twisting.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/07_two_texture_accesses/07_two_texture_accesses.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/07_two_texture_accesses/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/08_vertex_transform/08_vertex_transform.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/09_vertex_lighting/09_vertex_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/10_fragment_lighting/10_fragment_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/11_two_lights_with_structs/11_two_lights_with_structs.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/12_light_attenuation/12_light_attenuation.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/13_spotlight/13_spotlight.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/14_bulge/14_bulge.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/15_particle_system/15_particle_system.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/16_keyframe_interpolation.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_convert.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_misc.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_scale.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/loadtex.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2normals.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2render.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/loadtex.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2render.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/21_bump_map_wall/21_bump_map_wall.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/21_bump_map_wall/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/21_bump_map_wall/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/22_specular_bump_map/22_specular_bump_map.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/22_specular_bump_map/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/22_specular_bump_map/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/23_bump_map_floor/23_bump_map_floor.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/23_bump_map_floor/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/23_bump_map_floor/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/24_bump_map_torus/24_bump_map_torus.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/24_bump_map_torus/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/24_bump_map_torus/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/26_toon_shading/26_toon_shading.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/26_toon_shading/MonkeyHead.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/27_projective_texturing/27_projective_texturing.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/27_projective_texturing/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo2.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo_array/cgfx_bumpdemo_array.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo_array/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo_array/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_latest/cgfx_latest.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_latest/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_procfx.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_procfx/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_procfx/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_texture_array/cgfx_texture_array.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/combine_program/combine_program.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/combine_program/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/combine_program/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/combine_program/combine_info.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/custom_state_assignments/custom_state_assignments.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_convert.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_misc.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_scale.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/loadtex.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2normals.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2render.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/loadtex.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2render.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gs_md2bump.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_convert.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_misc.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_scale.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/loadtex.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2normals.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2render.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/normalmap.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/loadtex.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2render.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/normalmap.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gs_md2shadowvol.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2edge.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/vecutil.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/vecutil.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gs_md2shadow.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_shrinky/gs_shrinky.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_simple/gs_simple.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_quadnormal/gs_quadnormal.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_quadnormal/fast_teapot.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_quadnormal/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_quadnormal/fast_teapot.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_interp_quad/gs_interp_quad.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_interp_quad/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/include_string/include_string.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/interpolation_modifier/interpolation_modifier.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/texture_array/texture_array.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/vertex_texture/vertex_texture.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/vertex_texture/mesh2d.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/vertex_texture/pgm_load.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/vertex_texture/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/vertex_texture/mesh2d.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/vertex_texture/pgm_load.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/buffer_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/materials.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/ubo_lighting.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/materials.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/request_vsync.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/cgfx_tessellation.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/teapot.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/tess_simple/tess_simple.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/tess_bezier/tess_bezier.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/main.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/monkey_head.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/bunny_1k.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/armadillo_500.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/quad_tri_bezier.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/gumbo.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/phong_tess.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/monkey_head.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/bunny_1k.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/armadillo_500.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/terrain_tess.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/zpr.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/spin.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/timer.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/zpr.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/terrain.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/spin.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/timer.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glew.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glewinfo.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/visualinfo.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glxew.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/wglew.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/demon_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/brick_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/normcm_image.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTenum.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTenum.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/dxstdafx.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/dxstdafx.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/03_uniform_parameter/03_uniform_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/04_varying_parameter/04_varying_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/05_texture_sampling/05_texture_sampling.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/06_vertex_twisting/06_vertex_twisting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/07_two_texture_accesses/07_two_texture_accesses.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/cgfx_simple/cgfx_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/cgfx_texture/cgfx_texture.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/cgfx_buffer/cgfx_buffer.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/combine_programs/combine_programs.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/custom_state_assignments/custom_state_assignments.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/gs_simple/gs_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/gs_shrinky/gs_shrinky.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/include_string/include_string.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/interpolation_modifier/interpolation_modifier.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/03_uniform_parameter/03_uniform_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/04_varying_parameter/04_varying_parameter.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/05_texture_sampling/05_texture_sampling.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/06_vertex_twisting/06_vertex_twisting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/07_two_texture_accesses/07_two_texture_accesses.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/cgfx_simple/cgfx_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/cgfx_texture/cgfx_texture.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/cgfx_buffer/cgfx_buffer.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/materials.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/materials.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_bumpdemo_array/cgfx_bumpdemo_array.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_latest/cgfx_latest.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/combine_programs/combine_programs.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/custom_state_assignments/custom_state_assignments.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/gs_simple/gs_simple.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/gs_shrinky/gs_shrinky.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/include_string/include_string.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/interpolation_modifier/interpolation_modifier.cpp
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/cginfo.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCg.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D9.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D10.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D11.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCg.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgGL.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D9.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D10.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D11.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/cgfxcat.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/register_states.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/register_states.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/StateAssignmentIds.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceOutput.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceTime.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceFilter.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/b64.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/b64.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCg.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/uthash.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCgState.h
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCgGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceWGL.c
Examining data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLUT.c

FINAL RESULTS:

data/nvidia-cg-toolkit-3.1.0013/amd64/include/Cg/cg.h:1348:67:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
CG_API void * CGENTRY cgMapBuffer(CGbuffer buffer, CGbufferaccess access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1372:31:  [4] (shell) ShellExecute:
  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.
    INT_PTR result = (INT_PTR)ShellExecute( NULL, TEXT("open"), szExpandedPath, NULL, NULL, SW_SHOWNORMAL);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:36:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:44:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:53:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:40:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:48:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:57:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:41:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:49:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:58:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:40:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:48:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:57:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:48:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:56:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:65:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:46:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:54:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:63:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:54:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:62:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:71:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3374:31:  [4] (shell) ShellExecute:
  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.
    INT_PTR result = (INT_PTR)ShellExecute( NULL, TEXT("open"), szExpandedPath, NULL, NULL, SW_SHOWNORMAL);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:98:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:107:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:120:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:319:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "[%c] Start with %s", i+'1', myLayerNames[i].name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:575:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "Using %s (\"v\" toggles) & %s (\"f\" toggles)",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:583:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "Using %s/%s profiles, \"g\" toggles",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:203:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read footer from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:218:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read header from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot read ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot skip ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: width, height, or bpp is zero in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:395:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(model->frames[i].name, frame->name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:203:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read footer from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:218:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read header from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot read ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot skip ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: width, height, or bpp is zero in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:395:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(model->frames[i].name, frame->name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:203:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read footer from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:218:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read header from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot read ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot skip ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: width, height, or bpp is zero in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:395:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(model->frames[i].name, frame->name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:1691:74:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:4332:120:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:5077:137:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:6427:78:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:8045:83:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:8046:128:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:9584:141:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:12659:82:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:12661:87:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glew.h:13129:93:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/wglew.h:982:76:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/wglew.h:984:122:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glew.c:131:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(symbolName+1, (const char*)name);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/visualinfo.c:234:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(t, p);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/visualinfo.c:676:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(file, value ? " y " : " n ");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:394:12:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vprintf(format, ap);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCg.c:47:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D10.c:49:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D11.c:49:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D9.c:49:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgGL.c:47:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:13:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:13:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:491:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(traceErr, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:504:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(traceErr, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:517:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(traceErr, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCg.c:24842:45:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
cgMapBuffer(CGbuffer buffer, CGbufferaccess access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCg.c:24868:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%lu", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCg.c:24878:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceCg_Native.cgMapBuffer(buffer, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:66872:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapBuffer(GLenum target, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:66903:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:66913:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapBuffer(target, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:95487:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapBufferARB(GLenum target, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:95518:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:95528:47:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapBufferARB(target, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:100202:80:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:100235:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:100245:65:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapBufferRange(target, offset, length, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:155531:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapNamedBufferEXT(GLuint buffer, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:155562:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:155572:52:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapNamedBufferEXT(buffer, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:157135:88:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapNamedBufferRangeEXT(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:157168:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:157178:73:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapNamedBufferRangeEXT(buffer, offset, length, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:161478:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMakeBufferResidentNV(GLenum target, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:161508:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:161518:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glMakeBufferResidentNV(target, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:161645:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMakeNamedBufferResidentNV(GLuint buffer, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:161675:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:161685:54:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glMakeNamedBufferResidentNV(buffer, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:162961:105:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glBindImageTextureEXT(GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:162995:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:163006:79:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glBindImageTextureEXT(index, texture, level, layered, layer, access, format);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:166903:57:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glVDPAUSurfaceAccessNV(GLvdpauSurfaceNV surface, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:166933:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:166943:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glVDPAUSurfaceAccessNV(surface, access);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceOutput.c:14:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceOutput.c:14:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceOutput.c:119:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(out,formatNull);   /* gcc 4.4.5 warning: format not a string literal and no format arguments */
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceOutput.c:148:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(out, format, buffer);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceOutput.c:571:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(out, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/uthash.h:250:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define HASH_OOPS(...) do { fprintf(stderr,__VA_ARGS__); exit(-1); } while (0)
data/nvidia-cg-toolkit-3.1.0013/i386/include/Cg/cg.h:1348:67:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
CG_API void * CGENTRY cgMapBuffer(CGbuffer buffer, CGbufferaccess access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1372:31:  [4] (shell) ShellExecute:
  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.
    INT_PTR result = (INT_PTR)ShellExecute( NULL, TEXT("open"), szExpandedPath, NULL, NULL, SW_SHOWNORMAL);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:36:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:44:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:53:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:40:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:48:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:57:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:41:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:49:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:58:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:40:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:48:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:57:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:48:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:56:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:65:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:46:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:54:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:63:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:54:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:62:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:71:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3374:31:  [4] (shell) ShellExecute:
  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.
    INT_PTR result = (INT_PTR)ShellExecute( NULL, TEXT("open"), szExpandedPath, NULL, NULL, SW_SHOWNORMAL);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:98:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:107:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:120:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buffer,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:319:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "[%c] Start with %s", i+'1', myLayerNames[i].name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:575:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "Using %s (\"v\" toggles) & %s (\"f\" toggles)",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:583:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "Using %s/%s profiles, \"g\" toggles",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:203:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read footer from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:218:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read header from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot read ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot skip ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: width, height, or bpp is zero in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:395:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(model->frames[i].name, frame->name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:203:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read footer from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:218:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read header from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot read ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot skip ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: width, height, or bpp is zero in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:395:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(model->frames[i].name, frame->name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:203:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read footer from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:218:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: Cannot read header from \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:231:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot read ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:240:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(__gliError, "TGA: Cannot skip ID field in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:255:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(__gliError, "TGA: width, height, or bpp is zero in \"%s\"", name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:395:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(model->frames[i].name, frame->name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:1691:74:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:4332:120:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:5077:137:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:6427:78:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:8045:83:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:8046:128:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef GLvoid * (GLAPIENTRY * PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:9584:141:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:12659:82:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:12661:87:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glew.h:13129:93:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (GLAPIENTRY * PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/wglew.h:982:76:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/wglew.h:984:122:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glew.c:131:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(symbolName+1, (const char*)name);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/visualinfo.c:234:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(t, p);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/visualinfo.c:676:11:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
          fprintf(file, value ? " y " : " n ");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:394:12:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    (void) vprintf(format, ap);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCg.c:47:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D10.c:49:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D11.c:49:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D9.c:49:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgGL.c:47:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(framework,"%s.framework/%s",filename,filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:13:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:13:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:491:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(traceErr, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:504:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(traceErr, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:517:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(traceErr, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCg.c:24842:45:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
cgMapBuffer(CGbuffer buffer, CGbufferaccess access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCg.c:24868:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%lu", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCg.c:24878:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceCg_Native.cgMapBuffer(buffer, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:66872:35:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapBuffer(GLenum target, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:66903:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:66913:44:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapBuffer(target, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:95487:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapBufferARB(GLenum target, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:95518:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:95528:47:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapBufferARB(target, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:100202:80:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:100235:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:100245:65:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapBufferRange(target, offset, length, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:155531:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapNamedBufferEXT(GLuint buffer, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:155562:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:155572:52:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapNamedBufferEXT(buffer, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:157135:88:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMapNamedBufferRangeEXT(GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:157168:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:157178:73:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = traceGL_Native.glMapNamedBufferRangeEXT(buffer, offset, length, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:161478:46:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMakeBufferResidentNV(GLenum target, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:161508:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:161518:49:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glMakeBufferResidentNV(target, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:161645:51:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glMakeNamedBufferResidentNV(GLuint buffer, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:161675:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:161685:54:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glMakeNamedBufferResidentNV(buffer, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:162961:105:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glBindImageTextureEXT(GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:162995:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:163006:79:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glBindImageTextureEXT(index, texture, level, layered, layer, access, format);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:166903:57:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
glVDPAUSurfaceAccessNV(GLvdpauSurfaceNV surface, GLenum access)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:166933:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      traceInputParameter("access", "%u", access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:166943:50:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  traceGL_Native.glVDPAUSurfaceAccessNV(surface, access);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceOutput.c:14:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceOutput.c:14:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceOutput.c:119:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(out,formatNull);   /* gcc 4.4.5 warning: format not a string literal and no format arguments */
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceOutput.c:148:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(out, format, buffer);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceOutput.c:571:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(out, format, argptr);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/uthash.h:250:29:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define HASH_OOPS(...) do { fprintf(stderr,__VA_ARGS__); exit(-1); } while (0)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:35:46:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    inline DXUTLock()  { if( g_bThreadSafe ) EnterCriticalSection( &g_cs ); }
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:784:25:  [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.
    HINSTANCE hUser32 = LoadLibrary( L"user32.dll" );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:487:18:  [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.
    s_hModD3D9 = LoadLibrary( L"d3d9.dll" );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:511:19:  [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.
    s_hModD3D10 = LoadLibrary( L"d3d10.dll" );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:527:18:  [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.
    s_hModDXGI = LoadLibrary( L"dxgi.dll" );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:534: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.
    s_hModD3D101 = LoadLibrary( L"d3d10_1.dll" );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1394:27:  [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.
        HINSTANCE hInst = LoadLibrary( XINPUT_DLL );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1493:27:  [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.
        HINSTANCE hInst = LoadLibrary( XINPUT_DLL );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1512:27:  [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.
        HINSTANCE hInst = LoadLibrary( XINPUT_DLL );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:25:46:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    inline DXUTLock()  { if( g_bThreadSafe ) EnterCriticalSection( &g_cs ); }
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:214:9:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        InitializeCriticalSection( &g_cs ); 
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:488:32:  [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.
        HINSTANCE hInstWinMM = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:2934:18:  [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.
    s_hModD3D9 = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3232:31:  [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.
            HINSTANCE hInst = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3337:31:  [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.
            HINSTANCE hInst = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c:537:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(333);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glewinfo.c:9184:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    display == NULL ? getenv("DISPLAY") : display, visual);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:45:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    ret = getenv(var);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCg.c:65:27:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceCg_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceCgGL.c:51:29:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceCgGL_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:7355:27:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceGL_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLUT.c:203:29:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceGLUT_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:233:28:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceGLX_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceWGL.c:296:28:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceWGL_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:35:46:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    inline DXUTLock()  { if( g_bThreadSafe ) EnterCriticalSection( &g_cs ); }
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:784:25:  [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.
    HINSTANCE hUser32 = LoadLibrary( L"user32.dll" );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:487:18:  [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.
    s_hModD3D9 = LoadLibrary( L"d3d9.dll" );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:511:19:  [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.
    s_hModD3D10 = LoadLibrary( L"d3d10.dll" );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:527:18:  [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.
    s_hModDXGI = LoadLibrary( L"dxgi.dll" );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:534: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.
    s_hModD3D101 = LoadLibrary( L"d3d10_1.dll" );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1394:27:  [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.
        HINSTANCE hInst = LoadLibrary( XINPUT_DLL );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1493:27:  [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.
        HINSTANCE hInst = LoadLibrary( XINPUT_DLL );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1512:27:  [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.
        HINSTANCE hInst = LoadLibrary( XINPUT_DLL );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:25:46:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    inline DXUTLock()  { if( g_bThreadSafe ) EnterCriticalSection( &g_cs ); }
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:214:9:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
        InitializeCriticalSection( &g_cs ); 
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:488:32:  [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.
        HINSTANCE hInstWinMM = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:2934:18:  [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.
    s_hModD3D9 = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3232:31:  [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.
            HINSTANCE hInst = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3337:31:  [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.
            HINSTANCE hInst = LoadLibrary( wszPath );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c:537:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(333);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glewinfo.c:9184:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    display == NULL ? getenv("DISPLAY") : display, visual);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:45:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    ret = getenv(var);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCg.c:65:27:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceCg_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceCgGL.c:51:29:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceCgGL_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:7355:27:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceGL_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLUT.c:203:29:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceGLUT_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:233:28:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceGLX_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceWGL.c:296:28:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return (TraceWGL_Handle) LoadLibrary(filename);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp:410:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/gs_shrinky/gs_shrinky.cpp:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/gs_simple/gs_simple.cpp:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/advanced/interpolation_modifier/interpolation_modifier.cpp:73:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *myCgTechniqueNames[4] =
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/03_uniform_parameter/03_uniform_parameter.cpp:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/04_varying_parameter/04_varying_parameter.cpp:47:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/05_texture_sampling/05_texture_sampling.cpp:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/06_vertex_twisting/06_vertex_twisting.cpp:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/cgfx_buffer/cgfx_buffer.cpp:295:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/basic/cgfx_simple/cgfx_simple.cpp:292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:828:39:  [2] (integer) _wtoi:
  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 nAPIVersion = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:838:36:  [2] (integer) _wtoi:
  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 nAdapter = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:854:34:  [2] (integer) _wtoi:
  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 Output = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:900:31:  [2] (integer) _wtoi:
  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 nOn = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:910:34:  [2] (integer) _wtoi:
  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 nWidth = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:920:35:  [2] (integer) _wtoi:
  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 nHeight = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:930:30:  [2] (integer) _wtoi:
  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 nX = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:940:30:  [2] (integer) _wtoi:
  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 nY = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:963:34:  [2] (integer) _wtoi:
  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 nFrame = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:2079: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( pNewDeviceSettingsOnHeap, pNewDeviceSettings, sizeof(DXUTDeviceSettings) );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:3238: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( bLastKeys, bKeys, sizeof(bool)*256 );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:5922:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            MultiByteToWideChar( CP_ACP, 0, pAdapterIdentifier->Description, -1, szDescription, cchDesc );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.cpp:104:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    CopyMemory( &validDeviceSettings, pIn, sizeof(DXUTDeviceSettings) );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.cpp:401:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar( CP_ACP, 0, 
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1119:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            MultiByteToWideChar( CP_ACP, 0, pAdapterInfo->AdapterIdentifier.DeviceName, -1, strDeviceName, 256 );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1428: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( pGamePad, &InputState.Gamepad, sizeof(XINPUT_GAMEPAD) );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/advanced/interpolation_modifier/interpolation_modifier.cpp:73:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *myCgTechniqueNames[4] =
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/cgfx_buffer/cgfx_buffer.cpp:309:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D11/basic/cgfx_simple/cgfx_simple.cpp:306:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp:270:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pVertices, &vertexList[0], vertexList.size() * sizeof(MY_V3F) );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp:148:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp:154:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:30:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:144:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:168:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:34:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:180:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:40:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:40:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:197:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:595:36:  [2] (integer) _wtoi:
  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 nAdapter = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:647:31:  [2] (integer) _wtoi:
  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 nOn = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:657:34:  [2] (integer) _wtoi:
  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 nWidth = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:667:35:  [2] (integer) _wtoi:
  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 nHeight = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:677:30:  [2] (integer) _wtoi:
  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 nX = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:687:30:  [2] (integer) _wtoi:
  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 nY = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:710:34:  [2] (integer) _wtoi:
  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 nFrame = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:2674: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( pNewDeviceSettingsOnHeap, pNewDeviceSettings, sizeof(DXUTDeviceSettings) );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:3940:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            MultiByteToWideChar( CP_ACP, 0, pAdapterIdentifier->Description, -1, szDescription, cchDesc );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTenum.cpp:187:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar( CP_ACP, 0, 
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3168:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_ACP, 0, pAdapterInfo->AdapterIdentifier.DeviceName, -1, strDeviceName, 256 );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3267: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( pGamePad, &InputState.Gamepad, sizeof(XINPUT_GAMEPAD) );
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:28:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *techniqueName[MAX_TECHNIQUES];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:92:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo2.c:311:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo2.c:323:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:209: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 *myPassDirections[2] = { "forward", "reverse" };
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:314:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[300];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:500:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:512:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:571:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + j, rleInfo->statebuf + rleInfo->laststate, bytes);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:142:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p + k, p, datasize);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:328:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:335:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:344:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: indexed image has invalid color map type %d\n",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:350:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:367:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: invalid color map length %d", length);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:373:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:388:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: error reading colormap (ftell == %ld)\n",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/loadtex.c:16:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:215: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 b[2];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:233: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:253: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:270: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.
  unsigned char buffer[MD2_MAX_FRAMESIZE];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:279:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h:38: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.
  unsigned char vertex[3];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h:64:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_interp_quad/gs_interp_quad.c:344:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_interp_quad/gs_interp_quad.c:356:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:13:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:25:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:33:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:42:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:51:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:74:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "gliMergeAlpha: malloc failed");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:154:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + j, rleInfo->statebuf + rleInfo->laststate, bytes);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:142:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p + k, p, datasize);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:328:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:335:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:344:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: indexed image has invalid color map type %d\n",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:350:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:367:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: invalid color map length %d", length);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:373:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:388:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: error reading colormap (ftell == %ld)\n",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/loadtex.c:17:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:215: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 b[2];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:233: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:253: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:270: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.
  unsigned char buffer[MD2_MAX_FRAMESIZE];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:279:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h:36: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.
  unsigned char vertex[3];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h:62:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.c:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.c:35:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_quadnormal/gs_quadnormal.c:317:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_quadnormal/gs_quadnormal.c:329:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/interpolation_modifier/interpolation_modifier.c:180: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 *myCgTechniqueNames[4] = {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/vertex_texture/pgm_load.c:11: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/16_keyframe_interpolation.c:52: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 *myVertexProgramFileName[2] = { "C6E3v_keyFrame.cg",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + j, rleInfo->statebuf + rleInfo->laststate, bytes);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:142:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p + k, p, datasize);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:328:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:335:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:344:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: indexed image has invalid color map type %d\n",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:350:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:367:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: invalid color map length %d", length);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:373:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:388:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: error reading colormap (ftell == %ld)\n",
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/loadtex.c:16:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:215: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 b[2];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:233: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:253: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:270: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.
  unsigned char buffer[MD2_MAX_FRAMESIZE];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:279:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h:38: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.
  unsigned char vertex[3];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h:64:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c:509: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c:524: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c:675: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c:518: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c:533: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c:684: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c:515: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c:530: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c:284: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c:299: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/26_toon_shading/26_toon_shading.c:234:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *name[3] = { "diffuseRamp", "specularRamp", "edgeRamp" };
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1282:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1286:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1293:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1299:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glewinfo.c:9171:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen("glewinfo.txt", "w");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/visualinfo.c:149:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen("visualinfo.txt", "w");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/visualinfo.c:208:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char t[80];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.c:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.c:35:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/zpr.c:306:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/phong_tess/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/pn_triangles/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/tessellation/terrain_tess/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:213: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  str[1024];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:218: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).
        pFile = fopen(pFileName, "r");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:374:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char blank_line[BLANK_LINE_SIZE];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/cginfo.c:87: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 tempSpace[2048];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCg.c:480:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D10.c:151:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D11.c:153:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D9.c:156:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgGL.c:214:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/b64.c:39: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 b64EncodeTable[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/b64.c:96:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char out[5] = { 0,0,0,0,0 };
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:20: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  indentBuffer[1024];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:59:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(path,"r");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:114:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      traceOut = fopen(outFileName, "w");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:124:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        traceErr = fopen(errFileName, "w");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:134: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).
      traceEnable = atoi(traceEnableEnv);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:138:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      base64 = atoi(base64Env);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:146: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).
      timeStamp = atoi(timeStampEnv);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:150: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).
      parameter = atoi(parameterEnv);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.c:171:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[bufferSize];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/trace.h:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char  indentBuffer[1024];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:40522: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(j,string[i],k);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:170268: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 *traceGL_apiFuncNames[2316] = {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:6989: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 *traceGLX_apiFuncNames[115] = {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceWGL.c:9237: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 *traceWGL_apiFuncNames[136] = {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp:410:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/gs_shrinky/gs_shrinky.cpp:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/gs_simple/gs_simple.cpp:97:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/advanced/interpolation_modifier/interpolation_modifier.cpp:73:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *myCgTechniqueNames[4] =
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/03_uniform_parameter/03_uniform_parameter.cpp:51:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/04_varying_parameter/04_varying_parameter.cpp:47:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/05_texture_sampling/05_texture_sampling.cpp:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/06_vertex_twisting/06_vertex_twisting.cpp:53:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:54:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/cgfx_buffer/cgfx_buffer.cpp:295:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/basic/cgfx_simple/cgfx_simple.cpp:292:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:828:39:  [2] (integer) _wtoi:
  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 nAPIVersion = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:838:36:  [2] (integer) _wtoi:
  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 nAdapter = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:854:34:  [2] (integer) _wtoi:
  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 Output = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:900:31:  [2] (integer) _wtoi:
  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 nOn = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:910:34:  [2] (integer) _wtoi:
  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 nWidth = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:920:35:  [2] (integer) _wtoi:
  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 nHeight = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:930:30:  [2] (integer) _wtoi:
  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 nX = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:940:30:  [2] (integer) _wtoi:
  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 nY = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:963:34:  [2] (integer) _wtoi:
  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 nFrame = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:2079: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( pNewDeviceSettingsOnHeap, pNewDeviceSettings, sizeof(DXUTDeviceSettings) );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:3238: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( bLastKeys, bKeys, sizeof(bool)*256 );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:5922:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            MultiByteToWideChar( CP_ACP, 0, pAdapterIdentifier->Description, -1, szDescription, cchDesc );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.cpp:104:5:  [2] (buffer) CopyMemory:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    CopyMemory( &validDeviceSettings, pIn, sizeof(DXUTDeviceSettings) );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTenum.cpp:401:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar( CP_ACP, 0, 
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1119:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            MultiByteToWideChar( CP_ACP, 0, pAdapterInfo->AdapterIdentifier.DeviceName, -1, strDeviceName, 256 );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUTmisc.cpp:1428: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( pGamePad, &InputState.Gamepad, sizeof(XINPUT_GAMEPAD) );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/advanced/interpolation_modifier/interpolation_modifier.cpp:73:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *myCgTechniqueNames[4] =
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/cgfx_buffer/cgfx_buffer.cpp:309:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D11/basic/cgfx_simple/cgfx_simple.cpp:306:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp:175:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[128];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/cgfx_buffer_lighting.cpp:270:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pVertices, &vertexList[0], vertexList.size() * sizeof(MY_V3F) );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp:148:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/advanced/cgfx_bumpdemo/cgfx_bumpdemo.cpp:154:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:30:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/01_vertex_program/01_vertex_program.cpp:144:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/02_vertex_and_fragment_program/02_vertex_and_fragment_program.cpp:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/03_uniform_parameter/03_uniform_parameter.cpp:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/04_varying_parameter/04_varying_parameter.cpp:168:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:34:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/05_texture_sampling/05_texture_sampling.cpp:180:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/06_vertex_twisting/06_vertex_twisting.cpp:40:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:40:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/basic/07_two_texture_accesses/07_two_texture_accesses.cpp:197:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(pVertices, triangleVertices, sizeof(triangleVertices));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:595:36:  [2] (integer) _wtoi:
  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 nAdapter = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:647:31:  [2] (integer) _wtoi:
  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 nOn = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:657:34:  [2] (integer) _wtoi:
  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 nWidth = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:667:35:  [2] (integer) _wtoi:
  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 nHeight = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:677:30:  [2] (integer) _wtoi:
  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 nX = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:687:30:  [2] (integer) _wtoi:
  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 nY = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:710:34:  [2] (integer) _wtoi:
  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 nFrame = _wtoi(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:2674: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( pNewDeviceSettingsOnHeap, pNewDeviceSettings, sizeof(DXUTDeviceSettings) );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:3940:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            MultiByteToWideChar( CP_ACP, 0, pAdapterIdentifier->Description, -1, szDescription, cchDesc );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTenum.cpp:187:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar( CP_ACP, 0, 
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3168:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar( CP_ACP, 0, pAdapterInfo->AdapterIdentifier.DeviceName, -1, strDeviceName, 256 );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:3267: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( pGamePad, &InputState.Gamepad, sizeof(XINPUT_GAMEPAD) );
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:28:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *techniqueName[MAX_TECHNIQUES];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_boxfilter/cgfx_boxfilter.c:92:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo2.c:311:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_bumpdemo/cgfx_bumpdemo2.c:323:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:209: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 *myPassDirections[2] = { "forward", "reverse" };
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:314:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[300];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:500:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:512:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:571:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + j, rleInfo->statebuf + rleInfo->laststate, bytes);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:142:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p + k, p, datasize);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:328:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:335:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:344:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: indexed image has invalid color map type %d\n",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:350:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:367:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: invalid color map length %d", length);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:373:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:388:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: error reading colormap (ftell == %ld)\n",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/loadtex.c:16:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:215: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 b[2];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:233: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:253: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:270: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.
  unsigned char buffer[MD2_MAX_FRAMESIZE];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.c:279:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h:38: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.
  unsigned char vertex[3];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/md2file.h:64:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_interp_quad/gs_interp_quad.c:344:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_interp_quad/gs_interp_quad.c:356:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:13:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:25:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:33:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:42:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:51:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:74:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "gliMergeAlpha: malloc failed");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_merge.c:154:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + j, rleInfo->statebuf + rleInfo->laststate, bytes);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:142:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p + k, p, datasize);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:328:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:335:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:344:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: indexed image has invalid color map type %d\n",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:350:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:367:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: invalid color map length %d", length);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:373:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:388:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: error reading colormap (ftell == %ld)\n",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/loadtex.c:17:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:215: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 b[2];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:233: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:253: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:270: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.
  unsigned char buffer[MD2_MAX_FRAMESIZE];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.c:279:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h:36: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.
  unsigned char vertex[3];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h:57:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/md2file.h:62:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.c:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/showfps.c:35:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_quadnormal/gs_quadnormal.c:317:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_quadnormal/gs_quadnormal.c:329:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/interpolation_modifier/interpolation_modifier.c:180: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 *myCgTechniqueNames[4] = {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/vertex_texture/pgm_load.c:11: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/16_keyframe_interpolation.c:52: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 *myVertexProgramFileName[2] = { "C6E3v_keyFrame.cg",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char __gliError[256];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:89:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(buf + j, rleInfo->statebuf + rleInfo->laststate, bytes);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:142:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(p + k, p, datasize);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:328:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:335:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:344:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: indexed image has invalid color map type %d\n",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:350:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:367:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: invalid color map length %d", length);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:373:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError,
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:388:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(__gliError, "TGA: error reading colormap (ftell == %ld)\n",
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/loadtex.c:16:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:215: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 b[2];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:233: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:253: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:270: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.
  unsigned char buffer[MD2_MAX_FRAMESIZE];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.c:279:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h:38: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.
  unsigned char vertex[3];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/md2file.h:64:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char name[16];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c:509: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c:524: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/18_cube_map_reflection/18_cube_map_reflection.c:675: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c:518: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c:533: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/19_cube_map_refraction/19_cube_map_refraction.c:684: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c:515: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c:530: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c:284: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 b[4];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/25_uniform_fog.c:299: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 *file = fopen(filename, "rb");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.c:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/25_uniform_fog/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/26_toon_shading/26_toon_shading.c:234:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char *name[3] = { "diffuseRamp", "specularRamp", "edgeRamp" };
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.c:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.cpp:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/cgfx_buffer_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c:393:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c:404:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.c:410:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4])
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h:69:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printMatrix(const char *name, const float mat[16]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h:70:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 printVector(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/buffers/ubo_lighting/matrix.h:71:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void printDirection(const char *name, const float vec[4]);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1282:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1286:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1293:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1299:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glewinfo.c:9171:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen("glewinfo.txt", "w");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/visualinfo.c:149:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen("visualinfo.txt", "w");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/visualinfo.c:208:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char t[80];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.c:23:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[200], *c;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/showfps.c:35:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "fps %0.1f", fpsRate);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/cgfx_tessellation/zpr.c:306:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/phong_tess/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/pn_triangles/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/quad_tri_bezier/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/tessellation/terrain_tess/zpr.c:356:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(out, tmp, 16*sizeof(GLdouble));
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:213: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  str[1024];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:218: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).
        pFile = fopen(pFileName, "r");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cgfxcat/cgfxcat.c:374:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char blank_line[BLANK_LINE_SIZE];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/cginfo.c:87: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 tempSpace[2048];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCg.c:480:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D10.c:151:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D11.c:153:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D9.c:156:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgGL.c:214:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[4096];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/b64.c:39: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 b64EncodeTable[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/b64.c:96:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char out[5] = { 0,0,0,0,0 };
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:20: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  indentBuffer[1024];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:59:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(path,"r");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:114:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      traceOut = fopen(outFileName, "w");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:124:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        traceErr = fopen(errFileName, "w");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:134: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).
      traceEnable = atoi(traceEnableEnv);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:138:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      base64 = atoi(base64Env);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:146: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).
      timeStamp = atoi(timeStampEnv);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:150: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).
      parameter = atoi(parameterEnv);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.c:171:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[bufferSize];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/trace.h:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char  indentBuffer[1024];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:40522: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(j,string[i],k);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:170268: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 *traceGL_apiFuncNames[2316] = {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:66:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:71:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:6989: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 *traceGLX_apiFuncNames[115] = {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceWGL.c:9237: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 *traceWGL_apiFuncNames[136] = {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1002:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1012:25:  [1] (buffer) wcslen:
  Does not handle 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 nArgLen = (int) wcslen(strArg);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1013:25:  [1] (buffer) wcslen:
  Does not handle 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 nCmdLen = (int) wcslen(strCmdLine);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1046:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:749:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:759:25:  [1] (buffer) wcslen:
  Does not handle 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 nArgLen = (int) wcslen(strArg);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:760:25:  [1] (buffer) wcslen:
  Does not handle 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 nCmdLen = (int) wcslen(strCmdLine);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:793:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:2685: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).
    UINT dwBufferSize = (UINT)strlen(g_strBuffer) + 1; 
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:403: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).
  len = (int) strlen(string);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.c:204:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (semantic && strlen(semantic)) {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.c:297:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (semantic && strlen(semantic)) {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:563: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).
  len = (int) strlen(string);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:104:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = fgetc(fp);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:467:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc (fp) != EOF) {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:104:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = fgetc(fp);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:467:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc (fp) != EOF) {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/advanced/interpolation_modifier/interpolation_modifier.c:147: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).
  len = (int) strlen(string);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:104:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = fgetc(fp);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:467:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc (fp) != EOF) {
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c:231:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name[strlen(name)-1] = '0' + i;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:299:97:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1492:93:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glew.c:130:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  symbolName = malloc(strlen((const char*)name) + 2);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glewinfo.c:76: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).
  for (i=0; i<62-strlen(name); i++) fprintf(f, " ");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glewinfo.c:84: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).
  for (i=0; i<strlen(name)+1; i++) fprintf(f, "-");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/glewinfo.c:93: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).
  for (i=0; i<60-strlen(name); i++) fprintf(f, " ");
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/OpenGL/glew/src/visualinfo.c:233:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i = (int)strlen(p);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCg.c:46: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D10.c:48: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D11.c:48: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgD3D9.c:48: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Tools/cginfo/loadCgGL.c:46: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:40472:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return name ? strlen(name) : 0;
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:40506: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).
    total += length ? length[i] : (string[i] ? strlen(string[i]) : 0);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGL.c:40520:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    k = length ? length[i] : (string[i] ? strlen(string[i]) : 0);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:2324:71:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
glXMakeContextCurrent(Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:2357:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = traceGLX_Native.glXMakeContextCurrent(display, draw, read, ctx);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:2999:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
glXMakeCurrentReadSGI(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/traceGLX.c:3032:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = traceGLX_Native.glXMakeCurrentReadSGI(dpy, draw, read, ctx);
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/uthash.h:232: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).
    HASH_FIND(hh,head,findstr,strlen(findstr),out)
data/nvidia-cg-toolkit-3.1.0013/amd64/local/Cg/examples/Trace/uthash.h:234: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).
    HASH_ADD(hh,head,strfield,strlen(add->strfield),add)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1002:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1012:25:  [1] (buffer) wcslen:
  Does not handle 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 nArgLen = (int) wcslen(strArg);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1013:25:  [1] (buffer) wcslen:
  Does not handle 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 nCmdLen = (int) wcslen(strCmdLine);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D10/miniDXUT/DXUT.cpp:1046:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:749:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:759:25:  [1] (buffer) wcslen:
  Does not handle 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 nArgLen = (int) wcslen(strArg);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:760:25:  [1] (buffer) wcslen:
  Does not handle 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 nCmdLen = (int) wcslen(strCmdLine);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUT.cpp:793:23:  [1] (buffer) wcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        strCmdLine += wcslen(strFlag);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Direct3D9/miniDXUT/DXUTmisc.cpp:2685: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).
    UINT dwBufferSize = (UINT)strlen(g_strBuffer) + 1; 
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_interfaces/cgfx_interfaces.c:403: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).
  len = (int) strlen(string);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.c:204:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (semantic && strlen(semantic)) {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/cgfx_procfx/cgfx_dump.c:297:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (semantic && strlen(semantic)) {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/generic_attribs.c:563: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).
  len = (int) strlen(string);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:104:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = fgetc(fp);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/generic_attribs/gli_tga.c:467:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc (fp) != EOF) {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:104:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = fgetc(fp);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/gs_md2render/gli_tga.c:467:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc (fp) != EOF) {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/advanced/interpolation_modifier/interpolation_modifier.c:147: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).
  len = (int) strlen(string);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:104:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = fgetc(fp);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/16_keyframe_interpolation/gli_tga.c:467:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (fgetc (fp) != EOF) {
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/basic/20_chromatic_dispersion/20_chromatic_dispersion.c:231:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    name[strlen(name)-1] = '0' + i;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:299:97:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/include/GL/glxew.h:1492:93:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glew.c:130:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  symbolName = malloc(strlen((const char*)name) + 2);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glewinfo.c:76: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).
  for (i=0; i<62-strlen(name); i++) fprintf(f, " ");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glewinfo.c:84: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).
  for (i=0; i<strlen(name)+1; i++) fprintf(f, "-");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/glewinfo.c:93: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).
  for (i=0; i<60-strlen(name); i++) fprintf(f, " ");
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/OpenGL/glew/src/visualinfo.c:233:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      i = (int)strlen(p);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCg.c:46: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D10.c:48: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D11.c:48: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgD3D9.c:48: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Tools/cginfo/loadCgGL.c:46: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).
  framework = (char *) malloc(strlen(filename)*2+12);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:40472:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return name ? strlen(name) : 0;
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:40506: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).
    total += length ? length[i] : (string[i] ? strlen(string[i]) : 0);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGL.c:40520:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    k = length ? length[i] : (string[i] ? strlen(string[i]) : 0);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:2324:71:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
glXMakeContextCurrent(Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:2357:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = traceGLX_Native.glXMakeContextCurrent(display, draw, read, ctx);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:2999:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
glXMakeCurrentReadSGI(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/traceGLX.c:3032:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = traceGLX_Native.glXMakeCurrentReadSGI(dpy, draw, read, ctx);
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/uthash.h:232: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).
    HASH_FIND(hh,head,findstr,strlen(findstr),out)
data/nvidia-cg-toolkit-3.1.0013/i386/local/Cg/examples/Trace/uthash.h:234: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).
    HASH_ADD(hh,head,strfield,strlen(add->strfield),add)

ANALYSIS SUMMARY:

Hits = 824
Lines analyzed = 1482192 in approximately 54.08 seconds (27409 lines/second)
Physical Source Lines of Code (SLOC) = 1242514
Hits@level = [0] 3858 [1]  84 [2] 472 [3]  48 [4] 220 [5]   0
Hits@level+ = [0+] 4682 [1+] 824 [2+] 740 [3+] 268 [4+] 220 [5+]   0
Hits/KSLOC@level+ = [0+] 3.76817 [1+] 0.663172 [2+] 0.595567 [3+] 0.215692 [4+] 0.17706 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.