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/mesa-demos-8.4.0/src/egl/opengles2/es2gears.c
Examining data/mesa-demos-8.4.0/src/egl/opengles2/es2_info.c
Examining data/mesa-demos-8.4.0/src/egl/opengles2/es2tri.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/es1_info.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/pbuffer.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/msaa.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/gears.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/bindtex.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/clear.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/tri.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/render_tex.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/drawtex.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/torus.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/two_win.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/eglfbdev.c
Examining data/mesa-demos-8.4.0/src/egl/opengles1/texture_from_pixmap.c
Examining data/mesa-demos-8.4.0/src/egl/eglut/eglut_wayland.c
Examining data/mesa-demos-8.4.0/src/egl/eglut/eglut.c
Examining data/mesa-demos-8.4.0/src/egl/eglut/eglut_x11.c
Examining data/mesa-demos-8.4.0/src/egl/eglut/eglutint.h
Examining data/mesa-demos-8.4.0/src/egl/eglut/eglut.h
Examining data/mesa-demos-8.4.0/src/egl/openvg/text.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/lion-render.h
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/lingrad.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/eglcommon.h
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/stroke2.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/mask4.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/layer.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/roundedrect.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/paint.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/lookup.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/mask_render.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/dash.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/image.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/ellipse.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/star-oddeven.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/star-nonzero.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/lineto.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/clear.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/filter.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/gradorigin.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/path3.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/coord.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/cap.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/stroke.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/color_transform.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/radialgrad.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/readpixels.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/eglcommon.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/arc.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/mask.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/blend.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/trivial/vguarc.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/lion.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/lion-render.c
Examining data/mesa-demos-8.4.0/src/egl/openvg/sp.c
Examining data/mesa-demos-8.4.0/src/egl/opengl/eglkms.c
Examining data/mesa-demos-8.4.0/src/egl/opengl/peglgears.c
Examining data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c
Examining data/mesa-demos-8.4.0/src/egl/opengl/eglgears.c
Examining data/mesa-demos-8.4.0/src/egl/opengl/xeglgears.c
Examining data/mesa-demos-8.4.0/src/egl/opengl/egltri.c
Examining data/mesa-demos-8.4.0/src/egl/opengl/xeglthreads.c
Examining data/mesa-demos-8.4.0/src/egl/oes_vg/vgimage2tex.c
Examining data/mesa-demos-8.4.0/src/egl/oes_vg/tex2vgimage.c
Examining data/mesa-demos-8.4.0/src/demos/ray.c
Examining data/mesa-demos-8.4.0/src/demos/arbocclude.c
Examining data/mesa-demos-8.4.0/src/demos/tunneldat.h
Examining data/mesa-demos-8.4.0/src/demos/renormal.c
Examining data/mesa-demos-8.4.0/src/demos/glinfo.c
Examining data/mesa-demos-8.4.0/src/demos/paltex.c
Examining data/mesa-demos-8.4.0/src/demos/vao_demo.c
Examining data/mesa-demos-8.4.0/src/demos/tunnel2.c
Examining data/mesa-demos-8.4.0/src/demos/texcyl.c
Examining data/mesa-demos-8.4.0/src/demos/drawpix.c
Examining data/mesa-demos-8.4.0/src/demos/dissolve.c
Examining data/mesa-demos-8.4.0/src/demos/gltestperf.c
Examining data/mesa-demos-8.4.0/src/demos/gloss.c
Examining data/mesa-demos-8.4.0/src/demos/fire.c
Examining data/mesa-demos-8.4.0/src/demos/fbotexture.c
Examining data/mesa-demos-8.4.0/src/demos/fslight.c
Examining data/mesa-demos-8.4.0/src/demos/pixeltest.c
Examining data/mesa-demos-8.4.0/src/demos/shadowtex.c
Examining data/mesa-demos-8.4.0/src/demos/morph3d.c
Examining data/mesa-demos-8.4.0/src/demos/cuberender.c
Examining data/mesa-demos-8.4.0/src/demos/texenv.c
Examining data/mesa-demos-8.4.0/src/demos/dinoshade.c
Examining data/mesa-demos-8.4.0/src/demos/projtex.c
Examining data/mesa-demos-8.4.0/src/demos/gamma.c
Examining data/mesa-demos-8.4.0/src/demos/gears.c
Examining data/mesa-demos-8.4.0/src/demos/trispd.c
Examining data/mesa-demos-8.4.0/src/demos/readpix.c
Examining data/mesa-demos-8.4.0/src/demos/geartrain.c
Examining data/mesa-demos-8.4.0/src/demos/textures.c
Examining data/mesa-demos-8.4.0/src/demos/teapot.c
Examining data/mesa-demos-8.4.0/src/demos/gearbox.c
Examining data/mesa-demos-8.4.0/src/demos/fbo_firecube.c
Examining data/mesa-demos-8.4.0/src/demos/winpos.c
Examining data/mesa-demos-8.4.0/src/demos/terrain.c
Examining data/mesa-demos-8.4.0/src/demos/fogcoord.c
Examining data/mesa-demos-8.4.0/src/demos/spriteblast.c
Examining data/mesa-demos-8.4.0/src/demos/arbfslight.c
Examining data/mesa-demos-8.4.0/src/demos/ipers.c
Examining data/mesa-demos-8.4.0/src/demos/cubemap.c
Examining data/mesa-demos-8.4.0/src/demos/stex3d.c
Examining data/mesa-demos-8.4.0/src/demos/tessdemo.c
Examining data/mesa-demos-8.4.0/src/demos/tunnel.c
Examining data/mesa-demos-8.4.0/src/demos/fplight.c
Examining data/mesa-demos-8.4.0/src/demos/copypix.c
Examining data/mesa-demos-8.4.0/src/demos/pointblast.c
Examining data/mesa-demos-8.4.0/src/demos/multiarb.c
Examining data/mesa-demos-8.4.0/src/demos/arbfplight.c
Examining data/mesa-demos-8.4.0/src/demos/clearspd.c
Examining data/mesa-demos-8.4.0/src/demos/bounce.c
Examining data/mesa-demos-8.4.0/src/demos/reflect.c
Examining data/mesa-demos-8.4.0/src/demos/engine.c
Examining data/mesa-demos-8.4.0/src/demos/spectex.c
Examining data/mesa-demos-8.4.0/src/demos/singlebuffer.c
Examining data/mesa-demos-8.4.0/src/demos/arbocclude2.c
Examining data/mesa-demos-8.4.0/src/demos/lodbias.c
Examining data/mesa-demos-8.4.0/src/demos/isosurf.c
Examining data/mesa-demos-8.4.0/src/demos/normal.c
Examining data/mesa-demos-8.4.0/src/demos/particles.cxx
Examining data/mesa-demos-8.4.0/src/demos/particles.h
Examining data/mesa-demos-8.4.0/src/demos/rain.cxx
Examining data/mesa-demos-8.4.0/src/xdemos/glxpixmap.c
Examining data/mesa-demos-8.4.0/src/xdemos/overlay.c
Examining data/mesa-demos-8.4.0/src/xdemos/sharedtex_mt.c
Examining data/mesa-demos-8.4.0/src/xdemos/sharedtex.c
Examining data/mesa-demos-8.4.0/src/xdemos/glthreads.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxcontexts.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxpbdemo.c
Examining data/mesa-demos-8.4.0/src/xdemos/pbutil.c
Examining data/mesa-demos-8.4.0/src/xdemos/wincopy.c
Examining data/mesa-demos-8.4.0/src/xdemos/xdemo.c
Examining data/mesa-demos-8.4.0/src/xdemos/shape.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxdemo.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxheads.c
Examining data/mesa-demos-8.4.0/src/xdemos/glinfo_common.h
Examining data/mesa-demos-8.4.0/src/xdemos/pbutil.h
Examining data/mesa-demos-8.4.0/src/xdemos/pbdemo.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxsnoop.c
Examining data/mesa-demos-8.4.0/src/xdemos/xfont.c
Examining data/mesa-demos-8.4.0/src/xdemos/pbinfo.c
Examining data/mesa-demos-8.4.0/src/xdemos/xuserotfont.h
Examining data/mesa-demos-8.4.0/src/xdemos/xrotfontdemo.c
Examining data/mesa-demos-8.4.0/src/xdemos/xuserotfont.c
Examining data/mesa-demos-8.4.0/src/xdemos/glsync.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxgears.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxinfo.c
Examining data/mesa-demos-8.4.0/src/xdemos/multictx.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxgears_fbconfig.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxswapcontrol.c
Examining data/mesa-demos-8.4.0/src/xdemos/yuvrect_client.c
Examining data/mesa-demos-8.4.0/src/xdemos/glxgears_pixmap.c
Examining data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c
Examining data/mesa-demos-8.4.0/src/xdemos/texture_from_pixmap.c
Examining data/mesa-demos-8.4.0/src/xdemos/offset.c
Examining data/mesa-demos-8.4.0/src/xdemos/manywin.c
Examining data/mesa-demos-8.4.0/src/xdemos/msctest.c
Examining data/mesa-demos-8.4.0/src/xdemos/omlsync.c
Examining data/mesa-demos-8.4.0/src/xdemos/opencloseopen.c
Examining data/mesa-demos-8.4.0/src/fp/tri-depth.c
Examining data/mesa-demos-8.4.0/src/fp/point-position.c
Examining data/mesa-demos-8.4.0/src/fp/tri-tex.c
Examining data/mesa-demos-8.4.0/src/fp/tri-depthwrite2.c
Examining data/mesa-demos-8.4.0/src/fp/fp-tri.c
Examining data/mesa-demos-8.4.0/src/fp/tri-param.c
Examining data/mesa-demos-8.4.0/src/fp/tri-depthwrite.c
Examining data/mesa-demos-8.4.0/src/fp/tri-depth2.c
Examining data/mesa-demos-8.4.0/src/perf/drawoverhead.c
Examining data/mesa-demos-8.4.0/src/perf/swapbuffers.c
Examining data/mesa-demos-8.4.0/src/perf/fill.c
Examining data/mesa-demos-8.4.0/src/perf/genmipmap.c
Examining data/mesa-demos-8.4.0/src/perf/common.c
Examining data/mesa-demos-8.4.0/src/perf/glmain.c
Examining data/mesa-demos-8.4.0/src/perf/vertexrate.c
Examining data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c
Examining data/mesa-demos-8.4.0/src/perf/common.h
Examining data/mesa-demos-8.4.0/src/perf/teximage.c
Examining data/mesa-demos-8.4.0/src/perf/glmain.h
Examining data/mesa-demos-8.4.0/src/perf/vbo.c
Examining data/mesa-demos-8.4.0/src/perf/fbobind.c
Examining data/mesa-demos-8.4.0/src/perf/copytex.c
Examining data/mesa-demos-8.4.0/src/perf/readpixels.c
Examining data/mesa-demos-8.4.0/src/perf/glslstateschange.c
Examining data/mesa-demos-8.4.0/src/vpglsl/vp-tris.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-edgeflag.c
Examining data/mesa-demos-8.4.0/src/trivial/quads.c
Examining data/mesa-demos-8.4.0/src/trivial/lineloop.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-recursive-call.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-logicop-none.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-fbo-scissor.c
Examining data/mesa-demos-8.4.0/src/trivial/trifan-flat-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-square.c
Examining data/mesa-demos-8.4.0/src/trivial/tristrip.c
Examining data/mesa-demos-8.4.0/src/trivial/long-fixed-func.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri-cb-tex.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-fbo-tex.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-degenerate.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-flat-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-2101010-dlist.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-array-hf.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-blend-max.c
Examining data/mesa-demos-8.4.0/src/trivial/tristrip-flat.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-random.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-cull.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-fbo.c
Examining data/mesa-demos-8.4.0/src/trivial/vbo-noninterleaved.c
Examining data/mesa-demos-8.4.0/src/trivial/lineloop-elts.c
Examining data/mesa-demos-8.4.0/src/trivial/line-xor.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-alpha-tex.c
Examining data/mesa-demos-8.4.0/src/trivial/line-wide.c
Examining data/mesa-demos-8.4.0/src/trivial/draw2arrays.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/line-userclip-nop-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-cull-both.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri-swap.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-undefined.c
Examining data/mesa-demos-8.4.0/src/trivial/quadstrip-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-tri-lit.c
Examining data/mesa-demos-8.4.0/src/trivial/line-cull.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-fog.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-mask-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-fp.c
Examining data/mesa-demos-8.4.0/src/trivial/point-param.c
Examining data/mesa-demos-8.4.0/src/trivial/linestrip-flat-stipple.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-tex-3d.c
Examining data/mesa-demos-8.4.0/src/trivial/vbo-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/point.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-fbo-tex-mip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-lit.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-logicop-xor.c
Examining data/mesa-demos-8.4.0/src/trivial/poly-unfilled.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-point.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-smooth.c
Examining data/mesa-demos-8.4.0/src/trivial/line-userclip-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-edgeflag.c
Examining data/mesa-demos-8.4.0/src/trivial/point-wide-smooth.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-flat-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/drawelements-large.c
Examining data/mesa-demos-8.4.0/src/trivial/linestrip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-z-9.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-offset-unfilled.c
Examining data/mesa-demos-8.4.0/src/trivial/drawrange.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-blend-min.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-stencil.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-clip-nearplane.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-tex.c
Examining data/mesa-demos-8.4.0/src/trivial/quad.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-blend-color.c
Examining data/mesa-demos-8.4.0/src/trivial/poly-flat-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/trifan-flat-unfilled-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-tex-2d.c
Examining data/mesa-demos-8.4.0/src/trivial/createwin.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-clip-all-vertices.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-tex-pbo.c
Examining data/mesa-demos-8.4.0/src/trivial/vbo-drawrange.c
Examining data/mesa-demos-8.4.0/src/trivial/sub-tex.c
Examining data/mesa-demos-8.4.0/src/trivial/fs-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-fp-const-imm.c
Examining data/mesa-demos-8.4.0/src/trivial/pgon-mode.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-array.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-edgeflag-array.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-offset-units.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-tex-1d.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled.c
Examining data/mesa-demos-8.4.0/src/trivial/line-userclip-nop.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-clear.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-point-line-clipped.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-multitex-vbo.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-stipple.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-tri-mat-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-tex-stipple.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-flat.c
Examining data/mesa-demos-8.4.0/src/trivial/flat-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri-invariant.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri-cb.c
Examining data/mesa-demos-8.4.0/src/trivial/line-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-fbo-tex.c
Examining data/mesa-demos-8.4.0/src/trivial/quadstrip.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-unfilled.c
Examining data/mesa-demos-8.4.0/src/trivial/trifan-unfilled.c
Examining data/mesa-demos-8.4.0/src/trivial/point-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-scissor-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-array-int.c
Examining data/mesa-demos-8.4.0/src/trivial/line-smooth.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-rotate.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-repeat.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-2101010.c
Examining data/mesa-demos-8.4.0/src/trivial/tristrip-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/linestrip-stipple-wide.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-unfilled-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/quadstrip-cont.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-mat-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/line-stipple-wide.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-dangling.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-tex-alpha.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-scissor.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-z-eq.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-tex-sub.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-query.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-z.c
Examining data/mesa-demos-8.4.0/src/trivial/poly-flat.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-blend.c
Examining data/mesa-demos-8.4.0/src/trivial/line-userclip.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-degenerate.c
Examining data/mesa-demos-8.4.0/src/trivial/vbo-drawarrays.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-userclip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-edgeflag.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-fbo.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-line-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-edgeflag-dangling.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-begin-call-end.c
Examining data/mesa-demos-8.4.0/src/trivial/tri.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-userclip.c
Examining data/mesa-demos-8.4.0/src/trivial/clear-color.c
Examining data/mesa-demos-8.4.0/src/trivial/point-wide.c
Examining data/mesa-demos-8.4.0/src/trivial/line-flat.c
Examining data/mesa-demos-8.4.0/src/trivial/poly-flat-unfilled-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri-imm.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/readpixels.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-tex-3d.c
Examining data/mesa-demos-8.4.0/src/trivial/line.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-blend-revsub.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-fog.c
Examining data/mesa-demos-8.4.0/src/trivial/lineloop-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-array-interleaved.c
Examining data/mesa-demos-8.4.0/src/trivial/trifan.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-flat.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-z-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-orig.c
Examining data/mesa-demos-8.4.0/src/trivial/tex-quads.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-dlist.c
Examining data/mesa-demos-8.4.0/src/trivial/poly.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-blend-sub.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri-tex.c
Examining data/mesa-demos-8.4.0/src/trivial/vbo-drawarrays-2101010.c
Examining data/mesa-demos-8.4.0/src/trivial/drawelements.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-alpha.c
Examining data/mesa-demos-8.4.0/src/trivial/vp-tri-cb-pos.c
Examining data/mesa-demos-8.4.0/src/trivial/dlist-tri-flat-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/quadstrip-flat.c
Examining data/mesa-demos-8.4.0/src/trivial/vbo-drawelements.c
Examining data/mesa-demos-8.4.0/src/trivial/linestrip-clip.c
Examining data/mesa-demos-8.4.0/src/trivial/trifan-flat.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-unfilled.c
Examining data/mesa-demos-8.4.0/src/trivial/point-sprite.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-unfilled-userclip-stip.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-edgeflag-pv.c
Examining data/mesa-demos-8.4.0/src/trivial/linestrip-stipple.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-tri.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-viewport.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-offset-factor.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-lit-material.c
Examining data/mesa-demos-8.4.0/src/trivial/tri-repeat.c
Examining data/mesa-demos-8.4.0/src/trivial/quad-unfilled-stipple.c
Examining data/mesa-demos-8.4.0/src/trivial/drawarrays.c
Examining data/mesa-demos-8.4.0/src/vp/vp-tris.c
Examining data/mesa-demos-8.4.0/src/wgl/wglthreads.c
Examining data/mesa-demos-8.4.0/src/wgl/sharedtex_mt.c
Examining data/mesa-demos-8.4.0/src/wgl/wglinfo.c
Examining data/mesa-demos-8.4.0/src/wgl/wglcontext.c
Examining data/mesa-demos-8.4.0/src/wgl/wglfontbitmaps.c
Examining data/mesa-demos-8.4.0/src/wgl/wglfontoutlines.c
Examining data/mesa-demos-8.4.0/src/wgl/wglgears.c
Examining data/mesa-demos-8.4.0/src/wgl/wglutil.c
Examining data/mesa-demos-8.4.0/src/wgl/wglutil.h
Examining data/mesa-demos-8.4.0/src/wgl/wincopy.c
Examining data/mesa-demos-8.4.0/src/redbook/dof.c
Examining data/mesa-demos-8.4.0/src/redbook/surfpoints.c
Examining data/mesa-demos-8.4.0/src/redbook/stencil.c
Examining data/mesa-demos-8.4.0/src/redbook/unproject.c
Examining data/mesa-demos-8.4.0/src/redbook/planet.c
Examining data/mesa-demos-8.4.0/src/redbook/picksquare.c
Examining data/mesa-demos-8.4.0/src/redbook/aapoly.c
Examining data/mesa-demos-8.4.0/src/redbook/robot.c
Examining data/mesa-demos-8.4.0/src/redbook/font.c
Examining data/mesa-demos-8.4.0/src/redbook/sccolorlight.c
Examining data/mesa-demos-8.4.0/src/redbook/texbind.c
Examining data/mesa-demos-8.4.0/src/redbook/cube.c
Examining data/mesa-demos-8.4.0/src/redbook/texturesurf.c
Examining data/mesa-demos-8.4.0/src/redbook/tess.c
Examining data/mesa-demos-8.4.0/src/redbook/texgen.c
Examining data/mesa-demos-8.4.0/src/redbook/tesswind.c
Examining data/mesa-demos-8.4.0/src/redbook/teaambient.c
Examining data/mesa-demos-8.4.0/src/redbook/polys.c
Examining data/mesa-demos-8.4.0/src/redbook/anti.c
Examining data/mesa-demos-8.4.0/src/redbook/nurbs.c
Examining data/mesa-demos-8.4.0/src/redbook/mvarray.c
Examining data/mesa-demos-8.4.0/src/redbook/multisamp.c
Examining data/mesa-demos-8.4.0/src/redbook/fog.c
Examining data/mesa-demos-8.4.0/src/redbook/image.c
Examining data/mesa-demos-8.4.0/src/redbook/smooth.c
Examining data/mesa-demos-8.4.0/src/redbook/colormat.c
Examining data/mesa-demos-8.4.0/src/redbook/teapots.c
Examining data/mesa-demos-8.4.0/src/redbook/aargb.c
Examining data/mesa-demos-8.4.0/src/redbook/texsub.c
Examining data/mesa-demos-8.4.0/src/redbook/depthcue.c
Examining data/mesa-demos-8.4.0/src/redbook/bezcurve.c
Examining data/mesa-demos-8.4.0/src/redbook/scenebamb.c
Examining data/mesa-demos-8.4.0/src/redbook/movelight.c
Examining data/mesa-demos-8.4.0/src/redbook/fogindex.c
Examining data/mesa-demos-8.4.0/src/redbook/shadowmap.c
Examining data/mesa-demos-8.4.0/src/redbook/quadric.c
Examining data/mesa-demos-8.4.0/src/redbook/list.c
Examining data/mesa-demos-8.4.0/src/redbook/combiner.c
Examining data/mesa-demos-8.4.0/src/redbook/fogcoord.c
Examining data/mesa-demos-8.4.0/src/redbook/accanti.c
Examining data/mesa-demos-8.4.0/src/redbook/texprox.c
Examining data/mesa-demos-8.4.0/src/redbook/alpha3D.c
Examining data/mesa-demos-8.4.0/src/redbook/mipmap.c
Examining data/mesa-demos-8.4.0/src/redbook/minmax.c
Examining data/mesa-demos-8.4.0/src/redbook/hello.c
Examining data/mesa-demos-8.4.0/src/redbook/aaindex.c
Examining data/mesa-demos-8.4.0/src/redbook/trim.c
Examining data/mesa-demos-8.4.0/src/redbook/pointp.c
Examining data/mesa-demos-8.4.0/src/redbook/alpha.c
Examining data/mesa-demos-8.4.0/src/redbook/cubemap.c
Examining data/mesa-demos-8.4.0/src/redbook/wrap.c
Examining data/mesa-demos-8.4.0/src/redbook/plane.c
Examining data/mesa-demos-8.4.0/src/redbook/stroke.c
Examining data/mesa-demos-8.4.0/src/redbook/select.c
Examining data/mesa-demos-8.4.0/src/redbook/texture3d.c
Examining data/mesa-demos-8.4.0/src/redbook/polyoff.c
Examining data/mesa-demos-8.4.0/src/redbook/histogram.c
Examining data/mesa-demos-8.4.0/src/redbook/surface.c
Examining data/mesa-demos-8.4.0/src/redbook/bezmesh.c
Examining data/mesa-demos-8.4.0/src/redbook/pickdepth.c
Examining data/mesa-demos-8.4.0/src/redbook/scene.c
Examining data/mesa-demos-8.4.0/src/redbook/double.c
Examining data/mesa-demos-8.4.0/src/redbook/feedback.c
Examining data/mesa-demos-8.4.0/src/redbook/drawf.c
Examining data/mesa-demos-8.4.0/src/redbook/accpersp.c
Examining data/mesa-demos-8.4.0/src/redbook/checker.c
Examining data/mesa-demos-8.4.0/src/redbook/model.c
Examining data/mesa-demos-8.4.0/src/redbook/multitex.c
Examining data/mesa-demos-8.4.0/src/redbook/light.c
Examining data/mesa-demos-8.4.0/src/redbook/torus.c
Examining data/mesa-demos-8.4.0/src/redbook/convolution.c
Examining data/mesa-demos-8.4.0/src/redbook/clip.c
Examining data/mesa-demos-8.4.0/src/redbook/varray.c
Examining data/mesa-demos-8.4.0/src/redbook/lines.c
Examining data/mesa-demos-8.4.0/src/redbook/sceneflat.c
Examining data/mesa-demos-8.4.0/src/redbook/jitter.h
Examining data/mesa-demos-8.4.0/src/redbook/material.c
Examining data/mesa-demos-8.4.0/src/gs/gs-tri.c
Examining data/mesa-demos-8.4.0/src/fpglsl/fp-tri.c
Examining data/mesa-demos-8.4.0/src/objviewer/skybox.c
Examining data/mesa-demos-8.4.0/src/objviewer/glm.h
Examining data/mesa-demos-8.4.0/src/objviewer/skybox.h
Examining data/mesa-demos-8.4.0/src/objviewer/objview.c
Examining data/mesa-demos-8.4.0/src/objviewer/glmdraw.c
Examining data/mesa-demos-8.4.0/src/objviewer/glm.c
Examining data/mesa-demos-8.4.0/src/tests/quads.c
Examining data/mesa-demos-8.4.0/src/tests/multiwindow.c
Examining data/mesa-demos-8.4.0/src/tests/arbfptest1.c
Examining data/mesa-demos-8.4.0/src/tests/texobj.c
Examining data/mesa-demos-8.4.0/src/tests/texobjshare.c
Examining data/mesa-demos-8.4.0/src/tests/afsmultiarb.c
Examining data/mesa-demos-8.4.0/src/tests/cva.c
Examining data/mesa-demos-8.4.0/src/tests/getteximage.c
Examining data/mesa-demos-8.4.0/src/tests/mipmap_view.c
Examining data/mesa-demos-8.4.0/src/tests/front-back-modes.c
Examining data/mesa-demos-8.4.0/src/tests/scissor.c
Examining data/mesa-demos-8.4.0/src/tests/yuvrect.c
Examining data/mesa-demos-8.4.0/src/tests/fillrate.c
Examining data/mesa-demos-8.4.0/src/tests/arbgpuprog.c
Examining data/mesa-demos-8.4.0/src/tests/prim.c
Examining data/mesa-demos-8.4.0/src/tests/mipgen.c
Examining data/mesa-demos-8.4.0/src/tests/sharedtex.c
Examining data/mesa-demos-8.4.0/src/tests/stencilreaddraw.c
Examining data/mesa-demos-8.4.0/src/tests/texcompress2.c
Examining data/mesa-demos-8.4.0/src/tests/condrender.c
Examining data/mesa-demos-8.4.0/src/tests/texrect.c
Examining data/mesa-demos-8.4.0/src/tests/cylwrap.c
Examining data/mesa-demos-8.4.0/src/tests/subtex.c
Examining data/mesa-demos-8.4.0/src/tests/tex1d.c
Examining data/mesa-demos-8.4.0/src/tests/mipmap_comp.c
Examining data/mesa-demos-8.4.0/src/tests/bug_3195.c
Examining data/mesa-demos-8.4.0/src/tests/floattex.c
Examining data/mesa-demos-8.4.0/src/tests/mapbufrange.c
Examining data/mesa-demos-8.4.0/src/tests/arbvpwarpmesh.c
Examining data/mesa-demos-8.4.0/src/tests/scissor-viewport.c
Examining data/mesa-demos-8.4.0/src/tests/interleave.c
Examining data/mesa-demos-8.4.0/src/tests/vptest1.c
Examining data/mesa-demos-8.4.0/src/tests/linehacks.c
Examining data/mesa-demos-8.4.0/src/tests/unfilledclip.c
Examining data/mesa-demos-8.4.0/src/tests/vpeval.c
Examining data/mesa-demos-8.4.0/src/tests/bug_texstore_i8.c
Examining data/mesa-demos-8.4.0/src/tests/mipmap_tunnel.c
Examining data/mesa-demos-8.4.0/src/tests/antialias.c
Examining data/mesa-demos-8.4.0/src/tests/arbfptrig.c
Examining data/mesa-demos-8.4.0/src/tests/arbfptexture.c
Examining data/mesa-demos-8.4.0/src/tests/step.c
Examining data/mesa-demos-8.4.0/src/tests/texcmp.c
Examining data/mesa-demos-8.4.0/src/tests/lineclip.c
Examining data/mesa-demos-8.4.0/src/tests/glutfx.c
Examining data/mesa-demos-8.4.0/src/tests/persp_hint.c
Examining data/mesa-demos-8.4.0/src/tests/subtexrate.c
Examining data/mesa-demos-8.4.0/src/tests/cva_huge.c
Examining data/mesa-demos-8.4.0/src/tests/line-sample.c
Examining data/mesa-demos-8.4.0/src/tests/exactrast.c
Examining data/mesa-demos-8.4.0/src/tests/vpwarpmesh.c
Examining data/mesa-demos-8.4.0/src/tests/arbvptest1.c
Examining data/mesa-demos-8.4.0/src/tests/texgenmix.c
Examining data/mesa-demos-8.4.0/src/tests/texleak.c
Examining data/mesa-demos-8.4.0/src/tests/bufferobj.c
Examining data/mesa-demos-8.4.0/src/tests/tkmap.c
Examining data/mesa-demos-8.4.0/src/tests/blendxor.c
Examining data/mesa-demos-8.4.0/src/tests/zdrawpix.c
Examining data/mesa-demos-8.4.0/src/tests/fptexture.c
Examining data/mesa-demos-8.4.0/src/tests/multipal.c
Examining data/mesa-demos-8.4.0/src/tests/texdown.c
Examining data/mesa-demos-8.4.0/src/tests/vparray.c
Examining data/mesa-demos-8.4.0/src/tests/bug_3101.c
Examining data/mesa-demos-8.4.0/src/tests/mipmap_comp_tests.c
Examining data/mesa-demos-8.4.0/src/tests/copypixrate.c
Examining data/mesa-demos-8.4.0/src/tests/backspecular.c
Examining data/mesa-demos-8.4.0/src/tests/texcompsub.c
Examining data/mesa-demos-8.4.0/src/tests/packedpixels.c
Examining data/mesa-demos-8.4.0/src/tests/bumpmap.c
Examining data/mesa-demos-8.4.0/src/tests/drawbuffers.c
Examining data/mesa-demos-8.4.0/src/tests/fbotest3.c
Examining data/mesa-demos-8.4.0/src/tests/pbo.c
Examining data/mesa-demos-8.4.0/src/tests/mipmap_limits.c
Examining data/mesa-demos-8.4.0/src/tests/minmag.c
Examining data/mesa-demos-8.4.0/src/tests/fbotest2.c
Examining data/mesa-demos-8.4.0/src/tests/fogcoord.c
Examining data/mesa-demos-8.4.0/src/tests/rubberband.c
Examining data/mesa-demos-8.4.0/src/tests/multitexarray.c
Examining data/mesa-demos-8.4.0/src/tests/arbnpot-mipmap.c
Examining data/mesa-demos-8.4.0/src/tests/arbnpot.c
Examining data/mesa-demos-8.4.0/src/tests/drawbuffers2.c
Examining data/mesa-demos-8.4.0/src/tests/stencilwrap.c
Examining data/mesa-demos-8.4.0/src/tests/arbvptorus.c
Examining data/mesa-demos-8.4.0/src/tests/no_s3tc.c
Examining data/mesa-demos-8.4.0/src/tests/drawstencil.c
Examining data/mesa-demos-8.4.0/src/tests/arbfpspec.c
Examining data/mesa-demos-8.4.0/src/tests/readrate.c
Examining data/mesa-demos-8.4.0/src/tests/shader-interp.c
Examining data/mesa-demos-8.4.0/src/tests/auxbuffer.c
Examining data/mesa-demos-8.4.0/src/tests/jkrahntest.c
Examining data/mesa-demos-8.4.0/src/tests/yuvsquare.c
Examining data/mesa-demos-8.4.0/src/tests/streaming_rect.c
Examining data/mesa-demos-8.4.0/src/tests/texline.c
Examining data/mesa-demos-8.4.0/src/tests/arbvptest3.c
Examining data/mesa-demos-8.4.0/src/tests/arraytexture.c
Examining data/mesa-demos-8.4.0/src/tests/ext422square.c
Examining data/mesa-demos-8.4.0/src/tests/viewmemory.c
Examining data/mesa-demos-8.4.0/src/tests/getprocaddress.c
Examining data/mesa-demos-8.4.0/src/tests/invert.c
Examining data/mesa-demos-8.4.0/src/tests/texcomp_image.h
Examining data/mesa-demos-8.4.0/src/tests/vptest2.c
Examining data/mesa-demos-8.4.0/src/tests/seccolor.c
Examining data/mesa-demos-8.4.0/src/tests/zcomp.c
Examining data/mesa-demos-8.4.0/src/tests/random.c
Examining data/mesa-demos-8.4.0/src/tests/fbotest1.c
Examining data/mesa-demos-8.4.0/src/tests/prog_parameter.c
Examining data/mesa-demos-8.4.0/src/tests/zreaddraw.c
Examining data/mesa-demos-8.4.0/src/tests/clip.c
Examining data/mesa-demos-8.4.0/src/tests/manytex.c
Examining data/mesa-demos-8.4.0/src/tests/zbitmap.c
Examining data/mesa-demos-8.4.0/src/tests/blitfb.c
Examining data/mesa-demos-8.4.0/src/tests/shadow-sample.c
Examining data/mesa-demos-8.4.0/src/tests/arbvparray.c
Examining data/mesa-demos-8.4.0/src/tests/texfilt.c
Examining data/mesa-demos-8.4.0/src/tests/fptest1.c
Examining data/mesa-demos-8.4.0/src/tests/vptorus.c
Examining data/mesa-demos-8.4.0/src/tests/shader_api.c
Examining data/mesa-demos-8.4.0/src/tests/calibrate_rast.c
Examining data/mesa-demos-8.4.0/src/tests/bug_3050.c
Examining data/mesa-demos-8.4.0/src/tests/vptest3.c
Examining data/mesa-demos-8.4.0/src/tests/api_speed.c
Examining data/mesa-demos-8.4.0/src/tests/debugger.c
Examining data/mesa-demos-8.4.0/src/tests/gremedy.c
Examining data/mesa-demos-8.4.0/src/slang/sotest.c
Examining data/mesa-demos-8.4.0/src/slang/framework.c
Examining data/mesa-demos-8.4.0/src/slang/framework.h
Examining data/mesa-demos-8.4.0/src/slang/vstest.c
Examining data/mesa-demos-8.4.0/src/slang/cltest.c
Examining data/mesa-demos-8.4.0/src/osdemos/osdemo16.c
Examining data/mesa-demos-8.4.0/src/osdemos/osdemo.c
Examining data/mesa-demos-8.4.0/src/osdemos/osdemo32.c
Examining data/mesa-demos-8.4.0/src/osdemos/ostest1.c
Examining data/mesa-demos-8.4.0/src/rbug/shdr_dump.c
Examining data/mesa-demos-8.4.0/src/rbug/ctx_rule.c
Examining data/mesa-demos-8.4.0/src/rbug/shdr_disable.c
Examining data/mesa-demos-8.4.0/src/rbug/shdr_info.c
Examining data/mesa-demos-8.4.0/src/rbug/simple_server.c
Examining data/mesa-demos-8.4.0/src/rbug/simple_client.c
Examining data/mesa-demos-8.4.0/src/rbug/ctx_info.c
Examining data/mesa-demos-8.4.0/src/rbug/tex_dump.c
Examining data/mesa-demos-8.4.0/src/rbug/tex_info.c
Examining data/mesa-demos-8.4.0/src/rbug/bin_to_bmp.c
Examining data/mesa-demos-8.4.0/src/samples/stencil.c
Examining data/mesa-demos-8.4.0/src/samples/overlay.c
Examining data/mesa-demos-8.4.0/src/samples/prim.c
Examining data/mesa-demos-8.4.0/src/samples/wave.c
Examining data/mesa-demos-8.4.0/src/samples/loadppm.c
Examining data/mesa-demos-8.4.0/src/samples/font.c
Examining data/mesa-demos-8.4.0/src/samples/blendeq.c
Examining data/mesa-demos-8.4.0/src/samples/bitmap1.c
Examining data/mesa-demos-8.4.0/src/samples/point.c
Examining data/mesa-demos-8.4.0/src/samples/olympic.c
Examining data/mesa-demos-8.4.0/src/samples/shape.c
Examining data/mesa-demos-8.4.0/src/samples/sphere.c
Examining data/mesa-demos-8.4.0/src/samples/stretch.c
Examining data/mesa-demos-8.4.0/src/samples/quad.c
Examining data/mesa-demos-8.4.0/src/samples/depth.c
Examining data/mesa-demos-8.4.0/src/samples/fog.c
Examining data/mesa-demos-8.4.0/src/samples/tkmap.c
Examining data/mesa-demos-8.4.0/src/samples/blendxor.c
Examining data/mesa-demos-8.4.0/src/samples/eval.c
Examining data/mesa-demos-8.4.0/src/samples/logo.c
Examining data/mesa-demos-8.4.0/src/samples/copy.c
Examining data/mesa-demos-8.4.0/src/samples/cursor.c
Examining data/mesa-demos-8.4.0/src/samples/texture.c
Examining data/mesa-demos-8.4.0/src/samples/select.c
Examining data/mesa-demos-8.4.0/src/samples/tri.c
Examining data/mesa-demos-8.4.0/src/samples/line.c
Examining data/mesa-demos-8.4.0/src/samples/star.c
Examining data/mesa-demos-8.4.0/src/samples/bitmap2.c
Examining data/mesa-demos-8.4.0/src/samples/nurb.c
Examining data/mesa-demos-8.4.0/src/samples/accum.c
Examining data/mesa-demos-8.4.0/src/samples/oglinfo.c
Examining data/mesa-demos-8.4.0/src/samples/rgbtoppm.c
Examining data/mesa-demos-8.4.0/src/tools/dds.c
Examining data/mesa-demos-8.4.0/src/util/shaderutil.h
Examining data/mesa-demos-8.4.0/src/util/trackball.c
Examining data/mesa-demos-8.4.0/src/util/trackball.h
Examining data/mesa-demos-8.4.0/src/util/showbuffer.h
Examining data/mesa-demos-8.4.0/src/util/gl_wrap.h
Examining data/mesa-demos-8.4.0/src/util/showbuffer.c
Examining data/mesa-demos-8.4.0/src/util/glut_wrap.h
Examining data/mesa-demos-8.4.0/src/util/readtex.c
Examining data/mesa-demos-8.4.0/src/util/readtex.h
Examining data/mesa-demos-8.4.0/src/util/shaderutil.c
Examining data/mesa-demos-8.4.0/src/util/dumpstate.c
Examining data/mesa-demos-8.4.0/src/util/errcheck.c
Examining data/mesa-demos-8.4.0/src/util/glutskel.c
Examining data/mesa-demos-8.4.0/src/util/idproj.c
Examining data/mesa-demos-8.4.0/src/util/imagesgi.cpp
Examining data/mesa-demos-8.4.0/src/util/imagesgi.h
Examining data/mesa-demos-8.4.0/src/util/matrix.c
Examining data/mesa-demos-8.4.0/src/util/mwmborder.c
Examining data/mesa-demos-8.4.0/src/util/winpos.c
Examining data/mesa-demos-8.4.0/src/glsl/twoside.c
Examining data/mesa-demos-8.4.0/src/glsl/mandelbrot.c
Examining data/mesa-demos-8.4.0/src/glsl/noise2.c
Examining data/mesa-demos-8.4.0/src/glsl/shadow_sampler.c
Examining data/mesa-demos-8.4.0/src/glsl/fsraytrace.c
Examining data/mesa-demos-8.4.0/src/glsl/geom-outlining-150.c
Examining data/mesa-demos-8.4.0/src/glsl/brick.c
Examining data/mesa-demos-8.4.0/src/glsl/bump.c
Examining data/mesa-demos-8.4.0/src/glsl/convolutions.c
Examining data/mesa-demos-8.4.0/src/glsl/geom-sprites.c
Examining data/mesa-demos-8.4.0/src/glsl/geom-wide-lines.c
Examining data/mesa-demos-8.4.0/src/glsl/bitmap.c
Examining data/mesa-demos-8.4.0/src/glsl/simplex-noise.c
Examining data/mesa-demos-8.4.0/src/glsl/points.c
Examining data/mesa-demos-8.4.0/src/glsl/array.c
Examining data/mesa-demos-8.4.0/src/glsl/texdemo1.c
Examining data/mesa-demos-8.4.0/src/glsl/geom-outlining-130.c
Examining data/mesa-demos-8.4.0/src/glsl/pointcoord.c
Examining data/mesa-demos-8.4.0/src/glsl/noise.c
Examining data/mesa-demos-8.4.0/src/glsl/multinoise.c
Examining data/mesa-demos-8.4.0/src/glsl/vert-or-frag-only.c
Examining data/mesa-demos-8.4.0/src/glsl/texaaline.c
Examining data/mesa-demos-8.4.0/src/glsl/deriv.c
Examining data/mesa-demos-8.4.0/src/glsl/linktest.c
Examining data/mesa-demos-8.4.0/src/glsl/geom-stipple-lines.c
Examining data/mesa-demos-8.4.0/src/glsl/vert-tex.c
Examining data/mesa-demos-8.4.0/src/glsl/skinning.c
Examining data/mesa-demos-8.4.0/src/glsl/bezier.c
Examining data/mesa-demos-8.4.0/src/glsl/gsraytrace.cpp
Examining data/mesa-demos-8.4.0/src/glsl/trirast.c
Examining data/mesa-demos-8.4.0/src/glsl/multitex.c
Examining data/mesa-demos-8.4.0/src/glsl/vsraytrace.c
Examining data/mesa-demos-8.4.0/src/glsl/identity.c
Examining data/mesa-demos-8.4.0/src/glsl/shtest.c
Examining data/mesa-demos-8.4.0/src/glsl/toyball.c
Examining data/mesa-demos-8.4.0/src/glsl/fragcoord.c
Examining data/mesa-demos-8.4.0/src/glsl/blinking-teapot.c
Examining data/mesa-demos-8.4.0/src/glsl/samplers.c

