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/gnudatalanguage-0.9.9/obsolete/strassenmatrix.hpp
Examining data/gnudatalanguage-0.9.9/src/CFMTLexer.cpp
Examining data/gnudatalanguage-0.9.9/src/CFMTLexer.hpp
Examining data/gnudatalanguage-0.9.9/src/CFMTTokenTypes.hpp
Examining data/gnudatalanguage-0.9.9/src/FMTIn.cpp
Examining data/gnudatalanguage-0.9.9/src/FMTIn.hpp
Examining data/gnudatalanguage-0.9.9/src/FMTInTokenTypes.hpp
Examining data/gnudatalanguage-0.9.9/src/FMTLexer.cpp
Examining data/gnudatalanguage-0.9.9/src/FMTLexer.hpp
Examining data/gnudatalanguage-0.9.9/src/FMTOut.cpp
Examining data/gnudatalanguage-0.9.9/src/FMTOut.hpp
Examining data/gnudatalanguage-0.9.9/src/FMTOutTokenTypes.hpp
Examining data/gnudatalanguage-0.9.9/src/FMTParser.cpp
Examining data/gnudatalanguage-0.9.9/src/FMTParser.hpp
Examining data/gnudatalanguage-0.9.9/src/FMTTokenTypes.hpp
Examining data/gnudatalanguage-0.9.9/src/GDLInterpreter.cpp
Examining data/gnudatalanguage-0.9.9/src/GDLInterpreter.hpp
Examining data/gnudatalanguage-0.9.9/src/GDLInterpreterTokenTypes.hpp
Examining data/gnudatalanguage-0.9.9/src/GDLLexer.cpp
Examining data/gnudatalanguage-0.9.9/src/GDLLexer.hpp
Examining data/gnudatalanguage-0.9.9/src/GDLParser.cpp
Examining data/gnudatalanguage-0.9.9/src/GDLParser.hpp
Examining data/gnudatalanguage-0.9.9/src/GDLTokenTypes.hpp
Examining data/gnudatalanguage-0.9.9/src/GDLTreeParser.cpp
Examining data/gnudatalanguage-0.9.9/src/GDLTreeParser.hpp
Examining data/gnudatalanguage-0.9.9/src/GDLTreeParserTokenTypes.hpp
Examining data/gnudatalanguage-0.9.9/src/accessdesc.hpp
Examining data/gnudatalanguage-0.9.9/src/allix.cpp
Examining data/gnudatalanguage-0.9.9/src/allix.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ANTLRException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ANTLRUtil.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ANTLRUtil.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/AST.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTArray.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTFactory.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTFactory.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTNULLType.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTNULLType.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTPair.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTRefCount.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ASTRefCount.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/BaseAST.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/BaseAST.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/BitSet.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/BitSet.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CharBuffer.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CharBuffer.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CharInputBuffer.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CharScanner.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CharScanner.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CharStreamException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CharStreamIOException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CircularQueue.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonAST.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonAST.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonASTWithHiddenTokens.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonASTWithHiddenTokens.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonHiddenStreamToken.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonHiddenStreamToken.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonToken.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/CommonToken.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/IOException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/InputBuffer.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/InputBuffer.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/LLkParser.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/LLkParser.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/LexerSharedInputState.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/MismatchedCharException.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/MismatchedCharException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/MismatchedTokenException.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/MismatchedTokenException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/NoViableAltException.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/NoViableAltException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/NoViableAltForCharException.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/NoViableAltForCharException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/Parser.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/Parser.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/ParserSharedInputState.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/RecognitionException.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/RecognitionException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/RefCount.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/SemanticException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/String.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/String.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/Token.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/Token.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenBuffer.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenBuffer.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStream.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamBasicFilter.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamBasicFilter.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamHiddenTokenFilter.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamHiddenTokenFilter.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamIOException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamRecognitionException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamRetryException.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamSelector.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TokenStreamSelector.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TreeParser.cpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TreeParser.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/TreeParserSharedInputState.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/config.hpp
Examining data/gnudatalanguage-0.9.9/src/antlr/dll.cpp
Examining data/gnudatalanguage-0.9.9/src/arrayindex.cpp
Examining data/gnudatalanguage-0.9.9/src/arrayindex.hpp
Examining data/gnudatalanguage-0.9.9/src/arrayindexlistnoassoct.hpp
Examining data/gnudatalanguage-0.9.9/src/arrayindexlistt.hpp
Examining data/gnudatalanguage-0.9.9/src/assocdata.cpp
Examining data/gnudatalanguage-0.9.9/src/assocdata.hpp
Examining data/gnudatalanguage-0.9.9/src/base64.hpp
Examining data/gnudatalanguage-0.9.9/src/basegdl.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_fun.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_fun.hpp
Examining data/gnudatalanguage-0.9.9/src/basic_fun_cl.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_fun_cl.hpp
Examining data/gnudatalanguage-0.9.9/src/basic_fun_jmg.hpp
Examining data/gnudatalanguage-0.9.9/src/basic_op.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_op_add.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_op_div.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_op_mult.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_op_new.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_op_sub.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_pro.hpp
Examining data/gnudatalanguage-0.9.9/src/basic_pro_jmg.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_pro_jmg.hpp
Examining data/gnudatalanguage-0.9.9/src/brent.cpp
Examining data/gnudatalanguage-0.9.9/src/brent.hpp
Examining data/gnudatalanguage-0.9.9/src/calendar.cpp
Examining data/gnudatalanguage-0.9.9/src/calendar.hpp
Examining data/gnudatalanguage-0.9.9/src/color.cpp
Examining data/gnudatalanguage-0.9.9/src/color.hpp
Examining data/gnudatalanguage-0.9.9/src/convert2.cpp
Examining data/gnudatalanguage-0.9.9/src/convol.cpp
Examining data/gnudatalanguage-0.9.9/src/convol.hpp
Examining data/gnudatalanguage-0.9.9/src/convol_inc.cpp
Examining data/gnudatalanguage-0.9.9/src/convol_inc0.cpp
Examining data/gnudatalanguage-0.9.9/src/convol_inc1.cpp
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT-jump.c
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT-jump.h
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT-params19937.h
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT-poly.h
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT.c
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT.h
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT-common.h
Examining data/gnudatalanguage-0.9.9/src/dSFMT/dSFMT-params.h
Examining data/gnudatalanguage-0.9.9/src/datalistt.hpp
Examining data/gnudatalanguage-0.9.9/src/datatypes.hpp
Examining data/gnudatalanguage-0.9.9/src/datatypes_minmax.cpp
Examining data/gnudatalanguage-0.9.9/src/datatypesref.cpp
Examining data/gnudatalanguage-0.9.9/src/dcommon.cpp
Examining data/gnudatalanguage-0.9.9/src/dcommon.hpp
Examining data/gnudatalanguage-0.9.9/src/dcompiler.cpp
Examining data/gnudatalanguage-0.9.9/src/dcompiler.hpp
Examining data/gnudatalanguage-0.9.9/src/default_io.cpp
Examining data/gnudatalanguage-0.9.9/src/devicenull.hpp
Examining data/gnudatalanguage-0.9.9/src/deviceps.hpp
Examining data/gnudatalanguage-0.9.9/src/devicesvg.hpp
Examining data/gnudatalanguage-0.9.9/src/devicewin.cpp
Examining data/gnudatalanguage-0.9.9/src/devicewin.hpp
Examining data/gnudatalanguage-0.9.9/src/devicewx.hpp
Examining data/gnudatalanguage-0.9.9/src/devicex.hpp
Examining data/gnudatalanguage-0.9.9/src/devicez.hpp
Examining data/gnudatalanguage-0.9.9/src/dialog.cpp
Examining data/gnudatalanguage-0.9.9/src/dialog.hpp
Examining data/gnudatalanguage-0.9.9/src/dimension.hpp
Examining data/gnudatalanguage-0.9.9/src/dinterpreter.cpp
Examining data/gnudatalanguage-0.9.9/src/dinterpreter.hpp
Examining data/gnudatalanguage-0.9.9/src/dll/two.cpp
Examining data/gnudatalanguage-0.9.9/src/dnode.cpp
Examining data/gnudatalanguage-0.9.9/src/dnode.hpp
Examining data/gnudatalanguage-0.9.9/src/dnodefactory.hpp
Examining data/gnudatalanguage-0.9.9/src/dpro.cpp
Examining data/gnudatalanguage-0.9.9/src/dpro.hpp
Examining data/gnudatalanguage-0.9.9/src/dstructdesc.cpp
Examining data/gnudatalanguage-0.9.9/src/dstructdesc.hpp
Examining data/gnudatalanguage-0.9.9/src/dstructfactory.cxx
Examining data/gnudatalanguage-0.9.9/src/dstructgdl.cpp
Examining data/gnudatalanguage-0.9.9/src/dstructgdl.hpp
Examining data/gnudatalanguage-0.9.9/src/dvar.cpp
Examining data/gnudatalanguage-0.9.9/src/dvar.hpp
Examining data/gnudatalanguage-0.9.9/src/envt.cpp
Examining data/gnudatalanguage-0.9.9/src/envt.hpp
Examining data/gnudatalanguage-0.9.9/src/exists_fun.cpp
Examining data/gnudatalanguage-0.9.9/src/exists_fun.hpp
Examining data/gnudatalanguage-0.9.9/src/export.hpp
Examining data/gnudatalanguage-0.9.9/src/extrat.cpp
Examining data/gnudatalanguage-0.9.9/src/extrat.hpp
Examining data/gnudatalanguage-0.9.9/src/fftw.cpp
Examining data/gnudatalanguage-0.9.9/src/fftw.hpp
Examining data/gnudatalanguage-0.9.9/src/file.cpp
Examining data/gnudatalanguage-0.9.9/src/file.hpp
Examining data/gnudatalanguage-0.9.9/src/fmtnode.cpp
Examining data/gnudatalanguage-0.9.9/src/fmtnode.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlarray.hpp
Examining data/gnudatalanguage-0.9.9/src/gdleventhandler.cpp
Examining data/gnudatalanguage-0.9.9/src/gdleventhandler.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlexception.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlexception.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlgstream.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlgstream.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlhelp.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlhelp.hpp
Examining data/gnudatalanguage-0.9.9/src/gdljournal.cpp
Examining data/gnudatalanguage-0.9.9/src/gdljournal.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlpsstream.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlpsstream.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlsvgstream.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlwidget.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlwidget.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlwidgeteventhandler.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlwinstream.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlwinstream.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlwxstream.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlwxstream.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlxstream.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlxstream.hpp
Examining data/gnudatalanguage-0.9.9/src/gdlzstream.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlzstream.hpp
Examining data/gnudatalanguage-0.9.9/src/getas.cpp
Examining data/gnudatalanguage-0.9.9/src/getfmtast.cpp
Examining data/gnudatalanguage-0.9.9/src/getfmtast.hpp
Examining data/gnudatalanguage-0.9.9/src/graphicsdevice.cpp
Examining data/gnudatalanguage-0.9.9/src/graphicsdevice.hpp
Examining data/gnudatalanguage-0.9.9/src/grib.cpp
Examining data/gnudatalanguage-0.9.9/src/grib.hpp
Examining data/gnudatalanguage-0.9.9/src/gshhg.h
Examining data/gnudatalanguage-0.9.9/src/gshhs.cpp
Examining data/gnudatalanguage-0.9.9/src/gshhs.h
Examining data/gnudatalanguage-0.9.9/src/gshhs.hpp
Examining data/gnudatalanguage-0.9.9/src/gsl_fun.cpp
Examining data/gnudatalanguage-0.9.9/src/gsl_fun.hpp
Examining data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp
Examining data/gnudatalanguage-0.9.9/src/gsl_matrix.hpp
Examining data/gnudatalanguage-0.9.9/src/gtdhelper.cpp
Examining data/gnudatalanguage-0.9.9/src/gtdhelper.hpp
Examining data/gnudatalanguage-0.9.9/src/gzstream.hpp
Examining data/gnudatalanguage-0.9.9/src/hash.cpp
Examining data/gnudatalanguage-0.9.9/src/hash.hpp
Examining data/gnudatalanguage-0.9.9/src/hdf5_fun.cpp
Examining data/gnudatalanguage-0.9.9/src/hdf5_fun.hpp
Examining data/gnudatalanguage-0.9.9/src/hdf_fun.cpp
Examining data/gnudatalanguage-0.9.9/src/hdf_fun.hpp
Examining data/gnudatalanguage-0.9.9/src/hdf_pro.cpp
Examining data/gnudatalanguage-0.9.9/src/hdf_pro.hpp
Examining data/gnudatalanguage-0.9.9/src/ifmt.cpp
Examining data/gnudatalanguage-0.9.9/src/image.cpp
Examining data/gnudatalanguage-0.9.9/src/image.hpp
Examining data/gnudatalanguage-0.9.9/src/includefirst.hpp
Examining data/gnudatalanguage-0.9.9/src/initct.cpp
Examining data/gnudatalanguage-0.9.9/src/initsysvar.cpp
Examining data/gnudatalanguage-0.9.9/src/initsysvar.hpp
Examining data/gnudatalanguage-0.9.9/src/interp_multid.h
Examining data/gnudatalanguage-0.9.9/src/io.cpp
Examining data/gnudatalanguage-0.9.9/src/io.hpp
Examining data/gnudatalanguage-0.9.9/src/lapack.cpp
Examining data/gnudatalanguage-0.9.9/src/least_squares.cpp
Examining data/gnudatalanguage-0.9.9/src/least_squares.hpp
Examining data/gnudatalanguage-0.9.9/src/libinit.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_ac.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_cl.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_exists.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_gm.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_jmg.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_jp.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_mes.cpp
Examining data/gnudatalanguage-0.9.9/src/libinit_ng.cpp
Examining data/gnudatalanguage-0.9.9/src/linearprogramming.cpp
Examining data/gnudatalanguage-0.9.9/src/linearprogramming.hpp
Examining data/gnudatalanguage-0.9.9/src/list.cpp
Examining data/gnudatalanguage-0.9.9/src/list.hpp
Examining data/gnudatalanguage-0.9.9/src/magick_cl.hpp
Examining data/gnudatalanguage-0.9.9/src/math_fun.cpp
Examining data/gnudatalanguage-0.9.9/src/math_fun.hpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_ac.cpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_ac.hpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_gm.cpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_gm.hpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_jmg.cpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_jmg.hpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_ng.cpp
Examining data/gnudatalanguage-0.9.9/src/math_fun_ng.hpp
Examining data/gnudatalanguage-0.9.9/src/math_utl.cpp
Examining data/gnudatalanguage-0.9.9/src/math_utl.hpp
Examining data/gnudatalanguage-0.9.9/src/matrix_cholesky.cpp
Examining data/gnudatalanguage-0.9.9/src/matrix_cholesky.hpp
Examining data/gnudatalanguage-0.9.9/src/matrix_invert.cpp
Examining data/gnudatalanguage-0.9.9/src/matrix_invert.hpp
Examining data/gnudatalanguage-0.9.9/src/minmax_include.cpp
Examining data/gnudatalanguage-0.9.9/src/mpi.cpp
Examining data/gnudatalanguage-0.9.9/src/mpi.hpp
Examining data/gnudatalanguage-0.9.9/src/ncdf4_group.cpp
Examining data/gnudatalanguage-0.9.9/src/ncdf_att_cl.cpp
Examining data/gnudatalanguage-0.9.9/src/ncdf_cl.cpp
Examining data/gnudatalanguage-0.9.9/src/ncdf_cl.hpp
Examining data/gnudatalanguage-0.9.9/src/ncdf_dim_cl.cpp
Examining data/gnudatalanguage-0.9.9/src/ncdf_var_cl.cpp
Examining data/gnudatalanguage-0.9.9/src/new.cpp
Examining data/gnudatalanguage-0.9.9/src/new.hpp
Examining data/gnudatalanguage-0.9.9/src/newprognode.cpp
Examining data/gnudatalanguage-0.9.9/src/nullgdl.cpp
Examining data/gnudatalanguage-0.9.9/src/nullgdl.hpp
Examining data/gnudatalanguage-0.9.9/src/objects.cpp
Examining data/gnudatalanguage-0.9.9/src/objects.hpp
Examining data/gnudatalanguage-0.9.9/src/ofmt.cpp
Examining data/gnudatalanguage-0.9.9/src/ofmt.hpp
Examining data/gnudatalanguage-0.9.9/src/overload.cpp
Examining data/gnudatalanguage-0.9.9/src/overload.hpp
Examining data/gnudatalanguage-0.9.9/src/plotting.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting.hpp
Examining data/gnudatalanguage-0.9.9/src/plotting_axis.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_contour.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_cursor.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_device.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_erase.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_image.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_misc.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_oplot.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_plot.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_plots.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_polyfill.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_shade_surf.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_surface.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_windows.cpp
Examining data/gnudatalanguage-0.9.9/src/plotting_xyouts.cpp
Examining data/gnudatalanguage-0.9.9/src/plplot_wxwidgets.h
Examining data/gnudatalanguage-0.9.9/src/print.cpp
Examining data/gnudatalanguage-0.9.9/src/print_tree.cpp
Examining data/gnudatalanguage-0.9.9/src/print_tree.hpp
Examining data/gnudatalanguage-0.9.9/src/prognode.cpp
Examining data/gnudatalanguage-0.9.9/src/prognode.hpp
Examining data/gnudatalanguage-0.9.9/src/prognode_lexpr.cpp
Examining data/gnudatalanguage-0.9.9/src/prognodeexpr.cpp
Examining data/gnudatalanguage-0.9.9/src/prognodeexpr.hpp
Examining data/gnudatalanguage-0.9.9/src/read.cpp
Examining data/gnudatalanguage-0.9.9/src/real2int.hpp
Examining data/gnudatalanguage-0.9.9/src/saverestore.cpp
Examining data/gnudatalanguage-0.9.9/src/saverestore.hpp
Examining data/gnudatalanguage-0.9.9/src/semshm.cpp
Examining data/gnudatalanguage-0.9.9/src/semshm.hpp
Examining data/gnudatalanguage-0.9.9/src/sigfpehandler.cpp
Examining data/gnudatalanguage-0.9.9/src/sigfpehandler.hpp
Examining data/gnudatalanguage-0.9.9/src/smooth.cpp
Examining data/gnudatalanguage-0.9.9/src/smooth.hpp
Examining data/gnudatalanguage-0.9.9/src/smooth1d.hpp
Examining data/gnudatalanguage-0.9.9/src/smooth1dnans.hpp
Examining data/gnudatalanguage-0.9.9/src/smooth2d.hpp
Examining data/gnudatalanguage-0.9.9/src/smooth2dnans.hpp
Examining data/gnudatalanguage-0.9.9/src/smoothPolyD.hpp
Examining data/gnudatalanguage-0.9.9/src/smoothPolyDnans.hpp
Examining data/gnudatalanguage-0.9.9/src/smooth_inc.cpp
Examining data/gnudatalanguage-0.9.9/src/specializations.hpp
Examining data/gnudatalanguage-0.9.9/src/ssrfpack.c
Examining data/gnudatalanguage-0.9.9/src/str.cpp
Examining data/gnudatalanguage-0.9.9/src/str.hpp
Examining data/gnudatalanguage-0.9.9/src/stripack.c
Examining data/gnudatalanguage-0.9.9/src/terminfo.cpp
Examining data/gnudatalanguage-0.9.9/src/terminfo.hpp
Examining data/gnudatalanguage-0.9.9/src/test_template_grouping.cpp
Examining data/gnudatalanguage-0.9.9/src/tiff.cxx
Examining data/gnudatalanguage-0.9.9/src/topython.cpp
Examining data/gnudatalanguage-0.9.9/src/triangulation.cpp
Examining data/gnudatalanguage-0.9.9/src/triangulation.hpp
Examining data/gnudatalanguage-0.9.9/src/tripack.c
Examining data/gnudatalanguage-0.9.9/src/typedefs.hpp
Examining data/gnudatalanguage-0.9.9/src/typetraits.cpp
Examining data/gnudatalanguage-0.9.9/src/typetraits.hpp
Examining data/gnudatalanguage-0.9.9/src/voigt.cpp
Examining data/gnudatalanguage-0.9.9/src/where.cpp
Examining data/gnudatalanguage-0.9.9/src/where.hpp
Examining data/gnudatalanguage-0.9.9/src/where_inc.cpp
Examining data/gnudatalanguage-0.9.9/src/widget.cpp
Examining data/gnudatalanguage-0.9.9/src/widget.hpp
Examining data/gnudatalanguage-0.9.9/src/basic_fun_jmg.cpp
Examining data/gnudatalanguage-0.9.9/src/basic_pro.cpp
Examining data/gnudatalanguage-0.9.9/src/gdl.cpp
Examining data/gnudatalanguage-0.9.9/src/medianfilter.cpp
Examining data/gnudatalanguage-0.9.9/src/randomgenerators.cpp
Examining data/gnudatalanguage-0.9.9/src/datatypes.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlpython.cpp
Examining data/gnudatalanguage-0.9.9/src/gdlpython.hpp
Examining data/gnudatalanguage-0.9.9/src/pythongdl.cpp
Examining data/gnudatalanguage-0.9.9/src/magick_cl.cpp
Examining data/gnudatalanguage-0.9.9/src/basegdl.hpp
Examining data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp
Examining data/gnudatalanguage-0.9.9/testsuite/test_make_dll.c

