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/geomview-1.9.5/src/lib/geometry/geomtypes.h Examining data/geomview-1.9.5/src/lib/geometry/cmodel/cm_geometry.c Examining data/geomview-1.9.5/src/lib/geometry/cmodel/cmodel.c Examining data/geomview-1.9.5/src/lib/geometry/cmodel/cmodel_data.c Examining data/geomview-1.9.5/src/lib/geometry/cmodel/cmodel.h Examining data/geomview-1.9.5/src/lib/geometry/cmodel/cmodelP.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/hg4.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/hline3.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/hplane3.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/hpoint3.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/line.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/plane.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/point.h Examining data/geomview-1.9.5/src/lib/geometry/hpoint3/tolerance.h Examining data/geomview-1.9.5/src/lib/geometry/hpointn/hpointn.h Examining data/geomview-1.9.5/src/lib/geometry/point3/polyint.c Examining data/geomview-1.9.5/src/lib/geometry/point3/segments.c Examining data/geomview-1.9.5/src/lib/geometry/point3/point3.h Examining data/geomview-1.9.5/src/lib/geometry/point3/polyint.h Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3align.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3ortho.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3persp.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3perspfov.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3rotate.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3scale.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3tetrad.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/ctm3translate.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3adjoint.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3align.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3concat.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3conjugate.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3copy.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3dual.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3identity.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3invert.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3ortho.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3persp.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3perspfov.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3print.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3rotate.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3scale.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3stack.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3tetrad.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3translate.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3transpose.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/tm3polardecomp.c Examining data/geomview-1.9.5/src/lib/geometry/transform3/3d.h Examining data/geomview-1.9.5/src/lib/geometry/transform3/radians.h Examining data/geomview-1.9.5/src/lib/geometry/transform3/transform3.h Examining data/geomview-1.9.5/src/lib/geometry/transform3/transform.h Examining data/geomview-1.9.5/src/lib/geometry/transformn/tmNpolardecomp.c Examining data/geomview-1.9.5/src/lib/geometry/transformn/transformn.h Examining data/geomview-1.9.5/src/lib/geometry/transobj/transobj.c Examining data/geomview-1.9.5/src/lib/geometry/transobj/transobj.h Examining data/geomview-1.9.5/src/lib/geometry/ntransobj/ntransobj.c Examining data/geomview-1.9.5/src/lib/geometry/ntransobj/ntransobj.h Examining data/geomview-1.9.5/src/lib/camera/camcompat.c Examining data/geomview-1.9.5/src/lib/camera/camera.c Examining data/geomview-1.9.5/src/lib/camera/camstream.c Examining data/geomview-1.9.5/src/lib/camera/camera.h Examining data/geomview-1.9.5/src/lib/camera/cameraP.h Examining data/geomview-1.9.5/src/lib/color/color.c Examining data/geomview-1.9.5/src/lib/color/mergein.c Examining data/geomview-1.9.5/src/lib/color/mergeout.c Examining data/geomview-1.9.5/src/lib/color/mergeover.c Examining data/geomview-1.9.5/src/lib/color/mergeplus.c Examining data/geomview-1.9.5/src/lib/color/mergeunder.c Examining data/geomview-1.9.5/src/lib/color/paintcopy.c Examining data/geomview-1.9.5/src/lib/color/paintover.c Examining data/geomview-1.9.5/src/lib/color/color.h Examining data/geomview-1.9.5/src/lib/color/merge.h Examining data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c Examining data/geomview-1.9.5/src/lib/oogl/lisp/clisp.h Examining data/geomview-1.9.5/src/lib/oogl/lisp/lisp2.h Examining data/geomview-1.9.5/src/lib/oogl/lisp/lisp.h Examining data/geomview-1.9.5/src/lib/oogl/lisp/clisp.c Examining data/geomview-1.9.5/src/lib/oogl/refcomm/handle.c Examining data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c Examining data/geomview-1.9.5/src/lib/oogl/refcomm/handle.h Examining data/geomview-1.9.5/src/lib/oogl/refcomm/handleP.h Examining data/geomview-1.9.5/src/lib/oogl/refcomm/reference.h Examining data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.h Examining data/geomview-1.9.5/src/lib/oogl/util/error.c Examining data/geomview-1.9.5/src/lib/oogl/util/findfile.c Examining data/geomview-1.9.5/src/lib/oogl/util/fsa.c Examining data/geomview-1.9.5/src/lib/oogl/util/futil.c Examining data/geomview-1.9.5/src/lib/oogl/util/glob.c Examining data/geomview-1.9.5/src/lib/oogl/util/mallocp.c Examining data/geomview-1.9.5/src/lib/oogl/util/ppopen.c Examining data/geomview-1.9.5/src/lib/oogl/util/vvec.h Examining data/geomview-1.9.5/src/lib/oogl/util/create.h Examining data/geomview-1.9.5/src/lib/oogl/util/fsa.h Examining data/geomview-1.9.5/src/lib/oogl/util/ooglutil.h Examining data/geomview-1.9.5/src/lib/oogl/util/porting.h Examining data/geomview-1.9.5/src/lib/oogl/util/ray.h Examining data/geomview-1.9.5/src/lib/oogl/util/surf.h Examining data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c Examining data/geomview-1.9.5/src/lib/oogl/util/iobuffer.h Examining data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c Examining data/geomview-1.9.5/src/lib/oogl/util/malloc-debug.c Examining data/geomview-1.9.5/src/lib/oogl/util/dbllist.h Examining data/geomview-1.9.5/src/lib/oogl/util/freelist.h Examining data/geomview-1.9.5/src/lib/oogl/util/time.c Examining data/geomview-1.9.5/src/lib/oogl/wa/wa.lex.c Examining data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.c Examining data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.h Examining data/geomview-1.9.5/src/lib/oogl/wa/wa.h Examining data/geomview-1.9.5/src/lib/oogl/wa/wa.yystype.h Examining data/geomview-1.9.5/src/lib/oogl/wa/y.tab.h Examining data/geomview-1.9.5/src/lib/oogl/wa/y.tab.c Examining data/geomview-1.9.5/src/lib/oogl/wa/lex.yy.c Examining data/geomview-1.9.5/src/lib/shade/appearance.c Examining data/geomview-1.9.5/src/lib/shade/apstream.c Examining data/geomview-1.9.5/src/lib/shade/appearance.h Examining data/geomview-1.9.5/src/lib/shade/texture.c Examining data/geomview-1.9.5/src/lib/shade/material.c Examining data/geomview-1.9.5/src/lib/shade/light.c Examining data/geomview-1.9.5/src/lib/shade/image.c Examining data/geomview-1.9.5/src/lib/window/window.c Examining data/geomview-1.9.5/src/lib/window/winstream.c Examining data/geomview-1.9.5/src/lib/window/window.h Examining data/geomview-1.9.5/src/lib/window/windowP.h Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxbound.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxclass.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxcopy.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxcreate.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxdraw.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxload.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxminmax.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxcenter.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxsave.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxtransform.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxunion.c Examining data/geomview-1.9.5/src/lib/gprim/bbox/bbox.h Examining data/geomview-1.9.5/src/lib/gprim/bbox/bboxP.h Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezbound.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezclass.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezcreate.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezdice.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezdraw.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezevert.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezload.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezpick.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezsave.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezsphere.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/beztransform.c Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezier.h Examining data/geomview-1.9.5/src/lib/gprim/bezier/bezierP.h Examining data/geomview-1.9.5/src/lib/gprim/comment/commentclass.c Examining data/geomview-1.9.5/src/lib/gprim/comment/commentcreate.c Examining data/geomview-1.9.5/src/lib/gprim/comment/commentsave.c Examining data/geomview-1.9.5/src/lib/gprim/comment/commentstream.c Examining data/geomview-1.9.5/src/lib/gprim/comment/comment.h Examining data/geomview-1.9.5/src/lib/gprim/comment/commentP.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/colormap.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/complex.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgbound.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgclass.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgconstraint.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgcopy.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgcreate.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgdelete.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgdirdom.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgdraw.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgenum.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgevert.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgmisc.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgpick.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgsave.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgtransform.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dhpoint3.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/matlist.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/outstack.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/polyhedron.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/projective.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/stack.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/util.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/weeks_dirdom.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/xform.c Examining data/geomview-1.9.5/src/lib/gprim/discgrp/complex.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/dgflag.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/discgrp.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/discgrpP.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/enum.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/extern.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/options.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/projective.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/vec4.h Examining data/geomview-1.9.5/src/lib/gprim/discgrp/winged_edge.h Examining data/geomview-1.9.5/src/lib/gprim/geom/bound.c Examining data/geomview-1.9.5/src/lib/gprim/geom/boundsphere.c Examining data/geomview-1.9.5/src/lib/gprim/geom/class.c Examining data/geomview-1.9.5/src/lib/gprim/geom/copy.c Examining data/geomview-1.9.5/src/lib/gprim/geom/create.c Examining data/geomview-1.9.5/src/lib/gprim/geom/delete.c Examining data/geomview-1.9.5/src/lib/gprim/geom/dice.c Examining data/geomview-1.9.5/src/lib/gprim/geom/draw.c Examining data/geomview-1.9.5/src/lib/gprim/geom/evert.c Examining data/geomview-1.9.5/src/lib/gprim/geom/extend.c Examining data/geomview-1.9.5/src/lib/gprim/geom/geomstream.c Examining data/geomview-1.9.5/src/lib/gprim/geom/handlescan.c Examining data/geomview-1.9.5/src/lib/gprim/geom/iterate.c Examining data/geomview-1.9.5/src/lib/gprim/geom/knownclass.c Examining data/geomview-1.9.5/src/lib/gprim/geom/message.c Examining data/geomview-1.9.5/src/lib/gprim/geom/name.c Examining data/geomview-1.9.5/src/lib/gprim/geom/pick.c Examining data/geomview-1.9.5/src/lib/gprim/geom/replace.c Examining data/geomview-1.9.5/src/lib/gprim/geom/transform.c Examining data/geomview-1.9.5/src/lib/gprim/geom/geomclass.h Examining data/geomview-1.9.5/src/lib/gprim/geom/geomclass_sm.h Examining data/geomview-1.9.5/src/lib/gprim/geom/geom.h Examining data/geomview-1.9.5/src/lib/gprim/geom/pick.h Examining data/geomview-1.9.5/src/lib/gprim/geom/pickP.h Examining data/geomview-1.9.5/src/lib/gprim/geom/vert.h Examining data/geomview-1.9.5/src/lib/gprim/geom/bsptree.c Examining data/geomview-1.9.5/src/lib/gprim/geom/bsptree.h Examining data/geomview-1.9.5/src/lib/gprim/geom/bsptreeP.h Examining data/geomview-1.9.5/src/lib/gprim/geom/nodedata.h Examining data/geomview-1.9.5/src/lib/gprim/inst/instbound.c Examining data/geomview-1.9.5/src/lib/gprim/inst/instclass.c Examining data/geomview-1.9.5/src/lib/gprim/inst/instcreate.c Examining data/geomview-1.9.5/src/lib/gprim/inst/instdraw.c Examining data/geomview-1.9.5/src/lib/gprim/inst/instmisc.c Examining data/geomview-1.9.5/src/lib/gprim/inst/instpick.c Examining data/geomview-1.9.5/src/lib/gprim/inst/instsphere.c Examining data/geomview-1.9.5/src/lib/gprim/inst/inststream.c Examining data/geomview-1.9.5/src/lib/gprim/inst/inst.h Examining data/geomview-1.9.5/src/lib/gprim/inst/instP.h Examining data/geomview-1.9.5/src/lib/gprim/lincoln/lincolnclass.c Examining data/geomview-1.9.5/src/lib/gprim/lincoln/lincolnload.c Examining data/geomview-1.9.5/src/lib/gprim/lincoln/lincolndefs.h Examining data/geomview-1.9.5/src/lib/gprim/lincoln/lincoln.h Examining data/geomview-1.9.5/src/lib/gprim/list/listclass.c Examining data/geomview-1.9.5/src/lib/gprim/list/listcreate.c Examining data/geomview-1.9.5/src/lib/gprim/list/listdraw.c Examining data/geomview-1.9.5/src/lib/gprim/list/listmisc.c Examining data/geomview-1.9.5/src/lib/gprim/list/listpick.c Examining data/geomview-1.9.5/src/lib/gprim/list/listsphere.c Examining data/geomview-1.9.5/src/lib/gprim/list/liststream.c Examining data/geomview-1.9.5/src/lib/gprim/list/list.h Examining data/geomview-1.9.5/src/lib/gprim/list/listP.h Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshbound.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshclass.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshcopy.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshcreate.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshdelete.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshdice.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshdraw.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshevert.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshload.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshnormal.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshpick.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshsave.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshsphere.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshtransform.c Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshflag.h Examining data/geomview-1.9.5/src/lib/gprim/mesh/mesh.h Examining data/geomview-1.9.5/src/lib/gprim/mesh/meshP.h Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshbound.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshclass.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshcreate.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshdraw.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshload.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshsave.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshtransform.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshsphere.c Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshflag.h Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmesh.h Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshP.h Examining data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshpick.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplbound.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplclass.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplcopy.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplcreate.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/npldraw.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplload.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplsave.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/npolylist.h Examining data/geomview-1.9.5/src/lib/gprim/npolylist/npolylistP.h Examining data/geomview-1.9.5/src/lib/gprim/npolylist/npltransform.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplsphere.c Examining data/geomview-1.9.5/src/lib/gprim/npolylist/nplpick.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plbound.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plclass.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plcopy.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plcreate.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/pldraw.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plevert.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plload.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plnormal.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plpick.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plsave.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/plsphere.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/pltransform.c Examining data/geomview-1.9.5/src/lib/gprim/polylist/polylist.h Examining data/geomview-1.9.5/src/lib/gprim/polylist/polylistP.h Examining data/geomview-1.9.5/src/lib/gprim/quad/quadbound.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadclass.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadcopy.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadcreate.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quaddelete.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quaddraw.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadevert.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadload.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadnormal.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadpick.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadsave.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadsphere.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quadtransform.c Examining data/geomview-1.9.5/src/lib/gprim/quad/quad.h Examining data/geomview-1.9.5/src/lib/gprim/quad/quadP.h Examining data/geomview-1.9.5/src/lib/gprim/skel/skelbound.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skelclass.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skeldraw.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skelload.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skelpick.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skelsave.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skeltransform.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skelsphere.c Examining data/geomview-1.9.5/src/lib/gprim/skel/skel.h Examining data/geomview-1.9.5/src/lib/gprim/skel/skelP.h Examining data/geomview-1.9.5/src/lib/gprim/sphere/sphereclass.c Examining data/geomview-1.9.5/src/lib/gprim/sphere/spherecreate.c Examining data/geomview-1.9.5/src/lib/gprim/sphere/sphereload.c Examining data/geomview-1.9.5/src/lib/gprim/sphere/spheremisc.c Examining data/geomview-1.9.5/src/lib/gprim/sphere/spheresave.c Examining data/geomview-1.9.5/src/lib/gprim/sphere/sphere.h Examining data/geomview-1.9.5/src/lib/gprim/sphere/sphereP.h Examining data/geomview-1.9.5/src/lib/gprim/sphere/spheredice.c Examining data/geomview-1.9.5/src/lib/gprim/sphere/spheredraw.c Examining data/geomview-1.9.5/src/lib/gprim/stub/bbox.c Examining data/geomview-1.9.5/src/lib/gprim/stub/bezier.c Examining data/geomview-1.9.5/src/lib/gprim/stub/bezierlist.c Examining data/geomview-1.9.5/src/lib/gprim/stub/comment.c Examining data/geomview-1.9.5/src/lib/gprim/stub/discgrp.c Examining data/geomview-1.9.5/src/lib/gprim/stub/inst.c Examining data/geomview-1.9.5/src/lib/gprim/stub/lincoln.c Examining data/geomview-1.9.5/src/lib/gprim/stub/list.c Examining data/geomview-1.9.5/src/lib/gprim/stub/mesh.c Examining data/geomview-1.9.5/src/lib/gprim/stub/ndmesh.c Examining data/geomview-1.9.5/src/lib/gprim/stub/npolylist.c Examining data/geomview-1.9.5/src/lib/gprim/stub/polylist.c Examining data/geomview-1.9.5/src/lib/gprim/stub/quad.c Examining data/geomview-1.9.5/src/lib/gprim/stub/skel.c Examining data/geomview-1.9.5/src/lib/gprim/stub/sphere.c Examining data/geomview-1.9.5/src/lib/gprim/stub/stub.c Examining data/geomview-1.9.5/src/lib/gprim/stub/stubdraw.c Examining data/geomview-1.9.5/src/lib/gprim/stub/tlist.c Examining data/geomview-1.9.5/src/lib/gprim/stub/vect.c Examining data/geomview-1.9.5/src/lib/gprim/stub/stub.h Examining data/geomview-1.9.5/src/lib/gprim/tlist/tlclass.c Examining data/geomview-1.9.5/src/lib/gprim/tlist/tlcreate.c Examining data/geomview-1.9.5/src/lib/gprim/tlist/tlstream.c Examining data/geomview-1.9.5/src/lib/gprim/tlist/tltransform.c Examining data/geomview-1.9.5/src/lib/gprim/tlist/tlist.h Examining data/geomview-1.9.5/src/lib/gprim/tlist/tlistP.h Examining data/geomview-1.9.5/src/lib/gprim/vect/vectbound.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vectclass.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vectdraw.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vectload.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vectpick.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vectsave.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vectsphere.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vecttransform.c Examining data/geomview-1.9.5/src/lib/gprim/vect/vect.h Examining data/geomview-1.9.5/src/lib/gprim/vect/vectP.h Examining data/geomview-1.9.5/src/lib/fexpr/binfuncs.c Examining data/geomview-1.9.5/src/lib/fexpr/complex.c Examining data/geomview-1.9.5/src/lib/fexpr/evaluate.c Examining data/geomview-1.9.5/src/lib/fexpr/exprs.c Examining data/geomview-1.9.5/src/lib/fexpr/lex.yy.c Examining data/geomview-1.9.5/src/lib/fexpr/monfuncs.c Examining data/geomview-1.9.5/src/lib/fexpr/parse.tab.c Examining data/geomview-1.9.5/src/lib/fexpr/real.c Examining data/geomview-1.9.5/src/lib/fexpr/vars.c Examining data/geomview-1.9.5/src/lib/fexpr/fexpr.h Examining data/geomview-1.9.5/src/lib/fexpr/parse.tab.h Examining data/geomview-1.9.5/src/lib/fexpr/fexprnew.h Examining data/geomview-1.9.5/src/lib/geomutil/bdy/bdy.c Examining data/geomview-1.9.5/src/lib/geomutil/bdy/bdy.h Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayBezier.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayInst.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayList.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayMesh.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayPolylist.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayNPolylist.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayQuad.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayVect.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/craySkel.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayola.c Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayola.h Examining data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayolaP.h Examining data/geomview-1.9.5/src/lib/geomutil/dim/dim.c Examining data/geomview-1.9.5/src/lib/geomutil/dim/dim.h Examining data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c Examining data/geomview-1.9.5/src/lib/geomutil/plutil/plcombine.c Examining data/geomview-1.9.5/src/lib/geomutil/plutil/plconsol.c Examining data/geomview-1.9.5/src/lib/geomutil/plutil/plutil.h Examining data/geomview-1.9.5/src/lib/pointlist/pointlist.c Examining data/geomview-1.9.5/src/lib/pointlist/ptlBezier.c Examining data/geomview-1.9.5/src/lib/pointlist/ptlInst.c Examining data/geomview-1.9.5/src/lib/pointlist/ptlList.c Examining data/geomview-1.9.5/src/lib/pointlist/ptlMesh.c Examining data/geomview-1.9.5/src/lib/pointlist/ptlPolylist.c Examining data/geomview-1.9.5/src/lib/pointlist/ptlQuad.c Examining data/geomview-1.9.5/src/lib/pointlist/ptlVect.c Examining data/geomview-1.9.5/src/lib/pointlist/pointlist.h Examining data/geomview-1.9.5/src/lib/pointlist/pointlistP.h Examining data/geomview-1.9.5/src/lib/mg/mgP.h Examining data/geomview-1.9.5/src/lib/mg/buf/mgbuf.c Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufclip.c Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufdraw.c Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufrender24.c Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufrender.c Examining data/geomview-1.9.5/src/lib/mg/buf/mgbuf.h Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufP.h Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufrender24.h Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufrender.h Examining data/geomview-1.9.5/src/lib/mg/buf/mgbufwindows.h Examining data/geomview-1.9.5/src/lib/mg/buf/MGRdolines.h Examining data/geomview-1.9.5/src/lib/mg/buf/MGRline.h Examining data/geomview-1.9.5/src/lib/mg/buf/MGRpolyscan.h Examining data/geomview-1.9.5/src/lib/mg/common/mg.c Examining data/geomview-1.9.5/src/lib/mg/common/mgshade.c Examining data/geomview-1.9.5/src/lib/mg/common/mgtexture.c Examining data/geomview-1.9.5/src/lib/mg/common/mg.h Examining data/geomview-1.9.5/src/lib/mg/common/mgP.h Examining data/geomview-1.9.5/src/lib/mg/ps/mgps.c Examining data/geomview-1.9.5/src/lib/mg/ps/mgpsclip.c Examining data/geomview-1.9.5/src/lib/mg/ps/mgpsdraw.c Examining data/geomview-1.9.5/src/lib/mg/ps/mgpstri.c Examining data/geomview-1.9.5/src/lib/mg/ps/mgpswindows.c Examining data/geomview-1.9.5/src/lib/mg/ps/mgps.h Examining data/geomview-1.9.5/src/lib/mg/ps/mgpsP.h Examining data/geomview-1.9.5/src/lib/mg/ps/mgpstri.h Examining data/geomview-1.9.5/src/lib/mg/ps/mgpswindows.h Examining data/geomview-1.9.5/src/lib/mg/rib/mgrib.c Examining data/geomview-1.9.5/src/lib/mg/rib/mgribdraw.c Examining data/geomview-1.9.5/src/lib/mg/rib/mgribmesh.c Examining data/geomview-1.9.5/src/lib/mg/rib/mgribshade.c Examining data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c Examining data/geomview-1.9.5/src/lib/mg/rib/mgributil.c Examining data/geomview-1.9.5/src/lib/mg/rib/mgrib.h Examining data/geomview-1.9.5/src/lib/mg/rib/mgribP.h Examining data/geomview-1.9.5/src/lib/mg/rib/mgribshade.h Examining data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.h Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopengl.c Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopengldraw.c Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopenglmesh.c Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopenglshade.c Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopengl.h Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopenglP.h Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopenglshade.h Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopenglstipple.c Examining data/geomview-1.9.5/src/lib/mg/opengl/mgopenglstipple.h Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11clip.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11dither.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11draw.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11render1.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11render16.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11render8.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11shade.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11visual.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11windows.c Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11.h Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11P.h Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11render1.h Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11render16.h Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11render8.h Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11shade.h Examining data/geomview-1.9.5/src/lib/mg/x11/mgx11windows.h Examining data/geomview-1.9.5/src/lib/mib/mibButton.c Examining data/geomview-1.9.5/src/lib/mib/mibDrawArea.c Examining data/geomview-1.9.5/src/lib/mib/mibFrame.c Examining data/geomview-1.9.5/src/lib/mib/mibLabel.c Examining data/geomview-1.9.5/src/lib/mib/mibList.c Examining data/geomview-1.9.5/src/lib/mib/mibload.c Examining data/geomview-1.9.5/src/lib/mib/mibMenu.c Examining data/geomview-1.9.5/src/lib/mib/mibRadioBox.c Examining data/geomview-1.9.5/src/lib/mib/mibScale.c Examining data/geomview-1.9.5/src/lib/mib/mibScrollBar.c Examining data/geomview-1.9.5/src/lib/mib/mibTextBig.c Examining data/geomview-1.9.5/src/lib/mib/mibTextBox.c Examining data/geomview-1.9.5/src/lib/mib/mibToggle.c Examining data/geomview-1.9.5/src/lib/mib/mibload.h Examining data/geomview-1.9.5/src/lib/mib/mibwidgets.h Examining data/geomview-1.9.5/src/lib/forms/xforms-compat.h Examining data/geomview-1.9.5/src/lib/aclib/popen.c Examining data/geomview-1.9.5/src/lib/aclib/lstat.c Examining data/geomview-1.9.5/src/lib/aclib/fmemopen.c Examining data/geomview-1.9.5/src/lib/aclib/putenv.c Examining data/geomview-1.9.5/src/lib/aclib/strtod.c Examining data/geomview-1.9.5/src/lib/aclib/strncasecmp.c Examining data/geomview-1.9.5/src/lib/aclib/strcasecmp.c Examining data/geomview-1.9.5/src/lib/aclib/strdup.c Examining data/geomview-1.9.5/src/lib/aclib/memcmp.c Examining data/geomview-1.9.5/src/lib/aclib/obstack.h Examining data/geomview-1.9.5/src/lib/aclib/obstack.c Examining data/geomview-1.9.5/src/lib/aclib/acosh.c Examining data/geomview-1.9.5/src/lib/aclib/stat.c Examining data/geomview-1.9.5/src/lib/aclib/alloca.c Examining data/geomview-1.9.5/src/bin/geomview/clang.c Examining data/geomview-1.9.5/src/bin/geomview/clang.h Examining data/geomview-1.9.5/src/bin/geomview/common/comm.c Examining data/geomview-1.9.5/src/bin/geomview/common/comm.h Examining data/geomview-1.9.5/src/bin/geomview/common/common.h Examining data/geomview-1.9.5/src/bin/geomview/common/drawer.c Examining data/geomview-1.9.5/src/bin/geomview/common/drawer.h Examining data/geomview-1.9.5/src/bin/geomview/common/event.c Examining data/geomview-1.9.5/src/bin/geomview/common/event.h Examining data/geomview-1.9.5/src/bin/geomview/common/help.c Examining data/geomview-1.9.5/src/bin/geomview/common/lang.c Examining data/geomview-1.9.5/src/bin/geomview/common/lang.h Examining data/geomview-1.9.5/src/bin/geomview/common/lights.c Examining data/geomview-1.9.5/src/bin/geomview/common/lights.h Examining data/geomview-1.9.5/src/bin/geomview/common/lispext.c Examining data/geomview-1.9.5/src/bin/geomview/common/lispext.h Examining data/geomview-1.9.5/src/bin/geomview/common/main.c Examining data/geomview-1.9.5/src/bin/geomview/common/main.h Examining data/geomview-1.9.5/src/bin/geomview/common/motion.c Examining data/geomview-1.9.5/src/bin/geomview/common/motion.h Examining data/geomview-1.9.5/src/bin/geomview/common/mouse.c Examining data/geomview-1.9.5/src/bin/geomview/common/mouse.h Examining data/geomview-1.9.5/src/bin/geomview/common/ndshade.c Examining data/geomview-1.9.5/src/bin/geomview/common/pickfunc.h Examining data/geomview-1.9.5/src/bin/geomview/common/rman.c Examining data/geomview-1.9.5/src/bin/geomview/common/rman.h Examining data/geomview-1.9.5/src/bin/geomview/common/shaders.c Examining data/geomview-1.9.5/src/bin/geomview/common/space.c Examining data/geomview-1.9.5/src/bin/geomview/common/space.h Examining data/geomview-1.9.5/src/bin/geomview/common/transform.c Examining data/geomview-1.9.5/src/bin/geomview/common/transform.h Examining data/geomview-1.9.5/src/bin/geomview/common/ui.c Examining data/geomview-1.9.5/src/bin/geomview/common/ui.h Examining data/geomview-1.9.5/src/bin/geomview/common/version.h Examining data/geomview-1.9.5/src/bin/geomview/common/worldio.c Examining data/geomview-1.9.5/src/bin/geomview/common/worldio.h Examining data/geomview-1.9.5/src/bin/geomview/x11/gvappear.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvcameras.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvcolor.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvcommands.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvcredits.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvevent.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvfiles.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvlights.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvload.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvmain.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvmaterial.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvsave.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvtoolui.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvui.c Examining data/geomview-1.9.5/src/bin/geomview/x11/gvui.h Examining data/geomview-1.9.5/src/bin/togeomview/togeomview.c Examining data/geomview-1.9.5/src/bin/geomutil/bdy/bdy.c Examining data/geomview-1.9.5/src/bin/geomutil/oogl2rib/oogl2rib.c Examining data/geomview-1.9.5/src/bin/geomutil/plutil/anytooff.main.c Examining data/geomview-1.9.5/src/bin/geomutil/plutil/bez2mesh.c Examining data/geomview-1.9.5/src/bin/geomutil/plutil/offconsol.main.c Examining data/geomview-1.9.5/src/bin/geomutil/plutil/polymerge.c Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/vrml2oogl.C Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvAsciiText.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvChildList.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCone.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCoordinate3.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCube.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCylinder.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDB.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDebugError.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDict.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDirectionalLight.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvElement.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFontStyle.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvGroup.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvIndexedFaceSet.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvIndexedLineSet.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInfo.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvLists.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvLOD.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFColor.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFFloat.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFLong.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFString.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec2f.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec3f.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMaterial.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMaterialBinding.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMatrixTransform.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvName.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNormal.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNormalBinding.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvOrthographicCamera.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPList.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPerspectiveCamera.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPointLight.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPointSet.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvReadError.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvRotation.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBitMask.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBool.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFColor.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFEnum.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFFloat.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFImage.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFLong.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFRotation.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFString.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec2f.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec3f.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvScale.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSeparator.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvShapeHints.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSphere.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSpotLight.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvState.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSwitch.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTexture2.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTexture2Transform.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTextureCoordinate2.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTransform.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTransformSeparator.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTranslation.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTraverse.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvUnknownNode.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvWWWAnchor.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvWWWInline.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvAsciiText.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvBasic.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvChildList.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCone.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCoordinate3.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCube.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvCylinder.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDB.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDebugError.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDict.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDirectionalLight.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvElement.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFields.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFontStyle.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvGroup.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvIndexedFaceSet.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvIndexedLineSet.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInfo.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvLOD.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvLists.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFColor.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFFloat.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFLong.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFString.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec2f.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec3f.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMaterial.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMaterialBinding.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMatrixTransform.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNodes.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNormal.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNormalBinding.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvOrthographicCamera.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPList.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPerspectiveCamera.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPointLight.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvPointSet.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvReadError.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvRotation.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBitMask.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBool.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFColor.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFEnum.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFFloat.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFImage.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFLong.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFRotation.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFString.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec2f.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec3f.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvScale.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSeparator.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvShapeHints.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSphere.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSpotLight.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvState.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSubField.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSubNode.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSwitch.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTexture2.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTexture2Transform.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTextureCoordinate2.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTransform.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTransformSeparator.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvTranslation.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvUnknownNode.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvWWWAnchor.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvWWWInline.h Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/Qv.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvErrors.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFields.c++ Examining data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNodes.c++ Examining data/geomview-1.9.5/src/bin/geomutil/clip/clip.c Examining data/geomview-1.9.5/src/bin/geomutil/clip/clipoogl.c Examining data/geomview-1.9.5/src/bin/geomutil/clip/clipmain.c Examining data/geomview-1.9.5/src/bin/geomutil/clip/Clip.h Examining data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c Examining data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml.c Examining data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c Examining data/geomview-1.9.5/src/bin/geomutil/ucd/make_frame.c Examining data/geomview-1.9.5/src/bin/geomutil/ucd/stack.c Examining data/geomview-1.9.5/src/bin/geomutil/ucd/vec4.h Examining data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c Examining data/geomview-1.9.5/src/bin/geomutil/ucd/ucd_defs.h Examining data/geomview-1.9.5/src/bin/geomutil/ucd/anytoucd.c Examining data/geomview-1.9.5/src/bin/animate/animate.c Examining data/geomview-1.9.5/src/bin/animate/xanimate.c Examining data/geomview-1.9.5/src/bin/animate/glob.c Examining data/geomview-1.9.5/src/bin/animate/animate.h Examining data/geomview-1.9.5/src/bin/animate/glob.h Examining data/geomview-1.9.5/src/bin/animate/xanimate.h Examining data/geomview-1.9.5/src/bin/clipboard/clipboard.c Examining data/geomview-1.9.5/src/bin/clipboard/clipx.c Examining data/geomview-1.9.5/src/bin/clipboard/clip.h Examining data/geomview-1.9.5/src/bin/nose/nose.c Examining data/geomview-1.9.5/doc/example1.c Examining data/geomview-1.9.5/doc/example2.c Examining data/geomview-1.9.5/doc/example3.c FINAL RESULTS: data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:196:2: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(todir, 0777); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:228:6: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(pipename, 0666); data/geomview-1.9.5/src/bin/geomview/common/comm.c:1616:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(pipedir, 0777); data/geomview-1.9.5/src/bin/geomview/common/comm.c:1634:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(pipename, 0666); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:259:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(todir, 0777); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:356:7: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(pipename, 0666); data/geomview-1.9.5/src/bin/animate/animate.c:385:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf( stdout, command, num); data/geomview-1.9.5/src/bin/animate/animate.c:591:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(command,"%s",str); data/geomview-1.9.5/src/bin/animate/glob.c:199:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(gpath, gpath + 1); data/geomview-1.9.5/src/bin/animate/glob.c:216:16: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(gpath, home); data/geomview-1.9.5/src/bin/animate/glob.c:339: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). (void) strcpy(lm, pl); data/geomview-1.9.5/src/bin/animate/glob.c:340:10: [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). (void) strcat(restbuf, pe + 1); data/geomview-1.9.5/src/bin/animate/glob.c:692:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(ep, cp); data/geomview-1.9.5/src/bin/animate/glob.c:693:9: [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). (void) strcat(ep, dp); data/geomview-1.9.5/src/bin/animate/glob.c:733:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). (void) strcpy(home, pp->pw_dir); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:173:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(gvpath[0], &args[0]); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:177:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp("geomview", &args[0]); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:178:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp("gv", &args[0]); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:194:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(todir, W_OK) < 0) { data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:198:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pipename, "%s/%s", todir, toname); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:226:5: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(pipename, 0) < 0) { data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:356: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 (lastline->data, buf); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:69: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(f, fmt, ap); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:79: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(f, fmt, ap); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:91: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(f, fmt, ap); data/geomview-1.9.5/src/bin/geomutil/plutil/anytooff.main.c:79:2: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, Usage, prog); data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:76:27: [4] (buffer) scanf: 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. __attribute__((format(scanf, 2, 3))); data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:85:14: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. result = vfscanf(file, format, ap); data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:90:21: [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. # define ign_fscanf fscanf data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDebugError.c++:12:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buf, formatString, ap); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:366:6: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp("gzip", "gzip", "-d", NULL); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:367:6: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp("compress", "compress", "-d", NULL); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvName.c++:71:6: [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(chunk->curByte, s); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvReadError.c++:13:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buf, formatString, ap); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.c++:19:2: [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(newString, string); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.c++:83: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(string, str); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.c++:92:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(string, str); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:806:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out, "%s %s %s %s\n", colstr, colstr, colstr, colstr); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:837:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out, "%s %s %s %s\n", colstr, colstr, colstr, colstr); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:867:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out, "%s %s %s %s\n", colstr, colstr, colstr, colstr); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1304:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(str, 0) >= 0) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1320:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(buf, 0) >= 0) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1361:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "hvectext -s %g -align %s -plane xy -at 0 %g 0 ", data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1366:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf + strlen(buf), "-hershey %s ", font); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1376:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. f = popen(buf, "r"); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1408:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out, "{ : %s }", name.value.getString()); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1416:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out, "{ COMMENT url.%d WWWInline { \"%s\" }}", data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1432:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(out, "wwwanchor.%d HREF { \"%s\" } }\n", mypid, data/geomview-1.9.5/src/bin/geomview/common/comm.c:201:32: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (strcmp(str, "-") == 0 || access(str, 0) == 0) { data/geomview-1.9.5/src/bin/geomview/common/comm.c:316:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s=%s", name, string); data/geomview-1.9.5/src/bin/geomview/common/comm.c:634:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s/%.*s", dir, len, program); data/geomview-1.9.5/src/bin/geomview/common/comm.c:636:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(path, X_OK) == 0) { data/geomview-1.9.5/src/bin/geomview/common/comm.c:638:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(path, program + len); data/geomview-1.9.5/src/bin/geomview/common/comm.c:691:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(envbuf, "PATH=%s:%s", em->dir, getenv("PATH")); data/geomview-1.9.5/src/bin/geomview/common/comm.c:699:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(envbuf, "PATH=%s", getenv("PATH")); data/geomview-1.9.5/src/bin/geomview/common/comm.c:703:2: [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, VVEC(vv_emodule_path, char *)[i]); data/geomview-1.9.5/src/bin/geomview/common/comm.c:716:5: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("/bin/sh", "sh", "-c", program, NULL); data/geomview-1.9.5/src/bin/geomview/common/comm.c:1442: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(un.sun_path, name); data/geomview-1.9.5/src/bin/geomview/common/comm.c:1608: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(pdir, suffix); data/geomview-1.9.5/src/bin/geomview/common/comm.c:1614:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pipename, "%s/%s", pipedir, suffix); data/geomview-1.9.5/src/bin/geomview/common/comm.c:1631:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(pipename, 0) < 0) { data/geomview-1.9.5/src/bin/geomview/common/drawer.c:2673:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(window_name, "geomview %s", view_name); data/geomview-1.9.5/src/bin/geomview/common/help.c:72:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(helper, PATH_MAX, langfile, docdir, lang); data/geomview-1.9.5/src/bin/geomview/common/help.c:76:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(helper, PATH_MAX, dfltfile, docdir); data/geomview-1.9.5/src/bin/geomview/common/help.c:84:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. dummy = system(helper); data/geomview-1.9.5/src/bin/geomview/common/lang.c:279:12: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. status = system(cmd); data/geomview-1.9.5/src/bin/geomview/common/lang.c:378:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, buildinfographics ? "%s-%s" : "%s", data/geomview-1.9.5/src/bin/geomview/common/main.c:155: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(cmd, first); data/geomview-1.9.5/src/bin/geomview/common/main.c:161:7: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(cmd, next); data/geomview-1.9.5/src/bin/geomview/common/main.c:168:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(new.name, "%s %s", firstname, cmd+baselen); data/geomview-1.9.5/src/bin/geomview/common/main.c:346:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(geomview_system_initfile, R_OK) == 0) { data/geomview-1.9.5/src/bin/geomview/common/main.c:356:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(homefile,"%s/%s", userhome, initfilename); data/geomview-1.9.5/src/bin/geomview/common/main.c:357:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dotfile,"./%s", initfilename); data/geomview-1.9.5/src/bin/geomview/common/main.c:364:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(homefile, R_OK) == 0) data/geomview-1.9.5/src/bin/geomview/common/main.c:373:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(dotfile, R_OK) == 0) data/geomview-1.9.5/src/bin/geomview/common/rman.c:168:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fname, "%s", filename); data/geomview-1.9.5/src/bin/geomview/common/rman.c:173:2: [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, filename); data/geomview-1.9.5/src/bin/geomview/common/rman.c:179:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fname, "%s%04d.rib", fileprefix, rman.seqno); data/geomview-1.9.5/src/bin/geomview/common/rman.c:180:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(displayname, "%s%04d.tiff", fileprefix, rman.seqno); data/geomview-1.9.5/src/bin/geomview/common/rman.c:191: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(displayname, fname); data/geomview-1.9.5/src/bin/geomview/common/space.c:90:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(label, fmt, dv->name[1], extra); data/geomview-1.9.5/src/bin/geomview/common/worldio.c:273:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(name, "[%s]", dg->name[0]); /* Temporary name -- unlikely to conflict */ data/geomview-1.9.5/src/bin/geomview/common/worldio.c:612:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pat, "%s/.geomview-*", emodule_path[i]); data/geomview-1.9.5/src/bin/geomview/common/worldio.c:615:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(*fp, R_OK) == 0) { data/geomview-1.9.5/src/bin/geomview/common/worldio.c:860:27: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. f = (fname[0] == '|') ? popen(fname+1, "wb") : fopen(fname, "wb"); data/geomview-1.9.5/src/bin/geomview/x11/gvcameras.c:420:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(lastcamname, "%s", name); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:754:28: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (fname[0] == '|') f = popen(fname+1, "w"); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:867:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. f = popen(fname+1, "w"); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1013:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. f = popen(fname+1, "w"); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1111:5: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp("scrsave", "scrsave", fname, x0, x1, y0, y1, NULL); data/geomview-1.9.5/src/bin/geomview/x11/gvfiles.c:133:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dirmask,"%s/*", temp); data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:486:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(gvtitle, "Geomview %s", geomview_version); data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:690:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, obj->name[0]); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:976: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(c,num); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:141:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(progtorun[0], &args[0]); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:142:5: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp("gv", &args[0]); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:257:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(todir, W_OK) < 0) { data/geomview-1.9.5/src/bin/togeomview/togeomview.c:261:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pipename, "%s/%s", todir, toname); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:276:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pipename, "%s:%s", hostname, portstr); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:354:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(pipename, 0) < 0) { data/geomview-1.9.5/src/lib/aclib/popen.c:33:7: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE *popen(char *name, char *mode) { data/geomview-1.9.5/src/lib/fexpr/lex.yy.c:674:59: [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). { fparse_yylval.string = malloc(strlen(fparse_yytext)+1); strcpy (fparse_yylval.string, fparse_yytext); return IDENT; } data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:162:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"Undefined unary function: %s",s); data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:179:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"Undefined binary function: %s",s); data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:258:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"Undefined variable: %s", s); data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:1052:4: [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(msg, count == 0 ? ", expecting `" : " or `"); data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:1053:4: [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(msg, fparse_yytname[x]); data/geomview-1.9.5/src/lib/fexpr/vars.c:54: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 (e->varnames[e->nvars],name); data/geomview-1.9.5/src/lib/gprim/comment/commentcreate.c:65: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(nc->name, comment->name); data/geomview-1.9.5/src/lib/gprim/comment/commentcreate.c:66: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(nc->type, comment->type); data/geomview-1.9.5/src/lib/gprim/comment/commentcreate.c:68: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(nc->data, comment->data); data/geomview-1.9.5/src/lib/gprim/comment/commentstream.c:87: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(comment->name, str); data/geomview-1.9.5/src/lib/gprim/comment/commentstream.c:90: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(comment->type, str); data/geomview-1.9.5/src/lib/gprim/discgrp/dgcreate.c:114:6: [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(dgellist->el_list[i].word, wordin[i]); data/geomview-1.9.5/src/lib/gprim/discgrp/dgenum.c:176: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(dgel->word, word); data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c:223:2: [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(dgellist->el_list[i].word, name); data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c:397:6: [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(discgrp->gens->el_list[i].word,name); data/geomview-1.9.5/src/lib/gprim/discgrp/stack.c:87: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(new->word, word); data/geomview-1.9.5/src/lib/gprim/inst/instdraw.c:43:24: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. TmCoord (*coords2W(int system, TransformPtr T))[4] data/geomview-1.9.5/src/lib/gprim/inst/instdraw.c:48:10: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. switch(system) { data/geomview-1.9.5/src/lib/gprim/inst/instpick.c:39:33: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. static TmCoord (*coords2NDC(int system, Pick *p, Transform Tl2n))[4] data/geomview-1.9.5/src/lib/gprim/inst/instpick.c:41:10: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. switch(system) { data/geomview-1.9.5/src/lib/gprim/skel/skelsave.c:63:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f, s->pdim==4 ? "SKEL" : "nSKEL %d", s->pdim-1); data/geomview-1.9.5/src/lib/mg/buf/mgbuf.c:327:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_mgbufc->filepath, NEXT(char *)); data/geomview-1.9.5/src/lib/mg/ps/mgps.c:318:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(_mgpsc->filepath, NEXT(char *)); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:163: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(_mgribc->ribfor, getenv("USER")); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:164: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(_mgribc->ribdate, ctime(&timedate)); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:350: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(_mgribc->displaypath, _mgribc->displayname); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:351: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(_mgribc->displaypath, dirname(_mgribc->displaypath)); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:360: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(_mgribc->displaybase, _mgribc->displayname); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:361: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(_mgribc->displaybase, basename(_mgribc->displaybase)); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:501:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullscene,"Scene %s",_mgribc->ribscene); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:502:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullcreator,"Creator %s",_mgribc->ribcreator); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:503:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fullfor,"For %s",_mgribc->ribfor); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:504:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fulldate,"CreationDate %s",_mgribc->ribdate); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:1074:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s:%s/shaders:&", stdshaderpaths, geomdata); data/geomview-1.9.5/src/lib/mg/rib/mgribshade.c:182:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filter, "pamtotiff -lzw -truecolor > %s 2> /dev/null", data/geomview-1.9.5/src/lib/mg/rib/mgribshade.c:186:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(filter, "pnmtotiff -lzw -truecolor > %s 2> /dev/null", data/geomview-1.9.5/src/lib/mib/mibButton.c:64: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibButton.c:89: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(myres->label,label); data/geomview-1.9.5/src/lib/mib/mibButton.c:170:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(myres->label,"%s",&(val[1])); data/geomview-1.9.5/src/lib/mib/mibDrawArea.c:62: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibFrame.c:63: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibLabel.c:65: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibLabel.c:90: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(myres->label,label); data/geomview-1.9.5/src/lib/mib/mibLabel.c:162:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(myres->label,"%s",&(val[1])); data/geomview-1.9.5/src/lib/mib/mibList.c:68: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibMenu.c:67: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibMenu.c:117: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(myres->my_menu[0].label,label_temp); data/geomview-1.9.5/src/lib/mib/mibMenu.c:129: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(myres->my_menu[1].label,label_temp); data/geomview-1.9.5/src/lib/mib/mibMenu.c:141: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(myres->my_menu[2].label,label_temp); data/geomview-1.9.5/src/lib/mib/mibMenu.c:226:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(myres->my_menu[count].label, "%s", &(val[1])); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:65: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:97: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(myres->labels[0],label_temp); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:100: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(myres->labels[1],label_temp); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:206:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(myres->labels[count],"%s",&(val[1])); data/geomview-1.9.5/src/lib/mib/mibScale.c:70: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibScrollBar.c:63: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibTextBig.c:65: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibTextBox.c:63: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibTextBox.c:91: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(myres->init_contents, contents); data/geomview-1.9.5/src/lib/mib/mibToggle.c:65: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(temp->name,name); data/geomview-1.9.5/src/lib/mib/mibToggle.c:91: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(myres->label,label); data/geomview-1.9.5/src/lib/mib/mibToggle.c:179:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(myres->label,"%s",&(val[1])); data/geomview-1.9.5/src/lib/mib/mibload.c:459:6: [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(valcp,val); data/geomview-1.9.5/src/lib/mib/mibload.c:483:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(this->name,"%s",&(val[1])); data/geomview-1.9.5/src/lib/mib/mibload.c:750:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(inbuf,"%s",&(strin[bufin->point])); data/geomview-1.9.5/src/lib/mib/mibload.c:761:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(res,"%s",inbuf); data/geomview-1.9.5/src/lib/mib/mibload.c:772:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(res,"%s",inbuf); data/geomview-1.9.5/src/lib/mib/mibload.c:775:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(val,"%s",&(inbuf[mark+2])); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1425:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(help, "(%s)\n%s", name, helpstring); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1429:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(help, "(%s %s)\n%s", name, argname, helpstring); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1432:16: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. helpsize = sprintf(help, "(%s", name); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1435:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. helpsize += sprintf(help + helpsize, " %s", argname); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1438: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(help + helpsize, helpstring); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:2615:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(builtin, "-builtin-%s-", name); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3446:7: [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(outf, lake->initial, now,now,now); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3451:7: [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(outf, lake->prefix, now,now,now); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3484:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(outf, suffix, now,now,now); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3654:2: [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(outf, seen%4 ? "%-15s " : "%s\n", h->key); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3661:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. case 0: fprintf(outf, nomatch, pat); break; data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3702:15: [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. if(seen==0) fprintf(outf, nomatch, pat); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:1082: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(f, format, alist); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:1094: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(PoolOutputFile(p), format, alist); data/geomview-1.9.5/src/lib/oogl/util/error.c:49:21: [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. if (fmt != NULL) vfprintf(stderr, fmt, args); data/geomview-1.9.5/src/lib/oogl/util/error.c:69: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, fmt, args); data/geomview-1.9.5/src/lib/oogl/util/error.c:74:8: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/geomview-1.9.5/src/lib/oogl/util/error.c:99: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, fmt, args); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:82: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(buf, dirs[i]); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:154: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(pbuf, file); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:156:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(pbuf,R_OK)==0) data/geomview-1.9.5/src/lib/oogl/util/findfile.c:163:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(pbuf, file); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:165:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(pbuf,R_OK)==0) data/geomview-1.9.5/src/lib/oogl/util/findfile.c:169:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(access(file, R_OK) == 0) data/geomview-1.9.5/src/lib/oogl/util/findfile.c:173:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pbuf,"%s/%s", *dirp, file); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:175:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(pbuf,R_OK)==0) data/geomview-1.9.5/src/lib/oogl/util/findfile.c:197: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(dir, path); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:221: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(c, env); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:222:5: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(c, tail); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:233:2: [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(c,tail); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:235:2: [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(c,env); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:236:2: [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(c,tail); data/geomview-1.9.5/src/lib/oogl/util/glob.c:77:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(cmd, GLOB_SHELL"\"echo %s\" 2>&1", s); data/geomview-1.9.5/src/lib/oogl/util/glob.c:78:8: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. fp = popen(cmd, POPEN_RB); data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:758: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(q, " ...\n" + 4-postdots); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:359:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. stream = popen(cmd, mode); data/geomview-1.9.5/src/lib/oogl/util/ppopen.c:90:2: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("/bin/sh", "sh", "-c", cmd, NULL); data/geomview-1.9.5/src/lib/oogl/wa/lex.yy.c:930: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(yylval.s, yytext); return(STRING); } data/geomview-1.9.5/src/lib/oogl/wa/wa.lex.c:930: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(wafsalval.s, wafsatext); return(STRING); } data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.c:715:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.c:1484:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fsa->genlist[(wafsavsp[(1) - (3)].i)-1], (wafsavsp[(3) - (3)].s)); data/geomview-1.9.5/src/lib/oogl/wa/y.tab.c:715:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define YYFPRINTF fprintf data/geomview-1.9.5/src/lib/oogl/wa/y.tab.c:1484:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fsa->genlist[(yyvsp[(1) - (3)].i)-1], (yyvsp[(3) - (3)].s)); data/geomview-1.9.5/src/lib/shade/image.c:1693:5: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("/bin/sh", "sh", "-c", filter, NULL); data/geomview-1.9.5/src/lib/shade/texture.c:566:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tail, " %s", (kw+k)->word); data/geomview-1.9.5/doc/example3.c:210:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv(); data/geomview-1.9.5/src/bin/animate/glob.c:203: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. extern char *getenv(); data/geomview-1.9.5/src/bin/animate/glob.c:205:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home = getenv("HOME"); data/geomview-1.9.5/src/bin/geomutil/oogl2rib/oogl2rib.c:108:17: [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, "n:w:h:B:gbf")) != EOF) data/geomview-1.9.5/src/bin/geomutil/plutil/polymerge.c:159:16: [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((i = getopt(argc, argv, "bdv:e:f:VEFg:")) != EOF) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1309:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *gsfontpath = getenv("GS_FONTPATH"); data/geomview-1.9.5/src/bin/geomview/common/comm.c:691:46: [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. sprintf(envbuf, "PATH=%s:%s", em->dir, getenv("PATH")); data/geomview-1.9.5/src/bin/geomview/common/comm.c:699:34: [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. sprintf(envbuf, "PATH=%s", getenv("PATH")); data/geomview-1.9.5/src/bin/geomview/common/drawer.c:2448:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. verbose_manifold = ( getenv("VERBOSE_MANIFOLD") != NULL ); data/geomview-1.9.5/src/bin/geomview/common/drawer.c:2449:26: [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. trivial_visibility = ( getenv("TRIVIAL_VISIBILITY") != NULL ); data/geomview-1.9.5/src/bin/geomview/common/event.c:973: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. if (pick && getenv("VERBOSE_PICK")) { data/geomview-1.9.5/src/bin/geomview/common/help.c:45: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. if ((docdir = getenv("GEOMVIEW_DOC_DIR")) == NULL) { data/geomview-1.9.5/src/bin/geomview/common/help.c:51: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. if ((browser = getenv("WEBBROWSER")) == NULL) { data/geomview-1.9.5/src/bin/geomview/common/help.c:61: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. if ((browser = getenv("PDFVIEWER")) == NULL) { data/geomview-1.9.5/src/bin/geomview/common/help.c:71:15: [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 ((lang = getenv("LANG")) != NULL) { data/geomview-1.9.5/src/bin/geomview/common/main.c:251:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *tmpdir = getenv("TMPDIR"); data/geomview-1.9.5/src/bin/geomview/common/main.c:308:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("GEOMVIEW_DEBUG")) data/geomview-1.9.5/src/bin/geomview/common/main.c:311:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("GEOMVIEW_NO_OPENGL")) data/geomview-1.9.5/src/bin/geomview/common/main.c:355:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. userhome = getenv("HOME"); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:968:18: [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 ((osscale = getenv("GEOMVIEW_OFFSCREEN_FACTOR")) != NULL) { data/geomview-1.9.5/src/bin/geomview/x11/gvmain.c:120:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. extern char *getenv(); data/geomview-1.9.5/src/bin/geomview/x11/gvmain.c:125:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *geomview_load_path = getenv("GEOMVIEW_LOAD_PATH"); data/geomview-1.9.5/src/bin/geomview/x11/gvmain.c:126:37: [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. char *p, *geomview_emodule_path = getenv("GEOMVIEW_EMODULE_PATH"); data/geomview-1.9.5/src/bin/geomview/x11/gvmain.c:134:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. geomview_system_initfile = getenv("GEOMVIEW_SYSTEM_INITFILE"); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:133:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *name = getenv("GEOMVIEW_X_NAME"); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:249:6: [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("GV_NO_X_MAGIC")) { data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:260: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("GVXRM")) argvblah[COUNT(argvblah)-1] = getenv("GVXRM"); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:260:55: [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("GVXRM")) argvblah[COUNT(argvblah)-1] = getenv("GVXRM"); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:274:6: [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("GVXRM")) argvblah[COUNT(argvblah)-1] = getenv("GVXRM"); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:274:53: [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("GVXRM")) argvblah[COUNT(argvblah)-1] = getenv("GVXRM"); data/geomview-1.9.5/src/bin/nose/nose.c:215:14: [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. verbose = (getenv("VERBOSE_NOSE") != NULL); data/geomview-1.9.5/src/lib/gprim/discgrp/colormap.c:78:37: [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 (cmapfname == NULL) cmapfname = getenv("CMAP_FILE"); data/geomview-1.9.5/src/lib/gprim/discgrp/colormap.c:115:21: [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. cmapfile = getenv("CMAP_FILE"); data/geomview-1.9.5/src/lib/mg/opengl/mgopenglstipple.c:56:7: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(pat*variant); data/geomview-1.9.5/src/lib/mg/ps/mgpstri.c:88:36: [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. fprintf(psout,"%%%%For: %s\n", getenv("USER")); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:163: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. strcpy(_mgribc->ribfor, getenv("USER")); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:1056:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *geomdata = getenv("GEOMDATA"); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:1078:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((ctx->tmppath = getenv("TMPDIR")) == NULL) { data/geomview-1.9.5/src/lib/mg/x11/mgx11windows.c:112:18: [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((colorenv = getenv("GEOMVIEW_COLORLEVELS")) != NULL) { data/geomview-1.9.5/src/lib/oogl/util/findfile.c:219: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. if (*c == '~' && (env = getenv("HOME"))) { data/geomview-1.9.5/src/lib/oogl/util/findfile.c:231: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. if((env = getenv(c+1)) == NULL) { data/geomview-1.9.5/src/lib/oogl/util/porting.h:100:12: [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. extern int getopt(int argc, char * const argv[], const char *optstring); data/geomview-1.9.5/src/bin/animate/animate.c:636: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). if (!(scriptfile = fopen(in_scr, "r"))) data/geomview-1.9.5/src/bin/animate/glob.c:109: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 agpath[BUFSIZ]; data/geomview-1.9.5/src/bin/animate/glob.c:110: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 *agargv[GAVSIZ]; data/geomview-1.9.5/src/bin/animate/glob.c:111: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 *vv[2]; data/geomview-1.9.5/src/bin/animate/glob.c:291: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 restbuf[BUFSIZ + 2]; data/geomview-1.9.5/src/bin/animate/xanimate.c:95: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 *argvblah[1] = { "Animate" }; data/geomview-1.9.5/src/bin/clipboard/clipboard.c:46: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 obj_name[1000]; data/geomview-1.9.5/src/bin/geomutil/clip/clip.c:46: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(head->coord, aCoord, clip->dim*sizeof(float)); data/geomview-1.9.5/src/bin/geomutil/clip/clip.c:305:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(clip->surf, coeff, MAXDIM * sizeof(float)); data/geomview-1.9.5/src/bin/geomutil/clip/clipmain.c:345: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 lim[64]; data/geomview-1.9.5/src/bin/geomutil/clip/clipmain.c:357: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. sprintf(lim, "%g", min + slicev[1]*step); data/geomview-1.9.5/src/bin/geomutil/clip/clipmain.c:364: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(lim, "%g", v + slicev[1]*step); data/geomview-1.9.5/src/bin/geomutil/clip/clipmain.c:371: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(lim, "%g", v); data/geomview-1.9.5/src/bin/geomutil/clip/clipoogl.c:240:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptp, vert->coord, dim*sizeof(float)); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:119: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 myname[1024]; data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:138: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 *args[1024]; data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:162:2: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open("/dev/null", O_RDWR); /* Open /dev/null as file descriptors */ data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:191: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 pipename[BUFSIZ]; data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:230:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(pipename, O_WRONLY|O_NONBLOCK); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:236: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). fd = open(pipename, O_WRONLY); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:301:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:414: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). size[i] = atoi(globline->data); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:519: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). size[i] = atoi(globline->data); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:617: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). size[i] = atoi(globline->data); data/geomview-1.9.5/src/bin/geomutil/oogl2rib/oogl2rib.c:111: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). wwidth = atoi(optarg); data/geomview-1.9.5/src/bin/geomutil/oogl2rib/oogl2rib.c:114: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). wheight = atoi(optarg); data/geomview-1.9.5/src/bin/geomutil/oogl2rib/oogl2rib.c:145: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). infileFD = fopen(infile, "rb"); data/geomview-1.9.5/src/bin/geomutil/oogl2rib/oogl2rib.c:151:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outfileFD=fopen(outfile, "w+"); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml.c:310: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 usename[16]; data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml.c:421: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(usename, "instgeom%d", ++unique); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml.c:460: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). bezdice = atoi(argv[2]); argc--; argv++; data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:519: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 usename[16]; data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:629: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(usename, "instgeom%d", ++unique); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:668: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). bezdice = atoi(argv[2]); argc--; argv++; data/geomview-1.9.5/src/bin/geomutil/plutil/bez2mesh.c:41:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp + (i*nu + j) * elsize, p, elsize); data/geomview-1.9.5/src/bin/geomutil/plutil/bez2mesh.c:46:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, tmp, nu*nv*elsize); data/geomview-1.9.5/src/bin/geomutil/plutil/bez2mesh.c:69:6: [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[1]); data/geomview-1.9.5/src/bin/geomutil/plutil/polymerge.c:289: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 aff[512]; data/geomview-1.9.5/src/bin/geomutil/plutil/polymerge.c:348: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(cp, " %g", c); data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:146:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[UCD_NUMDATAFIELDS][32], label[UCD_NUMDATAFIELDS][32]; data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:193: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 str[64]; data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:382: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( ncdptrs[i] + offset + incr*k, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDebugError.c++:8:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[10000]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvElement.h:67:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *nodeTypeNames[NumNodeTypes]; // Names of node types data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:106:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[500]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:116: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 bufStore[256]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:188: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[256]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:289:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:290: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(buf, "\tOccurred at line %3d", lineNum); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:411:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[256]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:473:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[32]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:490:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[32]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:494:9: [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). l = atol(str); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:533:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[32]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvName.c++:7: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 mem[CHUNK_SIZE]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:92:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[2]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvReadError.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 buf[10000]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvState.h:50:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *stackNames[NumStacks]; // Names of stacks data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.h: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 staticStorage[QV_STRING_STATIC_STORAGE_SIZE]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:25:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char out[5000]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:26:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char colstr[100]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:52:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *urls[100]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:122:35: [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. if (mt == NULL || mtnum < 0) { sprintf(colstr, "1 1 1 1"); return; } data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:135: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(colstr, "%.3f %.3f %.3f %.3f", r, g, b, a); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:138: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(colstr, "%.3f %.3f %.3f %.3f", dif[0], dif[1], dif[2], a); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:149: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(out, "ambient %f %f %f", (mt->ambientColor).values[0], data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:171: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(out, "diffuse %.3f %.3f %.3f edgecolor %.3f %.3f %.3f", r, g, b, r, g, b); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:174: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(out, "specular %.3f %.3f %.3f", (mt->specularColor).values[0], data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:177: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(out, "shininess %.3f", (mt->shininess).values[0]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:179: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(out, "alpha %.3f", 1.0 - (mt->transparency).values[0]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:431: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(out, "%f %f %f %f", matrix.value[0][0], matrix.value[0][1], data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:434: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(out, "%f %f %f %f", matrix.value[1][0], matrix.value[1][1], data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:437: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(out, "%f %f %f %f", matrix.value[2][0], matrix.value[2][1], data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:440: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(out, "%f %f %f %f", matrix.value[3][0], matrix.value[3][1], data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:452: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(out, "%f %f %f %f", mat1->value[0][y], mat1->value[1][y], data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:640: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(out, "%f 0 0 0", scaleFactor.value[0]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:642: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(out, "0 %f 0 0", scaleFactor.value[1]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:644: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(out, "0 0 %f 0", scaleFactor.value[2]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:680: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1", height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:683: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(out, "%f 0 0 1\t0 0 %f 0\t%f 0 0 1", -bottomRadius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:686: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1\n", -bottomRadius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:691: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -bottomRadius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:695: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(out, "%f 0 0 1\t0 0 %f 0\t%f 0 0 1", -bottomRadius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:698: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1\n", height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:704: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1", -height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:707: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -bottomRadius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:711: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1\n", -bottomRadius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:716: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -bottomRadius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:720: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -bottomRadius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:724: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1\n", -height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:742:2: [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(out, "%g %g %g", i&1 ? -x : x, i&2 ? -y : y, i&4 ? -z : z); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:784: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:787: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(out, "%f 0 0 1\t0 0 %f 0\t%f 0 0 1", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:790: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1\n", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:794: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:797: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(out, "%f 0 0 1\t0 0 %f 0\t%f 0 0 1", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:800: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:813: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1", height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:816: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:820: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1\n", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:824: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:827: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:831: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1", height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:844: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1", -height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:847: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:851: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1\n", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:855: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:858: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(out, "%f %f 0 1\t0 0 %f 0\t%f %f 0 1", -radius.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:862: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(out, "0 %f 0 1\t0 0 0 0\t0 %f 0 1\n", -height.value/2.0, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:893: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(out, " %f", radius.value); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:965: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(out, "%d %d 0\n", numcoords, numfaces); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:971: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(out, "%f %f %f", x, y, z); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:987:2: [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(out, "%d", numvts); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:990: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(out, " %ld", firstindex[i]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1060: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(out, "%d %d 1\n", numlines, numvts); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1062: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(out, "%d %d %d\n", numlines, numvts, numlines); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1064: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(out, "%d %d %d\n", numsegs + points, numvts, numsegs + points); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1066: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(out, "%d %d %d\n", numlines, numvts, numvts); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1085: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(out,"1 "); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1089: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. sprintf(out,"2 "); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1093: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(out,"%d ", x - 1); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1097:2: [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(out,"%d ", x); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1110:2: [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(out,"0 "); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1136: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(out,"%d ", x); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1156: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(out,"%f %f %f", x, y, z); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1158: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. } else sprintf(out,"%f %f %f", x, y, z); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1262: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(out, "%ld %ld %ld\n", numverts, numverts, numverts); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1287: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(out, "%f %f %f", x, y, z); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1307: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[2048]; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1317:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, p, len); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1348: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[2048], *q; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1364:2: [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 + strlen(buf), "-w %g ", wid); data/geomview-1.9.5/src/bin/geomview/common/comm.c:310: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[10240]; data/geomview-1.9.5/src/bin/geomview/common/comm.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. static char buffer[256]; data/geomview-1.9.5/src/bin/geomview/common/comm.c:630:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char path[10240]; data/geomview-1.9.5/src/bin/geomview/common/comm.c:654: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 seqname[128]; data/geomview-1.9.5/src/bin/geomview/common/comm.c:680: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 envbuf[10240]; data/geomview-1.9.5/src/bin/geomview/common/comm.c:703:34: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. strcpy(p, VVEC(vv_emodule_path, char *)[i]); data/geomview-1.9.5/src/bin/geomview/common/comm.c:730: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(seqname, "[%d]%.100s", i, em->name); data/geomview-1.9.5/src/bin/geomview/common/comm.c:785:41: [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 *outf = (strcmp(ofile, "-")) ? fopen(ofile, "w") : stdout; data/geomview-1.9.5/src/bin/geomview/common/comm.c:1516: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 conname[10240]; data/geomview-1.9.5/src/bin/geomview/common/comm.c:1531: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(conname, "[%d]%.500s", i, listenp->poolname); data/geomview-1.9.5/src/bin/geomview/common/comm.c:1566:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pipename[PATH_MAX]; data/geomview-1.9.5/src/bin/geomview/common/comm.c:1567: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 pdir[PATH_MAX]; data/geomview-1.9.5/src/bin/geomview/common/comm.c:1618: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). port = atoi(suffix); data/geomview-1.9.5/src/bin/geomview/common/drawer.c:2638: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 window_name[64], *view_name; data/geomview-1.9.5/src/bin/geomview/common/drawer.c:3001: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 name[16]; data/geomview-1.9.5/src/bin/geomview/common/drawer.c:3005: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(name, "%c%d", type == T_GEOM ? 'g' : 'c', i); data/geomview-1.9.5/src/bin/geomview/common/drawer.c:3164: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 newname[256]; data/geomview-1.9.5/src/bin/geomview/common/drawer.c:3172: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(newname, "%.240s<%d>", name, i++); data/geomview-1.9.5/src/bin/geomview/common/drawer.c:3182: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 *fp = fopen(file, "rb"); data/geomview-1.9.5/src/bin/geomview/common/drawer.h:72:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *name[2]; /* array of names */ \ data/geomview-1.9.5/src/bin/geomview/common/event.c:726: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 ch[2] = { 'g', 'c' }; data/geomview-1.9.5/src/bin/geomview/common/event.c:727: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 code[12]; data/geomview-1.9.5/src/bin/geomview/common/event.c:738: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(code, "%c%d", ch[keymode], number.val); data/geomview-1.9.5/src/bin/geomview/common/event.c:1072: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 donebits[512]; data/geomview-1.9.5/src/bin/geomview/common/help.c:35:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char htmlbrowser[PATH_MAX] = { '\0', }, pdfviewer[PATH_MAX] = { '\0', }; data/geomview-1.9.5/src/bin/geomview/common/help.c:39: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 helper[PATH_MAX]; data/geomview-1.9.5/src/bin/geomview/common/lang.c:374: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/geomview-1.9.5/src/bin/geomview/common/lights.c:388: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 buf[80]; data/geomview-1.9.5/src/bin/geomview/common/lights.c:389: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(buf,"%f %f %f", p->x, p->y, p->z); data/geomview-1.9.5/src/bin/geomview/common/lispext.c:891:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(VVEC(svv, char)+VVCOUNT(svv), tok, toklen); data/geomview-1.9.5/src/bin/geomview/common/lispext.c:930:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newwords, keyword_names, n_keywords*sizeof(char *)); data/geomview-1.9.5/src/bin/geomview/common/main.c:193: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). gv_nwins = atoi(*++av); data/geomview-1.9.5/src/bin/geomview/common/main.c:215: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). wp.ymin = atoi(*++av); data/geomview-1.9.5/src/bin/geomview/common/main.c:216: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). wp.xmax = wp.xmin + atoi(*++av)-1; data/geomview-1.9.5/src/bin/geomview/common/main.c:217: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). wp.ymax = wp.ymin + atoi(*++av)-1; data/geomview-1.9.5/src/bin/geomview/common/main.c:250: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 pipedir[PATH_MAX]; data/geomview-1.9.5/src/bin/geomview/common/main.c:300: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 *userhome, homefile[512], dotfile[512]; data/geomview-1.9.5/src/bin/geomview/common/motion.c:421: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 buttonsdown[100]; data/geomview-1.9.5/src/bin/geomview/common/motion.c:456:21: [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. if (button.shift) strcat(buttonsdown, "shift "); data/geomview-1.9.5/src/bin/geomview/common/motion.c:457:20: [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. if (button.ctrl) strcat(buttonsdown, "ctrl "); data/geomview-1.9.5/src/bin/geomview/common/motion.c:458:20: [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. if (button.left) strcat(buttonsdown, "leftmouse "); data/geomview-1.9.5/src/bin/geomview/common/motion.c:459:22: [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. if (button.middle) strcat(buttonsdown, "middlemouse "); data/geomview-1.9.5/src/bin/geomview/common/ndshade.c:173: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(savedCTX->perm, nds->perm, nds->T->idim * sizeof(int)); data/geomview-1.9.5/src/bin/geomview/common/ndshade.c:232: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(nds->perm, savedCTX->perm, nds->T->idim * sizeof(int)); data/geomview-1.9.5/src/bin/geomview/common/rman.c:148: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 fname[1024]; data/geomview-1.9.5/src/bin/geomview/common/rman.c:149: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 displayname[1024]; data/geomview-1.9.5/src/bin/geomview/common/rman.c:164: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(fname, "stdout"); data/geomview-1.9.5/src/bin/geomview/common/rman.c:165: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(displayname, "geom.tiff"); data/geomview-1.9.5/src/bin/geomview/common/rman.c:175: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(displayname, ".tiff"); data/geomview-1.9.5/src/bin/geomview/common/rman.c:176: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(fname, "w"); data/geomview-1.9.5/src/bin/geomview/common/rman.c:181:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fname, "w"); data/geomview-1.9.5/src/bin/geomview/common/space.c:68:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label[256]; data/geomview-1.9.5/src/bin/geomview/common/space.c:101: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 *sname, sub[4]; data/geomview-1.9.5/src/bin/geomview/common/space.c:104: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(sub, "%.3s", sname); data/geomview-1.9.5/src/bin/geomview/common/space.c:302:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char names[4] = { 'X', 'Y', 'Z', 'W' }; data/geomview-1.9.5/src/bin/geomview/common/ui.c:51: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 *shades[5] = { data/geomview-1.9.5/src/bin/geomview/common/ui.c:59: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 *translucencies[3] = { data/geomview-1.9.5/src/bin/geomview/common/ui.c:65: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 *norm[4] = { data/geomview-1.9.5/src/bin/geomview/common/ui.c:72: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 *proj[2] = { data/geomview-1.9.5/src/bin/geomview/common/ui.c:77: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 *spc[3] = { data/geomview-1.9.5/src/bin/geomview/common/ui.c:83: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 *mdl[3] = { data/geomview-1.9.5/src/bin/geomview/common/ui.h:66:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *modenames[MAXMODES]; /* motion names */ data/geomview-1.9.5/src/bin/geomview/common/ui.h:115:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *shades[5]; data/geomview-1.9.5/src/bin/geomview/common/ui.h:121:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *translucencies[3]; data/geomview-1.9.5/src/bin/geomview/common/ui.h:126:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *norm[4]; data/geomview-1.9.5/src/bin/geomview/common/ui.h:130:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *proj[2]; data/geomview-1.9.5/src/bin/geomview/common/ui.h:138:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *spc[3]; data/geomview-1.9.5/src/bin/geomview/common/ui.h:139:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern char *mdl[3]; data/geomview-1.9.5/src/bin/geomview/common/worldio.c:270:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[32]; data/geomview-1.9.5/src/bin/geomview/common/worldio.c:478: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 *td, *dirs[MAXDIRS+1]; data/geomview-1.9.5/src/bin/geomview/common/worldio.c:485: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. td = VVEC(*vvpath, char *)[k]; data/geomview-1.9.5/src/bin/geomview/common/worldio.c:504:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. free(VVEC(*vv, char *)[i]); data/geomview-1.9.5/src/bin/geomview/common/worldio.c:606: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 pat[512], **files, **fp; data/geomview-1.9.5/src/bin/geomview/common/worldio.c:860:50: [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 = (fname[0] == '|') ? popen(fname+1, "wb") : fopen(fname, "wb"); data/geomview-1.9.5/src/bin/geomview/x11/gvcameras.c:83:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char lastcamname[255]; data/geomview-1.9.5/src/bin/geomview/x11/gvcameras.c:84:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char store[255]; data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:211: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 geometry[30]; data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:228: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(geometry, "=%dx%d+%d-%d", sx, sy, prefpos.xmin, prefpos.ymin); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:508:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&cmw[cmwneeded], wp, nw * sizeof(Window)); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:755:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). else f = fopen(fname, "w"); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:869:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fname, "w"); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1015:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(fname, "w"); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1092: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 x0[12], x1[12], y0[12], y1[12]; data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1101: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(x0, "%d", wp->xmin); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1102: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(x1, "%d", wp->xmax); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1103: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(y0, "%d", wp->ymin); data/geomview-1.9.5/src/bin/geomview/x11/gvcamui.c:1104: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(y1, "%d", wp->ymax); data/geomview-1.9.5/src/bin/geomview/x11/gvcolor.c:228: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 str[100]; data/geomview-1.9.5/src/bin/geomview/x11/gvcolor.c:232: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(str, "%.3f %.3f %.3f", rgb.r, rgb.g, rgb.b); data/geomview-1.9.5/src/bin/geomview/x11/gvcolor.c:234: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(str, "%.3f %.3f %.3f", hsv.r, hsv.g, hsv.b); data/geomview-1.9.5/src/bin/geomview/x11/gvcredits.c:138: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 first[128]; data/geomview-1.9.5/src/bin/geomview/x11/gvcredits.c:140: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(first, "Geomview %.80s %.20s", geomview_version, buildinfographics); data/geomview-1.9.5/src/bin/geomview/x11/gvevent.c:263: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 str[1]; data/geomview-1.9.5/src/bin/geomview/x11/gvfiles.c:124:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *temp, dirmask[200]; data/geomview-1.9.5/src/bin/geomview/x11/gvlights.c:60:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char *lights[MAXLIGHTS+1]; data/geomview-1.9.5/src/bin/geomview/x11/gvlights.c:75: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[100]; data/geomview-1.9.5/src/bin/geomview/x11/gvlights.c:124: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(buf, "light %1d", n); data/geomview-1.9.5/src/bin/geomview/x11/gvmain.c:124: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 *dirs[MAXDIRS]; data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:294: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 htmlbrowser[PATH_MAX] = { '\0', }, pdfviewer[PATH_MAX] = { '\0', }; data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:348: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[40]; data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:349: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 gvtitle[100]; data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:410: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(buf, "button_%d", n); data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:428: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(buf, "button_%d", n); data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:616: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 kybd[12]; data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:673: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[150]; data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:688: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(buf, "[%.64s] %.64s", obj->name[0], obj->name[1]); data/geomview-1.9.5/src/bin/geomview/x11/gvmnpanel.c:705: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, "[%.64s] %.64s", obj->name[0], obj->name[1]); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:72: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 key[2]; data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:965: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 num[80]; data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:986: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 c1[80], c2[80]; data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:1051: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[80], *str; data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:1053: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(buf,"%g",val); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:1064: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[80], *str; data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:1066: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(buf,"%d",val); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:102: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 *args[1024]; data/geomview-1.9.5/src/bin/togeomview/togeomview.c:115:20: [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. case inetsocket: strcpy(Mhow+3, "sin"); break; data/geomview-1.9.5/src/bin/togeomview/togeomview.c:116:21: [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. case inet6socket: strcpy(Mhow+3, "sin6"); break; data/geomview-1.9.5/src/bin/togeomview/togeomview.c:157:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pipename[PATH_MAX]; data/geomview-1.9.5/src/bin/togeomview/togeomview.c:158: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[BUFSIZ]; data/geomview-1.9.5/src/bin/togeomview/togeomview.c:240: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). port = atoi(portstr); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:358:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(pipename, O_WRONLY|O_NONBLOCK); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:364:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(pipename, O_WRONLY); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:412: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[BUFSIZ]; data/geomview-1.9.5/src/lib/aclib/alloca.c:142: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 align[ALIGN_SIZE]; /* To force sizeof(header). */ data/geomview-1.9.5/src/lib/aclib/fmemopen.c:39:15: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). FILE *tmp = tmpfile(); data/geomview-1.9.5/src/lib/aclib/lstat.c:67: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 mypath[PATH_MAX+1]; data/geomview-1.9.5/src/lib/aclib/lstat.c:83: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(mypath, path, pathlen); data/geomview-1.9.5/src/lib/aclib/obstack.h:148:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char contents[4]; /* objects begin here */ data/geomview-1.9.5/src/lib/aclib/obstack.h:298:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (__o->next_free, where, __len); \ data/geomview-1.9.5/src/lib/aclib/obstack.h:308:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (__o->next_free, where, __len); \ data/geomview-1.9.5/src/lib/aclib/obstack.h:434: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 ((h)->next_free, where, (h)->temp.tempint), \ data/geomview-1.9.5/src/lib/aclib/obstack.h:441: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 ((h)->next_free, where, (h)->temp.tempint), \ data/geomview-1.9.5/src/lib/aclib/putenv.c:125: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(P, environ, cnt * sizeof(char *)); data/geomview-1.9.5/src/lib/aclib/strdup.c:58:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s, str, len+1); data/geomview-1.9.5/src/lib/camera/camcompat.c:90: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(name, "w")) == NULL) { data/geomview-1.9.5/src/lib/camera/camera.c:199: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(cam->stereyes, NEXT(TransformPtr), 2*sizeof(Transform)); data/geomview-1.9.5/src/lib/camera/camera.c:203: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(cam->sterhandle, NEXT(Handle **), 2*sizeof(Handle *)); data/geomview-1.9.5/src/lib/camera/camera.c:397:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(value, cam->stereyes, 2*sizeof(Transform)); data/geomview-1.9.5/src/lib/camera/camera.c:401:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(value, cam->sterhandle, 2*sizeof(Handle *)); data/geomview-1.9.5/src/lib/fexpr/lex.yy.c:426:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, bufptr+inputpos, size); data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:161:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1024]; data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:178:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1024]; data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:257:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[1024]; data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:1043:8: [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(msg, "parse error"); data/geomview-1.9.5/src/lib/geometry/hpoint3/hg4.h:104:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( (char *)b, (char *)a, sizeof(Hg4Tensor1) ); data/geomview-1.9.5/src/lib/geometry/hpoint3/hg4.h:246:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( (char *)K, (char *)L, sizeof(Hg4Tensor2) ); data/geomview-1.9.5/src/lib/geometry/hpoint3/hline3.h:94:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) ln2, (char *) ln1, sizeof(HLine3)); data/geomview-1.9.5/src/lib/geometry/hpoint3/hpoint3.h:309:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, hp, sizeof(Point3)); data/geomview-1.9.5/src/lib/geometry/hpointn/hpointn.h:141:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pt->v, vec, dim*sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/geometry/hpointn/hpointn.h:165:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pt2->v, pt1->v, pt1->dim*sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/geometry/hpointn/hpointn.h:310: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(pt2->v, pt1->v, dim1* sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/geometry/hpointn/hpointn.h:313: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(pt2->v, pt1->v, dim2*sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/geometry/transform3/tm3concat.c:125:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( Tprod, T, sizeof(Transform3) ); data/geomview-1.9.5/src/lib/geometry/transform3/tm3copy.c:52:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( (char *)Tdst, (char *)Tsrc, sizeof(Transform3) ); data/geomview-1.9.5/src/lib/geometry/transformn/transformn.h:126:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(T->a, a, idim*odim*sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/geometry/transformn/transformn.h:390: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(Tdst->a, Tsrc->a, Tsrc->idim*Tsrc->odim*sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/geomutil/crayplutil/crayolaP.h:41:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[CRAYOLA_MAXNAME]; data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c:149:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, v->ndp, 3*sizeof(float)); data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c:184:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, v->ndp, hdim*sizeof(float)); data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c:186:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &v->p, 3*sizeof(float)); data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c:190:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, v->ndp, (v->hdim-1)*sizeof(float)); data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c:194:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, v->ndp, (hdim-1)*sizeof(float)); data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c:674:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( &VVEC(PL->vtable, int)[VVCOUNT(PL->vtable)], verts, nv*sizeof(int)); data/geomview-1.9.5/src/lib/geomutil/plutil/anytopl.c:750: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( &VVEC(PL->vtable, int)[VVCOUNT(PL->vtable)], verts, nv*sizeof(int)); data/geomview-1.9.5/src/lib/gprim/bbox/bboxcreate.c:70:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attrp, &min3, sizeof(Point3)); data/geomview-1.9.5/src/lib/gprim/bbox/bboxcreate.c:75:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attrp, &max3, sizeof(Point3)); data/geomview-1.9.5/src/lib/gprim/bezier/bezcreate.c:42: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 meshhname[sizeof("\aBezier::")+sizeof(void *)*2]; data/geomview-1.9.5/src/lib/gprim/bezier/bezcreate.c:45: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(meshhname, "\aBezier::%lx", (unsigned long)bezier); data/geomview-1.9.5/src/lib/gprim/bezier/bezcreate.c:68:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(b->CtrlPnts, ob->CtrlPnts, n * sizeof(float)); data/geomview-1.9.5/src/lib/gprim/bezier/bezcreate.c:153:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bezier->STCoords, va_arg(*a_list, TxST *), 4*sizeof(TxST)); data/geomview-1.9.5/src/lib/gprim/bezier/bezdice.c:174:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpp1+v*dimn, tmpp0 + (u + v*nu)*dimn, dimn*sizeof(float)); data/geomview-1.9.5/src/lib/gprim/bezier/bezdice.c:176:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpdv1+v*dimn, tmpdv0 + (u + v*nu)*dimn, dimn*sizeof(float)); data/geomview-1.9.5/src/lib/gprim/bezier/bezdice.c:178:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpdu1+v*dimn, tmpdu0 + (u + v*nu)*dimn, dimn*sizeof(float)); data/geomview-1.9.5/src/lib/gprim/bezier/bezdice.c:323:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, in, dimn*sizeof(float)*(deg+1)); data/geomview-1.9.5/src/lib/gprim/bezier/bezdice.c:332:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, p, sizeof(float)*dimn); data/geomview-1.9.5/src/lib/gprim/bezier/bezsave.c:45: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(fname, "w")) == NULL) data/geomview-1.9.5/src/lib/gprim/comment/commentsave.c:76:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen( name, "w" ); data/geomview-1.9.5/src/lib/gprim/discgrp/colormap.c:83:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(cmapfname,"r"); data/geomview-1.9.5/src/lib/gprim/discgrp/dgcreate.c:51: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 (*wordin)[DG_WORDLENGTH] = NULL; data/geomview-1.9.5/src/lib/gprim/discgrp/dgcreate.c:112: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. wordin = (char (*)[DG_WORDLENGTH] ) va_arg (a_list, char *); data/geomview-1.9.5/src/lib/gprim/discgrp/dgdirdom.c:143:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newgens->el_list, discgrp->gens->el_list, data/geomview-1.9.5/src/lib/gprim/discgrp/dgenum.c:62:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char symbollist[64]; data/geomview-1.9.5/src/lib/gprim/discgrp/dgsave.c:116:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). outf = fopen(name, "w"); data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c:149: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(keyword, "%.31s", iobfdelimtok(delims, fp, 0)); data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c:268: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 keyword[DG_KEYWORDSIZE]; data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c:294:35: [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(fname == NULL || (wafp = fopen(fname, "rb")) == NULL) { data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c:391: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. static char name[2] = "a"; data/geomview-1.9.5/src/lib/gprim/discgrp/discgrpP.h:44: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 word[DG_WORDLENGTH]; /* the 'string' in the generators? */ data/geomview-1.9.5/src/lib/gprim/discgrp/discgrpP.h:53: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 key[32]; data/geomview-1.9.5/src/lib/gprim/discgrp/outstack.c:80:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(thisptr, mystack, sizeof(DiscGrpEl) * count); data/geomview-1.9.5/src/lib/gprim/discgrp/stack.c:38:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. typedef struct entry {char word[MAXDEPTH]; } entry; data/geomview-1.9.5/src/lib/gprim/discgrp/vec4.h:138:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m2, m1, (sizeof(m1[0][0]) * 16)); data/geomview-1.9.5/src/lib/gprim/discgrp/weeks_dirdom.c:1370:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen("/tmp/test.off","w"); data/geomview-1.9.5/src/lib/gprim/geom/bsptree.c:217:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(savedp.v, poly0->v, 4*sizeof(Vertex *)); data/geomview-1.9.5/src/lib/gprim/geom/bsptree.c:1309:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(savedv, poly->v, poly->n_vertices*sizeof(Vertex *)); data/geomview-1.9.5/src/lib/gprim/geom/class.c:87:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( (char *)subclass, (char *)Class, sizeof(GeomClass) ); data/geomview-1.9.5/src/lib/gprim/geom/geomstream.c:110: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). if ((outf = fopen(fname, "wb")) == NULL) { data/geomview-1.9.5/src/lib/gprim/geom/geomstream.c:279: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 prefix[256]; data/geomview-1.9.5/src/lib/gprim/geom/nodedata.h:58: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(path, (geom)->ppath, (geom)->ppathlen); \ data/geomview-1.9.5/src/lib/gprim/lincoln/lincoln.h:98:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. struct data { char title[BUFSIZE]; int dim, nvertices, nedges, nfaces, nobjects ;} ; data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:57:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(lpath, path, pathlen+1); data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:71:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path, lpath, lpathlen-1); data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:115: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(lpath, path, pathlen+1); data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:129:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path, lpath, lpathlen-1); data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:161: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(lpath, path, pathlen+1); data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:175:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path, lpath, lpathlen-1); data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:207: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(lpath, path, pathlen+1); data/geomview-1.9.5/src/lib/gprim/list/listdraw.c:221:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path, lpath, lpathlen-1); data/geomview-1.9.5/src/lib/gprim/mesh/meshcopy.c:56:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m->p, om->p, n * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/gprim/mesh/meshcopy.c:63:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m->n, om->n, n * sizeof(Point3)); data/geomview-1.9.5/src/lib/gprim/mesh/meshcopy.c:72:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m->c, om->c, n * sizeof(ColorA)); data/geomview-1.9.5/src/lib/gprim/mesh/meshcopy.c:82:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m->u, om->u, n * sizeof(TxST)); data/geomview-1.9.5/src/lib/gprim/mesh/meshcreate.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(*fieldp, value, amount); data/geomview-1.9.5/src/lib/gprim/mesh/meshsave.c:124: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). outf = fopen(name, "w"); data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshcreate.c:115:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m->mdim, va_arg (*a_list, int *), m->meshd*sizeof(int)); data/geomview-1.9.5/src/lib/gprim/ndmesh/ndmeshcreate.c:183:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*fieldp, value, amount); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcopy.c:81: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(newvi, pl->vi, pl->nvi * sizeof(int)); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcopy.c:82: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(newpv, pl->pv, pl->n_polys * sizeof(int)); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcopy.c:83: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(newv, pl->v, pl->n_verts * pl->pdim * sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcopy.c:85:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newvcol, pl->vcol, pl->n_verts * sizeof(ColorA)); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcopy.c:87: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(newp, pl->p, pl->n_polys * sizeof(Poly)); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcopy.c:88: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(newvl, pl->vl, pl->n_verts * sizeof(Vertex)); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcreate.c:194: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(pl->v, v, pl->pdim*pl->n_verts*sizeof(HPtNCoord)); data/geomview-1.9.5/src/lib/gprim/npolylist/nplcreate.c:229:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pl->vi, verts, k*sizeof(int)); data/geomview-1.9.5/src/lib/gprim/polylist/plcopy.c:61: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(newvl, polylist->vl, polylist->n_verts * sizeof(Vertex)); data/geomview-1.9.5/src/lib/gprim/polylist/plcopy.c:62: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(newp, polylist->p, polylist->n_polys * sizeof(Poly)); data/geomview-1.9.5/src/lib/gprim/quad/quadcopy.c:48:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q->p, oq->p, oq->maxquad * sizeof(QuadP)); data/geomview-1.9.5/src/lib/gprim/quad/quadcopy.c:52:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q->n, oq->n, oq->maxquad * sizeof(QuadN)); data/geomview-1.9.5/src/lib/gprim/quad/quadcopy.c:58:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q->c, oq->c, oq->maxquad * sizeof(QuadC)); data/geomview-1.9.5/src/lib/gprim/quad/quadcreate.c:78: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(q->p, p, q->maxquad * sizeof(QuadP)); data/geomview-1.9.5/src/lib/gprim/quad/quadcreate.c:108: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(q->n, n, q->maxquad*sizeof(QuadN)); data/geomview-1.9.5/src/lib/gprim/quad/quadcreate.c:129: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(q->c, c, q->maxquad*sizeof(QuadC)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:57: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(s->p, os->p, os->nvert * os->pdim * sizeof(float)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:58: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(s->l, os->l, os->nlines * sizeof(Skline)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:59:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if(os->nc > 0) memcpy(s->c, os->c, os->nc * sizeof(ColorA)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:60: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(s->vi, os->vi, os->nvi * sizeof(int)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:61:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (os->vc) memcpy(s->vc, os->vc, os->nvert * sizeof(ColorA)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:122:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vect->vnvert, vectcounts, vect->nvec*sizeof(*vect->vnvert)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:135:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vect->vncolor, colorcounts, vect->nvec*sizeof(*vect->vncolor)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:161:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vect->p, v4, vect->nvert*sizeof(HPoint3)); data/geomview-1.9.5/src/lib/gprim/skel/skelcreate.c:174:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vect->c, colors, vect->ncolor*sizeof(ColorA)); data/geomview-1.9.5/src/lib/gprim/sphere/spherecreate.c:181: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 meshhname[sizeof("\aSphere::")+sizeof(void *)*2]; data/geomview-1.9.5/src/lib/gprim/sphere/spherecreate.c:185: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(meshhname, "\aSphere::%lx", (unsigned long)sphere); data/geomview-1.9.5/src/lib/gprim/sphere/spherecreate.c:305:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(CPctrlPnts, ctrlPnts, sizeof(ctrlPnts)); data/geomview-1.9.5/src/lib/gprim/tlist/tlcreate.c:218:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tlist->elements, elements, data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c:55:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v->p, ov->p, ov->nvert * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c:56:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v->c, ov->c, ov->ncolor * sizeof(ColorA)); data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c:57:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v->vnvert, ov->vnvert, ov->nvec * sizeof(short)); data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c:58:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v->vncolor, ov->vncolor, ov->nvec * sizeof(short)); data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c:134: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(vect->vnvert, vectcounts, vect->nvec*sizeof(*vect->vnvert)); data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c:148: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(vect->vncolor, colorcounts, vect->nvec*sizeof(*vect->vncolor)); data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.c:175: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(vect->p, v4, vect->nvert*sizeof(HPoint3)); data/geomview-1.9.5/src/lib/gprim/vect/vectcreate.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(vect->c, colors, vect->ncolor*sizeof(ColorA)); data/geomview-1.9.5/src/lib/mg/buf/mgbuf.c:328:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _mgbufc->file = fopen(_mgbufc->filepath, "w"); data/geomview-1.9.5/src/lib/mg/buf/mgbufP.h:74: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 filepath[280]; data/geomview-1.9.5/src/lib/mg/buf/mgbufclip.c:232:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vts2, vts1, sizeof(CPoint3) * prim1->numvts); data/geomview-1.9.5/src/lib/mg/opengl/mgopenglstipple.c:31: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 stippleMaskRotation[NUM_OPACITY_STEPS+1]; data/geomview-1.9.5/src/lib/mg/ps/mgps.c:319: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). _mgpsc->file = fopen(_mgpsc->filepath, "w"); data/geomview-1.9.5/src/lib/mg/ps/mgpsP.h: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 filepath[280]; data/geomview-1.9.5/src/lib/mg/ps/mgpsclip.c:233:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(vts2, vts1, sizeof(CPoint3) * prim1->numvts); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:161: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(_mgribc->ribscene, "Generic RIB file"); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:162: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(_mgribc->ribcreator, "mgrib driver"); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:310: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). ribfile = fopen(ribdpy, "w+"); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:497: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 fullscene[280], fullcreator[280], fullfor[280], fulldate[280]; data/geomview-1.9.5/src/lib/mg/rib/mgrib.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 dpyname[PATH_MAX]; data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:658:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:711: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(str, "Field of view %.8g", fov); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:716: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(str, "CameraOrientation %.8g %.8g %.8g %.8g %.8g %.8g", data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:722: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(str, "CameraOrientation %.8g %.8g %.8g %.8g %.8g %.8g", data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:1073: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 path[512]; data/geomview-1.9.5/src/lib/mg/rib/mgribP.h:69:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char displayname[PATH_MAX]; /* if display == MG_RIFILE, name of the file */ data/geomview-1.9.5/src/lib/mg/rib/mgribP.h:70: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 displaypath[PATH_MAX]; /* dirname(display), if MG_RIFILE */ data/geomview-1.9.5/src/lib/mg/rib/mgribP.h:71:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char displaybase[PATH_MAX]; /* basename(display), if MG_RIFILE */ data/geomview-1.9.5/src/lib/mg/rib/mgribP.h:92:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ribscene[128]; /* scene name for RIB 1.0 file comments */ data/geomview-1.9.5/src/lib/mg/rib/mgribP.h:93: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 ribcreator[128]; /* creator field for RIB 1.0 file comments */ data/geomview-1.9.5/src/lib/mg/rib/mgribP.h:95: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 ribfor[128]; /* for(user) field for RIB 1.0 file comments */ data/geomview-1.9.5/src/lib/mg/rib/mgribP.h:97:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ribdate[128]; /* creation date, defualts to today's date */ data/geomview-1.9.5/src/lib/mg/rib/mgribshade.c:142:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char txtxname[PATH_MAX]; data/geomview-1.9.5/src/lib/mg/rib/mgribshade.c:143:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tifftxname[PATH_MAX]; data/geomview-1.9.5/src/lib/mg/rib/mgribshade.c:144:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filter[PATH_MAX]; data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:271:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char astring[128]; data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:331: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(astring,"%.8g ",nextfloat); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:353: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(astring,"%.8g ",*(floatptr++)); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:366: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. sprintf(astring,"%.8g %.8g %.8g ", data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:381: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. sprintf(astring,"%.8g %.8g ", data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:394: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. sprintf(astring,"%d ",number); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:401: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. sprintf(astring,"%.8g ",nextfloat); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:411: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(astring,"%d ",number); data/geomview-1.9.5/src/lib/mg/x11/mgx11clip.c:247:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy(vts1, vts2, sizeof(CPoint3) * prim1->numvts); data/geomview-1.9.5/src/lib/mg/x11/mgx11render1.c:45: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 dither[65][8] = { data/geomview-1.9.5/src/lib/mg/x11/mgx11render1.c:113: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 bits[8] = { data/geomview-1.9.5/src/lib/mg/x11/mgx11render1.c:117: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 startBits[8] = { data/geomview-1.9.5/src/lib/mg/x11/mgx11render1.c:120: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 endBits[8] = { data/geomview-1.9.5/src/lib/mg/x11/mgx11windows.c:113: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). colorlevels = atoi(colorenv); data/geomview-1.9.5/src/lib/mib/mibButton.c:67: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(temp->mib_class,"Button"); data/geomview-1.9.5/src/lib/mib/mibButton.c:152: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibButton.c:153: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibDrawArea.c:65: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(temp->mib_class,"DrawingArea"); data/geomview-1.9.5/src/lib/mib/mibDrawArea.c:126: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibDrawArea.c:127: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibFrame.c:66: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(temp->mib_class,"Frame"); data/geomview-1.9.5/src/lib/mib/mibFrame.c:155: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibFrame.c:156: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibLabel.c:68: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(temp->mib_class,"Label"); data/geomview-1.9.5/src/lib/mib/mibLabel.c:148: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibLabel.c:149: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibLabel.c:172: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). int align = atoi(val); data/geomview-1.9.5/src/lib/mib/mibList.c:49: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 ttext[30]; data/geomview-1.9.5/src/lib/mib/mibList.c:71: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(temp->mib_class,"List"); data/geomview-1.9.5/src/lib/mib/mibList.c:142: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(ttext,"Item %d ",n); data/geomview-1.9.5/src/lib/mib/mibList.c:168: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibList.c:169: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibMenu.c:48:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char label_temp[50]; data/geomview-1.9.5/src/lib/mib/mibMenu.c:70: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(temp->mib_class,"Menu"); data/geomview-1.9.5/src/lib/mib/mibMenu.c:115: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(label_temp, "Item 1"); data/geomview-1.9.5/src/lib/mib/mibMenu.c:127: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(label_temp, "Item 2"); data/geomview-1.9.5/src/lib/mib/mibMenu.c:139: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(label_temp, "Item 3"); data/geomview-1.9.5/src/lib/mib/mibMenu.c:198: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibMenu.c:199: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:46: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 label_temp[50]; data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:68: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(temp->mib_class,"RadioBox"); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:95: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(label_temp, "Radio 1"); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:98: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(label_temp, "Radio 2"); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:177: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:178: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibScale.c:73: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(temp->mib_class,"Scale"); data/geomview-1.9.5/src/lib/mib/mibScale.c:169: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibScale.c:170: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibScrollBar.c:66: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(temp->mib_class,"ScrollBar"); data/geomview-1.9.5/src/lib/mib/mibScrollBar.c:143: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibScrollBar.c:144: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibTextBig.c:68: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(temp->mib_class,"TextBig"); data/geomview-1.9.5/src/lib/mib/mibTextBig.c:150: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibTextBig.c:151: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibTextBox.c:66: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(temp->mib_class,"TextBox"); data/geomview-1.9.5/src/lib/mib/mibTextBox.c:139: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibTextBox.c:140: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibToggle.c:68: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(temp->mib_class,"Toggle"); data/geomview-1.9.5/src/lib/mib/mibToggle.c:161: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibToggle.c:162: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibload.c:250: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 bname[24]; data/geomview-1.9.5/src/lib/mib/mibload.c:253: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(bname, "button_%d", i); data/geomview-1.9.5/src/lib/mib/mibload.c:354: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). if (!(infile = fopen(from,"r"))) data/geomview-1.9.5/src/lib/mib/mibload.c:441: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 res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibload.c:442: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibload.c:443: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 valcp[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibload.c:625:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char res[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibload.c:626: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 val[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/mib/mibload.c:642: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((*this)->mib_class,"RootForm"); data/geomview-1.9.5/src/lib/mib/mibload.c:698: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 inbuf[MI_MAXSTRLEN]; data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:52: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 p0[MAXPATLEN]; data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:53:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *pat[MAXPAT]; data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1437:5: [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(help + helpsize, ")\n"); helpsize += 2; data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1931:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&obj->cell, cell, LSIZE(type)); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1943: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 *fp = fopen(fname, "w"); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3726:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). f = tmpfile(); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3747:5: [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(summary+75, " ..."); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:129: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 nb[128]; data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:147:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fname, str, sep-str); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:309:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy[3+sizeof(unsigned long)*2+1]; data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:313:2: [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=dummy, "_p@%lx", data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:318:6: [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, rw ? (rw>1 ? "w+b":"wb") : "rb"); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:465:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(name, O_RDWR | o_nonblock); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:467:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(name, O_RDONLY | o_nonblock); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:494:26: [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). else if ((p->outf = fopen(name, "wb")) == NULL) data/geomview-1.9.5/src/lib/oogl/util/error.c:64: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 oldtext[32]; data/geomview-1.9.5/src/lib/oogl/util/error.c:115: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 errstr[16]; data/geomview-1.9.5/src/lib/oogl/util/error.c:119: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(errstr, "Error %d", err & 0xffff); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:72:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024], **p; data/geomview-1.9.5/src/lib/oogl/util/findfile.c:146: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 pbuf[1024]; data/geomview-1.9.5/src/lib/oogl/util/glob.c:69:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmd[FBUFSIZ]; data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:691:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:696: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 base[CONTEXT_SIZE], *ptr; data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:723:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf, "> ... "); data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:762:5: [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(q, "^\n"); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:113:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[BUFFER_SIZE]; data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:213:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to->buf_tail->buffer, iob->buffer, BUFFER_SIZE); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:305:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). stream = fopen(name, mode); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:474:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, iob->buffer + offset, cpsz); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:480:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, iob->buffer, cpsz); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:493:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, iob->buffer + offset, cpsz); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:499:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, iob->buffer, cpsz); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:539:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, ioblist->buf_ptr->buffer + ioblist->buf_pos, rq_sz_pos); data/geomview-1.9.5/src/lib/oogl/util/malloc-debug.c:107: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(newstring, string, len+1); data/geomview-1.9.5/src/lib/oogl/util/porting.h:54:20: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. static inline void bcopy(char *src, char *dst, int len) data/geomview-1.9.5/src/lib/oogl/util/porting.h:56:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, len); data/geomview-1.9.5/src/lib/oogl/util/vvec.h:80: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. if(v->base) memcpy(base, v->base, want); data/geomview-1.9.5/src/lib/oogl/util/vvec.h:126: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(v->base, was, (v->count<had ? v->count:had) * v->elsize); data/geomview-1.9.5/src/lib/oogl/util/vvec.h:161:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dest->base, src->base, dest->allocated * dest->elsize); data/geomview-1.9.5/src/lib/oogl/wa/lex.yy.c:915: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). { yylval.i = atoi(yytext); return(INT); } data/geomview-1.9.5/src/lib/oogl/wa/wa.lex.c:915: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). { wafsalval.i = atoi(wafsatext); return(INT); } data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.c:1008: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 const *wafsaarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.c:1237: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 wafsamsgbuf[128]; data/geomview-1.9.5/src/lib/oogl/wa/wa.yystype.h:27: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[80]; data/geomview-1.9.5/src/lib/oogl/wa/y.tab.c:1008: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/geomview-1.9.5/src/lib/oogl/wa/y.tab.c:1237: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 yymsgbuf[128]; data/geomview-1.9.5/src/lib/pointlist/pointlistP.h:32:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[POINTLIST_MAXNAME]; data/geomview-1.9.5/src/lib/pointlist/ptlMesh.c:76: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(pt, m->p, m->nu * m->nv * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/pointlist/ptlMesh.c:92: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(m->p, plist, m->nu * m->nv * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/pointlist/ptlQuad.c:80:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&plist[i * 4], q->p[i], 4 * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/pointlist/ptlQuad.c:93:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(q->p[i], &plist[i * 4], 4 * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/pointlist/ptlVect.c:75: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(plist, v->p, v->nvert * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/pointlist/ptlVect.c:86: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(v->p, plist, v->nvert * sizeof(HPoint3)); data/geomview-1.9.5/src/lib/shade/image.c:272: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 filterpath[PATH_MAX]; data/geomview-1.9.5/src/lib/shade/image.c:792: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(*buffer, "P5 %d %d %d\n", img->width, img->height, img->maxval); data/geomview-1.9.5/src/lib/shade/image.c:841: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(*buffer, "P6 %d %d %d\n", img->width, img->height, img->maxval); data/geomview-1.9.5/src/lib/shade/image.c:906: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(*buffer, data/geomview-1.9.5/src/lib/shade/image.c:1024:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *suffixes[10]; data/geomview-1.9.5/src/lib/shade/image.c:1055:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((imgfd = open(imgfname, O_RDONLY)) == -1) { data/geomview-1.9.5/src/lib/shade/image.c:1209: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 scratch[1024]; data/geomview-1.9.5/src/lib/shade/light.c:300: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(&l.ambient, v, sizeof(Color)); data/geomview-1.9.5/src/lib/shade/light.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(&l.color, v, sizeof(Color)); data/geomview-1.9.5/src/lib/shade/light.c:307: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(&l.position, v, sizeof(HPoint3)); data/geomview-1.9.5/src/lib/shade/light.c:741: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. case 0: memcpy(&lgt->ambient, v, sizeof(Color)); break; data/geomview-1.9.5/src/lib/shade/material.c:325:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(name,"w"); data/geomview-1.9.5/src/lib/shade/material.c:429:18: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 5: case 6: memcpy(&m.emission, v, sizeof(Color)); break; data/geomview-1.9.5/src/lib/shade/material.c:430: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. case 7: memcpy(&m.ambient, v, sizeof(Color)); break; data/geomview-1.9.5/src/lib/shade/material.c:431: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. case 8: memcpy(&m.diffuse, v, sizeof(Color)); break; data/geomview-1.9.5/src/lib/shade/material.c:432: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. case 9: memcpy(&m.specular, v, sizeof(Color)); break; data/geomview-1.9.5/src/lib/shade/material.c:433:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 10: memcpy(&m.edgecolor, v, sizeof(Color)); break; data/geomview-1.9.5/src/lib/shade/material.c:434:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. case 11: memcpy(&m.normalcolor, v, sizeof(Color)); break; data/geomview-1.9.5/src/lib/shade/texture.c:427:3: [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(str, "::"); data/geomview-1.9.5/src/lib/shade/texture.c:433:11: [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. len = sprintf(str, "%0*lx", LONG_CHARS, ino_t_conv.data[i]); data/geomview-1.9.5/src/lib/shade/texture.c:435:11: [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. len = sprintf(str, "%lx", ino_t_conv.data[i]); data/geomview-1.9.5/src/lib/shade/texture.c:446:11: [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. len = sprintf(str, "%0*lx", LONG_CHARS, dev_t_conv.data[i]); data/geomview-1.9.5/src/lib/shade/texture.c:448:11: [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. len = sprintf(str, "%lx", dev_t_conv.data[i]); data/geomview-1.9.5/src/lib/shade/texture.c:459:11: [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. len = sprintf(str, "%0*lx", LONG_CHARS, time_t_conv.data[i]); data/geomview-1.9.5/src/lib/shade/texture.c:461:11: [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. len = sprintf(str, "%lx", time_t_conv.data[i]); data/geomview-1.9.5/src/lib/shade/texture.c:561: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 allowed[256], *tail = allowed; data/geomview-1.9.5/src/lib/shade/texture.c:697: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 hname[2*(4+(INO_T_LSIZE+DEV_T_LSIZE+TIME_T_LSIZE)*SIZEOF_LONG)+1]; data/geomview-1.9.5/src/bin/animate/animate.c:90: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). length += (strlen(str[n]) + 1); data/geomview-1.9.5/src/bin/animate/animate.c:102: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). for (ch = 0; ch < (int)strlen(str[n]); ch++) data/geomview-1.9.5/src/bin/animate/animate.c:131: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). ((dlen = strlen(argv[argnum])) >= 2)) data/geomview-1.9.5/src/bin/animate/animate.c:354:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (char) fgetc(stdin); data/geomview-1.9.5/src/bin/animate/animate.c:391:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = (char) fgetc(stdin); data/geomview-1.9.5/src/bin/animate/animate.c:579:8: [1] (buffer) strlen: Does not handle 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(str)) data/geomview-1.9.5/src/bin/animate/animate.c:590: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). command = (char *) malloc( sizeof(char) * (strlen(str) + 1) ); data/geomview-1.9.5/src/bin/animate/animate.c:656:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = (char) fgetc(scriptfile); data/geomview-1.9.5/src/bin/animate/glob.c:547: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 len = strlen(s1) + strlen(s2) + 1; data/geomview-1.9.5/src/bin/animate/glob.c:547: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). int len = strlen(s1) + strlen(s2) + 1; data/geomview-1.9.5/src/bin/animate/glob.c:688:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *ep = malloc((unsigned)(strlen(cp) + strlen(dp) + 1)); data/geomview-1.9.5/src/bin/animate/glob.c:688: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). char *ep = malloc((unsigned)(strlen(cp) + strlen(dp) + 1)); data/geomview-1.9.5/src/bin/animate/glob.c:731: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). if (!pp || home + strlen(pp->pw_dir) >= lastgpathp) data/geomview-1.9.5/src/bin/clipboard/clipboard.c:204:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tmp = (char)fgetc(stdin); data/geomview-1.9.5/src/bin/clipboard/clipboard.c:209:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tmp = (char)fgetc(stdin); data/geomview-1.9.5/src/bin/clipboard/clipboard.c:239:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tmp = (char)fgetc(stdin); data/geomview-1.9.5/src/bin/clipboard/clipboard.c:244:17: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tmp = (char)fgetc(stdin); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:131: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). ign_write(2, myname, strlen(myname)); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:175:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ign_write(savederr, gvpath[0], strlen(gvpath[0])); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:207:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(un.sun_path, pipename, sizeof(un.sun_path)-1); data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:325:23: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(k = buf; (c = getchar()) > ' ' && c != ',' && c != '(' && c != ')' data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:332:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = getchar()) == '\n') { data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:333:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = getchar()) == ' ' || c == '\t') data/geomview-1.9.5/src/bin/geomutil/math2oogl/math2oogl.c:354: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). lastline->data = malloc(strlen(buf)+1); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:113: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). PRINT_PADDING(f, strlen("coordIndex [")); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:150: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). PRINT_PADDING(f, strlen("point [")); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:168: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). PRINT_PADDING(f, strlen("vector [")); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:180: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). PRINT_PADDING(f, strlen("vector [")); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:212: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). PRINT_PADDING(f, strlen("RGB [")); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:227: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). PRINT_PADDING(f, strlen("RGB [")); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:278: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). PRINT_PADDING(f, strlen("point [")); data/geomview-1.9.5/src/bin/geomutil/oogl2vrml/oogl2vrml2.c:301: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). PRINT_PADDING(f, strlen("RGB [")); data/geomview-1.9.5/src/bin/geomutil/plutil/anytooff.main.c:61: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). int len = strlen(arg); data/geomview-1.9.5/src/bin/geomutil/plutil/polymerge.c:346: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). for(cp = aff; --nfc >= 0; cp += strlen(cp)) { data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:265: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). n = strlen(str[i]); data/geomview-1.9.5/src/bin/geomutil/ucd/ucdtooff.c:334: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). n = strlen(str[i]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDB.c++:15:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvDB::read(QvInput *in, QvNode *&node) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDB.c++:19:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = QvNode::read(in, node); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvDB.h:35:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static QvBool read(QvInput *in, QvNode *&rootNode); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.c++:22:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvField::read(QvInput *in, const QvName &name) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.c++:101:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(c) && c == OPEN_BRACE_CHAR) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.c++:103:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(c) && c == CLOSE_BRACE_CHAR) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.c++:113:45: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! read1Value(in, curIndex++) || ! in->read(c)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.c++:120:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(c)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvField.h:40:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(QvInput *in, const QvName &name); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:177:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! (in->read(c) || c != OPEN_BRACE_CHAR)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:180:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(c) && c == CLOSE_BRACE_CHAR) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:189:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(fieldType, TRUE) || ! in->read(fieldName, TRUE)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:189:50: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(fieldType, TRUE) || ! in->read(fieldName, TRUE)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:198:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(c)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:202:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(c)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:217:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvFieldData::read(QvInput *in, QvNode *object, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:226:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(fieldName, TRUE) || ! fieldName) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:230:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! read(in, object, fieldName, foundName)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:248:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvFieldData::read(QvInput *in, QvNode *object, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.c++:254:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! getField(object, i)->read(in, fieldName)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.h:52:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(QvInput *in, QvNode *object, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvFieldData.h:55:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(QvInput *in, QvNode *object, data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvGroup.c++:46:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(typeString, TRUE)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvGroup.c++:58:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (fieldData->read(in, this, FALSE) && readChildren(in)); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvGroup.c++:68:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(in, child)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:87:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int i = getc(fp); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:103:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(char &c) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:109:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(QvString &s) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:171:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(QvName &n, QvBool validIdent) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:181:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! read(s)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:233:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(int &i) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:239:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(unsigned int &i) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:245:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(short &s) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:251:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(unsigned short &s) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:257:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(long &l) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:263:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(unsigned long &l) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:269:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(float &f) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:275:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvInput::read(double &d) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:349:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((ch = getc(fp)) != EOF) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.c++:397:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). got = ::read(fileno(fp), &c, 1) > 0; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:41:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(char &c); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:42:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(QvString &s); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:43:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(QvName &n, QvBool validIdent = FALSE); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:44:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(int &i); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:45:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(unsigned int &i); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:46:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(short &s); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:47:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(unsigned short &s); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:48:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(long &l); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:49:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(unsigned long &l); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:50:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(float &f); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvInput.h:51:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvBool read(double &d); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFColor.c++:10:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(valuePtr[0]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFColor.c++:11:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(valuePtr[1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFColor.c++:12:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(valuePtr[2])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFFloat.c++:8:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return in->read(values[index]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFLong.c++:8:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return in->read(values[index]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFString.c++:8:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return in->read(values[index]); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec2f.c++:10:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(valuePtr[0]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec2f.c++:11:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(valuePtr[1])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec3f.c++:10:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(valuePtr[0]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec3f.c++:11:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(valuePtr[1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvMFVec3f.c++:12:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(valuePtr[2])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvName.c++:54: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 len = strlen(s) + 1; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:158:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QvNode::read(QvInput *in, QvNode *&node) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:163:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(name, TRUE)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:190:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(typeString, TRUE)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:201:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! fieldData->read(in, this)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:213:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(refName, FALSE)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:237:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(refName, FALSE) || ! in->read(className, TRUE)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:237:42: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(refName, FALSE) || ! in->read(className, TRUE)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:257:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! (gotChar = in->read(c)) || c != OPEN_BRACE) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:272:32: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). else if (! (gotChar = in->read(c)) || c != CLOSE_BRACE) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.c++:314:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(unknownString) || unknownString != "fields") { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvNode.h:60:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). static QvBool read(QvInput *in, QvNode *&node); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBitMask.c++:31:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(c)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBitMask.c++:39:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(n, TRUE) && ! (! n) ) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBitMask.c++:51:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(c)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBitMask.c++:73:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(n, TRUE)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBool.c++:10:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (in->read(value)) { data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFBool.c++:21:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(n, TRUE)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFColor.c++:8:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(value[0]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFColor.c++:9:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFColor.c++:10:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[2])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFEnum.c++:48:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(n, TRUE)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFFloat.c++:8:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return in->read(value); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFImage.c++:20:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(size[0]) || data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFImage.c++:21:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ! in->read(size[1]) || data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFImage.c++:22:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ! in->read(numComponents)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFImage.c++:32:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (! in->read(l)) data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFLong.c++:8:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return in->read(value); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:8:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(value[0][0]) && in->read(value[0][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:8:43: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(value[0][0]) && in->read(value[0][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:9:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[0][2]) && in->read(value[0][3]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:9:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[0][2]) && in->read(value[0][3]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:10:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[1][0]) && in->read(value[1][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:10:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[1][0]) && in->read(value[1][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:11:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[1][2]) && in->read(value[1][3]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:11:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[1][2]) && in->read(value[1][3]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:12:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[2][0]) && in->read(value[2][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:12:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[2][0]) && in->read(value[2][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:13:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[2][2]) && in->read(value[2][3]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:13:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[2][2]) && in->read(value[2][3]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:14:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[3][0]) && in->read(value[3][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:14:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[3][0]) && in->read(value[3][1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:15:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[3][2]) && in->read(value[3][3])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFMatrix.c++:15:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[3][2]) && in->read(value[3][3])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFRotation.c++:8:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(axis[0]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFRotation.c++:9:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(axis[1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFRotation.c++:10:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(axis[2]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFRotation.c++:11:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(angle)); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFString.c++:8:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return in->read(value); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec2f.c++:8:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(value[0]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec2f.c++:9:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[1])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec3f.c++:8:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (in->read(value[0]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec3f.c++:9:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[1]) && data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvSFVec3f.c++:10:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in->read(value[2])); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.c++:12:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int newSize = strlen(string) + bySize + 1; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.c++:59: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). int size = strlen(str) + 1; data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.c++:91: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). expand(strlen(str)); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.h:37:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int getLength() const { return strlen(string); } data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvString.h:97:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int getLength() const { return strlen(entry->string); } data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1315:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = tail ? tail - p : strlen(p); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1319:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf+len+1, str, 2046-len); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1364: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). sprintf(buf + strlen(buf), "-w %g ", wid); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1366: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). sprintf(buf + strlen(buf), "-hershey %s ", font); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1368: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). q = buf + strlen(buf); data/geomview-1.9.5/src/bin/geomutil/vrml2oogl/lib/QvToWebOOGL.c++:1377:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(q = buf; (c = getc(f)) != EOF; ) { data/geomview-1.9.5/src/bin/geomview/common/comm.c:115:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read(fd, buffer, size); data/geomview-1.9.5/src/bin/geomview/common/comm.c:251: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). IOBFILE *inf = iobfileopen(fmemopen(str, strlen(str), "rb")); data/geomview-1.9.5/src/bin/geomview/common/comm.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). envexpand(buf+strlen(name)+1); data/geomview-1.9.5/src/bin/geomview/common/comm.c:586: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). len = strlen(modname); data/geomview-1.9.5/src/bin/geomview/common/comm.c:701:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen(p); data/geomview-1.9.5/src/bin/geomview/common/comm.c:966:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). LDEFINE(read, LVOID, data/geomview-1.9.5/src/bin/geomview/common/drawer.c:2330:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). f = iobfileopen(fmemopen(apdefault, strlen(apdefault), "rb")); data/geomview-1.9.5/src/bin/geomview/common/drawer.c:2438:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). f = iobfileopen(fmemopen(defaultcam, strlen(defaultcam), "rb")); data/geomview-1.9.5/src/bin/geomview/common/help.c:49:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(type, "html", strlen("html")) == 0) { data/geomview-1.9.5/src/bin/geomview/common/help.c:104:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(htmlbrowser, browser, PATH_MAX); data/geomview-1.9.5/src/bin/geomview/common/help.c:125:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pdfviewer, browser, PATH_MAX); data/geomview-1.9.5/src/bin/geomview/common/lights.c:104:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). f = iobfileopen(fmemopen(raytxt, strlen(raytxt), "rb")); data/geomview-1.9.5/src/bin/geomview/common/lispext.c:880: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). toklen = strlen(tok); data/geomview-1.9.5/src/bin/geomview/common/main.c:151: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). room += strlen(next)+1+1; data/geomview-1.9.5/src/bin/geomview/common/main.c:156:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cmd, " "); data/geomview-1.9.5/src/bin/geomview/common/main.c:159: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). baselen = strlen(cmd); data/geomview-1.9.5/src/bin/geomview/common/main.c:162:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(cmd, " "); data/geomview-1.9.5/src/bin/geomview/common/main.c:167:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new.name = OOGLNewNE(char, room + strlen(firstname) + 1, "emod name"); data/geomview-1.9.5/src/bin/geomview/common/main.c:272: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). room = strlen(old->text) +1 +1; data/geomview-1.9.5/src/bin/geomview/common/motion.c:426:3: [1] (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 character. strcpy(buttonsdown, ""); data/geomview-1.9.5/src/bin/geomview/common/motion.c:460:42: [1] (buffer) strlen: Does not handle 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(buttonsdown[0] != '\0') buttonsdown[strlen(buttonsdown)-1] = '\0'; data/geomview-1.9.5/src/bin/geomview/common/rman.c:170:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(displayname, filename, strend-filename); data/geomview-1.9.5/src/bin/geomview/x11/gvcommands.c:133:8: [1] (buffer) strlen: Does not handle 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(str)) data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:134: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). if ((name != NULL) && (strlen(name)>0)) { data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:973:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(c,e+ei,n); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:974: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). c[strlen(c)-1] = '0'; data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:975:3: [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(c,"["); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:977:3: [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(c,"]"); data/geomview-1.9.5/src/bin/geomview/x11/gvui.c:980:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(c,e,n); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:296:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(un.sun_path, pipename, sizeof(un.sun_path)-1); data/geomview-1.9.5/src/bin/togeomview/togeomview.c:374:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((n = read(0, buffer, sizeof(buffer))) > 0) { data/geomview-1.9.5/src/bin/togeomview/togeomview.c:396:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read(fd, buffer, sizeof(buffer))) > 0) { data/geomview-1.9.5/src/lib/aclib/lstat.c:77: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). pathlen = strlen(path); data/geomview-1.9.5/src/lib/aclib/putenv.c:101: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). l_value = strlen(value); data/geomview-1.9.5/src/lib/aclib/putenv.c:103: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). if (strlen(C) >= l_value) { /* old larger; copy over */ data/geomview-1.9.5/src/lib/aclib/strdup.c:56: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). len = strlen(str); data/geomview-1.9.5/src/lib/fexpr/lex.yy.c:414: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). buflen = strlen(buf); data/geomview-1.9.5/src/lib/fexpr/lex.yy.c:520:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( fparse_yyin )) != EOF && c != '\n'; ++n ) \ data/geomview-1.9.5/src/lib/fexpr/lex.yy.c:674:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). { fparse_yylval.string = malloc(strlen(fparse_yytext)+1); strcpy (fparse_yylval.string, fparse_yytext); return IDENT; } data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:1039:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size += strlen(fparse_yytname[x]) + 15, count++; data/geomview-1.9.5/src/lib/fexpr/parse.tab.c:1054:4: [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(msg, "'"); data/geomview-1.9.5/src/lib/fexpr/vars.c:53:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). e->varnames[e->nvars] = malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/gprim/comment/commentcreate.c:59:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (datalength == 0) datalength = strlen(comment->data)+1; data/geomview-1.9.5/src/lib/gprim/comment/commentcreate.c:62:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nc->name = OOGLNewNE(char, strlen(comment->name)+1, "Comment name"); data/geomview-1.9.5/src/lib/gprim/comment/commentcreate.c:63:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nc->type = OOGLNewNE(char, strlen(comment->type)+1, "Comment type"); data/geomview-1.9.5/src/lib/gprim/comment/commentstream.c:67:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return OOGLRenewNE(char, buf, strlen(buf)+1, "Comment data"); data/geomview-1.9.5/src/lib/gprim/comment/commentstream.c:86:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). comment->name = OOGLNewNE(char, strlen(str)+1, "Comment name"); data/geomview-1.9.5/src/lib/gprim/comment/commentstream.c:89:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). comment->type = OOGLNewNE(char, strlen(str)+1, "Comment type"); data/geomview-1.9.5/src/lib/gprim/discgrp/dgconstraint.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). if ((l = strlen(dgel->word)) > constraint_depth) data/geomview-1.9.5/src/lib/gprim/discgrp/dgstream.c:219:6: [1] (buffer) strlen: Does not handle 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) > DG_WORDLENGTH) { data/geomview-1.9.5/src/lib/gprim/geom/geomstream.c:202: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). gt->prefixlen = strlen(prefix); data/geomview-1.9.5/src/lib/gprim/geom/geomstream.c:211:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). long pos = iobftell(pf) - strlen(prefix); data/geomview-1.9.5/src/lib/mg/rib/mgrib.c:200:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((dst), (src), sizeof(dst)); (dst)[sizeof(dst)-1] = '\0' data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:291: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 = strlen(s); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:304: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 = strlen(s); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:312: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 = strlen(s); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:420: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 = strlen(string); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:433: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 = strlen(string); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:745: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). length = (unsigned short) strlen(string); data/geomview-1.9.5/src/lib/mg/rib/mgribtoken.c:762: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). length = strlen(string); data/geomview-1.9.5/src/lib/mib/mibButton.c:63:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibButton.c:88:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). myres->label = (char *)malloc(strlen(label)+1); data/geomview-1.9.5/src/lib/mib/mibButton.c:165: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). vallen = strlen(val); data/geomview-1.9.5/src/lib/mib/mibDrawArea.c:61:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibFrame.c:62:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibLabel.c:64:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibLabel.c:89:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). myres->label = (char *)malloc(strlen(label)+1); data/geomview-1.9.5/src/lib/mib/mibLabel.c:157: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). vallen = strlen(val); data/geomview-1.9.5/src/lib/mib/mibList.c:67:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibMenu.c:66:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibMenu.c:116: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). myres->my_menu[0].label = (char *)malloc(strlen(label_temp)+1); data/geomview-1.9.5/src/lib/mib/mibMenu.c:128: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). myres->my_menu[1].label = (char *)malloc(strlen(label_temp)+1); data/geomview-1.9.5/src/lib/mib/mibMenu.c:140: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). myres->my_menu[2].label = (char *)malloc(strlen(label_temp)+1); data/geomview-1.9.5/src/lib/mib/mibMenu.c:221: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). vallen = strlen(val); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:64:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:96:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). myres->labels[0] = (char *)malloc(strlen(label_temp)+1); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:99:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). myres->labels[1] = (char *)malloc(strlen(label_temp)+1); data/geomview-1.9.5/src/lib/mib/mibRadioBox.c:201: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). vallen = strlen(val); data/geomview-1.9.5/src/lib/mib/mibScale.c:69:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibScrollBar.c:62:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibTextBig.c:64:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibTextBox.c:62:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibTextBox.c:90:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). myres->init_contents = (char *)malloc(strlen(contents)+1); data/geomview-1.9.5/src/lib/mib/mibToggle.c:64:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp->name = (char *)malloc(strlen(name)+1); data/geomview-1.9.5/src/lib/mib/mibToggle.c:90:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). myres->label = (char *)malloc(strlen(label)+1); data/geomview-1.9.5/src/lib/mib/mibToggle.c:174: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). vallen = strlen(val); data/geomview-1.9.5/src/lib/mib/mibload.c:359:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = (char)fgetc(infile); data/geomview-1.9.5/src/lib/mib/mibload.c:383: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). thisfile.buflen = strlen(instring); data/geomview-1.9.5/src/lib/mib/mibload.c:412: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). namelen = strlen(name); data/geomview-1.9.5/src/lib/mib/mibload.c:480:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). val[strlen(val)-1] = '\0'; data/geomview-1.9.5/src/lib/mib/mibload.c:482:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). this->name = (char *)malloc(strlen(val)); data/geomview-1.9.5/src/lib/mib/mibload.c:708:15: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = (char)fgetc(fin); data/geomview-1.9.5/src/lib/mib/mibload.c:763:7: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(val,"\0"); /* ???? */ data/geomview-1.9.5/src/lib/mib/mibload.c:774: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(inbuf)-mark > 1) data/geomview-1.9.5/src/lib/mib/mibload.c:778:2: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(val,"\0"); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:222:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:226:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:295:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:334:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:338:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:405:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:443:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return ((size_t)end - (size_t)cp) == strlen(cp) ? true : false; data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:496:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:544:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return ((size_t)end - (size_t)cp) == strlen(cp) ? true : false; data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:599:39: [1] (buffer) strlen: Does not handle 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 (((size_t)end - (size_t)cp) == strlen(cp)) { data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1409: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). helpsize = strlen(helpstring) + strlen(name) + strlen("()\n"); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1409:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). helpsize = strlen(helpstring) + strlen(name) + strlen("()\n"); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1409:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). helpsize = strlen(helpstring) + strlen(name) + strlen("()\n"); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1417: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). helpsize += strlen(argname); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:1628:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. LDEFINE(equal, LINT, data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:2609:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). VARARRAY(builtin, char, strlen(name)+sizeof("-builtin--")); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3523:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p->p0, str, MAXPATLEN-1); data/geomview-1.9.5/src/lib/oogl/lisp/lisp.c:3532: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->len[n] = strlen(rest); data/geomview-1.9.5/src/lib/oogl/refcomm/streampool.c:474:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sa.sun_path, name, sizeof(sa.sun_path)); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:198: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). end = dir + strlen(dir) - 1; data/geomview-1.9.5/src/lib/oogl/util/findfile.c:223: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). c += strlen(env); data/geomview-1.9.5/src/lib/oogl/util/findfile.c:237:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). c += strlen(env); data/geomview-1.9.5/src/lib/oogl/util/futil.c:232:6: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:246:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = getc(f)) != '\n' && c != EOF) data/geomview-1.9.5/src/lib/oogl/util/futil.c:261:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:304:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = fgetc(f)) == '-') { data/geomview-1.9.5/src/lib/oogl/util/futil.c:306:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:316:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:322:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = fgetc(f)) >= '0' && c <= '9') { data/geomview-1.9.5/src/lib/oogl/util/futil.c:336:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). switch(c = fgetc(f)) { data/geomview-1.9.5/src/lib/oogl/util/futil.c:340:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:346:6: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:397:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = getc(f)) == '-') { data/geomview-1.9.5/src/lib/oogl/util/futil.c:399:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:409:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:415:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = getc(f)) >= '0' && c <= '9') { data/geomview-1.9.5/src/lib/oogl/util/futil.c:429:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). switch(c = getc(f)) { data/geomview-1.9.5/src/lib/oogl/util/futil.c:433:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:439:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:480:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = getc(f)) == '-') { data/geomview-1.9.5/src/lib/oogl/util/futil.c:482:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:487:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:522:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = getc(f)) == '-') { data/geomview-1.9.5/src/lib/oogl/util/futil.c:524:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:529:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:552:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = getc(file)) != *p++) { data/geomview-1.9.5/src/lib/oogl/util/futil.c:573:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int n, k, c = fgetc(f); data/geomview-1.9.5/src/lib/oogl/util/futil.c:585:16: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = fgetc(f)) >= '0' && c <= '7') { data/geomview-1.9.5/src/lib/oogl/util/futil.c:623:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) fgetc(file); data/geomview-1.9.5/src/lib/oogl/util/futil.c:625:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = getc(file)) == EOF || c == term) data/geomview-1.9.5/src/lib/oogl/util/futil.c:643:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = getc(file)) != EOF && !isspace(c)) { data/geomview-1.9.5/src/lib/oogl/util/futil.c:692:13: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) fgetc(file); data/geomview-1.9.5/src/lib/oogl/util/futil.c:694:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((c = getc(file)) == EOF || c == term) data/geomview-1.9.5/src/lib/oogl/util/futil.c:712:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((c = getc(file)) != EOF && !isspace(c)) { data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:157:8: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #undef getc data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:158:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define getc gobble data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:160:9: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define fgetc gobble data/geomview-1.9.5/src/lib/oogl/util/iobfutil.c:760: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). q += strlen(q); data/geomview-1.9.5/src/lib/oogl/util/iobuffer.c:729:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). tail_rd = read(iobf->fd, data/geomview-1.9.5/src/lib/oogl/util/malloc-debug.c:103:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(string); data/geomview-1.9.5/src/lib/oogl/wa/lex.yy.c:639:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/geomview-1.9.5/src/lib/oogl/wa/lex.yy.c:1687: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). return yy_scan_bytes(yystr,strlen(yystr) ); data/geomview-1.9.5/src/lib/oogl/wa/wa.lex.c:639:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( wafsain )) != EOF && c != '\n'; ++n ) \ data/geomview-1.9.5/src/lib/oogl/wa/wa.lex.c:1687:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return wafsa_scan_bytes(wafsastr,strlen(wafsastr) ); data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.c:893:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define wafsastrlen strlen data/geomview-1.9.5/src/lib/oogl/wa/wa.yacc.c:1483: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). (char*)malloc((strlen((wafsavsp[(3) - (3)].s))+1)*sizeof(char)); data/geomview-1.9.5/src/lib/oogl/wa/y.tab.c:893: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). # define yystrlen strlen data/geomview-1.9.5/src/lib/oogl/wa/y.tab.c:1483: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). (char*)malloc((strlen((yyvsp[(3) - (3)].s))+1)*sizeof(char)); data/geomview-1.9.5/src/lib/shade/image.c:532:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(filterpath, filter, PATH_MAX); data/geomview-1.9.5/src/lib/shade/texture.c:567: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). tail += strlen(tail); ANALYSIS SUMMARY: Hits = 1147 Lines analyzed = 155902 in approximately 4.26 seconds (36637 lines/second) Physical Source Lines of Code (SLOC) = 104315 Hits@level = [0] 1008 [1] 328 [2] 562 [3] 42 [4] 209 [5] 6 Hits@level+ = [0+] 2155 [1+] 1147 [2+] 819 [3+] 257 [4+] 215 [5+] 6 Hits/KSLOC@level+ = [0+] 20.6586 [1+] 10.9955 [2+] 7.85122 [3+] 2.46369 [4+] 2.06107 [5+] 0.0575181 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.