FINAL RESULTS:

data/mesa-demos-8.4.0/src/demos/engine.c:969:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(s, "%s  %d FPS  %s", Engines[CurEngine].Name, fps,
data/mesa-demos-8.4.0/src/demos/fogcoord.c:69:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "Mode(m): %s  Start(s/S): %g  End(e/E): %g  Density(d/D): %g",
data/mesa-demos-8.4.0/src/demos/fogcoord.c:74:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "Arrays(a): %s  glFogCoord(c): %s  EyeZ(z/z): %g",
data/mesa-demos-8.4.0/src/demos/geartrain.c:124:14:  [4] (buffer) fscanf:
  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.
    result = fscanf (mainfile, "%s %s %s %s", Buf1, Buf2, Buf3, Buf4);
data/mesa-demos-8.4.0/src/demos/geartrain.c:137:14:  [4] (buffer) fscanf:
  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.
    result = fscanf (mainfile, "%s %s", Buf1, Buf2);
data/mesa-demos-8.4.0/src/demos/geartrain.c:148:14:  [4] (buffer) fscanf:
  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.
    result = fscanf (mainfile, "%s %s", Buf1, Buf2);
data/mesa-demos-8.4.0/src/demos/geartrain.c:159:14:  [4] (buffer) fscanf:
  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.
    result = fscanf (mainfile, "%s %s", Buf1, Buf2);
data/mesa-demos-8.4.0/src/demos/geartrain.c:161:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (a, Buf2);
data/mesa-demos-8.4.0/src/demos/geartrain.c:180:11:  [4] (buffer) fscanf:
  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.
	result = fscanf (mainfile, "%s", Buf1);
data/mesa-demos-8.4.0/src/demos/texenv.c:671:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( buf, "  %s",  lookupFormat( format ) );
data/mesa-demos-8.4.0/src/egl/eglut/eglut.c:55:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, args);
data/mesa-demos-8.4.0/src/egl/opengles1/eglfbdev.c:69:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   size = snprintf(name, sizeof(name), tty, vtno);
data/mesa-demos-8.4.0/src/egl/opengles1/eglfbdev.c:182:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   vfprintf(stderr, format, args);
data/mesa-demos-8.4.0/src/glsl/shtest.c:511:17:  [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.
            k = sscanf(line + 8, "%d %s %s", &unit, target, texFileName);
data/mesa-demos-8.4.0/src/glsl/shtest.c:515:20:  [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.
               k = sscanf(line + 8, "%d %s  %s %s %s %s %s %s",
data/mesa-demos-8.4.0/src/glsl/shtest.c:550:17:  [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.
            k = sscanf(line + 8, "%s %s %f %f %f %f", typeName, name,
data/mesa-demos-8.4.0/src/glsl/shtest.c:559:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(conf->uniforms[conf->num_uniforms].name, name);
data/mesa-demos-8.4.0/src/glsl/simplex-noise.c:187:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(noiseText + len, FragShaderMainText);
data/mesa-demos-8.4.0/src/objviewer/glm.c:59:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(copy, string);
data/mesa-demos-8.4.0/src/objviewer/glm.c:300:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(filename, dir);
data/mesa-demos-8.4.0/src/objviewer/glm.c:301:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(filename, name);
data/mesa-demos-8.4.0/src/objviewer/glm.c:315:9:  [4] (buffer) fscanf:
  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.
  while(fscanf(file, "%s", buf) != EOF) {
data/mesa-demos-8.4.0/src/objviewer/glm.c:324:7:  [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.
      sscanf(buf, "%s %s", buf, buf);
data/mesa-demos-8.4.0/src/objviewer/glm.c:363:9:  [4] (buffer) fscanf:
  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.
  while(fscanf(file, "%s", buf) != EOF) {
data/mesa-demos-8.4.0/src/objviewer/glm.c:371:7:  [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.
      sscanf(buf, "%s %s", buf, buf);
data/mesa-demos-8.4.0/src/objviewer/glm.c:413:8:  [4] (buffer) fscanf:
  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.
       fscanf(file, "%s", buf2);
data/mesa-demos-8.4.0/src/objviewer/glm.c:445:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(filename, dir);
data/mesa-demos-8.4.0/src/objviewer/glm.c:446:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(filename, mtllibname);
data/mesa-demos-8.4.0/src/objviewer/glm.c:504:9:  [4] (buffer) fscanf:
  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.
  while(fscanf(file, "%s", buf) != EOF) {
data/mesa-demos-8.4.0/src/objviewer/glm.c:535:7:  [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.
      sscanf(buf, "%s %s", buf, buf);
data/mesa-demos-8.4.0/src/objviewer/glm.c:546:7:  [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.
      sscanf(buf, "%s", buf);
data/mesa-demos-8.4.0/src/objviewer/glm.c:551:7:  [4] (buffer) fscanf:
  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.
      fscanf(file, "%s", buf);
data/mesa-demos-8.4.0/src/objviewer/glm.c:660:9:  [4] (buffer) fscanf:
  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.
  while(fscanf(file, "%s", buf) != EOF) {
data/mesa-demos-8.4.0/src/objviewer/glm.c:692:7:  [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.
      sscanf(buf, "%s %s", buf, buf);
data/mesa-demos-8.4.0/src/objviewer/glm.c:701:7:  [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.
      sscanf(buf, "%s", buf);
data/mesa-demos-8.4.0/src/objviewer/glm.c:708:7:  [4] (buffer) fscanf:
  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.
      fscanf(file, "%s", buf);
data/mesa-demos-8.4.0/src/objviewer/glmdraw.c:435:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(newShader, TexFragmentShader, diffuseTex, specularTex);
data/mesa-demos-8.4.0/src/objviewer/objview.c:83:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(buffer, format, args);
data/mesa-demos-8.4.0/src/perf/common.c: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/mesa-demos-8.4.0/src/perf/common.c: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/mesa-demos-8.4.0/src/perf/common.c:48:4:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
   vfprintf(stdout, format, ap);
data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:24: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/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:24: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/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:73:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(newbuf, ds->buffer);
data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:78:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
   strcpy(ds->buffer + ds->len, s);
data/mesa-demos-8.4.0/src/slang/cltest.c:95:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy ((**currprog).name, line + 9);
data/mesa-demos-8.4.0/src/slang/cltest.c:104:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy ((**currprog).attribs.attrib[(**currprog).attribs.count].name, line + 8);
data/mesa-demos-8.4.0/src/slang/cltest.c:131:16:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
               strcat ((**currprog).vertex.code, line);
data/mesa-demos-8.4.0/src/tests/line-sample.c:114:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(title, "Line Sampler (%s)", (const char *) glGetString(GL_RENDERER));
data/mesa-demos-8.4.0/src/tests/mapbufrange.c:57: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.
                                              offset, length, access);
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:237:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "MIN_FILTER (f/F): %s", min_filters[MinFilterIndex].name);
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:242:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "  MAG_FILTER (g): %s", MagNearestFilter ? "NEAREST" : "LINEAR");
data/mesa-demos-8.4.0/src/tests/packedpixels.c:275:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "Internal Texture Format [f/F]: %s (%d of %lu)",
data/mesa-demos-8.4.0/src/tests/rubberband.c:96:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "[L/B] %s mode.   Use mouse to make selection box.",
data/mesa-demos-8.4.0/src/tests/shader_api.c:118:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(buffer, "#version 120\nuniform %s m[60];\nvoid main() { gl_Position[0] = m[59]%s; }\n",
data/mesa-demos-8.4.0/src/tests/shader_api.c:175:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(buffer, "#version 120\nattribute %s m;\nvoid main() { gl_Position[0] = m%s; }\n",
data/mesa-demos-8.4.0/src/tests/sharedtex.c:152:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->DisplayName, displayName);
data/mesa-demos-8.4.0/src/tests/texdown.c:325:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "Format[f]: %s  Type: %s  IntFormat: %s",
data/mesa-demos-8.4.0/src/tests/texdown.c:332:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(s, "Pixel Scale&Bias[p]: %s   TexSubImage[s]: %s",
data/mesa-demos-8.4.0/src/tests/texgenmix.c:259:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( buf, "texgen enabled for %s coordinate(s)", coordnr == 2 ? "S" : "S/T");
data/mesa-demos-8.4.0/src/tests/texgenmix.c:269:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf( buf, "texgen enabled for %s coordinate(s)",
data/mesa-demos-8.4.0/src/tests/texobjshare.c:137:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->DisplayName, name);
data/mesa-demos-8.4.0/src/util/dumpstate.c:1612:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf( OUT,                                      \
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:30: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/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:30: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/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:316:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(buffer + pos, ext);
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:850:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(p, bits[i].name);
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:154:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->DisplayName, displayName);
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:166:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->Version, tmp);
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:173:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->Vendor, tmp);
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:180:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->Renderer, tmp);
data/mesa-demos-8.4.0/src/xdemos/glxinfo.c:509:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
         strcpy(displayName, DisplayString(dpy));
data/mesa-demos-8.4.0/src/xdemos/glxsnoop.c:177:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(title, "glxsnoop window 0x%x (%s buffer)", (int) WindowID, buf);
data/mesa-demos-8.4.0/src/xdemos/manywin.c:186:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->DisplayName, name);
data/mesa-demos-8.4.0/src/xdemos/manywin.c:198:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->Version, tmp);
data/mesa-demos-8.4.0/src/xdemos/manywin.c:205:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->Vendor, tmp);
data/mesa-demos-8.4.0/src/xdemos/manywin.c:212:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->Renderer, tmp);
data/mesa-demos-8.4.0/src/xdemos/sharedtex_mt.c:181:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy(h->DisplayName, displayName);
data/mesa-demos-8.4.0/src/xdemos/xuserotfont.c:298:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	 sprintf(s, isprint(c) ? "%c> " : "\\%03o> ", c);
data/mesa-demos-8.4.0/src/demos/pointblast.c:74:50:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define RANDOM_RANGE(lo, hi) ((lo) + (hi - lo) * drand48())
data/mesa-demos-8.4.0/src/demos/spriteblast.c:136:50:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
#define RANDOM_RANGE(lo, hi) ((lo) + (hi - lo) * drand48())
data/mesa-demos-8.4.0/src/demos/stex3d.c:220:4:  [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(1);
data/mesa-demos-8.4.0/src/demos/textures.c:158:4:  [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(glutGet(GLUT_ELAPSED_TIME));
data/mesa-demos-8.4.0/src/egl/opengl/xeglgears.c:839:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles1/bindtex.c:439:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles1/es1_info.c:254:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles1/msaa.c:371:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles1/pbuffer.c:539:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles1/render_tex.c:596:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles1/two_win.c:358:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles2/es2_info.c:254:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/opengles2/es2tri.c:463:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/egl/openvg/trivial/eglcommon.c:239:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/redbook/pointp.c:78:4:  [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 (12345);
data/mesa-demos-8.4.0/src/samples/olympic.c:232: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( (unsigned int) glutGet(GLUT_ELAPSED_TIME) );
data/mesa-demos-8.4.0/src/samples/overlay.c:207: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((unsigned int)time(NULL));
data/mesa-demos-8.4.0/src/samples/select.c:72: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((unsigned int)time(NULL));
data/mesa-demos-8.4.0/src/samples/star.c:215: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((unsigned int) glutGet(GLUT_ELAPSED_TIME) );
data/mesa-demos-8.4.0/src/tests/interleave.c:383:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand( time( NULL ) );
data/mesa-demos-8.4.0/src/tests/random.c:425:10:  [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(j);
data/mesa-demos-8.4.0/src/trivial/tri-viewport.c:254:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if (getenv("VPX"))
data/mesa-demos-8.4.0/src/trivial/tri-viewport.c:255:17:  [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.
      tx = atof(getenv("VPX"));
data/mesa-demos-8.4.0/src/trivial/tri-viewport.c:257:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
   if (getenv("VPY"))
data/mesa-demos-8.4.0/src/trivial/tri-viewport.c:258:17:  [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.
      ty = atof(getenv("VPY"));
data/mesa-demos-8.4.0/src/wgl/sharedtex_mt.c:182:4:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
   InitializeCriticalSection(&win->drawMutex);
data/mesa-demos-8.4.0/src/wgl/sharedtex_mt.c:322:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
   EnterCriticalSection(&h->drawMutex);
data/mesa-demos-8.4.0/src/wgl/sharedtex_mt.c:486:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
   EnterCriticalSection(&h->drawMutex);
data/mesa-demos-8.4.0/src/wgl/wglthreads.c:286:10:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
         EnterCriticalSection(&Mutex);
data/mesa-demos-8.4.0/src/wgl/wglthreads.c:331:10:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
         EnterCriticalSection(&Mutex);
data/mesa-demos-8.4.0/src/wgl/wglthreads.c:580:4:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
   InitializeCriticalSection(&Mutex);
data/mesa-demos-8.4.0/src/xdemos/glsync.c:132:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, optstr)) != -1) {
data/mesa-demos-8.4.0/src/xdemos/glxgears.c:765:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/xdemos/glxinfo.c:527:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
            else if (getenv("LIBGL_ALWAYS_INDIRECT")) {
data/mesa-demos-8.4.0/src/xdemos/msctest.c:85:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, optstr)) != -1) {
data/mesa-demos-8.4.0/src/xdemos/multictx.c:552:27:  [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.
	     dpyName ? dpyName : getenv("DISPLAY"));
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:127:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, optstr)) != -1) {
data/mesa-demos-8.4.0/src/demos/arbocclude.c:177:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char s[10];
data/mesa-demos-8.4.0/src/demos/arbocclude.c:179:10:  [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(s, "%4d", passed);
data/mesa-demos-8.4.0/src/demos/arbocclude2.c:94:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[100];
data/mesa-demos-8.4.0/src/demos/arbocclude2.c:218:4:  [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(s, " %4d Fragments Visible", passed1);
data/mesa-demos-8.4.0/src/demos/clearspd.c:133:18:  [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(argv[i+1]);
data/mesa-demos-8.4.0/src/demos/clearspd.c:137:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         Height = atoi(argv[i+1]);
data/mesa-demos-8.4.0/src/demos/cubemap.c:496: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(temp, img + i * stride, stride);
data/mesa-demos-8.4.0/src/demos/cubemap.c:497: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(img + i * stride, img + (h - i - 1) * stride, stride);
data/mesa-demos-8.4.0/src/demos/cubemap.c:498: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(img + (h - i - 1) * stride, temp, stride);
data/mesa-demos-8.4.0/src/demos/cuberender.c:530:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   const char *extensions[3] = {
data/mesa-demos-8.4.0/src/demos/engine.c:968:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[100];
data/mesa-demos-8.4.0/src/demos/fbo_firecube.c:437: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.
   static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/fbo_firecube.c:586:3:  [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(frbuf, "Frame rate: %f", fps);
data/mesa-demos-8.4.0/src/demos/fbo_firecube.c:777:12:  [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).
      np = atoi(av[1]);
data/mesa-demos-8.4.0/src/demos/fire.c:387: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.
   static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/fire.c:530:10:  [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(frbuf, "Frame rate: %f", fps);
data/mesa-demos-8.4.0/src/demos/fire.c:734:12:  [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).
      np = atoi(av[1]);
data/mesa-demos-8.4.0/src/demos/fire.c:742:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      WIDTH = atoi(av[2]);
data/mesa-demos-8.4.0/src/demos/fire.c:743:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      HEIGHT = atoi(av[3]);
data/mesa-demos-8.4.0/src/demos/fogcoord.c:64:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[100];
data/mesa-demos-8.4.0/src/demos/fslight.c:265:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char name[100];
data/mesa-demos-8.4.0/src/demos/fslight.c:413:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/demos/geartrain.c:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[20];
data/mesa-demos-8.4.0/src/demos/geartrain.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[20];
data/mesa-demos-8.4.0/src/demos/geartrain.c:65: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 type[7];
data/mesa-demos-8.4.0/src/demos/geartrain.c:77: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 axle_name[20];
data/mesa-demos-8.4.0/src/demos/geartrain.c:86:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[20];
data/mesa-demos-8.4.0/src/demos/geartrain.c:88: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 gear1_name[20];
data/mesa-demos-8.4.0/src/demos/geartrain.c:89: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 gear2_name[20];
data/mesa-demos-8.4.0/src/demos/geartrain.c:102:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char Buf1[256], Buf2[256], Buf3[256], Buf4[256], Buf5[256];
data/mesa-demos-8.4.0/src/demos/geartrain.c:150:10:  [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).
    *a = atoi (Buf2);
data/mesa-demos-8.4.0/src/demos/geartrain.c:170: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).
    mainfile = fopen (filename, "r");
data/mesa-demos-8.4.0/src/demos/ipers.c:564: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.
   static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/ipers.c:635:4:  [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(frbuf,
data/mesa-demos-8.4.0/src/demos/isosurf.c:126: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,"r");
data/mesa-demos-8.4.0/src/demos/isosurf.c:327: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( expanded_data[(i-2)*3+0], data[v0], sizeof(data[0]) );
data/mesa-demos-8.4.0/src/demos/isosurf.c:328: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( expanded_data[(i-2)*3+1], data[v1], sizeof(data[0]) );
data/mesa-demos-8.4.0/src/demos/isosurf.c:329: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( expanded_data[(i-2)*3+2], data[v2], sizeof(data[0]) );
data/mesa-demos-8.4.0/src/demos/lodbias.c:88:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char str[100];
data/mesa-demos-8.4.0/src/demos/lodbias.c:101:4:  [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(str, "Texture LOD Bias = %4.1f", Bias * 0.01);
data/mesa-demos-8.4.0/src/demos/multiarb.c:359:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[100];
data/mesa-demos-8.4.0/src/demos/multiarb.c:360:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(s, "Toggle Texture %d", i);
data/mesa-demos-8.4.0/src/demos/normal.c:265:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char name[100];
data/mesa-demos-8.4.0/src/demos/normal.c:413:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/demos/paltex.c:97: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.
   static char texture[257] = {"\
data/mesa-demos-8.4.0/src/demos/paltex.c:187: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.
   static char texture[HEIGHT][WIDTH];
data/mesa-demos-8.4.0/src/demos/projtex.c:53:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *texFilename[MAX_TEX] = {
data/mesa-demos-8.4.0/src/demos/projtex.c:125: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.
imgLoad(char *filenameIn, int borderIn, GLfloat borderColorIn[4],
data/mesa-demos-8.4.0/src/demos/projtex.c:1008:20:  [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).
     NumTextures = atoi(argv[1]);
data/mesa-demos-8.4.0/src/demos/rain.cxx:167:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char frbuf[80];
data/mesa-demos-8.4.0/src/demos/rain.cxx:217:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(frbuf,"Frame rate: %f",FRAME/fr);
data/mesa-demos-8.4.0/src/demos/ray.c:618: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.
   static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/ray.c:741:10:  [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(frbuf, "Frame rate: %f", fps);
data/mesa-demos-8.4.0/src/demos/reflect.c:534:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char title[1000];
data/mesa-demos-8.4.0/src/demos/reflect.c:539:4:  [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(title, "reflect window %d", w->id);
data/mesa-demos-8.4.0/src/demos/shadowtex.c:102:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *OperatorName[8] = {
data/mesa-demos-8.4.0/src/demos/stex3d.c:353:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 tex_width = atoi((argv[i]) + 2);
data/mesa-demos-8.4.0/src/demos/stex3d.c:356:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 tex_height = atoi((argv[i]) + 2);
data/mesa-demos-8.4.0/src/demos/stex3d.c:359:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 tex_depth = atoi((argv[i]) + 2);
data/mesa-demos-8.4.0/src/demos/teapot.c:426:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/teapot.c:492:10:  [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(frbuf, "Frame rate: %f", fps);
data/mesa-demos-8.4.0/src/demos/terrain.c:364: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.
   static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/terrain.c:427:10:  [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(frbuf, "Frame rate: %f", fps);
data/mesa-demos-8.4.0/src/demos/terrain.c:567:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((FilePic = fopen(DEMOS_DATA_DIR "terrain.dat", "r")) == NULL) {
data/mesa-demos-8.4.0/src/demos/texenv.c:212:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void drawString( const char *string, GLfloat x, GLfloat y,
data/mesa-demos-8.4.0/src/demos/texenv.c:224:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void drawStringOutline( const char *string, GLfloat x, GLfloat y,
data/mesa-demos-8.4.0/src/demos/texenv.c:648:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[255];
data/mesa-demos-8.4.0/src/demos/texenv.c:662:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( buf, "dimensions: %d x %d", width, height );
data/mesa-demos-8.4.0/src/demos/texenv.c:665:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( buf, "border: %d", border );
data/mesa-demos-8.4.0/src/demos/texenv.c:668:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( buf, "internal format:" );
data/mesa-demos-8.4.0/src/demos/texenv.c:674:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( buf, "sizes:" );
data/mesa-demos-8.4.0/src/demos/texenv.c:677:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( buf, "  %d / %d / %d / %d / %d / %d",
data/mesa-demos-8.4.0/src/demos/textures.c:348: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.
               char name[20], *buf;
data/mesa-demos-8.4.0/src/demos/textures.c:357:16:  [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(name, "comp%d", i);
data/mesa-demos-8.4.0/src/demos/textures.c:358:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
               f = fopen(name, "w");
data/mesa-demos-8.4.0/src/demos/textures.c:369: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.
               char name[20], *buf;
data/mesa-demos-8.4.0/src/demos/textures.c:376:16:  [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(name, "comp%d", i);
data/mesa-demos-8.4.0/src/demos/textures.c:379:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
               f = fopen(name, "r");
data/mesa-demos-8.4.0/src/demos/trispd.c:174:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         Size = atoi(argv[i+1]);
data/mesa-demos-8.4.0/src/demos/trispd.c:190:10:  [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).
	 comp = atoi(argv[i+1]);
data/mesa-demos-8.4.0/src/demos/tunnel.c:383: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.
   static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/tunnel.c:471:10:  [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(frbuf, "Frame rate: %f", fps);
data/mesa-demos-8.4.0/src/demos/tunnel2.c:409: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.
   static char frbuf[80] = "";
data/mesa-demos-8.4.0/src/demos/tunnel2.c:492:10:  [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(frbuf, "Frame rate: %f", fps);
data/mesa-demos-8.4.0/src/egl/eglut/eglut_x11.c:212:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buffer[1];
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:85:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char surfString[100] = "";
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:110:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
         strcat(surfString, "win,");
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:112:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
         strcat(surfString, "pb,");
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:114:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
         strcat(surfString, "pix,");
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:116:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
         strcat(surfString, "str,");
data/mesa-demos-8.4.0/src/egl/opengl/eglkms.c:176:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fd = open(device_name, O_RDWR);
data/mesa-demos-8.4.0/src/egl/opengl/xeglgears.c:657: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/egl/opengl/xeglthreads.c:324:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[100];
data/mesa-demos-8.4.0/src/egl/opengl/xeglthreads.c:642:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            numThreads = atoi(argv[i + 1]);
data/mesa-demos-8.4.0/src/egl/opengles1/bindtex.c:381: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/egl/opengles1/eglfbdev.c:66:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[64];
data/mesa-demos-8.4.0/src/egl/opengles1/eglfbdev.c:75: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).
   return open(name, flags);
data/mesa-demos-8.4.0/src/egl/opengles1/eglfbdev.c:311:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   fd = open(fbdev, O_RDWR);
data/mesa-demos-8.4.0/src/egl/opengles1/msaa.c:275:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[10];
data/mesa-demos-8.4.0/src/egl/opengles1/msaa.c:412:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               printf("%s = %s\n", info_items[i].name, (char *)glGetString(info_items[i].value));
data/mesa-demos-8.4.0/src/egl/opengles1/pbuffer.c:452: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/egl/opengles1/render_tex.c:503: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/egl/opengles1/two_win.c:254:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[10];
data/mesa-demos-8.4.0/src/egl/opengles1/two_win.c:407:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               printf("%s = %s\n", info_items[i].name, (char *)glGetString(info_items[i].value));
data/mesa-demos-8.4.0/src/egl/opengles2/es2gears.c:303: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(m, &tmp, sizeof tmp);
data/mesa-demos-8.4.0/src/egl/opengles2/es2gears.c:363: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(m, t, sizeof(t));
data/mesa-demos-8.4.0/src/egl/opengles2/es2gears.c:380: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(m, t, sizeof(t));
data/mesa-demos-8.4.0/src/egl/opengles2/es2gears.c:442: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(m, tmp, sizeof(tmp));
data/mesa-demos-8.4.0/src/egl/opengles2/es2gears.c:651:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char msg[512];
data/mesa-demos-8.4.0/src/egl/opengles2/es2tri.c:86: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(prod, p, sizeof(p));
data/mesa-demos-8.4.0/src/egl/opengles2/es2tri.c:185:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char log[1000];
data/mesa-demos-8.4.0/src/egl/opengles2/es2tri.c:384:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[10];
data/mesa-demos-8.4.0/src/egl/openvg/sp.c:39: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(object.matrix, identity_matrix, 9 * sizeof(VGfloat));
data/mesa-demos-8.4.0/src/egl/openvg/sp.c:59: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(object.matrix, identity_matrix, 9 * sizeof(VGfloat));
data/mesa-demos-8.4.0/src/egl/openvg/sp.c:81: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(object.matrix, matrix, 9 * sizeof(VGfloat));
data/mesa-demos-8.4.0/src/egl/openvg/sp.c:100: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(object.matrix, matrix, 9 * sizeof(VGfloat));
data/mesa-demos-8.4.0/src/egl/openvg/trivial/color_transform.c:85: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(xform, identity, sizeof(identity));
data/mesa-demos-8.4.0/src/egl/openvg/trivial/color_transform.c:94: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(xform, identity, sizeof(identity));
data/mesa-demos-8.4.0/src/egl/openvg/trivial/color_transform.c:103: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(xform, identity, sizeof(identity));
data/mesa-demos-8.4.0/src/egl/openvg/trivial/color_transform.c:112: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(xform, identity, sizeof(identity));
data/mesa-demos-8.4.0/src/egl/openvg/trivial/eglcommon.c:160:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buffer[10];
data/mesa-demos-8.4.0/src/fp/fp-tri.c:76:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[50000];
data/mesa-demos-8.4.0/src/fp/fp-tri.c:80:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((f = fopen(filename, "r")) == NULL) {
data/mesa-demos-8.4.0/src/fpglsl/fp-tri.c:79:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/glsl/bezier.c:71:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/glsl/convolutions.c:88:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/glsl/geom-stipple-lines.c:323:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int n = atoi(argv[1]);
data/mesa-demos-8.4.0/src/glsl/geom-wide-lines.c:320:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int n = atoi(argv[1]);
data/mesa-demos-8.4.0/src/glsl/multinoise.c:21:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *FragShaderText[ 4 ] = {
data/mesa-demos-8.4.0/src/glsl/multitex.c:41:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *TexFiles[2] = 
data/mesa-demos-8.4.0/src/glsl/samplers.c:254: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.
   p += sprintf(p, "// Generated fragment shader:\n");
data/mesa-demos-8.4.0/src/glsl/samplers.c:257:12:  [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.
      p += sprintf(p, "uniform sampler2D tex%d;\n", s);
data/mesa-demos-8.4.0/src/glsl/samplers.c:260: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.
   p += sprintf(p, "uniform sampler2D tex[%d];\n", numSamplers);
data/mesa-demos-8.4.0/src/glsl/samplers.c:262: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.
   p += sprintf(p, "void main()\n");
data/mesa-demos-8.4.0/src/glsl/samplers.c:263: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.
   p += sprintf(p, "{\n");
data/mesa-demos-8.4.0/src/glsl/samplers.c:264: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.
   p += sprintf(p, "   vec4 color = vec4(0.0);\n");
data/mesa-demos-8.4.0/src/glsl/samplers.c:267:12:  [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.
      p += sprintf(p, "   color += texture2D(tex%d, gl_TexCoord[0].xy);\n", s);
data/mesa-demos-8.4.0/src/glsl/samplers.c:269:12:  [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.
      p += sprintf(p, "   color += texture2D(tex[%d], gl_TexCoord[0].xy);\n", s);
data/mesa-demos-8.4.0/src/glsl/samplers.c:272: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.
   p += sprintf(p, "   gl_FragColor = color;\n");
data/mesa-demos-8.4.0/src/glsl/samplers.c:273: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.
   p += sprintf(p, "}\n");
data/mesa-demos-8.4.0/src/glsl/samplers.c:317:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char uname[10];
data/mesa-demos-8.4.0/src/glsl/samplers.c:321:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(uname, "tex%d", s);
data/mesa-demos-8.4.0/src/glsl/samplers.c:323:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(uname, "tex[%d]", s);
data/mesa-demos-8.4.0/src/glsl/shadow_sampler.c:213:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/glsl/shtest.c:77:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[100];
data/mesa-demos-8.4.0/src/glsl/shtest.c:486:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char line[1000];
data/mesa-demos-8.4.0/src/glsl/shtest.c:489: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, "r");
data/mesa-demos-8.4.0/src/glsl/shtest.c:509: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 target[100], texFileName[100];
data/mesa-demos-8.4.0/src/glsl/shtest.c:514: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.
               char texFileNames[6][100];
data/mesa-demos-8.4.0/src/glsl/shtest.c:545: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 name[1000], typeName[100];
data/mesa-demos-8.4.0/src/glsl/simplex-noise.c:173:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char noiseText[10000];
data/mesa-demos-8.4.0/src/glsl/simplex-noise.c:177: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, "r");
data/mesa-demos-8.4.0/src/glsl/texdemo1.c:278: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(temp, img + i * stride, stride);
data/mesa-demos-8.4.0/src/glsl/texdemo1.c:279: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(img + i * stride, img + (h - i - 1) * stride, stride);
data/mesa-demos-8.4.0/src/glsl/texdemo1.c:280: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(img + (h - i - 1) * stride, temp, stride);
data/mesa-demos-8.4.0/src/gs/gs-tri.c:53:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/gs/gs-tri.c:150:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 nr_steps = atoi((argv[i]) + 2);
data/mesa-demos-8.4.0/src/objviewer/glm.c:170:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(copies, vectors, (sizeof(float) * 3 * (*numvectors + 1)));
data/mesa-demos-8.4.0/src/objviewer/glm.c:294:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char  buf[128], buf2[128];
data/mesa-demos-8.4.0/src/objviewer/glm.c:305:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "r");
data/mesa-demos-8.4.0/src/objviewer/glm.c:450:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "w");
data/mesa-demos-8.4.0/src/objviewer/glm.c:498:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char      buf[128];
data/mesa-demos-8.4.0/src/objviewer/glm.c:647:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char      buf[128];
data/mesa-demos-8.4.0/src/objviewer/glm.c:1406:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "r");
data/mesa-demos-8.4.0/src/objviewer/glm.c:1522:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filename, "w");
data/mesa-demos-8.4.0/src/objviewer/glmdraw.c:231: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(ib, group->triIndexes, bytes);
data/mesa-demos-8.4.0/src/objviewer/glmdraw.c:428:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char newShader[10000];
data/mesa-demos-8.4.0/src/objviewer/objview.c:79:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[255], *p;
data/mesa-demos-8.4.0/src/objviewer/skybox.c:36: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(temp, img + i * stride, stride);
data/mesa-demos-8.4.0/src/objviewer/skybox.c:37: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(img + i * stride, img + (h - i - 1) * stride, stride);
data/mesa-demos-8.4.0/src/objviewer/skybox.c:38: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(img + (h - i - 1) * stride, temp, stride);
data/mesa-demos-8.4.0/src/osdemos/osdemo.c:161:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen( filename, "w" );
data/mesa-demos-8.4.0/src/osdemos/osdemo.c:185:11:  [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, "ab" );  /* reopen in binary append mode */
data/mesa-demos-8.4.0/src/osdemos/osdemo.c:203:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen( filename, "w" );
data/mesa-demos-8.4.0/src/osdemos/osdemo.c:213:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         f = fopen( filename, "ab" );  /* reopen in binary append mode */
data/mesa-demos-8.4.0/src/osdemos/osdemo.c:263:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      Width = atoi(argv[2]);
data/mesa-demos-8.4.0/src/osdemos/osdemo.c:264:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      Height = atoi(argv[3]);
data/mesa-demos-8.4.0/src/osdemos/osdemo16.c:153:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen( filename, "w" );
data/mesa-demos-8.4.0/src/osdemos/osdemo16.c:177:11:  [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, "ab" );  /* reopen in binary append mode */
data/mesa-demos-8.4.0/src/osdemos/osdemo16.c:195:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen( filename, "w" );
data/mesa-demos-8.4.0/src/osdemos/osdemo16.c:205:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         f = fopen( filename, "ab" );  /* reopen in binary append mode */
data/mesa-demos-8.4.0/src/osdemos/osdemo32.c:145:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen( filename, "w" );
data/mesa-demos-8.4.0/src/osdemos/osdemo32.c:169:11:  [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, "ab" );  /* reopen in binary append mode */
data/mesa-demos-8.4.0/src/osdemos/osdemo32.c:193:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen( filename, "w" );
data/mesa-demos-8.4.0/src/osdemos/osdemo32.c:203:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         f = fopen( filename, "ab" );  /* reopen in binary append mode */
data/mesa-demos-8.4.0/src/osdemos/ostest1.c:320:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen( filename, "w" );
data/mesa-demos-8.4.0/src/osdemos/ostest1.c:330:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         f = fopen( filename, "ab" );  /* reopen in binary append mode */
data/mesa-demos-8.4.0/src/perf/common.c:125: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.
   static char buf[80];
data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:93:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[100];
data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:302: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).
         complexity = atoi(argv[i]);
data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:306: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).
         num_shaders = atoi(argv[i]);
data/mesa-demos-8.4.0/src/perf/glslstateschange.c:61:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *TexFiles[4] =
data/mesa-demos-8.4.0/src/perf/teximage.c:52:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *mode_name[MODE_COUNT] = 
data/mesa-demos-8.4.0/src/perf/vbo.c:189: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(VBOData + i * sizeof(Vertex0), 
data/mesa-demos-8.4.0/src/rbug/bin_to_bmp.c:67:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[512];
data/mesa-demos-8.4.0/src/rbug/bin_to_bmp.c:101:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *file = fopen(filename, "rb");
data/mesa-demos-8.4.0/src/rbug/ctx_rule.c:79:10:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   ctx = atol(argv[1]);
data/mesa-demos-8.4.0/src/rbug/ctx_rule.c:80:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   shdr = atol(argv[2]);
data/mesa-demos-8.4.0/src/rbug/shdr_disable.c:75:10:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   ctx = atol(argv[1]);
data/mesa-demos-8.4.0/src/rbug/shdr_disable.c:76:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
   shdr = atol(argv[2]);
data/mesa-demos-8.4.0/src/rbug/tex_dump.c:49:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[512];
data/mesa-demos-8.4.0/src/redbook/convolution.c:80:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* infile = fopen( filename, "rb" );
data/mesa-demos-8.4.0/src/redbook/histogram.c:88:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* infile = fopen( filename, "rb" );
data/mesa-demos-8.4.0/src/redbook/minmax.c:84:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE* infile = fopen( filename, "rb" );
data/mesa-demos-8.4.0/src/samples/blendeq.c:103:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char colorString[100];
data/mesa-demos-8.4.0/src/samples/blendeq.c:110: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(colorString, "(0x%x, 0x%x, 0x%x)",
data/mesa-demos-8.4.0/src/samples/blendeq.c:115: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(colorString, "(0x%x, 0x%x, 0x%x)",
data/mesa-demos-8.4.0/src/samples/loadppm.c:9: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 buff[16];
data/mesa-demos-8.4.0/src/samples/loadppm.c:14:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "rb");
data/mesa-demos-8.4.0/src/samples/olympic.c:67:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
unsigned char rgb_colors[RINGS][3];
data/mesa-demos-8.4.0/src/samples/rgbtoppm.c:20:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[80];
data/mesa-demos-8.4.0/src/samples/rgbtoppm.c:71: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 testByte[4];
data/mesa-demos-8.4.0/src/samples/rgbtoppm.c:90:24:  [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).
    if ((image->file = fopen(fileName, "rb")) == NULL) {
data/mesa-demos-8.4.0/src/samples/rgbtoppm.c:277: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 buff[32];
data/mesa-demos-8.4.0/src/samples/rgbtoppm.c:289:6:  [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.
	n = sprintf(buff, "P6\n%d %d\n255\n", width, height);
data/mesa-demos-8.4.0/src/samples/rgbtoppm.c:292:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((fo = fopen(argv[2], "wb")) == NULL) {
data/mesa-demos-8.4.0/src/samples/wave.c:556:12:  [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).
		widthX = atoi(argv[++i]);
data/mesa-demos-8.4.0/src/samples/wave.c:557:12:  [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).
		widthY = atoi(argv[++i]);
data/mesa-demos-8.4.0/src/samples/wave.c:564:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		checkerSize = atoi(argv[++i]);
data/mesa-demos-8.4.0/src/samples/wave.c:578:12:  [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).
		frames = atoi(argv[++i]);
data/mesa-demos-8.4.0/src/slang/cltest.c:32:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[32];
data/mesa-demos-8.4.0/src/slang/cltest.c:45:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char code[16000];
data/mesa-demos-8.4.0/src/slang/cltest.c:60:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char name[256];
data/mesa-demos-8.4.0/src/slang/cltest.c:78:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char line[256];
data/mesa-demos-8.4.0/src/slang/cltest.c:82: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, "r");
data/mesa-demos-8.4.0/src/slang/cltest.c:170:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char output[65000], *p;
data/mesa-demos-8.4.0/src/slang/sotest.c:140:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   const char *tab[2];
data/mesa-demos-8.4.0/src/slang/vstest.c:217: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, "r");
data/mesa-demos-8.4.0/src/slang/vstest.c:265:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char output[65000], *p;
data/mesa-demos-8.4.0/src/tests/arbgpuprog.c:71:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[10*1000];
data/mesa-demos-8.4.0/src/tests/arbgpuprog.c:95:11:  [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(vertProgFile, "r");
data/mesa-demos-8.4.0/src/tests/arbgpuprog.c:133:11:  [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(fragProgFile, "r");
data/mesa-demos-8.4.0/src/tests/arbvparray.c:32: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,"r");
data/mesa-demos-8.4.0/src/tests/arraytexture.c:113:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char str[100];
data/mesa-demos-8.4.0/src/tests/arraytexture.c:126:4:  [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(str, "Texture Z coordinate = %4.1f", texZ);
data/mesa-demos-8.4.0/src/tests/auxbuffer.c:384: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/tests/bug_3195.c:90:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char str[100];
data/mesa-demos-8.4.0/src/tests/bug_3195.c:103:4:  [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(str, "Texture LOD Bias = %4.1f", Bias * 0.01);
data/mesa-demos-8.4.0/src/tests/clip.c:67:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen("verts.txt", "w");
data/mesa-demos-8.4.0/src/tests/clip.c:78:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen("verts.txt", "r");
data/mesa-demos-8.4.0/src/tests/cylwrap.c:81:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char str[100];
data/mesa-demos-8.4.0/src/tests/cylwrap.c:88:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "%3.1f", s);
data/mesa-demos-8.4.0/src/tests/debugger.c:71: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(s, lineStart, len);
data/mesa-demos-8.4.0/src/tests/debugger.c:214:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char command[1000], *cmd;
data/mesa-demos-8.4.0/src/tests/debugger.c:232:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            i = atoi(cmd + 2);
data/mesa-demos-8.4.0/src/tests/debugger.c:272:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char temp[100];
data/mesa-demos-8.4.0/src/tests/debugger.c:274:19:  [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(temp, "R%d", i);
data/mesa-demos-8.4.0/src/tests/debugger.c:316:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char temp[100];
data/mesa-demos-8.4.0/src/tests/debugger.c:318:19:  [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(temp, "R%d", i);
data/mesa-demos-8.4.0/src/tests/debugger.c:358:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                  int x = atoi(cmd + 2);
data/mesa-demos-8.4.0/src/tests/debugger.c:359:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                  int y = atoi(comma + 1);
data/mesa-demos-8.4.0/src/tests/debugger.c:372:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                  int l = atoi(cmd + 2);
data/mesa-demos-8.4.0/src/tests/interleave.c:154:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * const mode_names[ NUM_MODES ] = {
data/mesa-demos-8.4.0/src/tests/interleave.c:175:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
#define DEREF(item,idx) (void *) & ((char *)curr_info[item].data)[idx * curr_info[item].stride]
data/mesa-demos-8.4.0/src/tests/interleave.c:183:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char data[ (sizeof( GLfloat ) * 4) * 12 * 4 ];
data/mesa-demos-8.4.0/src/tests/interleave.c:225: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.
	 (void) memcpy( & data[ offset ], DEREF(0, index),
data/mesa-demos-8.4.0/src/tests/interleave.c:246: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.
	 (void) memcpy( & data[ offset ], DEREF(1, index), 
data/mesa-demos-8.4.0/src/tests/interleave.c:257: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.
	 (void) memcpy( & data[ offset ], DEREF(2, index),
data/mesa-demos-8.4.0/src/tests/interleave.c:275: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.
      (void) memcpy( & data[ offset ], DEREF(3, index),
data/mesa-demos-8.4.0/src/tests/jkrahntest.c:62:12:  [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).
    test = atoi(argv[1]);
data/mesa-demos-8.4.0/src/tests/line-sample.c:95:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char title[1000];
data/mesa-demos-8.4.0/src/tests/manytex.c:349: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).
         NumTextures = atoi(argv[i+1]);
data/mesa-demos-8.4.0/src/tests/manytex.c:363: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).
         TexWidth = atoi(argv[i+1]);
data/mesa-demos-8.4.0/src/tests/manytex.c:364: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).
         TexHeight = atoi(argv[i+2]);
data/mesa-demos-8.4.0/src/tests/manytex.c:373: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).
         LowPriorityCount = atoi(argv[i+1]);
data/mesa-demos-8.4.0/src/tests/mapbufrange.c:68: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(rect, RectData, sizeof(RectData));
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:231:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[100];
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:247:4:  [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(s, "Toggle Image (t):");
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:252:4:  [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(s, "BASE_LEVEL (b/B): %d", BaseLevel);
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:257:4:  [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(s, " MAX_LEVEL (m/M): %d", MaxLevel);
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:262:4:  [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(s, "   MIN_LOD (n/N): %f", MinLod);
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:267:4:  [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(s, "   MAX_LOD (x/X): %f", MaxLod);
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:272:4:  [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(s, "  LOD_BIAS (l/L): %f", LodBias);
data/mesa-demos-8.4.0/src/tests/mipmap_limits.c:277:4:  [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(s, "   RESET (space)");
data/mesa-demos-8.4.0/src/tests/mipmap_tunnel.c:149:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char str[100];
data/mesa-demos-8.4.0/src/tests/mipmap_tunnel.c:181:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "LOD bias (b/B): %.3f  MaxAnisotropy: %.3f", LodBias, AnisoMax);
data/mesa-demos-8.4.0/src/tests/mipmap_tunnel.c:183:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(str, "LOD bias (b/B): %.3f", LodBias);
data/mesa-demos-8.4.0/src/tests/mipmap_view.c:230:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char str[100];
data/mesa-demos-8.4.0/src/tests/mipmap_view.c:278:10:  [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(str, "Texture Level %d: %d x %d",
data/mesa-demos-8.4.0/src/tests/mipmap_view.c:282:10:  [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(str, "Texture LOD Bias = %d", bias);
data/mesa-demos-8.4.0/src/tests/packedpixels.c:220:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[1000];
data/mesa-demos-8.4.0/src/tests/random.c:423:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         int j = atoi(argv[i + 1]);
data/mesa-demos-8.4.0/src/tests/random.c:430:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         MinVertexCount = atoi(argv[i]);
data/mesa-demos-8.4.0/src/tests/random.c:434:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         MaxVertexCount = atoi(argv[i]);
data/mesa-demos-8.4.0/src/tests/readrate.c:133:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char str[1000];
data/mesa-demos-8.4.0/src/tests/readrate.c:141:4:  [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(str, "ReadPixels size: %d x %d", width, height);
data/mesa-demos-8.4.0/src/tests/rubberband.c:94:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[100];
data/mesa-demos-8.4.0/src/tests/shader_api.c:52: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 info[65536];
data/mesa-demos-8.4.0/src/tests/shader_api.c:110:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[1024];
data/mesa-demos-8.4.0/src/tests/shader_api.c:167:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buffer[1024];
data/mesa-demos-8.4.0/src/tests/shadow-sample.c:124:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
reportFailure(const char *programName, const GLfloat expectedColor[4],
data/mesa-demos-8.4.0/src/tests/sharedtex.c:38:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char DisplayName[1000];
data/mesa-demos-8.4.0/src/tests/streaming_rect.c:286:18:  [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(argv[i+1]);
data/mesa-demos-8.4.0/src/tests/streaming_rect.c:294:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         Height = atoi(argv[i+1]);
data/mesa-demos-8.4.0/src/tests/texcmp.c:130:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[64];
data/mesa-demos-8.4.0/src/tests/texcmp.c:136:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(tmp, "%d (%d%% of %d)", Tx->cSize, Tx->cSize * 100 / Tx->size, Tx->size);
data/mesa-demos-8.4.0/src/tests/texcmp.c:217: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.
   static char pattern[8 * 32 + 1] = {"\
data/mesa-demos-8.4.0/src/tests/texcomp_image.h:2: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.
static unsigned char ImgData[131072] =
data/mesa-demos-8.4.0/src/tests/texcompsub.c:35: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 ImgDataTemp[ImgSize / 4];
data/mesa-demos-8.4.0/src/tests/texcompsub.c:51:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(&ImgDataTemp[i * ImgWidth], &ImgData[half + i * 2 * ImgWidth], ImgWidth);
data/mesa-demos-8.4.0/src/tests/texcompsub.c:60: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(&ImgDataTemp[i * ImgWidth], &ImgData[half + i * 2 * ImgWidth + ImgWidth], ImgWidth);
data/mesa-demos-8.4.0/src/tests/texdown.c:316:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[1000];
data/mesa-demos-8.4.0/src/tests/texdown.c:321:4:  [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(s, "Texture size[cursor]: %d x %d  Border[b]: %d", w, h, TexBorder);
data/mesa-demos-8.4.0/src/tests/texdown.c:339:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(s, "...Measuring...");
data/mesa-demos-8.4.0/src/tests/texdown.c:353:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(s, "Download rate: %g Mtexels/second  %g MB/second",
data/mesa-demos-8.4.0/src/tests/texdown.c:365:10:  [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(s, "TexelBits: R=%d G=%d B=%d A=%d L=%d I=%d", r, g, b, a, l, i);
data/mesa-demos-8.4.0/src/tests/texgenmix.c:54:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void drawString( const char *string, GLfloat x, GLfloat y,
data/mesa-demos-8.4.0/src/tests/texgenmix.c:247:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[255];
data/mesa-demos-8.4.0/src/tests/texgenmix.c:257:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( buf, "TexCoord%df", coordnr);
data/mesa-demos-8.4.0/src/tests/texgenmix.c:263:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( buf, "TexCoord%df", coordnr);
data/mesa-demos-8.4.0/src/tests/texobjshare.c:24:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char DisplayName[1000];
data/mesa-demos-8.4.0/src/tests/texrect.c:345:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[100];
data/mesa-demos-8.4.0/src/tests/texrect.c:346:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(s, "Toggle Texture %d", i);
data/mesa-demos-8.4.0/src/tests/viewmemory.c:80:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char s[100];
data/mesa-demos-8.4.0/src/tests/viewmemory.c:82:4:  [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(s, "Texture %u", CurTexture);
data/mesa-demos-8.4.0/src/tests/viewmemory.c:184: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).
      NumTextures = atoi(argv[1]);
data/mesa-demos-8.4.0/src/tests/vparray.c:32: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,"r");
data/mesa-demos-8.4.0/src/tools/dds.c:135:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char magic[4];
data/mesa-demos-8.4.0/src/tools/dds.c:139: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).
  fp = fopen (filename, "rb");
data/mesa-demos-8.4.0/src/util/imagesgi.cpp:113:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char testByte[4];
data/mesa-demos-8.4.0/src/util/imagesgi.cpp:134:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      mFp = fopen(fileName, "rb");
data/mesa-demos-8.4.0/src/util/imagesgi.h:34:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char padding1[4];             // (ignored)
data/mesa-demos-8.4.0/src/util/imagesgi.h:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char imageName[80];           // Image name
data/mesa-demos-8.4.0/src/util/imagesgi.h:38:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char padding2[404];           // (ignored)
data/mesa-demos-8.4.0/src/util/readtex.c:44:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[80];
data/mesa-demos-8.4.0/src/util/readtex.c:87:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char testByte[4];
data/mesa-demos-8.4.0/src/util/readtex.c:106: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).
   raw->file = fopen(fileName, "rb");
data/mesa-demos-8.4.0/src/util/readtex.c:110:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
         raw->file = fopen(baseName + 1, "rb");
data/mesa-demos-8.4.0/src/util/readtex.c:403: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( (void *) buffer, (void *) image->data, bytes );
data/mesa-demos-8.4.0/src/util/shaderutil.c:153: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, "r");
data/mesa-demos-8.4.0/src/util/shaderutil.c:369:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[100];
data/mesa-demos-8.4.0/src/util/shaderutil.c:419:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char name[100];
data/mesa-demos-8.4.0/src/vp/vp-tris.c:62:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 nr_steps = atoi((argv[i]) + 2);
data/mesa-demos-8.4.0/src/vp/vp-tris.c:91:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[16 * 1024];
data/mesa-demos-8.4.0/src/vp/vp-tris.c:95:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if ((f = fopen(filename, "r")) == NULL) {
data/mesa-demos-8.4.0/src/vpglsl/vp-tris.c:55:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   FILE *f = fopen(filename, "r");
data/mesa-demos-8.4.0/src/vpglsl/vp-tris.c:169:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 nr_steps = atoi((argv[i]) + 2);
data/mesa-demos-8.4.0/src/wgl/wglcontext.c:89: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.
   static char buf[1000] = {0};
data/mesa-demos-8.4.0/src/wgl/wglcontext.c:91:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buf, "GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT | ");
data/mesa-demos-8.4.0/src/wgl/wglcontext.c:93:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buf, "GL_CONTEXT_FLAG_DEBUG_BIT | ");
data/mesa-demos-8.4.0/src/wgl/wglcontext.c:95:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buf, "GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT | ");
data/mesa-demos-8.4.0/src/wgl/wglcontext.c:97:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buf, "GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR | ");
data/mesa-demos-8.4.0/src/wgl/wglcontext.c:105:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(buf, "(none)");
data/mesa-demos-8.4.0/src/wgl/wglthreads.c:556:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         NumWinThreads = atoi(argv[i + 1]);
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:164: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.
   static char buffer[100];
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:232: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(extensions[k], ext + i, len);
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:841: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.
   static char buffer[256], *p;
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:844:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
   strcpy(buffer, "(none)");
data/mesa-demos-8.4.0/src/xdemos/glsync.c:135:12:  [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(optarg);
data/mesa-demos-8.4.0/src/xdemos/glsync.c:138:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			height = atoi(optarg);
data/mesa-demos-8.4.0/src/xdemos/glsync.c:160:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			interval = atoi(optarg);
data/mesa-demos-8.4.0/src/xdemos/glthreads.c:309:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char buf[100];
data/mesa-demos-8.4.0/src/xdemos/glthreads.c:600:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            numThreads = atoi(argv[i + 1]);
data/mesa-demos-8.4.0/src/xdemos/glxcontexts.c:440: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/glxgears.c:655:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/glxgears_fbconfig.c:527: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/glxgears_pixmap.c:438: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:41:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char DisplayName[1000];
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:46:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Renderer[1000];
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:47:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Vendor[1000];
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:48:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Version[1000];
data/mesa-demos-8.4.0/src/xdemos/glxpbdemo.c:355: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, "w");
data/mesa-demos-8.4.0/src/xdemos/glxpbdemo.c:365: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, "ab");  /* now append binary data */
data/mesa-demos-8.4.0/src/xdemos/glxpbdemo.c:406:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int width = atoi(argv[1]);
data/mesa-demos-8.4.0/src/xdemos/glxpbdemo.c:407:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int height = atoi(argv[2]);
data/mesa-demos-8.4.0/src/xdemos/glxsnoop.c:158:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char title[1000], *buf;
data/mesa-demos-8.4.0/src/xdemos/glxsnoop.c:229:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/glxsnoop.c:331: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).
            WindowID = atoi(argv[i]);
data/mesa-demos-8.4.0/src/xdemos/glxswapcontrol.c:559: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/glxswapcontrol.c:722: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.
	 (void) memcpy( string_tab[ idx ], & string[ base ], i );
data/mesa-demos-8.4.0/src/xdemos/glxswapcontrol.c:792:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	 swap_interval = atoi( argv[i+1] );
data/mesa-demos-8.4.0/src/xdemos/manywin.c:41:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char DisplayName[1000];
data/mesa-demos-8.4.0/src/xdemos/manywin.c:46:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Renderer[1000];
data/mesa-demos-8.4.0/src/xdemos/manywin.c:47:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Vendor[1000];
data/mesa-demos-8.4.0/src/xdemos/manywin.c:48:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char Version[1000];
data/mesa-demos-8.4.0/src/xdemos/manywin.c:309:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[100];
data/mesa-demos-8.4.0/src/xdemos/manywin.c:398:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            n = atoi(argv[i]);
data/mesa-demos-8.4.0/src/xdemos/manywin.c:408:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char name[100];
data/mesa-demos-8.4.0/src/xdemos/manywin.c:410:10:  [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(name, "%d", i);
data/mesa-demos-8.4.0/src/xdemos/multictx.c:474:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
         char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/offset.c:270:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[31];
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:130:12:  [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(optarg);
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:133:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			height = atoi(optarg);
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:139:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			divisor = atoi(optarg);
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:142:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			remainder = atoi(optarg);
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:145:20:  [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).
			wait_interval = atoi(optarg);
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:148:20:  [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).
			swap_interval = atoi(optarg);
data/mesa-demos-8.4.0/src/xdemos/overlay.c:201: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/xdemos/pbdemo.c:64:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   const char fbString[NUM_FB_CONFIGS][100] = {
data/mesa-demos-8.4.0/src/xdemos/pbdemo.c:421: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, "w");
data/mesa-demos-8.4.0/src/xdemos/pbdemo.c:431: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, "ab");  /* now append binary data */
data/mesa-demos-8.4.0/src/xdemos/pbdemo.c:472:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int width = atoi(argv[1]);
data/mesa-demos-8.4.0/src/xdemos/pbdemo.c:473:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int height = atoi(argv[2]);
data/mesa-demos-8.4.0/src/xdemos/shape.c:245:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char buf[100];
data/mesa-demos-8.4.0/src/xdemos/sharedtex.c:274: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.
               char buf[100];
data/mesa-demos-8.4.0/src/xdemos/sharedtex_mt.c:48:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char DisplayName[1000];
data/mesa-demos-8.4.0/src/xdemos/texture_from_pixmap.c:329: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.
               char buf[100];
data/mesa-demos-8.4.0/src/xdemos/wincopy.c:211:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                  char buf[100];
data/mesa-demos-8.4.0/src/xdemos/xuserotfont.c:297:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	 char s[7];
data/mesa-demos-8.4.0/src/xdemos/yuvrect_client.c:152: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(glx_memory, ImageYUV, ImgWidth * ImgHeight * 2);
data/mesa-demos-8.4.0/src/xdemos/yuvrect_client.c:258: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.
               char buffer[10];
data/mesa-demos-8.4.0/src/demos/arbfplight.c:285:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(fragProgramText),
data/mesa-demos-8.4.0/src/demos/arbfplight.c:318:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                           strlen(vertProgramText),
data/mesa-demos-8.4.0/src/demos/fbo_firecube.c:390:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int) strlen(string);
data/mesa-demos-8.4.0/src/demos/fire.c:279:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int) strlen(string);
data/mesa-demos-8.4.0/src/demos/fplight.c:32:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  glProgramNamedParameter4fvNV(prog, strlen(name), (const GLubyte *) name, v)
data/mesa-demos-8.4.0/src/demos/fplight.c:233: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).
                   strlen(fragProgramText),
data/mesa-demos-8.4.0/src/demos/fplight.c:245: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).
                   strlen(vertProgramText),
data/mesa-demos-8.4.0/src/demos/fslight.c:543:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      GLsizei len = strlen(fragShaderText) + 1;
data/mesa-demos-8.4.0/src/demos/ipers.c:347:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int) strlen(string);
data/mesa-demos-8.4.0/src/demos/normal.c:525:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      GLsizei len = strlen(fragShaderText) + 1;
data/mesa-demos-8.4.0/src/demos/rain.cxx:119:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len=(int)strlen(string);
data/mesa-demos-8.4.0/src/demos/ray.c:256:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int) strlen(string);
data/mesa-demos-8.4.0/src/demos/shadowtex.c:858:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(code), code);
data/mesa-demos-8.4.0/src/demos/teapot.c:246:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len=(int)strlen(string);
data/mesa-demos-8.4.0/src/demos/terrain.c:214:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int) strlen(string);
data/mesa-demos-8.4.0/src/demos/tessdemo.c:54:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = strlen( str );
data/mesa-demos-8.4.0/src/demos/tunnel.c:294:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int) strlen(string);
data/mesa-demos-8.4.0/src/demos/tunnel2.c:320:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   len = (int) strlen(string);
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:117:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(surfString) > 0)
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:118:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         surfString[strlen(surfString) - 1] = 0;
data/mesa-demos-8.4.0/src/egl/opengl/eglinfo.c:151:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   end = extensions + strlen(extensions);
data/mesa-demos-8.4.0/src/egl/opengl/eglkms.c:265:4:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   getchar();
data/mesa-demos-8.4.0/src/egl/opengl/xeglthreads.c:307:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
         usleep(5000);
data/mesa-demos-8.4.0/src/egl/opengl/xeglthreads.c:389:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(5000);
data/mesa-demos-8.4.0/src/egl/opengl/xeglthreads.c:451:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(5000);
data/mesa-demos-8.4.0/src/egl/opengles1/texture_from_pixmap.c:244:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
         usleep((data->animate.next_frame - now) * 1000);
data/mesa-demos-8.4.0/src/fp/point-position.c:29:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/fp/tri-depth.c:31:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/fp/tri-depth2.c:33:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/fp/tri-depthwrite.c:29:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/fp/tri-depthwrite2.c:29:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/fp/tri-param.c:28:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/fp/tri-tex.c:36:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/glsl/shtest.c:502:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            VertShaderFile[strlen(VertShaderFile) - 1] = 0;
data/mesa-demos-8.4.0/src/glsl/shtest.c:506:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            FragShaderFile[strlen(FragShaderFile) - 1] = 0;
data/mesa-demos-8.4.0/src/glsl/shtest.c:555:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(name) + 1 > sizeof(conf->uniforms[conf->num_uniforms].name)) {
data/mesa-demos-8.4.0/src/glsl/shtest.c:568:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(line) > 1) {
data/mesa-demos-8.4.0/src/objviewer/glm.c:56:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  copy = malloc(strlen(string) + 1);
data/mesa-demos-8.4.0/src/objviewer/glm.c:299:44:  [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).
  filename = (char*)malloc(sizeof(char) * (strlen(dir) + strlen(name) + 1));
data/mesa-demos-8.4.0/src/objviewer/glm.c:299:58:  [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).
  filename = (char*)malloc(sizeof(char) * (strlen(dir) + strlen(name) + 1));
data/mesa-demos-8.4.0/src/objviewer/glm.c:444:44:  [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).
  filename = (char*)malloc(sizeof(char) * (strlen(dir) + strlen(mtllibname)));
data/mesa-demos-8.4.0/src/objviewer/glm.c:444:58:  [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).
  filename = (char*)malloc(sizeof(char) * (strlen(dir) + strlen(mtllibname)));
data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:66:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int l = strlen(s);
data/mesa-demos-8.4.0/src/perf/glsl-compile-time.c:80:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   assert(strlen(ds->buffer) == ds->len);
data/mesa-demos-8.4.0/src/rbug/tex_dump.c:38:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 struct rbug_proto_texture_read_reply *read,
data/mesa-demos-8.4.0/src/rbug/tex_dump.c:80:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   struct rbug_proto_texture_read_reply *read;
data/mesa-demos-8.4.0/src/rbug/tex_dump.c:113:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         dump(list->textures[i], info, read, j);
data/mesa-demos-8.4.0/src/redbook/font.c:109:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   glCallLists((GLsizei) strlen(s), GL_UNSIGNED_BYTE, (GLubyte *) s);
data/mesa-demos-8.4.0/src/redbook/stroke.c:135: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).
    GLsizei len = (GLsizei) strlen(s);
data/mesa-demos-8.4.0/src/samples/loadppm.c:54:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (fgetc(fp) != '\n')
data/mesa-demos-8.4.0/src/slang/cltest.c:25:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (line[strlen (line) - 1] == '\n')
data/mesa-demos-8.4.0/src/slang/cltest.c:26:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      line[strlen (line) - 1] = '\0';
data/mesa-demos-8.4.0/src/slang/cltest.c:132:16:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
               strcat ((**currprog).vertex.code, "\n");
data/mesa-demos-8.4.0/src/tests/arbfpspec.c:141:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/arbfpspec.c:157:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(fprog), (const GLubyte *) fprog);
data/mesa-demos-8.4.0/src/tests/arbfptest1.c:64:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/arbfptest1.c:77:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if ((errorpos+a < 0) || (errorpos+a >= strlen(prog))) continue;	      
data/mesa-demos-8.4.0/src/tests/arbfptexture.c:113:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/tests/arbfptrig.c:116:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(modulate2D), (const GLubyte *)modulate2D);
data/mesa-demos-8.4.0/src/tests/arbvparray.c:190:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/arbvptest1.c:60:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/arbvptest1.c:73:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if ((errorpos+a < 0) || (errorpos+a >= strlen(prog))) continue;	      
data/mesa-demos-8.4.0/src/tests/arbvptest3.c:98:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/tests/arbvptorus.c:145:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/arbvpwarpmesh.c:202:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen(prog), (const GLubyte *)prog);
data/mesa-demos-8.4.0/src/tests/arraytexture.c:226:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/debugger.c:257:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(inRegs[i]),
data/mesa-demos-8.4.0/src/tests/debugger.c:265:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(outRegs[i]),
data/mesa-demos-8.4.0/src/tests/debugger.c:276:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(temp),
data/mesa-demos-8.4.0/src/tests/debugger.c:301:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(inRegs[i]),
data/mesa-demos-8.4.0/src/tests/debugger.c:309:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(outRegs[i]),
data/mesa-demos-8.4.0/src/tests/debugger.c:320:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                             strlen(temp),
data/mesa-demos-8.4.0/src/tests/debugger.c:345:51:  [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).
               glGetProgramRegisterfvMESA(target, strlen(cmd),
data/mesa-demos-8.4.0/src/tests/debugger.c:472:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  glProgramNamedParameter4fvNV(prog, strlen(name), (const GLubyte *) name, v)
data/mesa-demos-8.4.0/src/tests/debugger.c:668: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).
                   strlen(fragProgramText),
data/mesa-demos-8.4.0/src/tests/debugger.c:680: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).
                   strlen(vertProgramText),
data/mesa-demos-8.4.0/src/tests/drawstencil.c:69:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(program), (const GLubyte *) program);
data/mesa-demos-8.4.0/src/tests/ext422square.c:207:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen(modulateYUV), (const GLubyte *)modulateYUV);
data/mesa-demos-8.4.0/src/tests/fptest1.c:166: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).
                   strlen(prog0),
data/mesa-demos-8.4.0/src/tests/fptest1.c:172: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).
                   strlen(prog1),
data/mesa-demos-8.4.0/src/tests/fptest1.c:177: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).
                   strlen(prog2),
data/mesa-demos-8.4.0/src/tests/fptest1.c:183: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).
                   strlen(prog3),
data/mesa-demos-8.4.0/src/tests/fptest1.c:189: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).
                   strlen(prog4),
data/mesa-demos-8.4.0/src/tests/fptest1.c:197: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).
                   strlen(prog10),
data/mesa-demos-8.4.0/src/tests/fptest1.c:203:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                               strlen("color"), (const GLubyte *) "color",
data/mesa-demos-8.4.0/src/tests/fptexture.c:110: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).
                   strlen(modulate2D),
data/mesa-demos-8.4.0/src/tests/getprocaddress.c:3506:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const int len = strlen(needle);
data/mesa-demos-8.4.0/src/tests/jkrahntest.c:176:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(20000);
data/mesa-demos-8.4.0/src/tests/sharedtex.c:405:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1);
data/mesa-demos-8.4.0/src/tests/vparray.c:190: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).
                   strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/vpeval.c:184:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/vptest1.c:134: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).
                   strlen(prog1),
data/mesa-demos-8.4.0/src/tests/vptest1.c:139: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).
                   strlen(prog2),
data/mesa-demos-8.4.0/src/tests/vptest1.c:144: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).
                   strlen(prog3),
data/mesa-demos-8.4.0/src/tests/vptest1.c:149:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(prog4),
data/mesa-demos-8.4.0/src/tests/vptest1.c:154: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).
                   strlen(prog5),
data/mesa-demos-8.4.0/src/tests/vptest2.c:61: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).
                   strlen(prog),
data/mesa-demos-8.4.0/src/tests/vptest2.c:89: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).
                   strlen(prog),
data/mesa-demos-8.4.0/src/tests/vptest2.c:122: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).
                   strlen(prog),
data/mesa-demos-8.4.0/src/tests/vptest3.c:102: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).
                   strlen(prog1),
data/mesa-demos-8.4.0/src/tests/vptorus.c:137: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).
                   strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/tests/vpwarpmesh.c:196: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).
                   strlen(prog), (const GLubyte *) prog);
data/mesa-demos-8.4.0/src/trivial/draw2arrays.c:37:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/drawarrays.c:48:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/drawelements-large.c:32:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/drawelements.c:41:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/drawrange.c:41:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/lineloop-elts.c:41:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/tri-array-interleaved.c:45:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/tri-fp-const-imm.c:60:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(prog1), (const GLubyte *)prog1);
data/mesa-demos-8.4.0/src/trivial/tri-fp.c:58:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                      strlen(prog1), (const GLubyte *)prog1);
data/mesa-demos-8.4.0/src/trivial/vbo-drawarrays-2101010.c:83:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vbo-drawarrays.c:50:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vbo-drawelements.c:51:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vbo-drawrange.c:53:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vbo-noninterleaved.c:54:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vbo-tri.c:50:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-array-hf.c:135:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-array-int.c:41:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-array.c:41:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-clip.c:26:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-line-clip.c:26:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri-cb-pos.c:47:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri-cb-tex.c:47:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri-cb.c:31:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri-imm.c:27:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri-invariant.c:33:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri-swap.c:27:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri-tex.c:27:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-tri.c:28:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/trivial/vp-unfilled.c:26:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      strlen(prog1), (const GLubyte *) prog1);
data/mesa-demos-8.4.0/src/wgl/wglcontext.c:99:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   int n = strlen(buf);
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:255:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const int len = strlen(extensions[k]);
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:305:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          totalLen += strlen(ext) + 1; /* plus a space */
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:317:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         pos += strlen(ext);
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:334:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         int extLen = strlen(ext);
data/mesa-demos-8.4.0/src/xdemos/glinfo_common.c:851:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         p += strlen(bits[i].name);
data/mesa-demos-8.4.0/src/xdemos/glsync.c:73:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0'))
data/mesa-demos-8.4.0/src/xdemos/glsync.c:73:44:  [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).
	    (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0'))
data/mesa-demos-8.4.0/src/xdemos/glthreads.c:293:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
         usleep(5000);
data/mesa-demos-8.4.0/src/xdemos/glthreads.c:374:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(5000);
data/mesa-demos-8.4.0/src/xdemos/glthreads.c:436:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(5000);
data/mesa-demos-8.4.0/src/xdemos/glxgears.c:581:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   const size_t len = strlen(query);
data/mesa-demos-8.4.0/src/xdemos/glxgears_fbconfig.c:354:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   const size_t len = strlen( ext_name );
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:150:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(displayName) + 1 > sizeof(h->DisplayName)) {
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:162:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(tmp) + 1 > sizeof(h->Version)) {
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:169:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(tmp) + 1 > sizeof(h->Vendor)) {
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:176:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(tmp) + 1 > sizeof(h->Renderer)) {
data/mesa-demos-8.4.0/src/xdemos/glxheads.c:266:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1);
data/mesa-demos-8.4.0/src/xdemos/glxinfo.c:505:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         if (!(displayName = (char *) malloc(strlen(DisplayString(dpy)) + 1))) {
data/mesa-demos-8.4.0/src/xdemos/manywin.c:182:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(name) + 1 > sizeof(h->DisplayName)) {
data/mesa-demos-8.4.0/src/xdemos/manywin.c:194:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(tmp) + 1 > sizeof(h->Version)) {
data/mesa-demos-8.4.0/src/xdemos/manywin.c:201:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(tmp) + 1 > sizeof(h->Vendor)) {
data/mesa-demos-8.4.0/src/xdemos/manywin.c:208:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(tmp) + 1 > sizeof(h->Renderer)) {
data/mesa-demos-8.4.0/src/xdemos/manywin.c:352:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1);
data/mesa-demos-8.4.0/src/xdemos/msctest.c:54:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0'))
data/mesa-demos-8.4.0/src/xdemos/msctest.c:54:44:  [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).
	    (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0'))
data/mesa-demos-8.4.0/src/xdemos/offset.c:334:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *end = p + strlen(p);
data/mesa-demos-8.4.0/src/xdemos/offset.c:337:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((strlen(extName) == n) && (strncmp(extName, p, n) == 0))
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:82:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0'))
data/mesa-demos-8.4.0/src/xdemos/omlsync.c:82:44:  [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).
	    (pos[strlen(extension)] == ' ' || pos[strlen(extension)] == '\0'))
data/mesa-demos-8.4.0/src/xdemos/sharedtex.c:298:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(10000);
data/mesa-demos-8.4.0/src/xdemos/sharedtex_mt.c:177:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(displayName) + 1 > sizeof(h->DisplayName)) {
data/mesa-demos-8.4.0/src/xdemos/sharedtex_mt.c:388:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(1000);
data/mesa-demos-8.4.0/src/xdemos/sharedtex_mt.c:429:10:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
         usleep(10000);
data/mesa-demos-8.4.0/src/xdemos/wincopy.c:267:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      const size_t len = strlen( "GLX_SGI_make_current_read" );
data/mesa-demos-8.4.0/src/xdemos/xfont.c:66:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   glCallLists(strlen(text), GL_UNSIGNED_BYTE, (GLubyte *) text);
data/mesa-demos-8.4.0/src/xdemos/xrotfontdemo.c:74:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      glCallLists(strlen(text), GL_UNSIGNED_BYTE, (GLubyte *) text);
data/mesa-demos-8.4.0/src/xdemos/yuvrect_client.c:90:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *end = p + strlen(p);
data/mesa-demos-8.4.0/src/xdemos/yuvrect_client.c:93:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((strlen(extName) == n) && (strncmp(extName, p, n) == 0))

ANALYSIS SUMMARY:

Hits = 687
Lines analyzed = 188180 in approximately 5.68 seconds (33153 lines/second)
Physical Source Lines of Code (SLOC) = 139784
Hits@level = [0] 4161 [1] 170 [2] 401 [3]  37 [4]  79 [5]   0
Hits@level+ = [0+] 4848 [1+] 687 [2+] 517 [3+] 116 [4+]  79 [5+]   0
Hits/KSLOC@level+ = [0+] 34.6821 [1+] 4.91473 [2+] 3.69856 [3+] 0.829852 [4+] 0.565158 [5+]   0
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.