FINAL RESULTS:

data/gnudatalanguage-0.9.9/src/file.cpp:2082:7:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		if( readlink(symlinkpath, actualpath, PATH_MAX) != -1)
data/gnudatalanguage-0.9.9/src/file.cpp:2468:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		status = chmod(dest, srcmode);
data/gnudatalanguage-0.9.9/src/file.cpp:2529:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
					if(readlink(fileC, actualpath, PATH_MAX) != -1) {
data/gnudatalanguage-0.9.9/src/file.cpp:2753:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
				if( readlink(fileC, actualpath, PATH_MAX) != -1) {
data/gnudatalanguage-0.9.9/src/antlr/String.cpp:21:15:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
ANTLR_C_USING(sprintf)
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:8389:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
    char* login = getlogin();
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:519:17:  [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 (-1 == access(name.c_str(), F_OK)) mode |= fstream::trunc;
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1887:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      int status = system(shellCmd.c_str());
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1956:9:  [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(cmd.c_str(), argv);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1960:9:  [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(shellCmd.c_str(), shellCmd.c_str(), "-c",
data/gnudatalanguage-0.9.9/src/basic_pro.hpp:55:7:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	void printf(EnvT* e);
data/gnudatalanguage-0.9.9/src/basic_pro_jmg.cpp:626: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(extstring[iEl].s, parstring.c_str());
data/gnudatalanguage-0.9.9/src/deviceps.hpp:190:21:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
      char* login = getlogin();
data/gnudatalanguage-0.9.9/src/deviceps.hpp:331: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(buff,sbuff.c_str());
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:940:17:  [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.
  int ignored = system( commandLine.c_str());
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:1309: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(result, inputstr.c_str()); // copies including terminating '\0'
data/gnudatalanguage-0.9.9/src/file.cpp:64:10:  [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.
#	define access _access
data/gnudatalanguage-0.9.9/src/file.cpp:152:13:  [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(strcpy(dir->name, name), all);
data/gnudatalanguage-0.9.9/src/file.cpp:152:20:  [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).
            strcat(strcpy(dir->name, name), all);
data/gnudatalanguage-0.9.9/src/file.cpp:847: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.
					(access(fpC, accessmode) != 0) ) continue;
data/gnudatalanguage-0.9.9/src/file.cpp:1098:16:  [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( actFile.c_str(), accessmode ) != 0 ) continue;
data/gnudatalanguage-0.9.9/src/file.cpp:1938:14:  [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( read && access( actFile.c_str(), R_OK) != 0)  continue;
data/gnudatalanguage-0.9.9/src/file.cpp:1939:15:  [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( write && access( actFile.c_str(), W_OK) != 0)  continue;
data/gnudatalanguage-0.9.9/src/file.cpp:1945:20:  [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( executable && access( actFile.c_str(), X_OK) != 0)	  continue;
data/gnudatalanguage-0.9.9/src/file.cpp:2231:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	  *(res->GetTag(tRead, f)) =    DByteGDL(access(actFile, R_OK) == 0);
data/gnudatalanguage-0.9.9/src/file.cpp:2233:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	  *(res->GetTag(tWrite, f)) =   DByteGDL(access(actFile, W_OK) == 0);
data/gnudatalanguage-0.9.9/src/file.cpp:2237:43:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	  *(res->GetTag(tExecute, f)) = DByteGDL(access(actFile, X_OK) == 0);
data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp:108:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(filename,"%sgdlsvgpng64.XXXXXX",getenv("IDL_TMPDIR")); //Insecure, check!
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:52:10:  [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.
    intn access;
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:60:41:  [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.
    hdf_id = Hopen(hdfFilename.c_str(), access, n_adds);
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:77:41:  [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.
    hdf_id = Hopen(hdfFilename.c_str(), access, 0);
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:184: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(&fields[1], Fields.c_str());
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:198: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(buffer, VFfieldname(vd_id, i));
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:304:42:  [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.
    sd_id = SDstart(hdfFilename.c_str(), access);
data/gnudatalanguage-0.9.9/src/libinit.cpp:320:20:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  new DLibPro(lib::printf,string("PRINTF"),-1,printKey,printfWarnKey);
data/gnudatalanguage-0.9.9/src/objects.cpp:950: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.
  iff= popen("echo $(sysctl -n vm.loadavg|cut -d\" \" -f 3)", "r");
data/gnudatalanguage-0.9.9/src/objects.cpp:958: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.
  iff= popen("cat /proc/loadavg |cut -d\" \" -f3", "r");
data/gnudatalanguage-0.9.9/src/objects.cpp:972: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.
  iff= popen("cat /proc/loadavg 2>/dev/null|cut -d\" \" -f3", "r");
data/gnudatalanguage-0.9.9/src/plotting.cpp:25:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/gnudatalanguage-0.9.9/src/plotting.cpp:25:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/gnudatalanguage-0.9.9/src/plotting.cpp:1303:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf( label, length, specialfmtlog.c_str(),test);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1307: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(label, test);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1324:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf( label, length, specialfmt.c_str(),e);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1326:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf( label, length, normalfmt[ns].c_str(),sgn*z,e);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1377:4:  [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( test, length, specialfmt.c_str(),e);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1379:4:  [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( test, length, normalfmt[ns].c_str(),sgn*z,e);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1404: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(label,out.c_str());
data/gnudatalanguage-0.9.9/src/plotting.cpp:1540: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(label,out.c_str());
data/gnudatalanguage-0.9.9/src/plotting.cpp:1562: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(label,out.c_str());
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:637:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(proj, "o_proj=%s", projectionOptions[map_projection].proj4name.c_str());
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:644:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(proj, "proj=%s", projectionOptions[map_projection].proj4name.c_str());
data/gnudatalanguage-0.9.9/src/plotting_misc.cpp:234: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 (TheDisplay, GivenDisplay.c_str());
data/gnudatalanguage-0.9.9/src/plotting_misc.cpp:241: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 (TheDisplay, GivenDisplay.c_str());
data/gnudatalanguage-0.9.9/src/print.cpp:58:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  void printf( EnvT* e)
data/gnudatalanguage-0.9.9/src/tiff.cxx:58:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                default: printf(BPS_ERR_FMT, "UINT", bitsPerSample);
data/gnudatalanguage-0.9.9/src/tiff.cxx:65:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                default: printf(BPS_ERR_FMT, "INT", bitsPerSample);
data/gnudatalanguage-0.9.9/src/tiff.cxx:71:26:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                default: printf(BPS_ERR_FMT, "FLOAT", bitsPerSample);
data/gnudatalanguage-0.9.9/src/tiff.cxx:96:17:  [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/gnudatalanguage-0.9.9/src/tiff.cxx:103:17:  [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/gnudatalanguage-0.9.9/src/basic_fun.cpp:7071: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.
	      resPtr = getenv((*name)[i].c_str());
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:7095: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.
	    if( (resPtr = getenv((*name)[i].c_str())) ) 
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:157: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.
      char *homeDir = getenv("HOME");
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:159:35:  [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( homeDir == NULL) homeDir = getenv("HOMEPATH"); 
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1879: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.
      char* shellEnv = getenv("SHELL");
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1880:40:  [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 (shellEnv == NULL) shellEnv = getenv("COMSPEC");
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:930: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.
     char* shellEnv = getenv("SHELL");
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:931: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.
	 if (shellEnv == NULL) shellEnv = getenv("COMSPEC");
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:1683:19:  [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 *homeDir = getenv("HOMEPATH");
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:1685:19:  [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 *homeDir = getenv("HOME");
data/gnudatalanguage-0.9.9/src/file.cpp:400:19:  [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* homeDir = getenv( "HOME");
data/gnudatalanguage-0.9.9/src/file.cpp:401: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.
 	if( homeDir == NULL) homeDir = getenv("HOMEPATH");
data/gnudatalanguage-0.9.9/src/file.cpp:699:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH) 
data/gnudatalanguage-0.9.9/src/file.cpp:855:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
				ptr = realpath(fpC, actualpath);
data/gnudatalanguage-0.9.9/src/file.cpp:1271:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
			ptr = realpath("../", actualpath);
data/gnudatalanguage-0.9.9/src/file.cpp:1286:19:  [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* homeDir = getenv( "HOME");
data/gnudatalanguage-0.9.9/src/file.cpp:1287: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.
		if( homeDir == NULL) homeDir = getenv("HOMEPATH");
data/gnudatalanguage-0.9.9/src/file.cpp:1387:8:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	ptr = realpath(symlinkpath, actualpath);
data/gnudatalanguage-0.9.9/src/file.cpp:2086:14:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
	      ptr = realpath(symlinkpath, actualpath);
data/gnudatalanguage-0.9.9/src/file.cpp:2622:19:  [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* homeDir = getenv( "HOME");
data/gnudatalanguage-0.9.9/src/file.cpp:2623: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.
 	if( homeDir == NULL) homeDir = getenv("HOMEPATH");
data/gnudatalanguage-0.9.9/src/file.cpp:2933:19:  [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* homeDir = getenv( "HOME");
data/gnudatalanguage-0.9.9/src/file.cpp:2934: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.
		if( homeDir == NULL) homeDir = getenv("HOMEPATH");
data/gnudatalanguage-0.9.9/src/gdl.cpp:453:25:  [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* mpi_procedure = getenv("GDL_MPI");
data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp:108:44:  [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(filename,"%sgdlsvgpng64.XXXXXX",getenv("IDL_TMPDIR")); //Insecure, check!
data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp:112:4:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
   srand((unsigned int)time(NULL));
data/gnudatalanguage-0.9.9/src/initsysvar.cpp:929:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH) 
data/gnudatalanguage-0.9.9/src/initsysvar.cpp:965:11:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    ptr = realpath(symlinkpath, actualpath);
data/gnudatalanguage-0.9.9/src/io.cpp:891:9:  [3] (random) setstate:
  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.
		this->setstate(std::ios_base::badbit);
data/gnudatalanguage-0.9.9/src/io.cpp:892:13:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	else this->setstate(std::ios_base::goodbit);
data/gnudatalanguage-0.9.9/src/io.cpp:899:9:  [3] (random) setstate:
  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.
		this->setstate(std::ios_base::badbit);
data/gnudatalanguage-0.9.9/src/io.cpp:900:13:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	else this->setstate(std::ios_base::goodbit);
data/gnudatalanguage-0.9.9/src/io.cpp:911:9:  [3] (random) setstate:
  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.
		this->setstate(std::ios_base::badbit);
data/gnudatalanguage-0.9.9/src/io.cpp:912:13:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	else this->setstate(std::ios_base::goodbit);
data/gnudatalanguage-0.9.9/src/io.cpp:919:9:  [3] (random) setstate:
  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.
		this->setstate(std::ios_base::badbit);
data/gnudatalanguage-0.9.9/src/io.cpp:920:13:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	else this->setstate(std::ios_base::goodbit);
data/gnudatalanguage-0.9.9/src/objects.cpp:935: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.
  env_var_c = getenv ("OMP_NUM_THREADS");
data/gnudatalanguage-0.9.9/src/str.cpp:51:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char* c=getenv(env);
data/gnudatalanguage-0.9.9/src/str.cpp:334:19:  [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* homeDir = getenv( "HOME");
data/gnudatalanguage-0.9.9/src/str.cpp:336: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.
 	if( homeDir == NULL) homeDir = getenv("HOMEPATH");
data/gnudatalanguage-0.9.9/src/str.cpp:370: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.
			char* subst = getenv(name.c_str());
data/gnudatalanguage-0.9.9/src/str.cpp:400:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH) 
data/gnudatalanguage-0.9.9/src/str.cpp:422:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
  ptr = realpath(symlinkpath, actualpath);
data/gnudatalanguage-0.9.9/src/antlr/CommonAST.cpp:94:37:  [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 type = ANTLR_USE_NAMESPACE(std)atoi(t2.c_str());
data/gnudatalanguage-0.9.9/src/antlr/CommonAST.cpp:96:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int type = atoi(t2.c_str());
data/gnudatalanguage-0.9.9/src/antlr/String.cpp:25: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 tmp[100];
data/gnudatalanguage-0.9.9/src/antlr/String.cpp:26: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(tmp,"%d",rhs);
data/gnudatalanguage-0.9.9/src/arrayindex.hpp:434: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 ixBuf[ AllIxMaxSize];
data/gnudatalanguage-0.9.9/src/arrayindex.hpp:597: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 ixBuf[ AllIxMaxSize];
data/gnudatalanguage-0.9.9/src/arrayindexlistnoassoct.hpp:43: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 allIxInstance[ AllIxMaxSize];
data/gnudatalanguage-0.9.9/src/arrayindexlistnoassoct.hpp:1256: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 allIxInstance[ AllIxMaxSize];
data/gnudatalanguage-0.9.9/src/arrayindexlistt.hpp: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 allIxInstance[ AllIxMaxSize];
data/gnudatalanguage-0.9.9/src/arrayindexlistt.hpp:1163: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 allIxInstance[ AllIxMaxSize];
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:1301: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( dstAddr, srcAddr, nByteCreate);
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:6868: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 err_msg[MAX_REGEXPERR_LENGTH];
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:7083: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 c_tmpBuf[MAX_PATH];
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:7168: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 err_msg[MAX_REGEXPERR_LENGTH];
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:8378: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 login[MAX_WCHAR_BUF];
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:8379: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 info[MAX_WCHAR_BUF];
data/gnudatalanguage-0.9.9/src/basic_fun_cl.cpp:162: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.
       char st[MAX_DATE_STRING_LENGTH];
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:969:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[MAXRECV + 1];
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1039: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.
          char hdr[4], tmp;
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1045:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&nRec1, hdr, 4);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1056:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&nRec2, hdr, 4);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1610:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_UTF8, 0, cmd, -1, w_cmd, 1000);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1613:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
              MultiByteToWideChar(CP_UTF8, 0, title, -1, w_title, 100);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1616:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
             MultiByteToWideChar(CP_UTF8, 0, cwd.c_str(), -1, w_cwd, MAX_PATH);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1775: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[bufSize];
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1903: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[bufSize];
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:2212: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).
      if (open)
data/gnudatalanguage-0.9.9/src/basic_pro_jmg.cpp:129:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, shrdimgName.c_str(), shrdimgName.length(), u_shrdimgName, 255);
data/gnudatalanguage-0.9.9/src/basic_pro_jmg.cpp:448:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(&argv[i-2], (void*) &intpar, sizeof(DLong));
data/gnudatalanguage-0.9.9/src/basic_pro_jmg.cpp:451: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(&argv[i-2], (void*) par->DataAddr(), par->Sizeof());
data/gnudatalanguage-0.9.9/src/basic_pro_jmg.cpp:701: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(p, source, length);
data/gnudatalanguage-0.9.9/src/basic_pro_jmg.cpp:744: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(dest, p, length);
data/gnudatalanguage-0.9.9/src/convol.cpp:354: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/convol.cpp:358: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/convol.cpp:363: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/convol.cpp:367: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/datatypes.cpp:183:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(buf,cp.buf,sz*sizeof(Ty));
data/gnudatalanguage-0.9.9/src/datatypes.cpp:213:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  std::memcpy(buf,arr,sz*sizeof(Ty));
data/gnudatalanguage-0.9.9/src/datatypes.cpp:994: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( &sh->dd[ shift], &dd[0], firstChunk * sizeof(Ty));
data/gnudatalanguage-0.9.9/src/datatypes.cpp:995: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( &sh->dd[ 0], &dd[firstChunk], shift * sizeof(Ty));
data/gnudatalanguage-0.9.9/src/datatypes.cpp:1079: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[ dstLonIx], &src[ srcLonIx], chunk0 * sizeof(Ty));
data/gnudatalanguage-0.9.9/src/datatypes.cpp:1085: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[ dstLonIx], &src[ srcLonIx], chunk1 * sizeof(Ty));
data/gnudatalanguage-0.9.9/src/default_io.cpp:1539:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char swapBuf[ sizeof (Ty)];
data/gnudatalanguage-0.9.9/src/default_io.cpp:1625:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char* bufptr = (char *) (*this)[i].c_str( );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1670:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char swapBuf[ sizeof (Ty)];
data/gnudatalanguage-0.9.9/src/default_io.cpp:1694: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 curVal[typesize];    
data/gnudatalanguage-0.9.9/src/deviceps.hpp:166:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    FILE *fp = tmpfile(); // this creates a file which should be deleted automaticaly when it is closed
data/gnudatalanguage-0.9.9/src/deviceps.hpp:199:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char cusername[257];
data/gnudatalanguage-0.9.9/src/deviceps.hpp:212:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buffer[1024]; //largely sufficient
data/gnudatalanguage-0.9.9/src/deviceps.hpp:214: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).
        feps=fopen(fileName.c_str(), "r");
data/gnudatalanguage-0.9.9/src/deviceps.hpp:234:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char bbstr [20], offstr [20];
data/gnudatalanguage-0.9.9/src/deviceps.hpp:242: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(bbstr,"%i %i %i %i",bbXoff,bbYoff,bbXSize,bbYSize);
data/gnudatalanguage-0.9.9/src/deviceps.hpp:243: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(offstr,"%i %i",bbXoff,bbYoff);
data/gnudatalanguage-0.9.9/src/deviceps.hpp:275:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *fp_plplot = fopen(fileName.c_str(), "w");
data/gnudatalanguage-0.9.9/src/deviceps.hpp:294:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buff[buflen];
data/gnudatalanguage-0.9.9/src/deviceps.hpp:323:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char mychar[60];
data/gnudatalanguage-0.9.9/src/deviceps.hpp:324: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(mychar,"[ /CropBox [0 0 %i.00 %i.00] /PAGE pdfmark",bbXSize,bbYSize);
data/gnudatalanguage-0.9.9/src/deviceps.hpp:367:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[buflen]; 
data/gnudatalanguage-0.9.9/src/deviceps.hpp:369: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).
    feps=fopen(fileName.c_str(), "r");
data/gnudatalanguage-0.9.9/src/deviceps.hpp:433:16:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    FILE *fp = tmpfile(); // this creates a file which should be deleted automaticaly when it is closed
data/gnudatalanguage-0.9.9/src/deviceps.hpp:458:23:  [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_plplot = fopen(fileName.c_str(), "w");
data/gnudatalanguage-0.9.9/src/deviceps.hpp:534: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).
	if( !open) return NULL;
data/gnudatalanguage-0.9.9/src/devicesvg.hpp:129: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).
	if( !open) return NULL;
data/gnudatalanguage-0.9.9/src/devicewin.cpp:310: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 buf[256];
data/gnudatalanguage-0.9.9/src/devicewin.cpp:527:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (gdlXsize != "" && noQscreen) *xSize = atoi(gdlXsize.c_str());
data/gnudatalanguage-0.9.9/src/devicewin.cpp:529:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (gdlYsize != "" && noQscreen) *ySize = atoi(gdlYsize.c_str());
data/gnudatalanguage-0.9.9/src/devicewin.hpp:163:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (!open) return NULL;
data/gnudatalanguage-0.9.9/src/devicewx.hpp:130: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 (!open) return NULL;
data/gnudatalanguage-0.9.9/src/devicewx.hpp:283:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (gdlXsize != "" && noQscreen) *xSize = atoi(gdlXsize.c_str());
data/gnudatalanguage-0.9.9/src/devicewx.hpp:285:51:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (gdlYsize != "" && noQscreen) *ySize = atoi(gdlYsize.c_str());
data/gnudatalanguage-0.9.9/src/devicex.hpp:171: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[ 256];
data/gnudatalanguage-0.9.9/src/devicex.hpp:216: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 (!open) return NULL;
data/gnudatalanguage-0.9.9/src/devicex.hpp:380:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if( gdlXsize != "" && noQscreen ) *xSize=atoi(gdlXsize.c_str()); 
data/gnudatalanguage-0.9.9/src/devicex.hpp:382:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if( gdlYsize != "" && noQscreen) *ySize=atoi(gdlYsize.c_str()); 
data/gnudatalanguage-0.9.9/src/devicez.hpp:32:5:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
i = atoi(buf);
data/gnudatalanguage-0.9.9/src/devicez.hpp:170: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).
	if( !open) return NULL;
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:1629: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 mpi_procedure[256];
data/gnudatalanguage-0.9.9/src/envt.hpp:363: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 buf[defaultLength * sizeof(T)]; // prevent constructor calls
data/gnudatalanguage-0.9.9/src/file.cpp:286:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0,
data/gnudatalanguage-0.9.9/src/file.cpp:322:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char header[12];
data/gnudatalanguage-0.9.9/src/file.cpp:433:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t entryWStr[PATH_MAX+1] = {0,};
data/gnudatalanguage-0.9.9/src/file.cpp:434:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t patW[PATH_MAX+1] = {0,};
data/gnudatalanguage-0.9.9/src/file.cpp:435:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, pat.c_str(), -1, patW, MAX_PATH+1);
data/gnudatalanguage-0.9.9/src/file.cpp:456:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
		MultiByteToWideChar(CP_UTF8, 0, entryStr.c_str(), -1, entryWStr, MAX_PATH+1);
data/gnudatalanguage-0.9.9/src/file.cpp:502:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t entryWStr[PATH_MAX+1] = {0,};
data/gnudatalanguage-0.9.9/src/file.cpp:503:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t patW[PATH_MAX+1] = {0,};
data/gnudatalanguage-0.9.9/src/file.cpp:505:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_UTF8, 0, pat.c_str(), -1, patW, PATH_MAX+1);
data/gnudatalanguage-0.9.9/src/file.cpp:534:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
            MultiByteToWideChar(CP_UTF8, 0, entryStr.c_str(),
data/gnudatalanguage-0.9.9/src/file.cpp:781:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t patW[MAX_PATH+1];
data/gnudatalanguage-0.9.9/src/file.cpp:782:5:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    wchar_t entryWstr[MAX_PATH+1];
data/gnudatalanguage-0.9.9/src/file.cpp:783:7:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      MultiByteToWideChar(CP_UTF8, 0,
data/gnudatalanguage-0.9.9/src/file.cpp:808:6:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
	    MultiByteToWideChar(CP_UTF8, 0,
data/gnudatalanguage-0.9.9/src/file.cpp:853: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 actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:901: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 coupleBracket[5]={'[',0,0,']',0};
data/gnudatalanguage-0.9.9/src/file.cpp:902: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 couple[3]={0};
data/gnudatalanguage-0.9.9/src/file.cpp:1177: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[ PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:1189:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char drive[_MAX_DRIVE];
data/gnudatalanguage-0.9.9/src/file.cpp:1190:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char dir[_MAX_DIR];
data/gnudatalanguage-0.9.9/src/file.cpp:1191:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char fname[_MAX_FNAME];
data/gnudatalanguage-0.9.9/src/file.cpp:1192:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char ext[_MAX_EXT];
data/gnudatalanguage-0.9.9/src/file.cpp:1269:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:1374: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 buff[PATH_MAX + 1];
data/gnudatalanguage-0.9.9/src/file.cpp:1385: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 actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:1658: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 drive[_MAX_DRIVE];
data/gnudatalanguage-0.9.9/src/file.cpp:1659: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 dir[_MAX_DIR];
data/gnudatalanguage-0.9.9/src/file.cpp:1660: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 fname[_MAX_FNAME];
data/gnudatalanguage-0.9.9/src/file.cpp:1661: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 ext[_MAX_EXT];
data/gnudatalanguage-0.9.9/src/file.cpp:1666: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[ PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:2076: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.
	      char actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:2426: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* src = fopen(source, "rb");
data/gnudatalanguage-0.9.9/src/file.cpp:2428: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* dst = fopen(dest, "w+b");
data/gnudatalanguage-0.9.9/src/file.cpp:2433: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/gnudatalanguage-0.9.9/src/file.cpp:2440: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*16];
data/gnudatalanguage-0.9.9/src/file.cpp:2449: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*1024];
data/gnudatalanguage-0.9.9/src/file.cpp:2489: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 actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:2492:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char drive[_MAX_DRIVE];
data/gnudatalanguage-0.9.9/src/file.cpp:2493:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char dir[_MAX_DIR];
data/gnudatalanguage-0.9.9/src/file.cpp:2494:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char fname[_MAX_FNAME];
data/gnudatalanguage-0.9.9/src/file.cpp:2495:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char ext[_MAX_EXT];
data/gnudatalanguage-0.9.9/src/file.cpp:2499:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[ PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:2724:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:2841: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 actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:2889:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[ PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/file.cpp:3021:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char drive[_MAX_DRIVE];
data/gnudatalanguage-0.9.9/src/file.cpp:3022:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char dir[_MAX_DIR];
data/gnudatalanguage-0.9.9/src/file.cpp:3023:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char fname[_MAX_FNAME];
data/gnudatalanguage-0.9.9/src/file.cpp:3024:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char ext[_MAX_EXT];
data/gnudatalanguage-0.9.9/src/file.cpp:3029:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[ PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/gdl.cpp:287:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  file_params.open(params_file.c_str());
data/gnudatalanguage-0.9.9/src/gdl.cpp:439: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 wd1[PATH_MAX], wd2[PATH_MAX];
data/gnudatalanguage-0.9.9/src/gdlarray.hpp:43: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.
  EIGEN_ALIGN16 char scalarBuf[ smallArraySize * sizeof(Ty)];
data/gnudatalanguage-0.9.9/src/gdlarray.hpp:45: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 scalarBuf[ smallArraySize * sizeof(Ty)];
data/gnudatalanguage-0.9.9/src/gdlarray.hpp:129:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(buf,cp.buf,sz*sizeof(T));
data/gnudatalanguage-0.9.9/src/gdlarray.hpp:168:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      std::memcpy(buf,arr,sz*sizeof(T));
data/gnudatalanguage-0.9.9/src/gdlarray.hpp:226:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(buf,right.buf,sz*sizeof(Ty));
data/gnudatalanguage-0.9.9/src/gdlarray.hpp:241:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(buf,right.buf,sz*sizeof(Ty));
data/gnudatalanguage-0.9.9/src/gdlhelp.cpp:141:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_UTF8, 0, cnames, -1,
data/gnudatalanguage-0.9.9/src/gdlhelp.cpp:143:3:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  MultiByteToWideChar(CP_UTF8, 0, csourceFiles, -1,
data/gnudatalanguage-0.9.9/src/gdljournal.cpp:122: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 gethost[GDL_HOST_NAME_MAX];
data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp:101:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char line[512];
data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp:102:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
   char filename[512];
data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp:121:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
   fd=mkstemp(filename);
data/gnudatalanguage-0.9.9/src/gdlxstream.hpp:52:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[256];
data/gnudatalanguage-0.9.9/src/grib.cpp:64: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).
    in = fopen(filename.c_str(), "r"); 
data/gnudatalanguage-0.9.9/src/gshhs.cpp:201: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).
      if ( (fp = fopen( files[i].c_str( ), "rb" )) == NULL ) {
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:713: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(&dptr[2*(i*stride+offset)], 
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:720:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy(dptr, &(*p0C)[0], szflt*2*nEl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:723:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      memcpy(&dptr[2*(i*stride+offset)], 
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:755: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(&dptr[2*(i*stride+offset)], 
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:764: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(&dptr[2*(i*stride+offset)], &c128, 2*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2301: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(f32_2, &(*p0C)[i], szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2303: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(&mat->data[2*i], &f64, szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2306: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(&mat->data[2*i+1], &f64, szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2331: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(&f64_2[0], &Q->data[2*i], 2*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2334: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(&(*(DComplexGDL*) *p0Co)[i], &f32_2, 2*szflt);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2338: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(&f64, &diag->data[i], szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2340: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(&(*(DFloatGDL*) *p1F)[i], &f32, szflt);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2344: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(&f64, &subdiag->data[i], szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2346: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(&(*(DFloatGDL*) *p2F)[i], &f32, szflt);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2372: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(mat->data, &(*p0C)[0], nEl*szdbl*2);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2395: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(&(*(DComplexDblGDL*) *p0Co)[0], Q->data, 
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2398: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(&(*(DDoubleGDL*) *p1D)[0], diag->data, p0->Dim(0)*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2399: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(&(*(DDoubleGDL*) *p2D)[0], subdiag->data, 
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2423: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(mat->data, &(*p0D)[0], nEl*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2446: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(&(*(DDoubleGDL*) *p0Do)[0], Q->data, 
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2449: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(&(*(DDoubleGDL*) *p1D)[0], diag->data, p0->Dim(0)*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2450: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(&(*(DDoubleGDL*) *p2D)[0], subdiag->data, 
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2494: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(&mat->data[i], &f64, szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2519: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(&f64, &Q->data[i], szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2521: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(&(*(DFloatGDL*) *p0Fo)[i], &f32, szflt);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2525: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(&f64, &diag->data[i], szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2527: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(&(*(DFloatGDL*) *p1F)[i], &f32, szflt);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2531: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(&f64, &subdiag->data[i], szdbl);
data/gnudatalanguage-0.9.9/src/gsl_fun.cpp:2533: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(&(*(DFloatGDL*) *p2F)[i], &f32, szflt);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp: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(mat->data, &(*p0D)[0], nEl*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:107: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(&(*(DDoubleGDL*) *p0Do)[0], mat->data,
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:127: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(&(*(DLongGDL*) *p1D)[0], p->data, 
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:131: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(&(*(DLong64GDL*) *p1D)[0], p->data, 
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:198: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(mat->data, &(*p0D)[0], nEl*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:204: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->data, &(*p1L)[0], nEl1*szlng);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp: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(p->data, &(*p1L)[0], nEl1*szlng64);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp: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(b->data, &(*p2D)[0], nEl1*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:236: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(&(*res)[0], x->data, nEl1*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:279: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(mat->data, &(*p0D)[0], nEl*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:352: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(subd->data, &(*p0D)[1], (nEl-1)*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:357: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(diag->data, &(*p1D)[0], nEl*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:362: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(supd->data, &(*p2D)[0], (nEl-1)*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp:367: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(rhs->data, &(*p3D)[0], nEl*szdbl);
data/gnudatalanguage-0.9.9/src/gsl_matrix.cpp: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(&(*res)[0], x->data, nEl*szdbl);
data/gnudatalanguage-0.9.9/src/gzstream.hpp:53:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char             buffer[bufferSize]; // data buffer
data/gnudatalanguage-0.9.9/src/gzstream.hpp:67: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).
    gzstreambuf* open( const char* name, int open_mode);
data/gnudatalanguage-0.9.9/src/gzstream.hpp:90:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open( const char* name, int open_mode);
data/gnudatalanguage-0.9.9/src/gzstream.hpp:107:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open( const char* name, int open_mode = std::ios::in) {
data/gnudatalanguage-0.9.9/src/gzstream.hpp:108:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        gzstreambase::open( name, open_mode);
data/gnudatalanguage-0.9.9/src/gzstream.hpp:121:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    void open( const char* name, int open_mode = std::ios::out) {
data/gnudatalanguage-0.9.9/src/gzstream.hpp:122:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        gzstreambase::open( name, open_mode);
data/gnudatalanguage-0.9.9/src/hdf5_fun.cpp:587: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.
      rdata = (char **) malloc(count_s[0] * sizeof (char *));
data/gnudatalanguage-0.9.9/src/hdf5_fun.cpp:591:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      rdata[0] = (char *) malloc(count_s[0] * sdim * sizeof (char));
data/gnudatalanguage-0.9.9/src/hdf5_fun.cpp:755: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.
      rdata = (char **) malloc(count_s[0] * sizeof (char *));
data/gnudatalanguage-0.9.9/src/hdf5_fun.cpp:759:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      rdata[0] = (char *) malloc(count_s[0] * sdim * sizeof (char));
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:164:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[FIELDNAMELENMAX+2+1];
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:425:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fieldname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:53: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 fieldname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:87: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(start, &(*startKW)[0], rank*sizeof(int32));
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:102: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(edges, &(*countKW)[0], rank*sizeof(int32));
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:117: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(stride, &(*strideKW)[0], rank*sizeof(int32));
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:189: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 fieldname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:224: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(start, &(*startKW)[0], rank*sizeof(int32));
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:232: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(edges, &(*countKW)[0], rank*sizeof(int32));
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:240: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(stride, &(*strideKW)[0], rank*sizeof(int32));
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:281: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 fieldname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:312: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(&(*(DLongGDL*) *dimKW)[0], dims, sizeof(int32)*rank);
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:383:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char attrname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:476: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 groupname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:477: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 groupclass[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:509: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 vdataname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:510: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 vdataclass[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:542: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 groupname[256];
data/gnudatalanguage-0.9.9/src/hdf_pro.cpp:643:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char dim_name[64];
data/gnudatalanguage-0.9.9/src/initsysvar.cpp:141: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 st[MAX_STIME_STRING_LENGTH];
data/gnudatalanguage-0.9.9/src/initsysvar.cpp:506:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    CompilationYear=atoi(SCompilationYear.c_str());
data/gnudatalanguage-0.9.9/src/initsysvar.cpp:509:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    CompilationDay=atoi(SCompilationDay.c_str());
data/gnudatalanguage-0.9.9/src/initsysvar.cpp:963: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 actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/io.cpp:39:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp[NS_INADDRSZ], *tp;
data/gnudatalanguage-0.9.9/src/io.cpp:74: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, tmp, NS_INADDRSZ );
data/gnudatalanguage-0.9.9/src/io.cpp:83:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp;
data/gnudatalanguage-0.9.9/src/io.cpp:166: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, tmp, NS_IN6ADDRSZ);
data/gnudatalanguage-0.9.9/src/io.cpp:239:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  ogzStream->open( name_.c_str(), mode_ & ~std::ios::in);
data/gnudatalanguage-0.9.9/src/io.cpp:258:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	  igzStream->open( name_.c_str(), mode_ & ~std::ios::out);
data/gnudatalanguage-0.9.9/src/io.cpp:283: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).
	fStream->open( name_.c_str(), mode_);
data/gnudatalanguage-0.9.9/src/io.cpp:518: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[ bufSize];
data/gnudatalanguage-0.9.9/src/io.cpp:540:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char swapTCount[ sizeof( DULong)];
data/gnudatalanguage-0.9.9/src/io.cpp:566:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char swapTCount[ sizeof( DULong)];
data/gnudatalanguage-0.9.9/src/io.cpp:605:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char swapTCount[ sizeof( DULong)];
data/gnudatalanguage-0.9.9/src/io.cpp:698:27:  [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).
gzstreambuf* gzstreambuf::open( const char* name, int open_mode) {
data/gnudatalanguage-0.9.9/src/io.cpp:707: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  fmode[10];
data/gnudatalanguage-0.9.9/src/io.cpp:746: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( buffer + (buf4 - n_putback), gptr() - n_putback, n_putback);
data/gnudatalanguage-0.9.9/src/io.cpp:866:5:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    open( name, mode);
data/gnudatalanguage-0.9.9/src/io.cpp:873:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void gzstreambase::open( const char* name, int open_mode) {
data/gnudatalanguage-0.9.9/src/io.cpp:874:16:  [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 ( ! buf.open( name, open_mode))
data/gnudatalanguage-0.9.9/src/math_fun.cpp:128: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(aGSL->data, &(*AA)[0], nEl*sizeof( DDouble));
data/gnudatalanguage-0.9.9/src/math_fun.cpp:148: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( &(*U)[0], uGSL->data, nEl*sizeof( DDouble));
data/gnudatalanguage-0.9.9/src/math_fun.cpp:157: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( &(*V)[0], vGSL->data, n*n*sizeof( DDouble));
data/gnudatalanguage-0.9.9/src/math_fun.cpp:165: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( &(*W)[0], wGSL->data, n*sizeof( DDouble));
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:262: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(f32_2, &(*p0C)[i], szdbl);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:264: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(&mat->data[2*i], &f64, szdbl);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:267: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(&mat->data[2*i+1], &f64, szdbl);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:279: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(&f64_2[0], &inverse->data[2*i], szdbl*2);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:283: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(&(*res)[i], &f32_2[0], szflt*2);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:309: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(mat->data, &(*p0C)[0], nEl*szdbl*2);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:319: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(&(*res)[0], inverse->data, nEl*szdbl*2);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:347: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(mat->data, &(*p0D)[0], nEl*szdbl);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:357: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(&(*res)[0], inverse->data, nEl*szdbl);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:410: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(&mat->data[i], &f64, szdbl);
data/gnudatalanguage-0.9.9/src/matrix_invert.cpp:423: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(&(*res)[i], &f32, 4);
data/gnudatalanguage-0.9.9/src/ncdf4_group.cpp: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 groupname[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/ncdf4_group.cpp:123: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 fullgroupname[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/ncdf4_group.cpp:252: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 groupname[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/ncdf_att_cl.cpp:60: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 att_name[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/ncdf_att_cl.cpp:239:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&(*static_cast<DLongGDL*>(temp))[0], &(*ip), length * sizeof(int));	      
data/gnudatalanguage-0.9.9/src/ncdf_att_cl.cpp:249:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&(*static_cast<DIntGDL*>(temp))[0], &(*sp), length * sizeof(DInt));	      
data/gnudatalanguage-0.9.9/src/ncdf_att_cl.cpp:259:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&(*static_cast<DFloatGDL*>(temp))[0], &(*fp), length * sizeof(DFloat));	      
data/gnudatalanguage-0.9.9/src/ncdf_att_cl.cpp:269:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&(*static_cast<DDoubleGDL*>(temp))[0], &(*dp), length * sizeof(DDouble));	      	 
data/gnudatalanguage-0.9.9/src/ncdf_att_cl.cpp:279:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy(&(*static_cast<DByteGDL*>(temp))[0], &(*bp), length * sizeof(DByte));	      	 
data/gnudatalanguage-0.9.9/src/ncdf_dim_cl.cpp:56: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 dim_name[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/ncdf_var_cl.cpp:101: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 var_name[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/ncdf_var_cl.cpp:196: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 var_name[NC_MAX_NAME], *n;
data/gnudatalanguage-0.9.9/src/ncdf_var_cl.cpp:359: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 var_name[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/ncdf_var_cl.cpp:827: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 var_name[NC_MAX_NAME];
data/gnudatalanguage-0.9.9/src/objects.cpp:938:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      return atoi(env_var_c);
data/gnudatalanguage-0.9.9/src/objects.cpp:987: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[4];
data/gnudatalanguage-0.9.9/src/objects.cpp:1019: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[4];
data/gnudatalanguage-0.9.9/src/plotting.hpp:1187: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(&((*V)[0]),xx,8*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting.hpp:1188: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(&((*V)[8]),yy,8*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting.hpp:1189: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(&((*V)[16]),zz,8*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting.hpp:1190: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(&((*V)[24]),ww,8*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:386: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(me->DataAddr(),mat->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:396: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(me->DataAddr(),Identity->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:419: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(me->DataAddr(),intermediary->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:443: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(me->DataAddr(),intermediary->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:484:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(mat->DataAddr(),intermediary->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:495:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(mat->DataAddr(),intermediary->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:502: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(me->DataAddr(),intermediary->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:519: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(me->DataAddr(),intermediary->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:534: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(me->DataAddr(),intermediary->DataAddr(),dim0*dim1*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:662: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(&((*xyzw)[0]),xValin->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:663: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(&((*xyzw)[nEl]),yValin->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:664:25:  [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 (zValin != NULL) memcpy(&((*xyzw)[2*nEl]),zValin->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:668: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(xValou->DataAddr(), trans->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:669: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(yValou->DataAddr(), &(*trans)[nEl],nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:670:25:  [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 (zValou != NULL) memcpy(zValou->DataAddr(), &(*trans)[2*nEl],nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:684: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(&((*xyzw)[0]),decodedAxis[localCode[0]]->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:685: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(&((*xyzw)[nEl]),decodedAxis[localCode[1]]->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:686: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(&((*xyzw)[2*nEl]),decodedAxis[localCode[2]]->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:689: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(xValou->DataAddr(), trans->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:690: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(yValou->DataAddr(), &(*trans)[nEl],nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:707: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(&((*xyzw)[0]),xVal->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:708: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(&((*xyzw)[nEl]),yVal->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:709: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(&((*xyzw)[2*nEl]),zVal->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:713: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(xValou->DataAddr(), trans->DataAddr(),nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_convert_coord.cpp:714: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(yValou->DataAddr(), &(*trans)[nEl],nEl*sizeof(double));
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:459: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 *parms[32];//parameters for LIBPROj.4, old style
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:477: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 proj[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:478: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 p0lon[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:479: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 p0lat[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:480: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 a[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:481: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 e2[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:482: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 lat_1[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:483: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 lat_2[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:484: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 lat_ts[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:485: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 opt[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:486: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 h[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:487: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 tilt[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:488: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 azi[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:491: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 ob_proj[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:492: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 ob_lon[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:493:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ob_lat[64];
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:606: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(ob_lon, "o_lon_p=%lf", proj_p0lon);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:609: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(ob_lat, "o_lat_p=%lf", proj_p0lat);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:612: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(p0lon, "lon_0=%lf", map_p0lon);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:613: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(p0lat, "lat_0=%lf", map_p0lat);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:618: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(a, "a=%lf", map_a);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:619: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(e2, "es=%lf", map_e2);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:635:9:  [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(ob_proj, "proj=ob_tran");
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:652:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(lat_ts,"lat_ts=%lf",map_lat1 * RAD_TO_DEG);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:659:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(lat_1, "lat_0=%lf", map_lat1 * RAD_TO_DEG);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:662:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(lat_1, "lat_1=%lf", map_lat1 * RAD_TO_DEG);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:663:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(lat_2, "lat_2=%lf", map_lat2 * RAD_TO_DEG);
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:669: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.
          sprintf(h, "h=%lf", ((*static_cast<DDoubleGDL*> (map_p))[0]));
data/gnudatalanguage-0.9.9/src/plotting_map_proj.cpp:671: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.
          sprintf(tilt, "tilt=%lf", RAD_TO_DEG * atan2((*static_cast<DDoubleGDL*> (map_p))[2], (*static_cast<DDoubleGDL*> (map_p))[3]));
data/gnudatalanguage-0.9.9/src/print_tree.cpp:59:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[ BUFSIZE+1 ];
data/gnudatalanguage-0.9.9/src/randomgenerators.cpp:704:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy((void*)(state.r[0]),(void*)&temp,sizeof(temp));
data/gnudatalanguage-0.9.9/src/randomgenerators.cpp:707: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((void*)(state.r[i]),(void*)&temp,sizeof(temp));
data/gnudatalanguage-0.9.9/src/read.cpp:84:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	  char buf[MAXRECV+1];
data/gnudatalanguage-0.9.9/src/saverestore.cpp:1466: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).
    fid = fopen(name.c_str(), "rb");
data/gnudatalanguage-0.9.9/src/saverestore.cpp:1477: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 signature[4];
data/gnudatalanguage-0.9.9/src/saverestore.cpp:2110:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    save_fid = fopen(name.c_str(), "wb+");
data/gnudatalanguage-0.9.9/src/saverestore.cpp:2117: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 signature[4]={'S','R',0x00,0x04};
data/gnudatalanguage-0.9.9/src/saverestore.cpp:2143:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char gethost[GDL_HOST_NAME_MAX];
data/gnudatalanguage-0.9.9/src/semshm.cpp:167:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, cname, strlen(cname), tname, 256);
data/gnudatalanguage-0.9.9/src/smooth.cpp:286: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/smooth.cpp:290: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/smooth.cpp:300: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/smooth.cpp:309: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((*missing).DataAddr(), &tmp, sizeof(tmp));
data/gnudatalanguage-0.9.9/src/smoothPolyD.hpp:145: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 (rank%2 == 0) memcpy(destIn, src, nEl * sizeof (src[0]));
data/gnudatalanguage-0.9.9/src/smoothPolyDnans.hpp:191: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 (rank%2 == 0) memcpy(destIn, src, nEl * sizeof (src[0]));
data/gnudatalanguage-0.9.9/src/str.cpp:419: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 actualpath [PATH_MAX+1];
data/gnudatalanguage-0.9.9/src/str.cpp:454: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(fn.c_str(),"r");
data/gnudatalanguage-0.9.9/src/str.cpp:475: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).
      fp = fopen(act.c_str(),"r");
data/gnudatalanguage-0.9.9/src/str.cpp:496: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(act.c_str(),"r");
data/gnudatalanguage-0.9.9/src/tiff.cxx:120: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).
            if(!(fptr = fopen(file, "r"))) {
data/gnudatalanguage-0.9.9/src/tiff.cxx:245:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(ptr + (y * w + x) * c, buf, bytes);
data/gnudatalanguage-0.9.9/src/topython.cpp:70: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(PyArray_DATA(ret), DataAddr(), this->N_Elements() * Data_<Sp>::Sizeof());
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp: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(&f, argv+2, sizeof(float));
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp:180: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(&f, argv+2, sizeof(double));
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp:362:2:  [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(s1->s, "  enO");
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp:363:2:  [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((s2+0)->s, "  owT");
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp:364:2:  [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((s2+1)->s, "eerhT");
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp:430:2:  [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(S((so+1)->si.s+1), "Fiv");
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp:521: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(&d, argv+0, sizeof(double));
data/gnudatalanguage-0.9.9/testsuite/libtest_ce.cpp:522: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(&c, argv+1, sizeof(IDL_COMPLEX));
data/gnudatalanguage-0.9.9/src/FMTIn.cpp:692: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).
				ioss.seekg( actP + strlen);
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:2380: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).
  BaseGDL* strlen( BaseGDL* p0, bool isReference)//( EnvT* e)
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:7640:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	c=std::fgetc(stdin);
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:8284: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).
		pEnd = pStart + std::strlen(pStart);
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:8301: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).
		urlstru->InitTag("QUERY", DStringGDL(std::strlen(pEnd + 1) > 0 ? string(pEnd + 1, std::strlen(pEnd + 1)) : ""));
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:8301:90:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		urlstru->InitTag("QUERY", DStringGDL(std::strlen(pEnd + 1) > 0 ? string(pEnd + 1, std::strlen(pEnd + 1)) : ""));
data/gnudatalanguage-0.9.9/src/basic_fun.cpp:8303:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pEnd = pMid + std::strlen(pMid);
data/gnudatalanguage-0.9.9/src/basic_fun.hpp:98: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).
  BaseGDL* strlen( BaseGDL* p0, bool isReference);//( EnvT* e);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:1042:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          is->read(hdr, 4);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:2029: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).
            SizeT len = strlen(buf);
data/gnudatalanguage-0.9.9/src/basic_pro.cpp:2039: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).
            SizeT len = strlen(buf);
data/gnudatalanguage-0.9.9/src/basic_pro.hpp:59:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void read(EnvT* e);
data/gnudatalanguage-0.9.9/src/default_io.cpp:1439: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).
  if (!input) length = strlen(*p);  
data/gnudatalanguage-0.9.9/src/default_io.cpp:1664:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        os.read( swapBuf, sizeof (Ty) / 2 );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1672:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        os.read( swapBuf, sizeof (Ty) );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1684:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      os.read( buf, bufsize );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1704:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os.read( reinterpret_cast<char*> (&(*this)[0]), count * sizeof (Ty) );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1729:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os.read( buf, 4 );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1739:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os.read( &buf[0], bufsize );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1752:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    os.read( reinterpret_cast<char*> (&(*this)[0]), count );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1778:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      os.read( buf, 4 );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1789:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        os.read( &buf[0], bufsize );
data/gnudatalanguage-0.9.9/src/default_io.cpp:1813:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          os.read( &vbuf[0], nChar );
data/gnudatalanguage-0.9.9/src/devicewin.cpp:311:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, title.c_str(), 255);
data/gnudatalanguage-0.9.9/src/devicex.hpp:172:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( buf, title.c_str(), 255);
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:1272:17:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      char ch = getchar();
data/gnudatalanguage-0.9.9/src/dinterpreter.cpp:1302:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(10);
data/gnudatalanguage-0.9.9/src/file.cpp:145:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t base_length = strlen(name);
data/gnudatalanguage-0.9.9/src/file.cpp:150:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
           (dir->name = (char *) malloc(base_length + strlen(all) + 1)) != 0)
data/gnudatalanguage-0.9.9/src/file.cpp:1186:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, tmp.c_str(), PATH_MAX+1);
data/gnudatalanguage-0.9.9/src/file.cpp:1208: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).
   dir[strlen(dir) - 1] = 0; // Remove separator
data/gnudatalanguage-0.9.9/src/file.cpp:1667:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, tmp.c_str(), PATH_MAX+1);
data/gnudatalanguage-0.9.9/src/file.cpp:1938:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( read && access( actFile.c_str(), R_OK) != 0)  continue;
data/gnudatalanguage-0.9.9/src/file.cpp:2500:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, fileC , PATH_MAX+1);
data/gnudatalanguage-0.9.9/src/file.cpp:2890:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, fileC, PATH_MAX+1);
data/gnudatalanguage-0.9.9/src/file.cpp:3030:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(buf, fileList[isrc].c_str(), PATH_MAX+1);
data/gnudatalanguage-0.9.9/src/gdl.cpp:456: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).
      MPI_Send(mpi_procedure, strlen(mpi_procedure)+1, MPI_CHAR, i, 
data/gnudatalanguage-0.9.9/src/gdlgstream.cpp:363: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).
  static const size_t errmsglen = strlen(errmsg);
data/gnudatalanguage-0.9.9/src/gdlgstream.cpp:375: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(in);
data/gnudatalanguage-0.9.9/src/gdlhelp.cpp:278: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).
    int ProSuffixLen = strlen(ProSuffix);
data/gnudatalanguage-0.9.9/src/gdlsvgstream.cpp:111:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   char *XXXXXX = &filename[strlen(filename)-6];
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:193:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(fields, ",");
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:197:7:  [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(buffer, ",");
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:199: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(buffer, ",");
data/gnudatalanguage-0.9.9/src/hdf_fun.cpp:206: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).
    fields[strlen(fields)-1] = 0;
data/gnudatalanguage-0.9.9/src/io.hpp:108:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	fStream->read(buf,nBytes);
data/gnudatalanguage-0.9.9/src/io.hpp:112:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	igzStream->read(buf,nBytes);
data/gnudatalanguage-0.9.9/src/libinit.cpp:326:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  new DLibPro(lib::read,string("READ"),-1,readKey);
data/gnudatalanguage-0.9.9/src/libinit.cpp:532: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).
  new DLibFunDirect(lib::strlen,string("STRLEN"));
data/gnudatalanguage-0.9.9/src/magick_cl.cpp:120:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        a.read(filename);
data/gnudatalanguage-0.9.9/src/magick_cl.cpp:633:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        image.read(columns, rows, map, CharPixel, &(*bImage)[0]);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1292: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).
      ns=strlen(test);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1314: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).
      ns=strlen(test);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1352: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).
      ns=strlen(test);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1367: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).
      ns=strlen(test);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1443:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(label,(*static_cast<DStringGDL*>(res))[0].c_str(),1000);
data/gnudatalanguage-0.9.9/src/plotting.cpp:1472:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(label,(*static_cast<DStringGDL*>(retValGDL))[0].c_str(),1000);
data/gnudatalanguage-0.9.9/src/read.cpp:125:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  void read( EnvT* e)
data/gnudatalanguage-0.9.9/src/saverestore.cpp:158: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).
    if (!xdr_string(xdrs, &FileDatestring, strlen(FileDatestring))) cerr << "write error" << endl;
data/gnudatalanguage-0.9.9/src/saverestore.cpp:159: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).
    if (!xdr_string(xdrs, &FileUser, strlen(FileUser))) cerr << "write error" << endl;
data/gnudatalanguage-0.9.9/src/saverestore.cpp:160: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).
    if (!xdr_string(xdrs, &FileHost, strlen(FileHost))) cerr << "write error" << endl;
data/gnudatalanguage-0.9.9/src/saverestore.cpp:188: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).
    xdr_string(xdrs, &arch, strlen(arch));
data/gnudatalanguage-0.9.9/src/saverestore.cpp:189:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    xdr_string(xdrs, &os, strlen(os));
data/gnudatalanguage-0.9.9/src/saverestore.cpp:190: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).
    xdr_string(xdrs, &release, strlen(release));
data/gnudatalanguage-0.9.9/src/saverestore.cpp:204: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).
    xdr_string(xdrs, &notice, strlen(notice));
data/gnudatalanguage-0.9.9/src/saverestore.cpp:223:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int32_t length = strlen(descr);
data/gnudatalanguage-0.9.9/src/saverestore.cpp:246: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).
    xdr_string(xdrs, &saveFileAuthor, strlen(saveFileAuthor));
data/gnudatalanguage-0.9.9/src/saverestore.cpp:247: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).
    xdr_string(xdrs, &title, strlen(title) );
data/gnudatalanguage-0.9.9/src/saverestore.cpp:248: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).
    xdr_string(xdrs, &otherinfo, strlen(otherinfo) );
data/gnudatalanguage-0.9.9/src/saverestore.cpp:799: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).
      xdr_string(xdrs, &tag_name[i], strlen(tag_name[i]));
data/gnudatalanguage-0.9.9/src/semshm.cpp:167:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, cname, strlen(cname), tname, 256);

ANALYSIS SUMMARY:

Hits = 534
Lines analyzed = 240100 in approximately 5.92 seconds (40547 lines/second)
Physical Source Lines of Code (SLOC) = 176837
Hits@level = [0] 396 [1]  71 [2] 361 [3]  43 [4]  55 [5]   4
Hits@level+ = [0+] 930 [1+] 534 [2+] 463 [3+] 102 [4+]  59 [5+]   4
Hits/KSLOC@level+ = [0+] 5.25908 [1+] 3.01973 [2+] 2.61823 [3+] 0.576802 [4+] 0.333641 [5+] 0.0226197
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.