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/opensubdiv-3.4.3/examples/common/clDeviceContext.cpp Examining data/opensubdiv-3.4.3/examples/common/clDeviceContext.h Examining data/opensubdiv-3.4.3/examples/common/cudaDeviceContext.cpp Examining data/opensubdiv-3.4.3/examples/common/cudaDeviceContext.h Examining data/opensubdiv-3.4.3/examples/common/d3d11ControlMeshDisplay.cpp Examining data/opensubdiv-3.4.3/examples/common/d3d11ControlMeshDisplay.h Examining data/opensubdiv-3.4.3/examples/common/d3d11Hud.cpp Examining data/opensubdiv-3.4.3/examples/common/d3d11Hud.h Examining data/opensubdiv-3.4.3/examples/common/d3d11PtexMipmapTexture.cpp Examining data/opensubdiv-3.4.3/examples/common/d3d11PtexMipmapTexture.h Examining data/opensubdiv-3.4.3/examples/common/d3d11ShaderCache.cpp Examining data/opensubdiv-3.4.3/examples/common/d3d11ShaderCache.h Examining data/opensubdiv-3.4.3/examples/common/d3d11Utils.cpp Examining data/opensubdiv-3.4.3/examples/common/d3d11Utils.h Examining data/opensubdiv-3.4.3/examples/common/font_image.cpp Examining data/opensubdiv-3.4.3/examples/common/font_image.h Examining data/opensubdiv-3.4.3/examples/common/glControlMeshDisplay.cpp Examining data/opensubdiv-3.4.3/examples/common/glControlMeshDisplay.h Examining data/opensubdiv-3.4.3/examples/common/glHud.cpp Examining data/opensubdiv-3.4.3/examples/common/glHud.h Examining data/opensubdiv-3.4.3/examples/common/glPtexMipmapTexture.cpp Examining data/opensubdiv-3.4.3/examples/common/glPtexMipmapTexture.h Examining data/opensubdiv-3.4.3/examples/common/glShaderCache.cpp Examining data/opensubdiv-3.4.3/examples/common/glShaderCache.h Examining data/opensubdiv-3.4.3/examples/common/glUtils.cpp Examining data/opensubdiv-3.4.3/examples/common/glUtils.h Examining data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp Examining data/opensubdiv-3.4.3/examples/common/hdr_reader.h Examining data/opensubdiv-3.4.3/examples/common/hud.cpp Examining data/opensubdiv-3.4.3/examples/common/hud.h Examining data/opensubdiv-3.4.3/examples/common/mtlControlMeshDisplay.h Examining data/opensubdiv-3.4.3/examples/common/mtlHud.h Examining data/opensubdiv-3.4.3/examples/common/mtlPtexMipmapTexture.h Examining data/opensubdiv-3.4.3/examples/common/mtlUtils.h Examining data/opensubdiv-3.4.3/examples/common/objAnim.cpp Examining data/opensubdiv-3.4.3/examples/common/objAnim.h Examining data/opensubdiv-3.4.3/examples/common/patchColors.cpp Examining data/opensubdiv-3.4.3/examples/common/patchColors.h Examining data/opensubdiv-3.4.3/examples/common/ptexMipmapTextureLoader.cpp Examining data/opensubdiv-3.4.3/examples/common/ptexMipmapTextureLoader.h Examining data/opensubdiv-3.4.3/examples/common/shaderCache.h Examining data/opensubdiv-3.4.3/examples/common/simple_math.h Examining data/opensubdiv-3.4.3/examples/common/stb_image_write.h Examining data/opensubdiv-3.4.3/examples/common/stopwatch.h Examining data/opensubdiv-3.4.3/examples/common/viewerArgsUtils.cpp Examining data/opensubdiv-3.4.3/examples/common/viewerArgsUtils.h Examining data/opensubdiv-3.4.3/examples/dxPtexViewer/dxPtexViewer.cpp Examining data/opensubdiv-3.4.3/examples/dxPtexViewer/sky.cpp Examining data/opensubdiv-3.4.3/examples/dxPtexViewer/sky.h Examining data/opensubdiv-3.4.3/examples/dxViewer/dxviewer.cpp Examining data/opensubdiv-3.4.3/examples/dxViewer/init_shapes.h Examining data/opensubdiv-3.4.3/examples/farViewer/face_texture.cpp Examining data/opensubdiv-3.4.3/examples/farViewer/face_texture.h Examining data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp Examining data/opensubdiv-3.4.3/examples/farViewer/gl_fontutils.cpp Examining data/opensubdiv-3.4.3/examples/farViewer/gl_fontutils.h Examining data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp Examining data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.h Examining data/opensubdiv-3.4.3/examples/farViewer/init_shapes.h Examining data/opensubdiv-3.4.3/examples/glEvalLimit/glEvalLimit.cpp Examining data/opensubdiv-3.4.3/examples/glEvalLimit/init_shapes.h Examining data/opensubdiv-3.4.3/examples/glEvalLimit/particles.cpp Examining data/opensubdiv-3.4.3/examples/glEvalLimit/particles.h Examining data/opensubdiv-3.4.3/examples/glFVarViewer/glFVarViewer.cpp Examining data/opensubdiv-3.4.3/examples/glFVarViewer/init_shapes.h Examining data/opensubdiv-3.4.3/examples/glImaging/glImaging.cpp Examining data/opensubdiv-3.4.3/examples/glImaging/init_shapes.h Examining data/opensubdiv-3.4.3/examples/glPaintTest/glPaintTest.cpp Examining data/opensubdiv-3.4.3/examples/glPaintTest/init_shapes.h Examining data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp Examining data/opensubdiv-3.4.3/examples/glShareTopology/glShareTopology.cpp Examining data/opensubdiv-3.4.3/examples/glShareTopology/init_shapes.h Examining data/opensubdiv-3.4.3/examples/glShareTopology/meshRefiner.h Examining data/opensubdiv-3.4.3/examples/glShareTopology/scene.h Examining data/opensubdiv-3.4.3/examples/glShareTopology/sceneBase.cpp Examining data/opensubdiv-3.4.3/examples/glShareTopology/sceneBase.h Examining data/opensubdiv-3.4.3/examples/glShareTopology/vbo.h Examining data/opensubdiv-3.4.3/examples/glStencilViewer/glStencilViewer.cpp Examining data/opensubdiv-3.4.3/examples/glStencilViewer/init_shapes.h Examining data/opensubdiv-3.4.3/examples/glViewer/glViewer.cpp Examining data/opensubdiv-3.4.3/examples/glViewer/init_shapes.h Examining data/opensubdiv-3.4.3/examples/mtlPtexViewer/OSX/AppDelegate.h Examining data/opensubdiv-3.4.3/examples/mtlPtexViewer/OSX/ViewController.h Examining data/opensubdiv-3.4.3/examples/mtlPtexViewer/iOS/AppDelegate.h Examining data/opensubdiv-3.4.3/examples/mtlPtexViewer/iOS/ViewController.h Examining data/opensubdiv-3.4.3/examples/mtlPtexViewer/mtlPtexViewer.h Examining data/opensubdiv-3.4.3/examples/mtlViewer/OSX/AppDelegate.h Examining data/opensubdiv-3.4.3/examples/mtlViewer/OSX/ViewController.h Examining data/opensubdiv-3.4.3/examples/mtlViewer/iOS/AppDelegate.h Examining data/opensubdiv-3.4.3/examples/mtlViewer/iOS/ViewController.h Examining data/opensubdiv-3.4.3/examples/mtlViewer/init_shapes.h Examining data/opensubdiv-3.4.3/examples/mtlViewer/mtlViewer.h Examining data/opensubdiv-3.4.3/glLoader/glApi.cpp Examining data/opensubdiv-3.4.3/glLoader/glApi.h Examining data/opensubdiv-3.4.3/glLoader/glLoader.cpp Examining data/opensubdiv-3.4.3/glLoader/glLoader.h Examining data/opensubdiv-3.4.3/glLoader/khrplatform.h Examining data/opensubdiv-3.4.3/opensubdiv/far/bilinearPatchBuilder.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/bilinearPatchBuilder.h Examining data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.h Examining data/opensubdiv-3.4.3/opensubdiv/far/error.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/error.h Examining data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.h Examining data/opensubdiv-3.4.3/opensubdiv/far/patchBasis.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/patchBasis.h Examining data/opensubdiv-3.4.3/opensubdiv/far/patchBuilder.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/patchBuilder.h Examining data/opensubdiv-3.4.3/opensubdiv/far/patchDescriptor.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/patchDescriptor.h Examining data/opensubdiv-3.4.3/opensubdiv/far/patchMap.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/patchMap.h Examining data/opensubdiv-3.4.3/opensubdiv/far/patchParam.h Examining data/opensubdiv-3.4.3/opensubdiv/far/patchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/patchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/far/patchTableFactory.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/patchTableFactory.h Examining data/opensubdiv-3.4.3/opensubdiv/far/primvarRefiner.h Examining data/opensubdiv-3.4.3/opensubdiv/far/ptexIndices.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/ptexIndices.h Examining data/opensubdiv-3.4.3/opensubdiv/far/sparseMatrix.h Examining data/opensubdiv-3.4.3/opensubdiv/far/stencilBuilder.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/stencilBuilder.h Examining data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.h Examining data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.h Examining data/opensubdiv-3.4.3/opensubdiv/far/topologyDescriptor.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/topologyDescriptor.h Examining data/opensubdiv-3.4.3/opensubdiv/far/topologyLevel.h Examining data/opensubdiv-3.4.3/opensubdiv/far/topologyRefiner.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/topologyRefiner.h Examining data/opensubdiv-3.4.3/opensubdiv/far/topologyRefinerFactory.cpp Examining data/opensubdiv-3.4.3/opensubdiv/far/topologyRefinerFactory.h Examining data/opensubdiv-3.4.3/opensubdiv/far/types.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/allocator.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/bilinear.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/catmark.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/cornerEdit.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/creaseEdit.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/face.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/faceEdit.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/fvarData.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/fvarEdit.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/halfedge.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/hierarchicalEdit.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/holeEdit.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/loop.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/mesh.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/subdivision.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/vertex.h Examining data/opensubdiv-3.4.3/opensubdiv/hbr/vertexEdit.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/bufferDescriptor.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/clD3D11VertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/clD3D11VertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/clEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/clEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/clGLVertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/clGLVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/clPatchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/clPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/clVertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/clVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuD3D11VertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuD3D11VertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuGLVertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuGLVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuKernel.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuKernel.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuPatchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuVertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cpuVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaD3D11VertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaD3D11VertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaGLVertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaGLVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaPatchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaVertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/cudaVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11ComputeEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11ComputeEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11LegacyGregoryPatchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11LegacyGregoryPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11Mesh.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11PatchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11PatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11VertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/d3d11VertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/glComputeEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/glComputeEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/glLegacyGregoryPatchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/glLegacyGregoryPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/glMesh.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/glPatchTable.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/glPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/glVertexBuffer.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/glVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/glXFBEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/glXFBEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/glslPatchShaderSource.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/glslPatchShaderSource.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/hlslPatchShaderSource.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/hlslPatchShaderSource.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mesh.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mtlCommon.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mtlComputeEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mtlLegacyGregoryPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mtlMesh.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mtlPatchShaderSource.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mtlPatchTable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/mtlVertexBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/nonCopyable.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/ompEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/ompEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/ompKernel.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/ompKernel.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/opencl.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/opengl.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/patchBasisCommon.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/patchBasisCommonEval.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/patchBasisCommonTypes.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/tbbEvaluator.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/tbbEvaluator.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/tbbKernel.cpp Examining data/opensubdiv-3.4.3/opensubdiv/osd/tbbKernel.h Examining data/opensubdiv-3.4.3/opensubdiv/osd/types.h Examining data/opensubdiv-3.4.3/opensubdiv/sdc/bilinearScheme.h Examining data/opensubdiv-3.4.3/opensubdiv/sdc/catmarkScheme.h Examining data/opensubdiv-3.4.3/opensubdiv/sdc/crease.cpp Examining data/opensubdiv-3.4.3/opensubdiv/sdc/crease.h Examining data/opensubdiv-3.4.3/opensubdiv/sdc/loopScheme.h Examining data/opensubdiv-3.4.3/opensubdiv/sdc/options.h Examining data/opensubdiv-3.4.3/opensubdiv/sdc/scheme.h Examining data/opensubdiv-3.4.3/opensubdiv/sdc/typeTraits.cpp Examining data/opensubdiv-3.4.3/opensubdiv/sdc/types.h Examining data/opensubdiv-3.4.3/opensubdiv/tools/stringify/main.cpp Examining data/opensubdiv-3.4.3/opensubdiv/version.cpp Examining data/opensubdiv-3.4.3/opensubdiv/version.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/array.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/componentInterfaces.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/fvarLevel.cpp Examining data/opensubdiv-3.4.3/opensubdiv/vtr/fvarLevel.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/fvarRefinement.cpp Examining data/opensubdiv-3.4.3/opensubdiv/vtr/fvarRefinement.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp Examining data/opensubdiv-3.4.3/opensubdiv/vtr/level.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/quadRefinement.cpp Examining data/opensubdiv-3.4.3/opensubdiv/vtr/quadRefinement.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/refinement.cpp Examining data/opensubdiv-3.4.3/opensubdiv/vtr/refinement.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/sparseSelector.cpp Examining data/opensubdiv-3.4.3/opensubdiv/vtr/sparseSelector.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/stackBuffer.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/triRefinement.cpp Examining data/opensubdiv-3.4.3/opensubdiv/vtr/triRefinement.h Examining data/opensubdiv-3.4.3/opensubdiv/vtr/types.h Examining data/opensubdiv-3.4.3/regression/common/arg_utils.cpp Examining data/opensubdiv-3.4.3/regression/common/arg_utils.h Examining data/opensubdiv-3.4.3/regression/common/cmp_utils.h Examining data/opensubdiv-3.4.3/regression/common/far_utils.cpp Examining data/opensubdiv-3.4.3/regression/common/far_utils.h Examining data/opensubdiv-3.4.3/regression/common/hbr_utils.h Examining data/opensubdiv-3.4.3/regression/common/shape_utils.cpp Examining data/opensubdiv-3.4.3/regression/common/shape_utils.h Examining data/opensubdiv-3.4.3/regression/far_perf/far_perf.cpp Examining data/opensubdiv-3.4.3/regression/far_perf/init_shapes.h Examining data/opensubdiv-3.4.3/regression/far_regression/far_regression.cpp Examining data/opensubdiv-3.4.3/regression/far_regression/init_shapes.h Examining data/opensubdiv-3.4.3/regression/hbr_regression/baseline.cpp Examining data/opensubdiv-3.4.3/regression/hbr_regression/init_shapes.h Examining data/opensubdiv-3.4.3/regression/hbr_regression/main.cpp Examining data/opensubdiv-3.4.3/regression/osd_regression/main.cpp Examining data/opensubdiv-3.4.3/regression/shapes/all.h Examining data/opensubdiv-3.4.3/regression/shapes/bilinear_cube.h Examining data/opensubdiv-3.4.3/regression/shapes/bilinear_nonplanar.h Examining data/opensubdiv-3.4.3/regression/shapes/bilinear_nonquads0.h Examining data/opensubdiv-3.4.3/regression/shapes/bilinear_nonquads1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_bishop.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_car.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_chaikin0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_chaikin1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_chaikin2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_corner0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_corner1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_corner2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_corner3.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_corner4.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_creases0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_creases1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cube_creases2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cubes_infsharp.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_cubes_semisharp.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_dart_edgecorner.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_dart_edgeonly.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_edgecorner.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_edgenone.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_edgeonly.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_fan.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_flap.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_flap2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_fvar_bound0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_fvar_bound1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_fvar_bound2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_fvar_bound3.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_fvar_bound4.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_fvar_project0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test3.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test4.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test5.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test6.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test7.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_gregory_test8.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_helmet.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_hole_test1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_hole_test2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_hole_test3.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_hole_test4.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_inf_crease0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_inf_crease1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_lefthanded.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonman_bareverts.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonman_edge100.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonman_edges.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonman_quadpole360.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonman_quadpole64.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonman_quadpole8.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonman_verts.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_nonquads.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pawn.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pole360.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pole64.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pole8.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pyramid.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pyramid_creases0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pyramid_creases1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_pyramid_creases2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_quadstrips.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_righthanded.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_rook.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_single_crease.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_smoothtris0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_smoothtris1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_square_hedit0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_square_hedit1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_square_hedit2.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_square_hedit3.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_square_hedit4.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_tent.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_tent_creases0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_tent_creases1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_toroidal_tet.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_torus.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_torus_creases0.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_torus_creases1.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_val2_interior.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_xord_boundary.h Examining data/opensubdiv-3.4.3/regression/shapes/catmark_xord_interior.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_chaikin0.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_chaikin1.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_cube.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_cube_asymmetric.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_cube_creases0.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_cube_creases1.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_cubes_infsharp.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_cubes_semisharp.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_fvar_bound0.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_fvar_bound1.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_fvar_bound2.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_fvar_bound3.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_icos_infsharp.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_icos_semisharp.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_icosahedron.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_nonman_edge100.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_nonman_edges.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_nonman_verts.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_pole360.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_pole64.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_pole8.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_saddle_edgecorner.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_saddle_edgeonly.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_tetrahedron.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_toroidal_tet.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_triangle_edgecorner.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_triangle_edgenone.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_triangle_edgeonly.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_xord_boundary.h Examining data/opensubdiv-3.4.3/regression/shapes/loop_xord_interior.h Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_1_1/far_tutorial_1_1.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_1_2/far_tutorial_1_2.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_2_1/far_tutorial_2_1.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_2_2/far_tutorial_2_2.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_2_3/far_tutorial_2_3.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_3_1/far_tutorial_3_1.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_3_1/hbr_to_vtr.h Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_4_1/far_tutorial_4_1.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_4_2/far_tutorial_4_2.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_4_3/far_tutorial_4_3.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_5_1/far_tutorial_5_1.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_5_2/far_tutorial_5_2.cpp Examining data/opensubdiv-3.4.3/tutorials/far/tutorial_5_3/far_tutorial_5_3.cpp Examining data/opensubdiv-3.4.3/tutorials/hbr/tutorial_0/hbr_tutorial_0.cpp Examining data/opensubdiv-3.4.3/tutorials/hbr/tutorial_1/hbr_tutorial_1.cpp Examining data/opensubdiv-3.4.3/tutorials/hbr/tutorial_2/hbr_tutorial_2.cpp Examining data/opensubdiv-3.4.3/tutorials/osd/tutorial_0/osd_tutorial_0.cpp FINAL RESULTS: data/opensubdiv-3.4.3/examples/common/clDeviceContext.cpp:56:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define error(...) fprintf(stderr, __VA_ARGS__) data/opensubdiv-3.4.3/examples/common/cudaDeviceContext.cpp:48:26: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define error(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__) data/opensubdiv-3.4.3/examples/common/glUtils.cpp:39: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/opensubdiv-3.4.3/examples/common/glUtils.cpp:39: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/opensubdiv-3.4.3/examples/common/hud.cpp:34: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/opensubdiv-3.4.3/examples/common/hud.cpp:34: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/opensubdiv-3.4.3/examples/common/hud.cpp:441:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), fmt, args); data/opensubdiv-3.4.3/examples/common/hud.cpp:456:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(buf, sizeof(buf), fmt, args); data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:59:13: [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/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:59:22: [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/opensubdiv-3.4.3/glLoader/glApi.cpp:608:127: [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. void (GLAPIENTRY *glBindImageTexture) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:609:131: [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. void (GLAPIENTRY *glBindImageTextureEXT) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1700:68: [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. void (GLAPIENTRY *glMakeBufferResidentNV) (GLenum target, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1703: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. void (GLAPIENTRY *glMakeImageHandleResidentARB) (GLuint64 handle, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1704:75: [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. void (GLAPIENTRY *glMakeImageHandleResidentNV) (GLuint64 handle, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1706: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. void (GLAPIENTRY *glMakeNamedBufferResidentNV) (GLuint buffer, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1715:58: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void *(GLAPIENTRY *glMapBuffer) (GLenum target, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1716:61: [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. void *(GLAPIENTRY *glMapBufferARB) (GLenum target, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1717: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. void *(GLAPIENTRY *glMapBufferRange) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1723:63: [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. void *(GLAPIENTRY *glMapNamedBuffer) (GLuint buffer, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1724:66: [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. void *(GLAPIENTRY *glMapNamedBufferEXT) (GLuint buffer, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1725:110: [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. void *(GLAPIENTRY *glMapNamedBufferRange) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1726:113: [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. void *(GLAPIENTRY *glMapNamedBufferRangeEXT) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:1729:85: [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. void *(GLAPIENTRY *glMapTexture2DINTEL) (GLuint texture, GLint level, GLbitfield access, GLint * stride, GLenum * layout) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.cpp:2747: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. void (GLAPIENTRY *glVDPAUSurfaceAccessNV) (GLvdpauSurfaceNV surface, GLenum access) = NULL; data/opensubdiv-3.4.3/glLoader/glApi.h:5070:142: [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/opensubdiv-3.4.3/glLoader/glApi.h:5071:146: [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/opensubdiv-3.4.3/glLoader/glApi.h:6162: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 void (GLAPIENTRY *PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6165:91: [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 *PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6166:90: [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 *PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6168: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. typedef void (GLAPIENTRY *PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6177: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. typedef void *(GLAPIENTRY *PFNGLMAPBUFFERPROC) (GLenum target, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6178: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 void *(GLAPIENTRY *PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6179: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 void *(GLAPIENTRY *PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); data/opensubdiv-3.4.3/glLoader/glApi.h:6185: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 void *(GLAPIENTRY *PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6186:81: [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 *PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:6187:125: [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 *PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); data/opensubdiv-3.4.3/glLoader/glApi.h:6188: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 void *(GLAPIENTRY *PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); data/opensubdiv-3.4.3/glLoader/glApi.h:6191:100: [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 *PFNGLMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level, GLbitfield access, GLint * stride, GLenum * layout); data/opensubdiv-3.4.3/glLoader/glApi.h:7209:94: [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/opensubdiv-3.4.3/glLoader/glApi.h:8143:134: [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. extern void (GLAPIENTRY *glBindImageTexture) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format); data/opensubdiv-3.4.3/glLoader/glApi.h:8144:138: [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. extern void (GLAPIENTRY *glBindImageTextureEXT) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format); data/opensubdiv-3.4.3/glLoader/glApi.h:9235:75: [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. extern void (GLAPIENTRY *glMakeBufferResidentNV) (GLenum target, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9238: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. extern void (GLAPIENTRY *glMakeImageHandleResidentARB) (GLuint64 handle, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9239: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. extern void (GLAPIENTRY *glMakeImageHandleResidentNV) (GLuint64 handle, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9241: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. extern void (GLAPIENTRY *glMakeNamedBufferResidentNV) (GLuint buffer, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9250: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. extern void *(GLAPIENTRY *glMapBuffer) (GLenum target, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9251:68: [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. extern void *(GLAPIENTRY *glMapBufferARB) (GLenum target, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9252:112: [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. extern void *(GLAPIENTRY *glMapBufferRange) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access); data/opensubdiv-3.4.3/glLoader/glApi.h:9258:70: [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. extern void *(GLAPIENTRY *glMapNamedBuffer) (GLuint buffer, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9259: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. extern void *(GLAPIENTRY *glMapNamedBufferEXT) (GLuint buffer, GLenum access); data/opensubdiv-3.4.3/glLoader/glApi.h:9260:117: [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. extern void *(GLAPIENTRY *glMapNamedBufferRange) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); data/opensubdiv-3.4.3/glLoader/glApi.h:9261: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. extern void *(GLAPIENTRY *glMapNamedBufferRangeEXT) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access); data/opensubdiv-3.4.3/glLoader/glApi.h:9264:92: [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. extern void *(GLAPIENTRY *glMapTexture2DINTEL) (GLuint texture, GLint level, GLbitfield access, GLint * stride, GLenum * layout); data/opensubdiv-3.4.3/glLoader/glApi.h:10282:86: [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. extern void (GLAPIENTRY *glVDPAUSurfaceAccessNV) (GLvdpauSurfaceNV surface, GLenum access); data/opensubdiv-3.4.3/opensubdiv/far/error.cpp:79:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(message, 10240, format, argptr); data/opensubdiv-3.4.3/opensubdiv/far/error.cpp:94:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(message, 10240, format, argptr); data/opensubdiv-3.4.3/opensubdiv/far/topologyDescriptor.cpp:33:13: [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/opensubdiv-3.4.3/opensubdiv/far/topologyDescriptor.cpp:33:22: [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/opensubdiv-3.4.3/opensubdiv/far/topologyRefinerFactory.cpp:31:13: [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/opensubdiv-3.4.3/opensubdiv/far/topologyRefinerFactory.cpp:31:22: [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/opensubdiv-3.4.3/opensubdiv/osd/glXFBEvaluator.cpp:39:13: [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/opensubdiv-3.4.3/opensubdiv/osd/glXFBEvaluator.cpp:39:22: [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/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp:40:13: [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/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp:40:22: [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/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp:155:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(msg, 1024, "%s - " format, errStr, ##__VA_ARGS__); \ data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:121:40: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. case 'u' : if (parsemtl && sscanf(line, "usemtl %s", buf)==1) { data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:124:40: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. case 'm' : if (parsemtl && sscanf(line, "mtllib %s", buf)==1) { data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:154:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf(cp, "%s", tname )!=1) return t; data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:184:13: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf(cp, "%s", val)!=1) return t; data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:223:27: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf(line, "newmtl %s", name) == 1) { data/opensubdiv-3.4.3/examples/glEvalLimit/glEvalLimit.cpp:222:5: [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( static_cast<int>(2147483647) ); data/opensubdiv-3.4.3/examples/glEvalLimit/particles.cpp:95:5: [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(static_cast<int>(2147483647)); data/opensubdiv-3.4.3/examples/glStencilViewer/glStencilViewer.cpp:355:5: [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( static_cast<int>(2147483647) ); // use a large Pell prime number data/opensubdiv-3.4.3/regression/osd_regression/main.cpp:629:41: [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. printf("DISPLAY set to '%s'\n", getenv("DISPLAY")); data/opensubdiv-3.4.3/tutorials/far/tutorial_5_1/far_tutorial_5_1.cpp:230:5: [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( static_cast<int>(2147483647) ); data/opensubdiv-3.4.3/examples/common/clDeviceContext.cpp:76: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 chBuffer[1024]; data/opensubdiv-3.4.3/examples/common/d3d11ControlMeshDisplay.cpp:164: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(pData->mViewProjection, modelViewProjectionMatrix, sizeof(float) * 16); data/opensubdiv-3.4.3/examples/common/d3d11PtexMipmapTexture.cpp:90: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(resource.pData, data, size); data/opensubdiv-3.4.3/examples/common/glShaderCache.cpp:52:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *sources[2]; data/opensubdiv-3.4.3/examples/common/glUtils.cpp:195: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 fname[64]; data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:68:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(filename, "rb"); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:78: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[MAXLINE]; data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:102:31: [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). info->width = atoi(&buffer[i+1]); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:106:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). info->height = atoi(&buffer[i+1]); data/opensubdiv-3.4.3/examples/common/hdr_reader.h:32: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 magic[64]; data/opensubdiv-3.4.3/examples/common/hdr_reader.h:33:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char format[64]; data/opensubdiv-3.4.3/examples/common/hud.cpp:188:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (! it->open) { data/opensubdiv-3.4.3/examples/common/hud.cpp:203:36: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). it->open=! it->open; data/opensubdiv-3.4.3/examples/common/hud.cpp:438:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/opensubdiv-3.4.3/examples/common/hud.cpp:453:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/opensubdiv-3.4.3/examples/common/hud.cpp:513:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[16]; data/opensubdiv-3.4.3/examples/common/hud.cpp:542:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (it->open) { data/opensubdiv-3.4.3/examples/common/hud.h:154:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool open; data/opensubdiv-3.4.3/examples/common/objAnim.cpp:63:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( positions, vert, sizeof(float)*3); data/opensubdiv-3.4.3/examples/common/ptexMipmapTextureLoader.cpp:516: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(dest, src, srcStride); data/opensubdiv-3.4.3/examples/common/ptexMipmapTextureLoader.cpp:1024:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("out.ppm", "w"); data/opensubdiv-3.4.3/examples/common/stb_image_write.h:108:54: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. case '2': { int x = va_arg(v,int); unsigned char b[2]; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:111:63: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. case '4': { stbiw_uint32 x = va_arg(v,int); unsigned char b[4]; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:124:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char arr[3]; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:131:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bg[3] = { 255, 0, 255}, px[3]; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:180:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "wb"); data/opensubdiv-3.4.3/examples/common/stb_image_write.h:250:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char scanlineheader[4] = { 2, 2, 0, 0 }; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:251:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char rgbe[4]; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:342:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "wb"); data/opensubdiv-3.4.3/examples/common/stb_image_write.h:448:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char **hash_table[stbiw__ZHASH]; // 64KB on the stack! data/opensubdiv-3.4.3/examples/common/stb_image_write.h:474:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(hash_table[h], hash_table[h]+quality, sizeof(hash_table[h][0])*quality); data/opensubdiv-3.4.3/examples/common/stb_image_write.h:577:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sig[8] = { 137,80,78,71,13,10,26,10 }; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:625: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(filt+j*(x*n+1)+1, line_buffer, x*n); data/opensubdiv-3.4.3/examples/common/stb_image_write.h:638:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(o,sig,8); o+= 8; data/opensubdiv-3.4.3/examples/common/stb_image_write.h:652:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(o, zlib, zlen); o += zlen; free(zlib); data/opensubdiv-3.4.3/examples/common/stb_image_write.h:670:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "wb"); data/opensubdiv-3.4.3/examples/dxPtexViewer/dxPtexViewer.cpp:731:38: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PtexTexture *ptex = PtexTexture::open(filename, ptexError, true); data/opensubdiv-3.4.3/examples/dxPtexViewer/dxPtexViewer.cpp:759:43: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PtexTexture *ptexColor = PtexTexture::open(g_ptexColorFilename, ptexError, true); data/opensubdiv-3.4.3/examples/dxPtexViewer/dxPtexViewer.cpp:1498:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/dxPtexViewer/dxPtexViewer.cpp:1499:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/dxPtexViewer/dxPtexViewer.cpp:1967:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_maxMipmapLevels = atoi(argvRem[++i]); data/opensubdiv-3.4.3/examples/dxPtexViewer/dxPtexViewer.cpp:1969:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). memLimit = atoi(argvRem[++i]); data/opensubdiv-3.4.3/examples/dxPtexViewer/sky.cpp:233: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(pData->ModelViewMatrix, mvp, 16*sizeof(float)); data/opensubdiv-3.4.3/examples/dxViewer/dxviewer.cpp:723: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(g_modelViewProjectionMatrix, pData->ModelViewProjectionMatrix, sizeof(float) * 16); data/opensubdiv-3.4.3/examples/dxViewer/dxviewer.cpp:785: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(pData->color, uniformColor, 4*sizeof(float)); data/opensubdiv-3.4.3/examples/dxViewer/dxviewer.cpp:1288:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/dxViewer/dxviewer.cpp:1289:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:205: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 buf[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:239:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:272: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 buf[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:360: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 buf[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:376: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 buf[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:498:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:534: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 buf[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:950:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const * patchTypes[13] = { "undefined", "points", "lines", data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:977:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char const * schemeNames[3] = { "BILINEAR", "CATMARK", "LOOP" }; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:1251:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:1252:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:1321:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_level = atoi(argv[++i]); data/opensubdiv-3.4.3/examples/farViewer/farViewer.cpp:1323:29: [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). g_repeatCount = atoi(argv[++i]); data/opensubdiv-3.4.3/examples/farViewer/gl_fontutils.cpp:148: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(&c.pos[0], pos, sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:120: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(_ambientColor, g_ambientColor, sizeof(float)*4); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:121: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(_diffuseColor, g_solidColor, sizeof(float)*4); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:152: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(&vbo[vert*6], &vertData[vert*3], 3*sizeof(float)); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:199:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v0, vertexData + verts[0]*3, sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:200:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v1, vertexData + verts[1]*3, sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:212: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(&vbo[0], vertexData, nverts*sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:312:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vbo[ofs], g_parentTypeColors[1], sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:315:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vbo[ofs], g_parentTypeColors[2], sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:318:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vbo[ofs], g_parentTypeColors[3], sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:322:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vbo[ofs], g_parentTypeColors[0], sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:353:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v0, vertData + verts[0]*3, sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:354:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v1, vertData + verts[1]*3, sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:380: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(&vbo[0], vertData, nverts*sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:408: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(dst0, vertData + (v0*3), sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:409: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(dst1, vertData + (v1*3), sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:411: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(dst0+3, color, sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:412: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(dst1+3, color, sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:674: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(&vbo[0], vertexData, nverts*sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:700:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&eao[face*4], cvs.begin(), 4*sizeof(OpenSubdiv::Far::Index)); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.cpp:705:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&_faceColors[face*4], color, 4*sizeof(float)); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.h:130:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vertdata, v->GetData().GetPos(), sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.h:131:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(facedata, v->GetData().GetPos(), sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.h:162:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v0data, v0->GetData().GetPos(), sizeof(float)*3); data/opensubdiv-3.4.3/examples/farViewer/gl_mesh.h:163:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v1data, v1->GetData().GetPos(), sizeof(float)*3); data/opensubdiv-3.4.3/examples/glEvalLimit/glEvalLimit.cpp:1431:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/glEvalLimit/glEvalLimit.cpp:1432:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/glFVarViewer/glFVarViewer.cpp:1204:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/glFVarViewer/glFVarViewer.cpp:1205:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/glImaging/glImaging.cpp:502:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tessLevel = atoi(argvRem[++i]); data/opensubdiv-3.4.3/examples/glImaging/glImaging.cpp:507: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). width = atoi(argvRem[++i]); data/opensubdiv-3.4.3/examples/glImaging/glImaging.cpp:508:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). height = atoi(argvRem[++i]); data/opensubdiv-3.4.3/examples/glImaging/glImaging.cpp:596: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(transformData.ModelViewMatrix, modelview, sizeof(modelview)); data/opensubdiv-3.4.3/examples/glImaging/glImaging.cpp:597: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(transformData.ProjectionMatrix, projection, sizeof(projection)); data/opensubdiv-3.4.3/examples/glPaintTest/glPaintTest.cpp:744:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(g_transformData.ProjectionWithoutPickMatrix, pers, sizeof(float)*16); data/opensubdiv-3.4.3/examples/glPaintTest/glPaintTest.cpp:995:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/glPaintTest/glPaintTest.cpp:996:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp:813:38: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PtexTexture *ptex = PtexTexture::open(filename, ptexError, true); data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp:856:43: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PtexTexture *ptexColor = PtexTexture::open(g_ptexColorFilename, ptexError, true); data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp:1105:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(g_modelViewProjection, constantData.ModelViewProjectionMatrix, data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp:1735:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_maxMipmapLevels = atoi(argvRem[++i]); data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp:1737:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). memLimit = atoi(argvRem[++i]); data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp:1876:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/glPtexViewer/glPtexViewer.cpp:1877:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/glShareTopology/glShareTopology.cpp:1122:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/glShareTopology/glShareTopology.cpp:1123:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/glStencilViewer/glStencilViewer.cpp:1030:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/glStencilViewer/glStencilViewer.cpp:1031:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/examples/glViewer/glViewer.cpp:1630:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char level[16]; data/opensubdiv-3.4.3/examples/glViewer/glViewer.cpp:1631:9: [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(level, "Lv. %d", i); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:341:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(_indices, other._indices, _size * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:342:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(_weights, other._weights, _size * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:405:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&dstRowColumns[0], &row0Columns[0], nColumns * sizeof(int)); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:556:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&dstIndices[0], &srcIndices[0], srcRowSize * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:557:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&dstWeights[0], &srcWeights[0], srcRowSize * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:1788:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(xIndices[i], ringPoints, ringSizePlusCorner * sizeof(int)); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:1913:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&rowIndices[0], indexBuffer, (1 + ringSize) * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/far/catmarkPatchBuilder.cpp:1914:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&rowWeights[0], weightBuffer, (1 + ringSize) * sizeof(Weight)); data/opensubdiv-3.4.3/opensubdiv/far/error.cpp:76: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 message[10240]; data/opensubdiv-3.4.3/opensubdiv/far/error.cpp:91: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 message[10240]; data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:189:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(epWeights + 1, t2Weights + 1 + n2, n1 * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:190:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(epWeights + 1 + n1, t2Weights + 1, n2 * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:196:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(emWeights + 1, t2Weights + 1 + n2, n1 * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:197:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(emWeights + 1 + n1, t2Weights + 1, n2 * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:325:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(_indices, other._indices, _size * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:326:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(_weights, other._weights, _size * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:367:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&dstRowColumns[0], &row0Columns[0], nColumns * sizeof(int)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:544:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&dstIndices[0], &srcIndices[0], srcRowSize * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:545:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&dstWeights[0], &srcWeights[0], srcRowSize * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:1715:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&rowIndices[0], indexBuffer, rowIndices.size() * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/far/loopPatchBuilder.cpp:1716:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&rowWeights[0], weightBuffer, rowWeights.size() * sizeof(Weight)); data/opensubdiv-3.4.3/opensubdiv/far/patchDescriptor.cpp:78: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 const * types[13] = { data/opensubdiv-3.4.3/opensubdiv/far/patchTableFactory.cpp:1620:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(newWeights, mtxWeights, numNewElements * sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp:95:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&(*_sources)[curOffset], data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp:97:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&(*_weights)[curOffset], data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp:101:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&(*_duWeights)[curOffset], data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp:105:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&(*_dvWeights)[curOffset], data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp:110:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&(*_duuWeights)[curOffset], data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp:114:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&(*_duvWeights)[curOffset], data/opensubdiv-3.4.3/opensubdiv/far/stencilTable.cpp:118:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&(*_dvvWeights)[curOffset], data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.cpp:205: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(sizes, &st->_sizes[0], st_nstencils*sizeof(int)); data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.cpp:206: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(indices, &st->_indices[0], st_nelems*sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.cpp:207: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(weights, &st->_weights[0], st_nelems*sizeof(REAL)); data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.cpp:383: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(sizes, &baseStencilTable->_sizes[0], data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.cpp:385: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(indices, &baseStencilTable->_indices[0], data/opensubdiv-3.4.3/opensubdiv/far/stencilTableFactory.cpp:387: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(weights, &baseStencilTable->_weights[0], data/opensubdiv-3.4.3/opensubdiv/far/topologyDescriptor.cpp:108:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/opensubdiv-3.4.3/opensubdiv/far/topologyDescriptor.cpp:125:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/opensubdiv-3.4.3/opensubdiv/far/topologyRefinerFactory.cpp:78:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/opensubdiv-3.4.3/opensubdiv/far/topologyRefinerFactory.cpp:143:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/opensubdiv-3.4.3/opensubdiv/far/topologyRefinerFactory.cpp:429:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; data/opensubdiv-3.4.3/opensubdiv/hbr/faceEdit.h:54: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(edit, _edit, width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/faceEdit.h:60: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(edit, _edit, width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/fvarData.h:141: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(data, values, width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/fvarEdit.h:55: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(edit, _edit, width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/fvarEdit.h:61: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(edit, _edit, width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/halfedge.h:194:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fvarinfsharp, edge->getFVarInfSharp(), fvarbitsSizePerEdge * sizeof(unsigned int)); data/opensubdiv-3.4.3/opensubdiv/hbr/halfedge.h:523:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fvarbits, opposite->getFVarInfSharp(), fvarbitsSizePerEdge * sizeof(unsigned int)); data/opensubdiv-3.4.3/opensubdiv/hbr/vertexEdit.h:55: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(edit, _edit, width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/vertexEdit.h:61: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(edit, _edit, width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/vertexEdit.h:146: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(edit, _edit, 2 * width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/hbr/vertexEdit.h:152: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(edit, _edit, 2 * width * sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/osd/clEvaluator.cpp:200:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cBuildLog[10240]; data/opensubdiv-3.4.3/opensubdiv/osd/cpuD3D11VertexBuffer.cpp:67: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(_cpuBuffer + startVertex * _numElements, src, data/opensubdiv-3.4.3/opensubdiv/osd/cpuD3D11VertexBuffer.cpp:105: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(resource.pData, _cpuBuffer, size); data/opensubdiv-3.4.3/opensubdiv/osd/cpuGLVertexBuffer.cpp:68:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_cpuBuffer + startVertex * GetNumElements(), src, data/opensubdiv-3.4.3/opensubdiv/osd/cpuKernel.cpp:68:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, desc.length*sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/osd/cpuKernel.h:139: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(dst, result1, numElems*sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/osd/cpuVertexBuffer.cpp:58: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(_cpuBuffer + startVertex * _numElements, data/opensubdiv-3.4.3/opensubdiv/osd/d3d11ComputeEvaluator.cpp:353: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(mappedResource.pData, &args, sizeof(KernelUniformArgs)); data/opensubdiv-3.4.3/opensubdiv/osd/d3d11PatchTable.cpp:94: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(indexBuffer, data/opensubdiv-3.4.3/opensubdiv/osd/d3d11PatchTable.cpp:130: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(dst, data/opensubdiv-3.4.3/opensubdiv/osd/d3d11VertexBuffer.cpp:80: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((float*)resource.pData + startVertex * _numElements, src, size); data/opensubdiv-3.4.3/opensubdiv/osd/glComputeEvaluator.cpp:181:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *shaderSources[4] = {"#version 430\n", 0, 0, 0}; data/opensubdiv-3.4.3/opensubdiv/osd/glComputeEvaluator.cpp:195:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/opensubdiv-3.4.3/opensubdiv/osd/glXFBEvaluator.cpp:219:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *shaderSources[4] = {"#version 410\n", NULL, NULL, NULL}; data/opensubdiv-3.4.3/opensubdiv/osd/glXFBEvaluator.cpp:229: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 attrName[32]; data/opensubdiv-3.4.3/opensubdiv/osd/glXFBEvaluator.cpp:412:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/opensubdiv-3.4.3/opensubdiv/osd/mesh.h:308:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char yes[1]; data/opensubdiv-3.4.3/opensubdiv/osd/mesh.h:309:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef char no[2]; data/opensubdiv-3.4.3/opensubdiv/osd/ompKernel.cpp:69: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(dst, src, desc.length*sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/osd/tbbKernel.cpp:75: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(dst, src, desc.length*sizeof(float)); data/opensubdiv-3.4.3/opensubdiv/tools/stringify/main.cpp:69:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). input.open(argv[1]); data/opensubdiv-3.4.3/opensubdiv/tools/stringify/main.cpp:76:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). output.open(argv[2]); data/opensubdiv-3.4.3/opensubdiv/vtr/fvarLevel.cpp:789:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(dstFaceValues, &srcFaceVerts[0], srcFaceVerts.size() * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/vtr/fvarLevel.h:141:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(this, &bits, sizeof(bits)); data/opensubdiv-3.4.3/opensubdiv/vtr/fvarRefinement.cpp:444: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(cValueTags.begin(), pValueTags.begin(), data/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp:154:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[1024]; \ data/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp:1530:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&irregMembers[0], &_regIndices[offset], sizeof(Index) * _memberCountPerComp); data/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp:2025:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&vFaces[0], vFacesOrdered, vFaces.size() * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/vtr/level.cpp:2026:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&vEdges[0], vEdgesOrdered, vEdges.size() * sizeof(Index)); data/opensubdiv-3.4.3/opensubdiv/vtr/level.h:130:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(this, &bits, sizeof(bits)); data/opensubdiv-3.4.3/opensubdiv/vtr/level.h:155:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(this, &bits, sizeof(bits)); data/opensubdiv-3.4.3/opensubdiv/vtr/stackBuffer.h:92: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 _staticData[SIZE * sizeof(TYPE)]; data/opensubdiv-3.4.3/regression/common/far_utils.cpp:66: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(src, &shape.uvs[0], shape.uvs.size()*sizeof(float)); data/opensubdiv-3.4.3/regression/common/far_utils.cpp:86: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(src, &shape.uvs[0], shape.uvs.size()*sizeof(float)); data/opensubdiv-3.4.3/regression/common/hbr_utils.h:458: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(&verts[splits[i].first*3], &sh->verts[splits[i].second*3], 3*sizeof(float)); data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:40:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s, *stream, i); data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:152: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 tname[50]; data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:182:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[512]; data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:222: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. case 'n': char name[256]; data/opensubdiv-3.4.3/regression/far_perf/far_perf.cpp:198: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 const * g_schemeNames[3] = { "bilinear", "catmark", "loop" }; data/opensubdiv-3.4.3/regression/hbr_regression/baseline.cpp:123:25: [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 * handle = fopen( fname.str().c_str(), "w" ); data/opensubdiv-3.4.3/regression/hbr_regression/baseline.cpp:199:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). g_shapeindex = atoi( argv[++i] ); data/opensubdiv-3.4.3/regression/hbr_regression/baseline.cpp:241:25: [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 * handle = fopen( g_objfile.c_str(), "rt" ); data/opensubdiv-3.4.3/regression/hbr_regression/main.cpp:111:21: [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 * handle = fopen( fname, "rt" ); data/opensubdiv-3.4.3/regression/hbr_regression/main.cpp:147:21: [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 * handle = fopen( fname, "w" ); data/opensubdiv-3.4.3/tutorials/far/tutorial_5_1/far_tutorial_5_1.cpp:196:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&verts[0], g_verts, g_nverts*3*sizeof(Real)); data/opensubdiv-3.4.3/tutorials/far/tutorial_5_2/far_tutorial_5_2.cpp:287:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&posVector[0], &shape->verts[0], numVertices * sizeof(Pos)); data/opensubdiv-3.4.3/tutorials/far/tutorial_5_2/far_tutorial_5_2.cpp:531:58: [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). if (++i < rargs.size()) numPatchGroups = atoi(rargs[i]); data/opensubdiv-3.4.3/tutorials/far/tutorial_5_2/far_tutorial_5_2.cpp:533:57: [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). if (++i < rargs.size()) geoMultiplier = atoi(rargs[i]); data/opensubdiv-3.4.3/tutorials/far/tutorial_5_3/far_tutorial_5_3.cpp:231:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&posVector[0], &shape->verts[0], numVertices * sizeof(Pos)); data/opensubdiv-3.4.3/tutorials/far/tutorial_5_3/far_tutorial_5_3.cpp:321:52: [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). if (++i < rargs.size()) numPoses = atoi(rargs[i]); data/opensubdiv-3.4.3/examples/common/d3d11Utils.cpp:39:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HRESULT hr = D3DCompile(src, strlen(src), data/opensubdiv-3.4.3/examples/common/glUtils.cpp:103:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(versionStr); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:36:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(fp) != 2) return false; data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:37:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (getc(fp) != 2) return false; data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:38:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int w0 = getc(fp); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:39:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int w1 = getc(fp); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:44:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc(fp); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:48:54: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned char value = (unsigned char)getc(fp); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:56:58: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). unsigned char value = (unsigned char)getc(fp); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:86:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->magic, buffer+2, 64); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:88:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(info->format, buffer+7, 64); data/opensubdiv-3.4.3/examples/common/hdr_reader.cpp:97:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int n = (int)strlen(buffer); data/opensubdiv-3.4.3/examples/common/hud.cpp:259: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). cb.w = (int)(strlen(label)+1) * FONT_CHAR_WIDTH; data/opensubdiv-3.4.3/examples/common/hud.cpp:279: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). rb.w = (int)(strlen(label)+1) * FONT_CHAR_WIDTH; data/opensubdiv-3.4.3/examples/farViewer/gl_fontutils.cpp:143:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = (int)strlen(str); data/opensubdiv-3.4.3/opensubdiv/osd/d3d11ComputeEvaluator.cpp:248: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). HRESULT hr = D3DCompile(shaderSource, strlen(shaderSource), data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:77:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* end = &line[strlen(line)-1]; data/opensubdiv-3.4.3/regression/common/shape_utils.cpp:219:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* end = &line[strlen(line)-1]; ANALYSIS SUMMARY: Hits = 307 Lines analyzed = 172112 in approximately 5.14 seconds (33491 lines/second) Physical Source Lines of Code (SLOC) = 125769 Hits@level = [0] 590 [1] 18 [2] 213 [3] 5 [4] 71 [5] 0 Hits@level+ = [0+] 897 [1+] 307 [2+] 289 [3+] 76 [4+] 71 [5+] 0 Hits/KSLOC@level+ = [0+] 7.13212 [1+] 2.44098 [2+] 2.29786 [3+] 0.604282 [4+] 0.564527 [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.