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/swig-4.0.2/Source/Preprocessor/expr.c
Examining data/swig-4.0.2/Source/Preprocessor/preprocessor.h
Examining data/swig-4.0.2/Source/Preprocessor/cpp.c
Examining data/swig-4.0.2/Source/Swig/typeobj.c
Examining data/swig-4.0.2/Source/Swig/typesys.c
Examining data/swig-4.0.2/Source/Swig/symbol.c
Examining data/swig-4.0.2/Source/Swig/naming.c
Examining data/swig-4.0.2/Source/Swig/getopt.c
Examining data/swig-4.0.2/Source/Swig/misc.c
Examining data/swig-4.0.2/Source/Swig/swig.h
Examining data/swig-4.0.2/Source/Swig/swigscan.h
Examining data/swig-4.0.2/Source/Swig/swigwrap.h
Examining data/swig-4.0.2/Source/Swig/parms.c
Examining data/swig-4.0.2/Source/Swig/typemap.c
Examining data/swig-4.0.2/Source/Swig/include.c
Examining data/swig-4.0.2/Source/Swig/swigtree.h
Examining data/swig-4.0.2/Source/Swig/error.c
Examining data/swig-4.0.2/Source/Swig/swigopt.h
Examining data/swig-4.0.2/Source/Swig/fragment.c
Examining data/swig-4.0.2/Source/Swig/scanner.c
Examining data/swig-4.0.2/Source/Swig/tree.c
Examining data/swig-4.0.2/Source/Swig/cwrap.c
Examining data/swig-4.0.2/Source/Swig/deprecate.c
Examining data/swig-4.0.2/Source/Swig/wrapfunc.c
Examining data/swig-4.0.2/Source/Swig/swigfile.h
Examining data/swig-4.0.2/Source/Swig/extend.c
Examining data/swig-4.0.2/Source/Swig/swigparm.h
Examining data/swig-4.0.2/Source/Swig/stype.c
Examining data/swig-4.0.2/Source/Modules/octave.cxx
Examining data/swig-4.0.2/Source/Modules/swigmod.h
Examining data/swig-4.0.2/Source/Modules/contract.cxx
Examining data/swig-4.0.2/Source/Modules/pike.cxx
Examining data/swig-4.0.2/Source/Modules/overload.cxx
Examining data/swig-4.0.2/Source/Modules/allegrocl.cxx
Examining data/swig-4.0.2/Source/Modules/java.cxx
Examining data/swig-4.0.2/Source/Modules/s-exp.cxx
Examining data/swig-4.0.2/Source/Modules/uffi.cxx
Examining data/swig-4.0.2/Source/Modules/swigmain.cxx
Examining data/swig-4.0.2/Source/Modules/interface.cxx
Examining data/swig-4.0.2/Source/Modules/mzscheme.cxx
Examining data/swig-4.0.2/Source/Modules/javascript.cxx
Examining data/swig-4.0.2/Source/Modules/directors.cxx
Examining data/swig-4.0.2/Source/Modules/xml.cxx
Examining data/swig-4.0.2/Source/Modules/d.cxx
Examining data/swig-4.0.2/Source/Modules/utils.cxx
Examining data/swig-4.0.2/Source/Modules/lua.cxx
Examining data/swig-4.0.2/Source/Modules/ruby.cxx
Examining data/swig-4.0.2/Source/Modules/r.cxx
Examining data/swig-4.0.2/Source/Modules/csharp.cxx
Examining data/swig-4.0.2/Source/Modules/clisp.cxx
Examining data/swig-4.0.2/Source/Modules/scilab.cxx
Examining data/swig-4.0.2/Source/Modules/ocaml.cxx
Examining data/swig-4.0.2/Source/Modules/tcl8.cxx
Examining data/swig-4.0.2/Source/Modules/typepass.cxx
Examining data/swig-4.0.2/Source/Modules/python.cxx
Examining data/swig-4.0.2/Source/Modules/chicken.cxx
Examining data/swig-4.0.2/Source/Modules/perl5.cxx
Examining data/swig-4.0.2/Source/Modules/emit.cxx
Examining data/swig-4.0.2/Source/Modules/cffi.cxx
Examining data/swig-4.0.2/Source/Modules/modula3.cxx
Examining data/swig-4.0.2/Source/Modules/nested.cxx
Examining data/swig-4.0.2/Source/Modules/allocate.cxx
Examining data/swig-4.0.2/Source/Modules/browser.cxx
Examining data/swig-4.0.2/Source/Modules/guile.cxx
Examining data/swig-4.0.2/Source/Modules/go.cxx
Examining data/swig-4.0.2/Source/Modules/lang.cxx
Examining data/swig-4.0.2/Source/Modules/main.cxx
Examining data/swig-4.0.2/Source/Modules/php.cxx
Examining data/swig-4.0.2/Source/Include/swigwarn.h
Examining data/swig-4.0.2/Source/Doxygen/pydoc.h
Examining data/swig-4.0.2/Source/Doxygen/doxytranslator.cxx
Examining data/swig-4.0.2/Source/Doxygen/javadoc.cxx
Examining data/swig-4.0.2/Source/Doxygen/pydoc.cxx
Examining data/swig-4.0.2/Source/Doxygen/doxycommands.h
Examining data/swig-4.0.2/Source/Doxygen/doxytranslator.h
Examining data/swig-4.0.2/Source/Doxygen/doxyentity.h
Examining data/swig-4.0.2/Source/Doxygen/javadoc.h
Examining data/swig-4.0.2/Source/Doxygen/doxyentity.cxx
Examining data/swig-4.0.2/Source/Doxygen/doxyparser.h
Examining data/swig-4.0.2/Source/Doxygen/doxyparser.cxx
Examining data/swig-4.0.2/Source/CParse/cscanner.c
Examining data/swig-4.0.2/Source/CParse/cparse.h
Examining data/swig-4.0.2/Source/CParse/parser.c
Examining data/swig-4.0.2/Source/CParse/templ.c
Examining data/swig-4.0.2/Source/CParse/util.c
Examining data/swig-4.0.2/Source/CParse/parser.h
Examining data/swig-4.0.2/Source/DOH/hash.c
Examining data/swig-4.0.2/Source/DOH/base.c
Examining data/swig-4.0.2/Source/DOH/string.c
Examining data/swig-4.0.2/Source/DOH/dohint.h
Examining data/swig-4.0.2/Source/DOH/file.c
Examining data/swig-4.0.2/Source/DOH/memory.c
Examining data/swig-4.0.2/Source/DOH/fio.c
Examining data/swig-4.0.2/Source/DOH/list.c
Examining data/swig-4.0.2/Source/DOH/void.c
Examining data/swig-4.0.2/Source/DOH/doh.h
Examining data/swig-4.0.2/Tools/javascript/js_shell.h
Examining data/swig-4.0.2/Tools/javascript/jsc_shell.cxx
Examining data/swig-4.0.2/Tools/javascript/javascript.cxx
Examining data/swig-4.0.2/Tools/javascript/js_shell.cxx
Examining data/swig-4.0.2/Tools/javascript/v8_shell.cxx
Examining data/swig-4.0.2/CCache/execute.c
Examining data/swig-4.0.2/CCache/hash.c
Examining data/swig-4.0.2/CCache/mdfour.c
Examining data/swig-4.0.2/CCache/cleanup.c
Examining data/swig-4.0.2/CCache/stats.c
Examining data/swig-4.0.2/CCache/util.c
Examining data/swig-4.0.2/CCache/snprintf.c
Examining data/swig-4.0.2/CCache/unify.c
Examining data/swig-4.0.2/CCache/args.c
Examining data/swig-4.0.2/CCache/mdfour.h
Examining data/swig-4.0.2/CCache/ccache.h
Examining data/swig-4.0.2/CCache/ccache.c
Examining data/swig-4.0.2/Lib/tcl/mactkinit.c
Examining data/swig-4.0.2/Lib/perl5/noembed.h
Examining data/swig-4.0.2/Lib/linkruntime.c
Examining data/swig-4.0.2/Lib/octave/octheaders.hpp
Examining data/swig-4.0.2/Examples/pike/class/example.cxx
Examining data/swig-4.0.2/Examples/pike/class/example.h
Examining data/swig-4.0.2/Examples/pike/enum/example.cxx
Examining data/swig-4.0.2/Examples/pike/enum/example.h
Examining data/swig-4.0.2/Examples/pike/template/example.h
Examining data/swig-4.0.2/Examples/pike/simple/example.c
Examining data/swig-4.0.2/Examples/pike/overload/example.cxx
Examining data/swig-4.0.2/Examples/pike/overload/example.h
Examining data/swig-4.0.2/Examples/android/class/jni/example.cpp
Examining data/swig-4.0.2/Examples/android/class/jni/example.h
Examining data/swig-4.0.2/Examples/android/simple/jni/example.c
Examining data/swig-4.0.2/Examples/android/extend/jni/example.cpp
Examining data/swig-4.0.2/Examples/android/extend/jni/example.h
Examining data/swig-4.0.2/Examples/php/pointer/example.c
Examining data/swig-4.0.2/Examples/php/class/example.cxx
Examining data/swig-4.0.2/Examples/php/class/example.h
Examining data/swig-4.0.2/Examples/php/enum/example.cxx
Examining data/swig-4.0.2/Examples/php/enum/example.h
Examining data/swig-4.0.2/Examples/php/sync/example.cxx
Examining data/swig-4.0.2/Examples/php/sync/example.h
Examining data/swig-4.0.2/Examples/php/value/example.h
Examining data/swig-4.0.2/Examples/php/value/example.c
Examining data/swig-4.0.2/Examples/php/disown/example.cxx
Examining data/swig-4.0.2/Examples/php/disown/example.h
Examining data/swig-4.0.2/Examples/php/funcptr/example.h
Examining data/swig-4.0.2/Examples/php/funcptr/example.c
Examining data/swig-4.0.2/Examples/php/simple/example.c
Examining data/swig-4.0.2/Examples/php/reference/example.cxx
Examining data/swig-4.0.2/Examples/php/reference/example.h
Examining data/swig-4.0.2/Examples/php/proxy/example.cxx
Examining data/swig-4.0.2/Examples/php/proxy/example.h
Examining data/swig-4.0.2/Examples/php/callback/example.cxx
Examining data/swig-4.0.2/Examples/php/callback/example.h
Examining data/swig-4.0.2/Examples/php/cpointer/example.c
Examining data/swig-4.0.2/Examples/php/overloading/example.cxx
Examining data/swig-4.0.2/Examples/php/overloading/example.h
Examining data/swig-4.0.2/Examples/php/extend/example.cxx
Examining data/swig-4.0.2/Examples/php/extend/example.h
Examining data/swig-4.0.2/Examples/php/variables/example.h
Examining data/swig-4.0.2/Examples/php/variables/example.c
Examining data/swig-4.0.2/Examples/tcl/contract/example.c
Examining data/swig-4.0.2/Examples/tcl/pointer/example.c
Examining data/swig-4.0.2/Examples/tcl/class/example.cxx
Examining data/swig-4.0.2/Examples/tcl/class/example.h
Examining data/swig-4.0.2/Examples/tcl/enum/example.cxx
Examining data/swig-4.0.2/Examples/tcl/enum/example.h
Examining data/swig-4.0.2/Examples/tcl/value/example.h
Examining data/swig-4.0.2/Examples/tcl/value/example.c
Examining data/swig-4.0.2/Examples/tcl/funcptr/example.h
Examining data/swig-4.0.2/Examples/tcl/funcptr/example.c
Examining data/swig-4.0.2/Examples/tcl/simple/example.c
Examining data/swig-4.0.2/Examples/tcl/reference/example.cxx
Examining data/swig-4.0.2/Examples/tcl/reference/example.h
Examining data/swig-4.0.2/Examples/tcl/import/base.h
Examining data/swig-4.0.2/Examples/tcl/import/bar.h
Examining data/swig-4.0.2/Examples/tcl/import/foo.h
Examining data/swig-4.0.2/Examples/tcl/import/spam.h
Examining data/swig-4.0.2/Examples/tcl/variables/example.h
Examining data/swig-4.0.2/Examples/tcl/variables/example.c
Examining data/swig-4.0.2/Examples/tcl/operator/example.h
Examining data/swig-4.0.2/Examples/tcl/multimap/example.c
Examining data/swig-4.0.2/Examples/tcl/std_vector/example.h
Examining data/swig-4.0.2/Examples/go/pointer/pointer.c
Examining data/swig-4.0.2/Examples/go/class/example.h
Examining data/swig-4.0.2/Examples/go/class/class.cxx
Examining data/swig-4.0.2/Examples/go/enum/enum.cxx
Examining data/swig-4.0.2/Examples/go/enum/example.h
Examining data/swig-4.0.2/Examples/go/template/example.h
Examining data/swig-4.0.2/Examples/go/director/director.h
Examining data/swig-4.0.2/Examples/go/funcptr/example.h
Examining data/swig-4.0.2/Examples/go/funcptr/funcptr.c
Examining data/swig-4.0.2/Examples/go/simple/simple.c
Examining data/swig-4.0.2/Examples/go/reference/example.h
Examining data/swig-4.0.2/Examples/go/reference/reference.cxx
Examining data/swig-4.0.2/Examples/go/callback/example.h
Examining data/swig-4.0.2/Examples/go/callback/callback.cxx
Examining data/swig-4.0.2/Examples/go/extend/extend.cxx
Examining data/swig-4.0.2/Examples/go/extend/example.h
Examining data/swig-4.0.2/Examples/go/variables/example.h
Examining data/swig-4.0.2/Examples/go/variables/variables.c
Examining data/swig-4.0.2/Examples/go/multimap/multimap.c
Examining data/swig-4.0.2/Examples/contract/simple_c/example.c
Examining data/swig-4.0.2/Examples/contract/simple_cxx/example.cxx
Examining data/swig-4.0.2/Examples/contract/simple_cxx/example.h
Examining data/swig-4.0.2/Examples/perl5/pointer/example.c
Examining data/swig-4.0.2/Examples/perl5/class/example.cxx
Examining data/swig-4.0.2/Examples/perl5/class/example.h
Examining data/swig-4.0.2/Examples/perl5/value/example.h
Examining data/swig-4.0.2/Examples/perl5/value/example.c
Examining data/swig-4.0.2/Examples/perl5/multiple_inheritance/example.h
Examining data/swig-4.0.2/Examples/perl5/funcptr/example.h
Examining data/swig-4.0.2/Examples/perl5/funcptr/example.c
Examining data/swig-4.0.2/Examples/perl5/simple/example.c
Examining data/swig-4.0.2/Examples/perl5/xmlstring/example.cxx
Examining data/swig-4.0.2/Examples/perl5/xmlstring/example.h
Examining data/swig-4.0.2/Examples/perl5/reference/example.cxx
Examining data/swig-4.0.2/Examples/perl5/reference/example.h
Examining data/swig-4.0.2/Examples/perl5/import/base.h
Examining data/swig-4.0.2/Examples/perl5/import/bar.h
Examining data/swig-4.0.2/Examples/perl5/import/foo.h
Examining data/swig-4.0.2/Examples/perl5/import/spam.h
Examining data/swig-4.0.2/Examples/perl5/callback/example.cxx
Examining data/swig-4.0.2/Examples/perl5/callback/example.h
Examining data/swig-4.0.2/Examples/perl5/extend/example.cxx
Examining data/swig-4.0.2/Examples/perl5/extend/example.h
Examining data/swig-4.0.2/Examples/perl5/variables/example.h
Examining data/swig-4.0.2/Examples/perl5/variables/example.c
Examining data/swig-4.0.2/Examples/perl5/multimap/example.c
Examining data/swig-4.0.2/Examples/lua/nspace/example.h
Examining data/swig-4.0.2/Examples/lua/owner/example.cxx
Examining data/swig-4.0.2/Examples/lua/owner/example.h
Examining data/swig-4.0.2/Examples/lua/embed/embed.c
Examining data/swig-4.0.2/Examples/lua/embed/example.c
Examining data/swig-4.0.2/Examples/lua/pointer/example.c
Examining data/swig-4.0.2/Examples/lua/embed2/example.c
Examining data/swig-4.0.2/Examples/lua/embed2/embed2.c
Examining data/swig-4.0.2/Examples/lua/class/example.cxx
Examining data/swig-4.0.2/Examples/lua/class/example.h
Examining data/swig-4.0.2/Examples/lua/exception/example.h
Examining data/swig-4.0.2/Examples/lua/functest/example.c
Examining data/swig-4.0.2/Examples/lua/simple/example.c
Examining data/swig-4.0.2/Examples/lua/dual/dual.cpp
Examining data/swig-4.0.2/Examples/lua/import/base.h
Examining data/swig-4.0.2/Examples/lua/import/bar.h
Examining data/swig-4.0.2/Examples/lua/import/foo.h
Examining data/swig-4.0.2/Examples/lua/import/spam.h
Examining data/swig-4.0.2/Examples/lua/embed3/embed3.cpp
Examining data/swig-4.0.2/Examples/lua/embed3/example.cpp
Examining data/swig-4.0.2/Examples/lua/embed3/example.h
Examining data/swig-4.0.2/Examples/lua/variables/example.h
Examining data/swig-4.0.2/Examples/lua/variables/example.c
Examining data/swig-4.0.2/Examples/lua/funcptr3/example.h
Examining data/swig-4.0.2/Examples/lua/funcptr3/example.c
Examining data/swig-4.0.2/Examples/lua/lua.c
Examining data/swig-4.0.2/Examples/lua/arrays/example.c
Examining data/swig-4.0.2/Examples/csharp/class/example.cxx
Examining data/swig-4.0.2/Examples/csharp/class/example.h
Examining data/swig-4.0.2/Examples/csharp/enum/example.cxx
Examining data/swig-4.0.2/Examples/csharp/enum/example.h
Examining data/swig-4.0.2/Examples/csharp/template/example.h
Examining data/swig-4.0.2/Examples/csharp/nested/example.cxx
Examining data/swig-4.0.2/Examples/csharp/nested/example.h
Examining data/swig-4.0.2/Examples/csharp/funcptr/example.h
Examining data/swig-4.0.2/Examples/csharp/funcptr/example.c
Examining data/swig-4.0.2/Examples/csharp/simple/example.c
Examining data/swig-4.0.2/Examples/csharp/reference/example.cxx
Examining data/swig-4.0.2/Examples/csharp/reference/example.h
Examining data/swig-4.0.2/Examples/csharp/callback/example.cxx
Examining data/swig-4.0.2/Examples/csharp/callback/example.h
Examining data/swig-4.0.2/Examples/csharp/extend/example.cxx
Examining data/swig-4.0.2/Examples/csharp/extend/example.h
Examining data/swig-4.0.2/Examples/csharp/variables/example.h
Examining data/swig-4.0.2/Examples/csharp/variables/example.c
Examining data/swig-4.0.2/Examples/csharp/arrays/example.h
Examining data/swig-4.0.2/Examples/csharp/arrays/example.c
Examining data/swig-4.0.2/Examples/guile/matrix/matrix.c
Examining data/swig-4.0.2/Examples/guile/matrix/vector.c
Examining data/swig-4.0.2/Examples/guile/matrix/vector.h
Examining data/swig-4.0.2/Examples/guile/class/example.cxx
Examining data/swig-4.0.2/Examples/guile/class/example.h
Examining data/swig-4.0.2/Examples/guile/multivalue/example.c
Examining data/swig-4.0.2/Examples/guile/simple/example.c
Examining data/swig-4.0.2/Examples/guile/port/example.c
Examining data/swig-4.0.2/Examples/guile/multimap/example.c
Examining data/swig-4.0.2/Examples/guile/std_vector/example.h
Examining data/swig-4.0.2/Examples/modula3/class/example.cxx
Examining data/swig-4.0.2/Examples/modula3/class/example.h
Examining data/swig-4.0.2/Examples/modula3/exception/example.h
Examining data/swig-4.0.2/Examples/modula3/enum/example.cxx
Examining data/swig-4.0.2/Examples/modula3/enum/example.h
Examining data/swig-4.0.2/Examples/modula3/simple/example.c
Examining data/swig-4.0.2/Examples/modula3/reference/example.cxx
Examining data/swig-4.0.2/Examples/modula3/reference/example.h
Examining data/swig-4.0.2/Examples/r/class/example.cxx
Examining data/swig-4.0.2/Examples/r/class/example.h
Examining data/swig-4.0.2/Examples/r/simple/example.c
Examining data/swig-4.0.2/Examples/chicken/class/example.cxx
Examining data/swig-4.0.2/Examples/chicken/class/example.h
Examining data/swig-4.0.2/Examples/chicken/simple/example.c
Examining data/swig-4.0.2/Examples/chicken/overload/example.cxx
Examining data/swig-4.0.2/Examples/chicken/overload/example.h
Examining data/swig-4.0.2/Examples/chicken/multimap/example.c
Examining data/swig-4.0.2/Examples/d/class/example.cxx
Examining data/swig-4.0.2/Examples/d/class/example.h
Examining data/swig-4.0.2/Examples/d/enum/example.cxx
Examining data/swig-4.0.2/Examples/d/enum/example.h
Examining data/swig-4.0.2/Examples/d/funcptr/example.h
Examining data/swig-4.0.2/Examples/d/funcptr/example.c
Examining data/swig-4.0.2/Examples/d/simple/example.c
Examining data/swig-4.0.2/Examples/d/callback/example.cxx
Examining data/swig-4.0.2/Examples/d/callback/example.h
Examining data/swig-4.0.2/Examples/d/extend/example.cxx
Examining data/swig-4.0.2/Examples/d/extend/example.h
Examining data/swig-4.0.2/Examples/d/variables/example.h
Examining data/swig-4.0.2/Examples/d/variables/example.c
Examining data/swig-4.0.2/Examples/octave/module_load/example.h
Examining data/swig-4.0.2/Examples/octave/module_load/example.c
Examining data/swig-4.0.2/Examples/octave/contract/example.c
Examining data/swig-4.0.2/Examples/octave/funcptr2/example.h
Examining data/swig-4.0.2/Examples/octave/funcptr2/example.c
Examining data/swig-4.0.2/Examples/octave/pointer/example.c
Examining data/swig-4.0.2/Examples/octave/class/example.cxx
Examining data/swig-4.0.2/Examples/octave/class/example.h
Examining data/swig-4.0.2/Examples/octave/enum/example.cxx
Examining data/swig-4.0.2/Examples/octave/enum/example.h
Examining data/swig-4.0.2/Examples/octave/template/example.h
Examining data/swig-4.0.2/Examples/octave/funcptr/example.h
Examining data/swig-4.0.2/Examples/octave/funcptr/example.c
Examining data/swig-4.0.2/Examples/octave/simple/example.c
Examining data/swig-4.0.2/Examples/octave/reference/example.cxx
Examining data/swig-4.0.2/Examples/octave/reference/example.h
Examining data/swig-4.0.2/Examples/octave/callback/example.cxx
Examining data/swig-4.0.2/Examples/octave/callback/example.h
Examining data/swig-4.0.2/Examples/octave/extend/example.cxx
Examining data/swig-4.0.2/Examples/octave/extend/example.h
Examining data/swig-4.0.2/Examples/octave/variables/example.h
Examining data/swig-4.0.2/Examples/octave/variables/example.c
Examining data/swig-4.0.2/Examples/octave/operator/example.h
Examining data/swig-4.0.2/Examples/ruby/exceptproxy/example.h
Examining data/swig-4.0.2/Examples/ruby/import_template/base.h
Examining data/swig-4.0.2/Examples/ruby/import_template/bar.h
Examining data/swig-4.0.2/Examples/ruby/import_template/foo.h
Examining data/swig-4.0.2/Examples/ruby/import_template/spam.h
Examining data/swig-4.0.2/Examples/ruby/funcptr2/example.h
Examining data/swig-4.0.2/Examples/ruby/funcptr2/example.c
Examining data/swig-4.0.2/Examples/ruby/pointer/example.c
Examining data/swig-4.0.2/Examples/ruby/mark_function/example.cxx
Examining data/swig-4.0.2/Examples/ruby/mark_function/example.h
Examining data/swig-4.0.2/Examples/ruby/class/example.cxx
Examining data/swig-4.0.2/Examples/ruby/class/example.h
Examining data/swig-4.0.2/Examples/ruby/enum/example.cxx
Examining data/swig-4.0.2/Examples/ruby/enum/example.h
Examining data/swig-4.0.2/Examples/ruby/template/example.h
Examining data/swig-4.0.2/Examples/ruby/value/example.h
Examining data/swig-4.0.2/Examples/ruby/value/example.c
Examining data/swig-4.0.2/Examples/ruby/funcptr/example.h
Examining data/swig-4.0.2/Examples/ruby/funcptr/example.c
Examining data/swig-4.0.2/Examples/ruby/simple/example.c
Examining data/swig-4.0.2/Examples/ruby/reference/example.cxx
Examining data/swig-4.0.2/Examples/ruby/reference/example.h
Examining data/swig-4.0.2/Examples/ruby/free_function/example.cxx
Examining data/swig-4.0.2/Examples/ruby/free_function/example.h
Examining data/swig-4.0.2/Examples/ruby/import/base.h
Examining data/swig-4.0.2/Examples/ruby/import/bar.h
Examining data/swig-4.0.2/Examples/ruby/import/foo.h
Examining data/swig-4.0.2/Examples/ruby/import/spam.h
Examining data/swig-4.0.2/Examples/ruby/overloading/example.cxx
Examining data/swig-4.0.2/Examples/ruby/overloading/example.h
Examining data/swig-4.0.2/Examples/ruby/variables/example.h
Examining data/swig-4.0.2/Examples/ruby/variables/example.c
Examining data/swig-4.0.2/Examples/ruby/operator/example.h
Examining data/swig-4.0.2/Examples/ruby/multimap/example.c
Examining data/swig-4.0.2/Examples/ruby/std_vector/example.h
Examining data/swig-4.0.2/Examples/python/contract/example.c
Examining data/swig-4.0.2/Examples/python/exceptproxy/example.h
Examining data/swig-4.0.2/Examples/python/std_map/example.h
Examining data/swig-4.0.2/Examples/python/smartptr/smartptr.h
Examining data/swig-4.0.2/Examples/python/smartptr/example.cxx
Examining data/swig-4.0.2/Examples/python/smartptr/example.h
Examining data/swig-4.0.2/Examples/python/import_template/base.h
Examining data/swig-4.0.2/Examples/python/import_template/bar.h
Examining data/swig-4.0.2/Examples/python/import_template/foo.h
Examining data/swig-4.0.2/Examples/python/import_template/spam.h
Examining data/swig-4.0.2/Examples/python/funcptr2/example.h
Examining data/swig-4.0.2/Examples/python/funcptr2/example.c
Examining data/swig-4.0.2/Examples/python/pointer/example.c
Examining data/swig-4.0.2/Examples/python/doxygen/example.cxx
Examining data/swig-4.0.2/Examples/python/doxygen/example.h
Examining data/swig-4.0.2/Examples/python/class/example.cxx
Examining data/swig-4.0.2/Examples/python/class/example.h
Examining data/swig-4.0.2/Examples/python/exception/example.h
Examining data/swig-4.0.2/Examples/python/enum/example.cxx
Examining data/swig-4.0.2/Examples/python/enum/example.h
Examining data/swig-4.0.2/Examples/python/template/example.h
Examining data/swig-4.0.2/Examples/python/funcptr/example.h
Examining data/swig-4.0.2/Examples/python/funcptr/example.c
Examining data/swig-4.0.2/Examples/python/simple/example.c
Examining data/swig-4.0.2/Examples/python/reference/example.cxx
Examining data/swig-4.0.2/Examples/python/reference/example.h
Examining data/swig-4.0.2/Examples/python/import/base.h
Examining data/swig-4.0.2/Examples/python/import/bar.h
Examining data/swig-4.0.2/Examples/python/import/foo.h
Examining data/swig-4.0.2/Examples/python/import/spam.h
Examining data/swig-4.0.2/Examples/python/callback/example.cxx
Examining data/swig-4.0.2/Examples/python/callback/example.h
Examining data/swig-4.0.2/Examples/python/extend/example.cxx
Examining data/swig-4.0.2/Examples/python/extend/example.h
Examining data/swig-4.0.2/Examples/python/import_packages/from_init1/py3/pkg2/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init1/py3/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init1/py2/pkg2/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init1/py2/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init2/py3/pkg2/pkg3/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init2/py3/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init2/py2/pkg2/pkg3/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init2/py2/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/module_is_init/pkg1/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init3/py3/pkg2/pkg3/pkg4/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init3/py3/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init3/py2/pkg2/pkg3/pkg4/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/from_init3/py2/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport1/py3/pkg2/pkg3/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport1/py3/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport1/py2/pkg2/pkg3/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport1/py2/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/same_modnames2/pkg1/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/same_modnames2/pkg1/pkg2/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport3/py3/pkg2/pkg3/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport3/py3/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport3/py2/pkg2/pkg3/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport3/py2/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport2/py3/pkg2/pkg3/pkg4/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport2/py3/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport2/py2/pkg2/pkg3/pkg4/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/relativeimport2/py2/pkg2/bar.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/same_modnames1/pkg2/foo.hpp
Examining data/swig-4.0.2/Examples/python/import_packages/same_modnames1/pkg1/foo.hpp
Examining data/swig-4.0.2/Examples/python/variables/example.h
Examining data/swig-4.0.2/Examples/python/variables/example.c
Examining data/swig-4.0.2/Examples/python/docstrings/example.cxx
Examining data/swig-4.0.2/Examples/python/docstrings/example.h
Examining data/swig-4.0.2/Examples/python/operator/example.h
Examining data/swig-4.0.2/Examples/python/multimap/example.c
Examining data/swig-4.0.2/Examples/python/std_vector/example.h
Examining data/swig-4.0.2/Examples/mzscheme/class/example.cxx
Examining data/swig-4.0.2/Examples/mzscheme/class/example.h
Examining data/swig-4.0.2/Examples/mzscheme/simple/example.c
Examining data/swig-4.0.2/Examples/mzscheme/multimap/example.c
Examining data/swig-4.0.2/Examples/mzscheme/std_vector/example.h
Examining data/swig-4.0.2/Examples/scilab/matrix/example.c
Examining data/swig-4.0.2/Examples/scilab/contract/example.c
Examining data/swig-4.0.2/Examples/scilab/pointer/example.c
Examining data/swig-4.0.2/Examples/scilab/class/example.cxx
Examining data/swig-4.0.2/Examples/scilab/class/example.h
Examining data/swig-4.0.2/Examples/scilab/enum/example.cxx
Examining data/swig-4.0.2/Examples/scilab/enum/example.h
Examining data/swig-4.0.2/Examples/scilab/template/example.h
Examining data/swig-4.0.2/Examples/scilab/funcptr/example.h
Examining data/swig-4.0.2/Examples/scilab/funcptr/example.c
Examining data/swig-4.0.2/Examples/scilab/simple/example.c
Examining data/swig-4.0.2/Examples/scilab/std_list/example.cxx
Examining data/swig-4.0.2/Examples/scilab/std_list/example.h
Examining data/swig-4.0.2/Examples/scilab/matrix2/example.c
Examining data/swig-4.0.2/Examples/scilab/matrix2/main.c
Examining data/swig-4.0.2/Examples/scilab/variables/example.h
Examining data/swig-4.0.2/Examples/scilab/variables/example.c
Examining data/swig-4.0.2/Examples/scilab/std_vector/example.h
Examining data/swig-4.0.2/Examples/ocaml/scoped_enum/foo.h
Examining data/swig-4.0.2/Examples/ocaml/stl/example.h
Examining data/swig-4.0.2/Examples/ocaml/class/example.h
Examining data/swig-4.0.2/Examples/ocaml/class/example.c
Examining data/swig-4.0.2/Examples/ocaml/std_string/example.h
Examining data/swig-4.0.2/Examples/ocaml/simple/example.c
Examining data/swig-4.0.2/Examples/ocaml/callback/example.h
Examining data/swig-4.0.2/Examples/ocaml/callback/example.c
Examining data/swig-4.0.2/Examples/ocaml/argout_ref/example.c
Examining data/swig-4.0.2/Examples/ocaml/shapes/example.h
Examining data/swig-4.0.2/Examples/ocaml/shapes/example.c
Examining data/swig-4.0.2/Examples/ocaml/strings_test/example.h
Examining data/swig-4.0.2/Examples/ocaml/std_vector/example.h
Examining data/swig-4.0.2/Examples/xml/example_inl.h
Examining data/swig-4.0.2/Examples/xml/example.h
Examining data/swig-4.0.2/Examples/xml/example_xml.h
Examining data/swig-4.0.2/Examples/javascript/nspace/example.h
Examining data/swig-4.0.2/Examples/javascript/pointer/example.cxx
Examining data/swig-4.0.2/Examples/javascript/class/example.cxx
Examining data/swig-4.0.2/Examples/javascript/class/example.h
Examining data/swig-4.0.2/Examples/javascript/exception/example.cxx
Examining data/swig-4.0.2/Examples/javascript/exception/example.h
Examining data/swig-4.0.2/Examples/javascript/enum/example.cxx
Examining data/swig-4.0.2/Examples/javascript/enum/example.h
Examining data/swig-4.0.2/Examples/javascript/template/example.h
Examining data/swig-4.0.2/Examples/javascript/simple/example.cxx
Examining data/swig-4.0.2/Examples/javascript/reference/example.cxx
Examining data/swig-4.0.2/Examples/javascript/reference/example.h
Examining data/swig-4.0.2/Examples/javascript/overload/example.h
Examining data/swig-4.0.2/Examples/javascript/variables/example.cxx
Examining data/swig-4.0.2/Examples/javascript/variables/example.h
Examining data/swig-4.0.2/Examples/javascript/operator/example.h
Examining data/swig-4.0.2/Examples/javascript/constant/example.h
Examining data/swig-4.0.2/Examples/test-suite/preproc_include_b.h
Examining data/swig-4.0.2/Examples/test-suite/mod.h
Examining data/swig-4.0.2/Examples/test-suite/imports_a.h
Examining data/swig-4.0.2/Examples/test-suite/inctest.h
Examining data/swig-4.0.2/Examples/test-suite/imports_b.h
Examining data/swig-4.0.2/Examples/test-suite/doxygen_misc_constructs.h
Examining data/swig-4.0.2/Examples/test-suite/preproc_include_d withspace.h
Examining data/swig-4.0.2/Examples/test-suite/clientdata_prop_b.h
Examining data/swig-4.0.2/Examples/test-suite/swig_examples_lock.h
Examining data/swig-4.0.2/Examples/test-suite/multi_import.h
Examining data/swig-4.0.2/Examples/test-suite/guile/guile_ext_test_external.cxx
Examining data/swig-4.0.2/Examples/test-suite/clientdata_prop_a.h
Examining data/swig-4.0.2/Examples/test-suite/preproc_include_g.h
Examining data/swig-4.0.2/Examples/test-suite/import_nomodule.h
Examining data/swig-4.0.2/Examples/test-suite/template_typedef_cplx2.h
Examining data/swig-4.0.2/Examples/test-suite/chicken/chicken_ext_test_external.cxx
Examining data/swig-4.0.2/Examples/test-suite/preproc_include_e withspace.h
Examining data/swig-4.0.2/Examples/test-suite/preproc_include_f withspace.h
Examining data/swig-4.0.2/Examples/test-suite/preproc_include_c.h
Examining data/swig-4.0.2/Examples/test-suite/octave/octave_empty.c
Examining data/swig-4.0.2/Examples/test-suite/preproc_include_a.h
Examining data/swig-4.0.2/Examples/test-suite/doxygen_basic_translate.h
Examining data/swig-4.0.2/Examples/test-suite/insert_directive.h
Examining data/swig-4.0.2/Examples/test-suite/shared_ptr_wrapper.h
Examining data/swig-4.0.2/Examples/test-suite/packageoption.h
Examining data/swig-4.0.2/Examples/test-suite/preproc_gcc_output.h
Examining data/swig-4.0.2/Examples/test-suite/refcount.h
Examining data/swig-4.0.2/Examples/test-suite/rename.h
Examining data/swig-4.0.2/Examples/java/pointer/example.c
Examining data/swig-4.0.2/Examples/java/doxygen/example.cxx
Examining data/swig-4.0.2/Examples/java/doxygen/example.h
Examining data/swig-4.0.2/Examples/java/class/example.cxx
Examining data/swig-4.0.2/Examples/java/class/example.h
Examining data/swig-4.0.2/Examples/java/enum/example.cxx
Examining data/swig-4.0.2/Examples/java/enum/example.h
Examining data/swig-4.0.2/Examples/java/template/example.h
Examining data/swig-4.0.2/Examples/java/nested/example.cxx
Examining data/swig-4.0.2/Examples/java/nested/example.h
Examining data/swig-4.0.2/Examples/java/funcptr/example.h
Examining data/swig-4.0.2/Examples/java/funcptr/example.c
Examining data/swig-4.0.2/Examples/java/simple/example.c
Examining data/swig-4.0.2/Examples/java/reference/example.cxx
Examining data/swig-4.0.2/Examples/java/reference/example.h
Examining data/swig-4.0.2/Examples/java/callback/example.cxx
Examining data/swig-4.0.2/Examples/java/callback/example.h
Examining data/swig-4.0.2/Examples/java/extend/example.cxx
Examining data/swig-4.0.2/Examples/java/extend/example.h
Examining data/swig-4.0.2/Examples/java/variables/example.h
Examining data/swig-4.0.2/Examples/java/variables/example.c
Examining data/swig-4.0.2/Examples/java/multimap/example.c

FINAL RESULTS:

data/swig-4.0.2/CCache/util.c:771:13:  [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.
		int len = readlink(path, ret, maxlen-1);
data/swig-4.0.2/CCache/ccache.c:145:2:  [4] (shell) execv:
  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.
	execv(orig_args->argv[0], orig_args->argv);
data/swig-4.0.2/CCache/ccache.c:340:8:  [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(out_filename_cache, hashname);
data/swig-4.0.2/CCache/ccache.c:342:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(out_filename_cache, "%s.%d", hashname, cached_files_count);
data/swig-4.0.2/CCache/ccache.c:365:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(out_filename_cache, "%s.outfiles", hashname);
data/swig-4.0.2/CCache/ccache.c:687:8:  [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(out_filename_cache, hashname);
data/swig-4.0.2/CCache/ccache.c:689:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(out_filename_cache, "%s.%d", hashname, retrieved_files_count);
data/swig-4.0.2/CCache/ccache.h:159:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *,size_t ,const char *, ...);
data/swig-4.0.2/CCache/execute.c:183:8:  [4] (shell) execv:
  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.
		exit(execv(argv[0], argv));
data/swig-4.0.2/CCache/execute.c:243:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(fname, X_OK) == 0 &&
data/swig-4.0.2/CCache/snprintf.c:757:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
 int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
data/swig-4.0.2/CCache/snprintf.c:772:6:  [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.
 int snprintf(char *str,size_t count,const char *fmt,...)
data/swig-4.0.2/CCache/snprintf.c:778:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(str, count, fmt, ap);
data/swig-4.0.2/CCache/snprintf.c:791:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(0, 0, format, ap);
data/swig-4.0.2/CCache/snprintf.c:796:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(*ptr, ret+1, format, ap);
data/swig-4.0.2/CCache/snprintf.c:834:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
 int sprintf(char *str,const char *fmt,...);
data/swig-4.0.2/CCache/snprintf.c:896:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			int l1 = snprintf(0, 0, fp_fmt[x], fp_nums[y]);
data/swig-4.0.2/CCache/snprintf.c:897:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			int l2 = snprintf(buf1, sizeof(buf1), fp_fmt[x], fp_nums[y]);
data/swig-4.0.2/CCache/snprintf.c:898:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (buf2, fp_fmt[x], fp_nums[y]);
data/swig-4.0.2/CCache/snprintf.c:914:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			int l1 = snprintf(0, 0, int_fmt[x], int_nums[y]);
data/swig-4.0.2/CCache/snprintf.c:915:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			int l2 = snprintf(buf1, sizeof(buf1), int_fmt[x], int_nums[y]);
data/swig-4.0.2/CCache/snprintf.c:916:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (buf2, int_fmt[x], int_nums[y]);
data/swig-4.0.2/CCache/snprintf.c:932:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			int l1 = snprintf(0, 0, str_fmt[x], str_vals[y]);
data/swig-4.0.2/CCache/snprintf.c:933:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			int l2 = snprintf(buf1, sizeof(buf1), str_fmt[x], str_vals[y]);
data/swig-4.0.2/CCache/snprintf.c:934:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf (buf2, str_fmt[x], str_vals[y]);
data/swig-4.0.2/CCache/util.c:35:2:  [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(logfile, format, ap);
data/swig-4.0.2/CCache/util.c:87:2:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	mktemp(template);
data/swig-4.0.2/Examples/lua/dual/dual.cpp:35:19:  [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.
#define DEBUG(X) {printf(X);fflush(stdout);}
data/swig-4.0.2/Examples/lua/dual/dual.cpp:36:22:  [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.
#define DEBUG2(X,Y) {printf(X,Y);fflush(stdout);}
data/swig-4.0.2/Examples/lua/dual/dual.cpp:37:24:  [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.
#define DEBUG3(X,Y,Z) {printf(X,Y,Z);fflush(stdout);}
data/swig-4.0.2/Examples/lua/embed2/embed2.c:158: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(va_arg(vl, char *),lua_tostring(L, nres));/* WARNING possible buffer overflow */
data/swig-4.0.2/Examples/scilab/matrix2/example.c:95:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(result, inputVector[0]);
data/swig-4.0.2/Examples/scilab/matrix2/example.c:99:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(result, (const char*) inputVector[i]);
data/swig-4.0.2/Lib/perl5/noembed.h:100:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#ifdef access
data/swig-4.0.2/Lib/perl5/noembed.h:101: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.
  #undef access
data/swig-4.0.2/Source/CParse/parser.c:4198:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/swig-4.0.2/Source/DOH/base.c:114:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buffer, "<Object '%s' at %p>", objinfo->objname, (void *) b);
data/swig-4.0.2/Source/DOH/fio.c:319:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    nbytes += sprintf(stemp, newformat, Data(enc));
data/swig-4.0.2/Source/DOH/fio.c:321:16:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    nbytes += sprintf(stemp, newformat, Data(Sval));
data/swig-4.0.2/Source/DOH/fio.c:357:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	  nbytes += sprintf(stemp, newformat, doh);
data/swig-4.0.2/Source/DOH/fio.c:387:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	  nbytes += sprintf(stemp, newformat, ivalue);
data/swig-4.0.2/Source/DOH/fio.c:395:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	  nbytes += sprintf(stemp, newformat, dvalue);
data/swig-4.0.2/Source/DOH/fio.c:399:14:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	  nbytes += sprintf(stemp, newformat, pvalue);
data/swig-4.0.2/Source/DOH/hash.c:68:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy(r->cstr, c);
data/swig-4.0.2/Source/DOH/string.c:1164: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(str->str, s);
data/swig-4.0.2/Source/Modules/allegrocl.cxx:1233: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.
      if(access && Strcmp(access,"public")) {
data/swig-4.0.2/Source/Modules/allegrocl.cxx:1233:27:  [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 && Strcmp(access,"public")) {
data/swig-4.0.2/Source/Modules/allegrocl.cxx:1251:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access && Strcmp(access, "public"))
data/swig-4.0.2/Source/Modules/allegrocl.cxx:1251:23:  [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 && Strcmp(access, "public"))
data/swig-4.0.2/Source/Modules/allegrocl.cxx:1252:38:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	  Printf(slotdefs, " ;; %s member", access);
data/swig-4.0.2/Source/Modules/cffi.cxx:823:24:  [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.
      String *cname = (access && Strcmp(access, "public")) ? NewString("nil") : Copy(Getattr(c, "name"));
data/swig-4.0.2/Source/Modules/cffi.cxx:823: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.
      String *cname = (access && Strcmp(access, "public")) ? NewString("nil") : Copy(Getattr(c, "name"));
data/swig-4.0.2/Source/Modules/cffi.cxx:835:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access && Strcmp(access, "public"))
data/swig-4.0.2/Source/Modules/cffi.cxx:835:24:  [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 && Strcmp(access, "public"))
data/swig-4.0.2/Source/Modules/cffi.cxx:836:39:  [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.
    Printf(slotdefs, " ;; %s member", access);
data/swig-4.0.2/Source/Modules/lang.cxx:2304: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.
      set_nodeType(access, "access");
data/swig-4.0.2/Source/Modules/lang.cxx:2305: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.
      Setattr(access, "kind", "public");
data/swig-4.0.2/Source/Modules/lang.cxx:2306:22:  [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.
      appendChild(n, access);
data/swig-4.0.2/Source/Modules/lang.cxx:2311: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.
      Delete(access);
data/swig-4.0.2/Source/Modules/lang.cxx:2346: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.
      set_nodeType(access, "access");
data/swig-4.0.2/Source/Modules/lang.cxx:2347: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.
      Setattr(access, "kind", "public");
data/swig-4.0.2/Source/Modules/lang.cxx:2348:22:  [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.
      appendChild(n, access);
data/swig-4.0.2/Source/Modules/lang.cxx:2352: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.
      Delete(access);
data/swig-4.0.2/Source/Modules/lang.cxx:2393: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.
	set_nodeType(access, "access");
data/swig-4.0.2/Source/Modules/lang.cxx:2394: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.
	Setattr(access, "kind", "public");
data/swig-4.0.2/Source/Modules/lang.cxx:2395: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.
	appendChild(n, access);
data/swig-4.0.2/Source/Modules/lang.cxx:2399:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	Delete(access);
data/swig-4.0.2/Source/Modules/overload.cxx:369:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tmp, Char(argv_template_string), j);
data/swig-4.0.2/Source/Modules/utils.cxx:18:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return !access || !Cmp(access, "public");
data/swig-4.0.2/Source/Modules/utils.cxx:18:26:  [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.
  return !access || !Cmp(access, "public");
data/swig-4.0.2/Source/Modules/utils.cxx:23: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.
  return access && !Cmp(access, "private");
data/swig-4.0.2/Source/Modules/utils.cxx:23:25:  [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.
  return access && !Cmp(access, "private");
data/swig-4.0.2/Source/Modules/utils.cxx:28: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.
  return access && !Cmp(access, "protected");
data/swig-4.0.2/Source/Modules/utils.cxx:28:25:  [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.
  return access && !Cmp(access, "protected");
data/swig-4.0.2/Source/Swig/cwrap.c:1013:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
      if (access && (Cmp(access, "protected") == 0)) {
data/swig-4.0.2/Source/Swig/cwrap.c:1013:26:  [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 && (Cmp(access, "protected") == 0)) {
data/swig-4.0.2/Source/Swig/error.c:214:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	  sprintf(temp, "-%s", c);
data/swig-4.0.2/Source/Swig/error.c:216:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy(temp, c);
data/swig-4.0.2/Source/Swig/error.c:268:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(wrn_wnum_fmt, "%s: %s %%d: ", fmt_line, warning);
data/swig-4.0.2/Source/Swig/error.c:269:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(wrn_nnum_fmt, "%s: %s: ", fmt_line, warning);
data/swig-4.0.2/Source/Swig/error.c:270:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(err_line_fmt, "%s: %s: ", fmt_line, error);
data/swig-4.0.2/Source/Swig/error.c:271:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(err_eof_fmt, "%s: %s: ", fmt_eof, error);
data/swig-4.0.2/Source/Swig/error.c:272:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(diag_line_fmt, "%s: ", fmt_line);
data/swig-4.0.2/Source/Swig/error.c:273:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(diag_eof_fmt, "%s: ", fmt_eof);
data/swig-4.0.2/Source/Swig/misc.c:40:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(c, s);
data/swig-4.0.2/Source/Swig/misc.c:1166:11:  [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.
#  define popen _popen
data/swig-4.0.2/Source/Swig/misc.c:1174:14:  [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.
extern FILE *popen(const char *command, const char *type);
data/swig-4.0.2/Source/Swig/misc.c:1184:16:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *fp = popen(command, "r");
data/swig-4.0.2/Source/Swig/misc.c:1305: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(p, start);
data/swig-4.0.2/Source/Swig/naming.c:1291:24:  [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.
      int is_public = !access || Equal(access, "public");
data/swig-4.0.2/Source/Swig/naming.c:1291:40:  [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.
      int is_public = !access || Equal(access, "public");
data/swig-4.0.2/Source/Swig/typemap.c:1490:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(temp, "%s:%s", cmethod, ckwname);
data/swig-4.0.2/Source/Swig/typemap.c:1507:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(temp, "%s:locals", cmethod);
data/swig-4.0.2/Source/Swig/typemap.c:1513:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(temp, "%s:SWIGTYPE", cmethod);
data/swig-4.0.2/Source/Swig/typemap.c:1531:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(temp, "%s:fragment", cmethod);
data/swig-4.0.2/Source/Swig/typemap.c:1790:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temp, "%s:SWIGTYPE", cmethod);
data/swig-4.0.2/Source/Swig/typemap.c:1809:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(temp, "%s:locals", cmethod);
data/swig-4.0.2/Source/Swig/typemap.c:1815:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(temp, "%s:next", cmethod);
data/swig-4.0.2/Tools/javascript/js_shell.cxx:60:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access( lib_path.c_str(), F_OK ) != -1) {
data/swig-4.0.2/CCache/ccache.c:125:9:  [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 ((e=getenv("CCACHE_PREFIX"))) {
data/swig-4.0.2/CCache/ccache.c:260:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if (getenv("CCACHE_OUTFILES") || putenv(ccache_outfiles) == -1) {
data/swig-4.0.2/CCache/ccache.c:267:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_CPP2")) {
data/swig-4.0.2/CCache/ccache.c:323: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.
		int hardlink = (getenv("CCACHE_NOCOMPRESS") != 0) && (getenv("CCACHE_HARDLINK") != 0);
data/swig-4.0.2/CCache/ccache.c:323:57:  [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.
		int hardlink = (getenv("CCACHE_NOCOMPRESS") != 0) && (getenv("CCACHE_HARDLINK") != 0);
data/swig-4.0.2/CCache/ccache.c:422: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.
	if ((s = getenv("CCACHE_NLEVELS"))) {
data/swig-4.0.2/CCache/ccache.c:503:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_HASHDIR")) {
data/swig-4.0.2/CCache/ccache.c:580:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!getenv("CCACHE_CPP2")) {
data/swig-4.0.2/CCache/ccache.c:645:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((first && getenv("CCACHE_RECACHE")) ||
data/swig-4.0.2/CCache/ccache.c:648:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (first && getenv("CCACHE_RECACHE"))
data/swig-4.0.2/CCache/ccache.c:665: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.
		hardlink = (getenv("CCACHE_HARDLINK") != 0);
data/swig-4.0.2/CCache/ccache.c:797:12:  [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 ((path=getenv("CCACHE_CC"))) {
data/swig-4.0.2/CCache/ccache.c:837:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			p = getenv("CCACHE_EXTENSION");
data/swig-4.0.2/CCache/ccache.c:1130:9:  [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 ((e=getenv("CCACHE_PREFIX"))) {
data/swig-4.0.2/CCache/ccache.c:1146: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 (strstr(basename, "swig") || getenv("CCACHE_SWIG")) {
data/swig-4.0.2/CCache/ccache.c:1166:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_DISABLE")) {
data/swig-4.0.2/CCache/ccache.c:1171:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_STRIPC")) {
data/swig-4.0.2/CCache/ccache.c:1175:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_UNIFY")) {
data/swig-4.0.2/CCache/ccache.c:1190:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_READONLY")) {
data/swig-4.0.2/CCache/ccache.c:1242:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "hszcCF:M:V")) != -1) {
data/swig-4.0.2/CCache/ccache.c:1339:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	cache_dir = getenv("CCACHE_DIR");
data/swig-4.0.2/CCache/ccache.c:1347: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.
	cache_logfile = getenv("CCACHE_LOGFILE");
data/swig-4.0.2/CCache/ccache.c:1349:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_VERBOSE")) {
data/swig-4.0.2/CCache/ccache.c:1357:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	p = getenv("CCACHE_UMASK");
data/swig-4.0.2/CCache/ccache.c:1388:13:  [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.
	temp_dir = getenv("CCACHE_TEMPDIR");
data/swig-4.0.2/CCache/ccache.c:1399:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!getenv("CCACHE_READONLY")) {
data/swig-4.0.2/CCache/execute.c:209: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.
	ret = SearchPathA(getenv("CCACHE_PATH"), name, ".exe",
data/swig-4.0.2/CCache/execute.c:225:9:  [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.
	path = getenv("CCACHE_PATH");
data/swig-4.0.2/CCache/execute.c:227:10:  [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.
		path = getenv("PATH");
data/swig-4.0.2/CCache/mdfour.c:216:14:  [3] (random) random:
  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.
	chunk = 1 + random() % (sizeof(buf) - 1);
data/swig-4.0.2/CCache/stats.c:126:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_NOSTATS")) return;
data/swig-4.0.2/CCache/util.c:210:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("CCACHE_NOCOMPRESS")) {
data/swig-4.0.2/CCache/util.c:766:6:  [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.
	p = realpath(path, ret);
data/swig-4.0.2/CCache/util.c:844: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.
	const char *p = getenv("HOME");
data/swig-4.0.2/Examples/lua/lua.c:390:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *init = getenv("LUA_INIT");
data/swig-4.0.2/Examples/test-suite/swig_examples_lock.h:11:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&mutex_);
data/swig-4.0.2/Examples/test-suite/swig_examples_lock.h:21:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&critical_section.mutex_);
data/swig-4.0.2/Source/Modules/main.cxx:936:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if ((c = getenv("SWIG_LIB")) == (char *) 0) {
data/swig-4.0.2/Source/Modules/main.cxx:1358:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *outfiles = getenv("CCACHE_OUTFILES");
data/swig-4.0.2/Source/Modules/swigmain.cxx:222:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  SWIG_merge_envopt(getenv("SWIG_FEATURES"), margc, margv, &argc, &argv);
data/swig-4.0.2/CCache/ccache.c:189: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 hostname[200];
data/swig-4.0.2/CCache/ccache.c:190:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(hostname, "unknown");
data/swig-4.0.2/CCache/ccache.c:294:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(tmp_stderr, O_RDONLY | O_BINARY);
data/swig-4.0.2/CCache/ccache.c:298: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).
				int fd2 = open(cpp_stderr, O_RDONLY | O_BINARY);
data/swig-4.0.2/CCache/ccache.c:327: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).
			file = fopen(tmp_outfiles, "r");
data/swig-4.0.2/CCache/ccache.c:329: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 out_filename[FILENAME_MAX + 1];
data/swig-4.0.2/CCache/ccache.c:330: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 out_filename_cache[FILENAME_MAX + 1];
data/swig-4.0.2/CCache/ccache.c:423: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).
		nlevels = atoi(s);
data/swig-4.0.2/CCache/ccache.c:627:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_stderr = open(stderr_file, O_RDONLY | O_BINARY);
data/swig-4.0.2/CCache/ccache.c:672: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).
			file = fopen(outfiles, "r");
data/swig-4.0.2/CCache/ccache.c:674: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 out_filename[FILENAME_MAX + 1];
data/swig-4.0.2/CCache/ccache.c:675: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 out_filename_cache[FILENAME_MAX + 1];
data/swig-4.0.2/CCache/ccache.c:738: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).
	fd_cpp_stderr = open(cpp_stderr, O_RDONLY | O_BINARY);
data/swig-4.0.2/CCache/ccache.c:1111:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(default_depfile_name, ".d");
data/swig-4.0.2/CCache/ccache.c:1279:8:  [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).
			v = atoi(optarg);
data/swig-4.0.2/CCache/ccache.h:143: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.
void stats_read(const char *stats_file, unsigned counters[STATS_END]);
data/swig-4.0.2/CCache/execute.c:38: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(ptr, argv[i], len);
data/swig-4.0.2/CCache/execute.c:168:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(path_stdout, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666);
data/swig-4.0.2/CCache/execute.c:176:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(path_stderr, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666);
data/swig-4.0.2/CCache/execute.c:207: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 namebuf[MAX_PATH];
data/swig-4.0.2/CCache/hash.c:49: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[1024];
data/swig-4.0.2/CCache/hash.c:52:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname, O_RDONLY|O_BINARY);
data/swig-4.0.2/CCache/hash.c:67: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.
	unsigned char sum[16];
data/swig-4.0.2/CCache/hash.c:68: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 ret[53];
data/swig-4.0.2/CCache/hash.c:75:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(&ret[i*2], "%02x", (unsigned)sum[i]);
data/swig-4.0.2/CCache/hash.c:77: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(&ret[i*2], "-%u", (unsigned)md.totalN);
data/swig-4.0.2/CCache/mdfour.c:116: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.
	unsigned char buf[128];
data/swig-4.0.2/CCache/mdfour.c:125:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	if (n) memcpy(buf, in, n);
data/swig-4.0.2/CCache/mdfour.c:155: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(md->tail+md->tail_len, in, len);
data/swig-4.0.2/CCache/mdfour.c:176: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(md->tail, in, n);
data/swig-4.0.2/CCache/mdfour.c:207: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.
	unsigned char buf[1024], sum[16];
data/swig-4.0.2/CCache/mdfour.c:210:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname,O_RDONLY|O_BINARY);
data/swig-4.0.2/CCache/mdfour.c:246: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.
	unsigned char buf[64], sum[16];
data/swig-4.0.2/CCache/mdfour.c:248:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname,O_RDONLY|O_BINARY);
data/swig-4.0.2/CCache/mdfour.c:268: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(sum, md.buffer, 16);
data/swig-4.0.2/CCache/mdfour.h:25: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.
	unsigned char tail[64];
data/swig-4.0.2/CCache/snprintf.c:445: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 convert[20];
data/swig-4.0.2/CCache/snprintf.c:598: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 iconvert[311];
data/swig-4.0.2/CCache/snprintf.c:599: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 fconvert[311];
data/swig-4.0.2/CCache/snprintf.c:838: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 buf1[1024];
data/swig-4.0.2/CCache/snprintf.c:839: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 buf2[1024];
data/swig-4.0.2/CCache/snprintf.c:955:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf2,                "%1.1f", v0*pow(10, x));
data/swig-4.0.2/CCache/stats.c:85: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[1024];
data/swig-4.0.2/CCache/stats.c:108: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[1024];
data/swig-4.0.2/CCache/stats.c:196: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.
void stats_read(const char *stats_file, unsigned counters[STATS_END])
data/swig-4.0.2/CCache/stats.c:200:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(stats_file, O_RDONLY|O_BINARY);
data/swig-4.0.2/CCache/unify.c:56: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 *toks[7];
data/swig-4.0.2/CCache/unify.c:99:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static unsigned char buf[64];
data/swig-4.0.2/CCache/unify.c:211:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				unsigned char *s = (unsigned char *)tokens[q].toks[i];
data/swig-4.0.2/CCache/unify.c:281:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname, O_RDONLY|O_BINARY);
data/swig-4.0.2/CCache/util.c:31:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!logfile) logfile = fopen(cache_logfile, "a");
data/swig-4.0.2/CCache/util.c:73: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[10240];
data/swig-4.0.2/CCache/util.c:85:5:  [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).
int mkstemp(char *template)
data/swig-4.0.2/CCache/util.c:88: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).
	return open(template, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600);
data/swig-4.0.2/CCache/util.c:103: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[10240];
data/swig-4.0.2/CCache/util.c:110:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd1 = open(src, O_RDONLY|O_BINARY);
data/swig-4.0.2/CCache/util.c:116:8:  [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).
	fd2 = mkstemp(tmp_name);
data/swig-4.0.2/CCache/util.c:180: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[10240];
data/swig-4.0.2/CCache/util.c:202: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[10240];
data/swig-4.0.2/CCache/util.c:215:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_in = open(src, O_RDONLY);
data/swig-4.0.2/CCache/util.c:227:11:  [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_out = mkstemp(tmp_name);
data/swig-4.0.2/CCache/util.c:336:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(filename, "rb");
data/swig-4.0.2/CCache/util.c:463:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(filename, "w");
data/swig-4.0.2/CCache/util.c:542: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(p2, ptr, size);
data/swig-4.0.2/CCache/util.c:686: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).
	int fd = open(fname, O_RDWR|O_BINARY);
data/swig-4.0.2/CCache/util.c:688:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(fname, O_RDWR|O_CREAT|O_EXCL|O_BINARY, 0666);
data/swig-4.0.2/CCache/util.c:690:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(fname, O_RDWR|O_BINARY);
data/swig-4.0.2/CCache/util.c:742: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 namebuf[MAX_PATH];
data/swig-4.0.2/CCache/util.c:813:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_BINARY, 0666);
data/swig-4.0.2/CCache/util.c:827: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 home_path[MAX_PATH] = {0};
data/swig-4.0.2/Examples/chicken/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/chicken/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/csharp/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/csharp/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/csharp/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/csharp/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/csharp/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/csharp/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/csharp/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/d/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/d/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/d/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/d/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d, %d)", p->x,p->y);
data/swig-4.0.2/Examples/d/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/go/multimap/multimap.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/go/multimap/multimap.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/go/reference/reference.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/go/reference/reference.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/go/variables/variables.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/go/variables/variables.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/go/variables/variables.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/go/variables/variables.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/go/variables/variables.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/guile/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/guile/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/java/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/java/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/java/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/java/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/java/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/java/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/java/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/java/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/java/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/javascript/exception/example.h:16: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 msg[256];
data/swig-4.0.2/Examples/javascript/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/javascript/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/javascript/variables/example.cxx:33: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             name[256] = "Dave";
data/swig-4.0.2/Examples/javascript/variables/example.cxx:34: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/javascript/variables/example.cxx:85:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/javascript/variables/example.cxx:87:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/javascript/variables/example.cxx:89:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/lua/embed2/embed2.c:181:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[80];
data/swig-4.0.2/Examples/lua/exception/example.h:16: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 msg[256];
data/swig-4.0.2/Examples/lua/lua.c:218:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[MAXINPUT];
data/swig-4.0.2/Examples/lua/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/lua/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/lua/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/lua/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/lua/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/modula3/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/modula3/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/mzscheme/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/mzscheme/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/octave/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/octave/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/octave/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/octave/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/octave/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/octave/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/octave/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/perl5/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/perl5/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/perl5/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/perl5/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/perl5/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/perl5/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/perl5/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/perl5/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/perl5/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/php/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/php/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/php/variables/example.c:28: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             name[5] = "Dave";
data/swig-4.0.2/Examples/php/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/php/variables/example.c:84:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/php/variables/example.c:86:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/php/variables/example.c:88:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/php/variables/example.h:22:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char             name[5];
data/swig-4.0.2/Examples/php/variables/example.h:28:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char path[256];
data/swig-4.0.2/Examples/python/exception/example.h:16: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 msg[256];
data/swig-4.0.2/Examples/python/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/python/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/python/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/python/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/python/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/python/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/python/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/python/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/python/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/ruby/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/ruby/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/ruby/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/ruby/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/ruby/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/ruby/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/ruby/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/ruby/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/ruby/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/scilab/matrix2/example.c:112:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(pc, "%d", i);
data/swig-4.0.2/Examples/scilab/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/scilab/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/scilab/variables/example.c:84:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/scilab/variables/example.c:86:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/scilab/variables/example.c:88:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Examples/tcl/multimap/example.c:24:7:  [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).
  x = atoi(argv[1]);
data/swig-4.0.2/Examples/tcl/multimap/example.c:25:7:  [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).
  y = atoi(argv[2]);
data/swig-4.0.2/Examples/tcl/reference/example.cxx:21: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 temp[512];
data/swig-4.0.2/Examples/tcl/reference/example.cxx:22:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(temp,"Vector %p (%g,%g,%g)", (void *)this, x,y,z);
data/swig-4.0.2/Examples/tcl/variables/example.c:28: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             name[256] = "Dave";
data/swig-4.0.2/Examples/tcl/variables/example.c:29: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             path[256] = "/home/beazley";
data/swig-4.0.2/Examples/tcl/variables/example.c:80:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[256];
data/swig-4.0.2/Examples/tcl/variables/example.c:82:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"(%d,%d)", p->x,p->y);
data/swig-4.0.2/Examples/tcl/variables/example.c:84:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"null");
data/swig-4.0.2/Lib/perl5/noembed.h:91:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#ifdef open
data/swig-4.0.2/Lib/perl5/noembed.h:92: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).
  #undef open
data/swig-4.0.2/Source/CParse/parser.c:4444:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/swig-4.0.2/Source/CParse/parser.c:4631:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char yymsgbuf[128];
data/swig-4.0.2/Source/CParse/parser.c:5322: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 temp[64];
data/swig-4.0.2/Source/CParse/parser.c:5324:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		 sprintf(temp,"%d", cparse_line);
data/swig-4.0.2/Source/CParse/parser.c:5336: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 temp[64];
data/swig-4.0.2/Source/CParse/parser.c:5339:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		 sprintf(temp,"%d", cparse_line);
data/swig-4.0.2/Source/CParse/parser.c:6086:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		  n = atoi(Char((yyvsp[-2].dtype).val));
data/swig-4.0.2/Source/CParse/parser.c:7884:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			      char   tmp[32];
data/swig-4.0.2/Source/CParse/parser.c:7895: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(tmp,"$%d",i+1);
data/swig-4.0.2/Source/CParse/templ.c:20:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *baselists[3];
data/swig-4.0.2/Source/CParse/templ.c:614:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char tmp[32];
data/swig-4.0.2/Source/CParse/templ.c:638:8:  [2] (buffer) sprintf:
  Does not 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", i);
data/swig-4.0.2/Source/CParse/util.c:25: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 tmp[512];
data/swig-4.0.2/Source/DOH/base.c:106: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[512];
data/swig-4.0.2/Source/DOH/base.c:401:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi((char *) Data(val));
data/swig-4.0.2/Source/DOH/file.c:287:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  file = fopen(filen, mode);
data/swig-4.0.2/Source/DOH/fio.c:111: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 newformat[256];
data/swig-4.0.2/Source/DOH/fio.c:112: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 obuffer[OBUFLEN];
data/swig-4.0.2/Source/DOH/fio.c:114:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[64];
data/swig-4.0.2/Source/DOH/fio.c:124:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char encoder[128], *ec = 0;
data/swig-4.0.2/Source/DOH/fio.c:157: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(temp, "%d", widthval);
data/swig-4.0.2/Source/DOH/fio.c:184: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).
	widthval = atoi(temp);
data/swig-4.0.2/Source/DOH/fio.c:189: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).
	widthval = atoi(temp);
data/swig-4.0.2/Source/DOH/fio.c:196: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).
	widthval = atoi(temp);
data/swig-4.0.2/Source/DOH/fio.c:226: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(temp, "%d", precval);
data/swig-4.0.2/Source/DOH/fio.c:247:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	precval = atoi(temp);
data/swig-4.0.2/Source/DOH/fio.c:252:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	precval = atoi(temp);
data/swig-4.0.2/Source/DOH/fio.c:476: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[16384];
data/swig-4.0.2/Source/DOH/string.c:77: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(str->str, s->str, s->len);
data/swig-4.0.2/Source/DOH/string.c:236: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(tc + oldlen, newstr, l + 1);
data/swig-4.0.2/Source/DOH/string.c:303:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(s->str + pos, data, len);
data/swig-4.0.2/Source/DOH/string.c:776: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(t, rep, replen);
data/swig-4.0.2/Source/DOH/string.c:930: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(t, str->str, (first - str->str));
data/swig-4.0.2/Source/DOH/string.c:934: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(t, rep, replen);
data/swig-4.0.2/Source/DOH/string.c:985: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(t, s, c - s);
data/swig-4.0.2/Source/DOH/string.c:988: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(t, s, (str->str + str->len) - s + 1);
data/swig-4.0.2/Source/Modules/chicken.cxx:292: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 buftmp[20];
data/swig-4.0.2/Source/Modules/chicken.cxx:293:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buftmp, "%d", num_methods);
data/swig-4.0.2/Source/Modules/contract.cxx:230: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 argname[32];
data/swig-4.0.2/Source/Modules/contract.cxx:237:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(argname, "arg%d", argnum);
data/swig-4.0.2/Source/Modules/go.cxx:331:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    intgo_type_size = atoi(argv[i + 1]);
data/swig-4.0.2/Source/Modules/go.cxx:5971: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 l[2];
data/swig-4.0.2/Source/Modules/go.cxx:5972: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 u[2];
data/swig-4.0.2/Source/Modules/go.cxx:5979: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 l[2];
data/swig-4.0.2/Source/Modules/go.cxx:5980: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 u[3];
data/swig-4.0.2/Source/Modules/guile.cxx:641: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 source[256];
data/swig-4.0.2/Source/Modules/guile.cxx:719: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(source, "argv[%d]", i);
data/swig-4.0.2/Source/Modules/guile.cxx:721: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(source, "s_%d", i);
data/swig-4.0.2/Source/Modules/javascript.cxx:2444: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(newstr, str + start_pos, new_length);
data/swig-4.0.2/Source/Modules/lua.cxx:606: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 source[64];
data/swig-4.0.2/Source/Modules/lua.cxx:619: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(source, "%d", i + 1);
data/swig-4.0.2/Source/Modules/main.cxx:290:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int number = atoi(Char(numstring));
data/swig-4.0.2/Source/Modules/main.cxx:360: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 feature[64];
data/swig-4.0.2/Source/Modules/main.cxx:376: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 value[64];
data/swig-4.0.2/Source/Modules/main.cxx:938: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[MAX_PATH];
data/swig-4.0.2/Source/Modules/modula3.cxx:1723: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 bitval[15];
data/swig-4.0.2/Source/Modules/modula3.cxx:1724:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(bitval, "%d", bitpos);
data/swig-4.0.2/Source/Modules/modula3.cxx:1778: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 numstr[15];
data/swig-4.0.2/Source/Modules/modula3.cxx:1779: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(numstr, "%d", i);
data/swig-4.0.2/Source/Modules/modula3.cxx:2415:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *acc_name[3] = { "public", "protected", "private" };
data/swig-4.0.2/Source/Modules/mzscheme.cxx:435: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 temp[256];
data/swig-4.0.2/Source/Modules/mzscheme.cxx:436: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(temp, "%d", numargs);
data/swig-4.0.2/Source/Modules/nested.cxx:273:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *types_array[3] = { "struct", "union", "class" };
data/swig-4.0.2/Source/Modules/ocaml.cxx:1515: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 source[256];
data/swig-4.0.2/Source/Modules/ocaml.cxx:1557:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(source, "obj%d", idx++);
data/swig-4.0.2/Source/Modules/octave.cxx:581: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 source[64];
data/swig-4.0.2/Source/Modules/octave.cxx:611: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(source, "args(%d)", j);
data/swig-4.0.2/Source/Modules/octave.cxx:1488: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 temp[24];
data/swig-4.0.2/Source/Modules/octave.cxx:1489: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(temp, "out(%d)", idx);
data/swig-4.0.2/Source/Modules/octave.cxx:1511: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 temp[24];
data/swig-4.0.2/Source/Modules/octave.cxx:1512: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(temp, "out(%d)", idx);
data/swig-4.0.2/Source/Modules/overload.cxx:172:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      t1v = atoi(Char(t1));
data/swig-4.0.2/Source/Modules/overload.cxx:173: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).
	      t2v = atoi(Char(t2));
data/swig-4.0.2/Source/Modules/overload.cxx:368: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 tmp[256];
data/swig-4.0.2/Source/Modules/overload.cxx:394: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[50];
data/swig-4.0.2/Source/Modules/overload.cxx:395:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buf, "%d", j);
data/swig-4.0.2/Source/Modules/perl5.cxx:670: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 source[256], temp[256];
data/swig-4.0.2/Source/Modules/perl5.cxx:727: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(source, "ST(%d)", i);
data/swig-4.0.2/Source/Modules/perl5.cxx:758: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(source, "ST(%d)", i);
data/swig-4.0.2/Source/Modules/perl5.cxx:807:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(temp, "_saved[%d]", num_saved);
data/swig-4.0.2/Source/Modules/perl5.cxx:822: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(temp, "_saved[%d]", num_saved);
data/swig-4.0.2/Source/Modules/perl5.cxx:1841: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 buffer[4096];
data/swig-4.0.2/Source/Modules/perl5.cxx:2196: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 source[256];
data/swig-4.0.2/Source/Modules/perl5.cxx:2226:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(source, "obj%d", idx++);
data/swig-4.0.2/Source/Modules/perl5.cxx:2254:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(source, "obj%d", idx++);
data/swig-4.0.2/Source/Modules/perl5.cxx:2382: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 temp[24];
data/swig-4.0.2/Source/Modules/perl5.cxx:2383:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(temp, "%d", idx);
data/swig-4.0.2/Source/Modules/php.cxx:1280:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ch = ((char *) Char(pname))[spc + len];
data/swig-4.0.2/Source/Modules/php.cxx:2737: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 temp[24];
data/swig-4.0.2/Source/Modules/php.cxx:2738:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(temp, "%d", idx);
data/swig-4.0.2/Source/Modules/pike.cxx:326: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 source[64];
data/swig-4.0.2/Source/Modules/pike.cxx:342: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(source, "Pike_sp[%d-args]", i - start + offset);
data/swig-4.0.2/Source/Modules/python.cxx:1445:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	dlevel = (autodoc_l) atoi(c);
data/swig-4.0.2/Source/Modules/python.cxx:2649: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 source[64];
data/swig-4.0.2/Source/Modules/python.cxx:2796: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(source, "PyObject *swig_obj[%d]", num_arguments);
data/swig-4.0.2/Source/Modules/python.cxx:2832:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	num_fixed_arguments -= atoi(Char(Getattr(p, "tmap:in:numinputs")));
data/swig-4.0.2/Source/Modules/python.cxx:2835: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(source, "self");
data/swig-4.0.2/Source/Modules/python.cxx:2837: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(source, "swig_obj[%d]", add_self && !overname ? i - 1 : i);
data/swig-4.0.2/Source/Modules/python.cxx:2839: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(source, "obj%d", builtin_ctor ? i + 1 : i);
data/swig-4.0.2/Source/Modules/python.cxx:4643:49:  [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 argcount = Getattr(n, "python:argcount") ? atoi(Char(Getattr(n, "python:argcount"))) : 2;
data/swig-4.0.2/Source/Modules/python.cxx:4745:49:  [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 argcount = Getattr(n, "python:argcount") ? atoi(Char(Getattr(n, "python:argcount"))) : 2;
data/swig-4.0.2/Source/Modules/python.cxx:5376: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 source[256];
data/swig-4.0.2/Source/Modules/python.cxx:5410:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(source, "obj%d", idx++);
data/swig-4.0.2/Source/Modules/python.cxx:5447:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(source, "obj%d", idx++);
data/swig-4.0.2/Source/Modules/python.cxx:5610: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 temp[24];
data/swig-4.0.2/Source/Modules/python.cxx:5611: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(temp, "%d", idx);
data/swig-4.0.2/Source/Modules/r.cxx:467:11:  [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).
    max = atoi(Char(str));
data/swig-4.0.2/Source/Modules/r.cxx:1395: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).
	      t1v = atoi(Char(t1));
data/swig-4.0.2/Source/Modules/r.cxx:1396: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).
	      t2v = atoi(Char(t2));
data/swig-4.0.2/Source/Modules/ruby.cxx:206:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	dlevel = (autodoc_l) atoi(c);
data/swig-4.0.2/Source/Modules/ruby.cxx:3194: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 source[256];
data/swig-4.0.2/Source/Modules/ruby.cxx:3222:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(source, "obj%d", idx++);
data/swig-4.0.2/Source/Modules/ruby.cxx:3247:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	    sprintf(source, "obj%d", idx++);
data/swig-4.0.2/Source/Modules/s-exp.cxx: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 address[32];
data/swig-4.0.2/Source/Modules/s-exp.cxx:197:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(address, "%p%c", obj, list_p ? 'L' : 'O');
data/swig-4.0.2/Source/Modules/s-exp.cxx:233:11:  [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 (atoi(Char(obj)) != 0)
data/swig-4.0.2/Source/Modules/scilab.cxx:146:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            targetVersion = atoi(argv[argIndex + 1]);
data/swig-4.0.2/Source/Modules/scilab.cxx:765:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  iPreviousEnumValue = atoi(Char(enumValue));
data/swig-4.0.2/Source/Modules/scilab.cxx:768:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  iPreviousEnumValue = atoi(Char(enumValueEx));
data/swig-4.0.2/Source/Modules/swigmain.cxx:102: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(*nargv, oargv, sizeof(char *) * (oargc + 1));
data/swig-4.0.2/Source/Modules/swigmain.cxx:147: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(new_argv[index], start, option_len);
data/swig-4.0.2/Source/Modules/swigmain.cxx:156:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[BUFFER_SIZE];
data/swig-4.0.2/Source/Modules/swigmain.cxx:165:54:  [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 (new_argv[i] && new_argv[i][0] == '@' && (f = fopen(&new_argv[i][1], "r"))) {
data/swig-4.0.2/Source/Modules/swigmain.cxx:254:4:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	  strcpy(argv[i], "-help");
data/swig-4.0.2/Source/Modules/tcl8.cxx:277: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 source[64];
data/swig-4.0.2/Source/Modules/tcl8.cxx:332: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(source, "objv[%d]", i + 1);
data/swig-4.0.2/Source/Modules/tcl8.cxx:387: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(source, "objv[%d]", i + 1);
data/swig-4.0.2/Source/Preprocessor/cpp.c:1810:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      error_as_warning = atoi(c + 13);
data/swig-4.0.2/Source/Preprocessor/cpp.c:1988: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 statement[10];
data/swig-4.0.2/Source/Preprocessor/cpp.c:2022: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 statement[7];
data/swig-4.0.2/Source/Swig/error.c:50:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char wrn_wnum_fmt[64];
data/swig-4.0.2/Source/Swig/error.c:51:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char wrn_nnum_fmt[64];
data/swig-4.0.2/Source/Swig/error.c:52:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char err_line_fmt[64];
data/swig-4.0.2/Source/Swig/error.c:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char err_eof_fmt[64];
data/swig-4.0.2/Source/Swig/error.c:54:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char diag_line_fmt[64];
data/swig-4.0.2/Source/Swig/error.c:55:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char diag_eof_fmt[64];
data/swig-4.0.2/Source/Swig/error.c:91:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp[32];
data/swig-4.0.2/Source/Swig/error.c:94:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temp, "%d", wnum);
data/swig-4.0.2/Source/Swig/include.c:167: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 bom[3];
data/swig-4.0.2/Source/Swig/include.c:179:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen(Char(filename), "r");
data/swig-4.0.2/Source/Swig/include.c:186:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      f = fopen(Char(filename), "r");
data/swig-4.0.2/Source/Swig/include.c:227:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/swig-4.0.2/Source/Swig/include.c:285:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[4096];
data/swig-4.0.2/Source/Swig/misc.c:1186: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[1025];
data/swig-4.0.2/Source/Swig/misc.c:1296:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(p, start, end - start + 1);
data/swig-4.0.2/Source/Swig/scanner.c:471: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[3];
data/swig-4.0.2/Source/Swig/scanner.c:719: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 temp[2] = { 0, 0 };
data/swig-4.0.2/Source/Swig/scanner.c:745:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	    char temp[2] = { 0, 0 };
data/swig-4.0.2/Source/Swig/scanner.c:1520:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[2] = { 0, 0 };
data/swig-4.0.2/Source/Swig/scanner.c:1657:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[2] = { 0, 0 };
data/swig-4.0.2/Source/Swig/scanner.c:1831: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).
      cparse_line = atoi(Char(fn));
data/swig-4.0.2/Source/Swig/symbol.c:1774:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *dclass[3] = { "struct ", "union ", "class " };
data/swig-4.0.2/Source/Swig/typemap.c:888: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 var[512];
data/swig-4.0.2/Source/Swig/typemap.c:912:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(var, "$%d_", index);
data/swig-4.0.2/Source/Swig/typemap.c:929: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 t[32];
data/swig-4.0.2/Source/Swig/typemap.c:930: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(t, "$dim%d", i);
data/swig-4.0.2/Source/Swig/typemap.c:934: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(varname, "dim%d", i);
data/swig-4.0.2/Source/Swig/typemap.c:942:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(varname, "size");
data/swig-4.0.2/Source/Swig/typemap.c:952:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(varname, "name");
data/swig-4.0.2/Source/Swig/typemap.c:973:7:  [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(varname, "type");
data/swig-4.0.2/Source/Swig/typemap.c:987:7:  [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(varname, "ltype");
data/swig-4.0.2/Source/Swig/typemap.c:1000:7:  [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(varname, "mangle");
data/swig-4.0.2/Source/Swig/typemap.c:1009:7:  [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(varname, "descriptor");
data/swig-4.0.2/Source/Swig/typemap.c:1040: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(varname, "$*%d_type", index);
data/swig-4.0.2/Source/Swig/typemap.c:1053: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(varname, "$*%d_ltype", index);
data/swig-4.0.2/Source/Swig/typemap.c:1063: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(varname, "$*%d_mangle", index);
data/swig-4.0.2/Source/Swig/typemap.c:1070: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(varname, "$*%d_descriptor", index);
data/swig-4.0.2/Source/Swig/typemap.c:1089:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(varname, "$&%d_type", index);
data/swig-4.0.2/Source/Swig/typemap.c:1102:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(varname, "$&%d_ltype", index);
data/swig-4.0.2/Source/Swig/typemap.c:1111:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(varname, "$&%d_mangle", index);
data/swig-4.0.2/Source/Swig/typemap.c:1118:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(varname, "$&%d_descriptor", index);
data/swig-4.0.2/Source/Swig/typemap.c:1140:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(varname, "basetype");
data/swig-4.0.2/Source/Swig/typemap.c:1147:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(varname, "basemangle");
data/swig-4.0.2/Source/Swig/typemap.c:1157:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(varname, "lextype");
data/swig-4.0.2/Source/Swig/typemap.c:1164: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 temp[64];
data/swig-4.0.2/Source/Swig/typemap.c:1165:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(var, "$%d.", index);
data/swig-4.0.2/Source/Swig/typemap.c:1166:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temp, "(&$%d)->", index);
data/swig-4.0.2/Source/Swig/typemap.c:1171:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(var, "$%d", index);
data/swig-4.0.2/Source/Swig/typemap.c:1295:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[256];
data/swig-4.0.2/Source/Swig/typemap.c:1678:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char temp[256];
data/swig-4.0.2/Source/Swig/typemap.c:1822:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(temp, "%d", argnum);
data/swig-4.0.2/Tools/javascript/js_shell.cxx:98: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[kBufferSize];
data/swig-4.0.2/Tools/javascript/v8_shell.cxx:183: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[kBufferSize];
data/swig-4.0.2/CCache/args.c:81: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 (strncmp(args->argv[i], prefix, strlen(prefix)) == 0) {
data/swig-4.0.2/CCache/ccache.c:520:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(input_base) > 10) {
data/swig-4.0.2/CCache/ccache.c:1093:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(p) < 2) {
data/swig-4.0.2/CCache/ccache.c:1106:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(default_depfile_name, p, len - 1);
data/swig-4.0.2/CCache/ccache.c:1363:4:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
			umask(mask);
data/swig-4.0.2/CCache/execute.c:28:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len += strlen(argv[i]) + 3;
data/swig-4.0.2/CCache/execute.c:36:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(argv[i]);
data/swig-4.0.2/CCache/hash.c:38:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	hash_buffer(s, strlen(s));
data/swig-4.0.2/CCache/hash.c:58:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fd, buf, sizeof(buf))) > 0) {
data/swig-4.0.2/CCache/mdfour.c:221:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int n = read(fd, buf, chunk);
data/swig-4.0.2/CCache/mdfour.c:257:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int n = read(fd, buf, sizeof(buf));
data/swig-4.0.2/CCache/snprintf.c:341: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).
					max = strlen(strvalue);
data/swig-4.0.2/CCache/stats.c:110:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf)-1);
data/swig-4.0.2/CCache/unify.c:212:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				int len = strlen((char *)s);
data/swig-4.0.2/CCache/util.c:76:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fd_in, buf, sizeof(buf))) > 0) {
data/swig-4.0.2/CCache/util.c:123:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fd1, buf, sizeof(buf))) > 0) {
data/swig-4.0.2/CCache/util.c:137:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0);
data/swig-4.0.2/CCache/util.c:139:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/swig-4.0.2/CCache/util.c:288:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0);
data/swig-4.0.2/CCache/util.c:290:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/swig-4.0.2/CCache/util.c:343:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((fgetc(f) != 0x1f) || (fgetc(f) != 0x8b)) {
data/swig-4.0.2/CCache/util.c:343:29:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((fgetc(f) != 0x1f) || (fgetc(f) != 0x8b)) {
data/swig-4.0.2/CCache/util.c:569:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(de->d_name) == 0) continue;
data/swig-4.0.2/CCache/util.c:715: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).
	m = s[strlen(s)-1];
data/swig-4.0.2/Examples/javascript/exception/example.h:13:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(msg,m,256);
data/swig-4.0.2/Examples/lua/embed/embed.c:66:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (argc != 2 || argv[1] == NULL || strlen(argv[1]) == 0) {
data/swig-4.0.2/Examples/lua/embed2/embed2.c:125:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  nres = (int)strlen(sig);  /* number of expected results */
data/swig-4.0.2/Examples/lua/embed2/embed2.c:193:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (argc != 2 || argv[1] == NULL || strlen(argv[1]) == 0) {
data/swig-4.0.2/Examples/lua/embed3/embed3.cpp:116:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (argc != 2 || argv[1] == NULL || strlen(argv[1]) == 0) {
data/swig-4.0.2/Examples/lua/exception/example.h:13:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(msg,m,256);
data/swig-4.0.2/Examples/lua/lua.c:177: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).
  return docall(luaL_loadbuffer(L, s, strlen(s), name));
data/swig-4.0.2/Examples/python/exception/example.h:13:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(msg,m,256);
data/swig-4.0.2/Examples/scilab/matrix2/example.c:98:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(result, " ");
data/swig-4.0.2/Lib/perl5/noembed.h:58:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#ifdef read
data/swig-4.0.2/Lib/perl5/noembed.h:59:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  #undef read
data/swig-4.0.2/Source/CParse/cscanner.c:93: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).
    const size_t len = strlen(structuralTags[n]);
data/swig-4.0.2/Source/CParse/parser.c:597:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(c)) {
data/swig-4.0.2/Source/CParse/parser.c:4344:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/swig-4.0.2/Source/DOH/base.c:149:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return (int)strlen((char *) obj);
data/swig-4.0.2/Source/DOH/base.c:248: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).
	return len == (int) strlen(cobj) ? (memcmp(RawData(b1), cobj, len) == 0) : 0;
data/swig-4.0.2/Source/DOH/base.c:253: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).
      return len == (int) strlen(cobj) ? (memcmp(RawData(b2), cobj, len) == 0) : 0;
data/swig-4.0.2/Source/DOH/base.c:714:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return fgetc((FILE *) b);
data/swig-4.0.2/Source/DOH/file.c:126:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return read(f->fd, buffer, len);
data/swig-4.0.2/Source/DOH/file.c:207:12:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return fgetc(f->filep);
data/swig-4.0.2/Source/DOH/file.c:211:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(f->fd, &c, 1) < 0)
data/swig-4.0.2/Source/DOH/fio.c:305:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (strlen(encoder)) {
data/swig-4.0.2/Source/DOH/fio.c:307:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    maxwidth = maxwidth + (int)strlen(newformat) + Len(enc);
data/swig-4.0.2/Source/DOH/fio.c:309:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    maxwidth = maxwidth + (int)strlen(newformat) + Len(Sval);
data/swig-4.0.2/Source/DOH/fio.c:323: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).
	  if (Writen(so, stemp, (int)strlen(stemp)) < 0)
data/swig-4.0.2/Source/DOH/fio.c:340:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	  if (strlen(encoder)) {
data/swig-4.0.2/Source/DOH/fio.c:349: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).
	  maxwidth = maxwidth + (int)strlen(newformat) + (int)strlen((char *) doh);
data/swig-4.0.2/Source/DOH/fio.c:349: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).
	  maxwidth = maxwidth + (int)strlen(newformat) + (int)strlen((char *) doh);
data/swig-4.0.2/Source/DOH/fio.c:358: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).
	  if (Writen(so, stemp, (int)strlen(stemp)) < 0)
data/swig-4.0.2/Source/DOH/fio.c:369: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).
	maxwidth = maxwidth + (int)strlen(newformat) + 64;
data/swig-4.0.2/Source/DOH/fio.c:404: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).
	if (Writen(so, stemp, (int)strlen(stemp)) < 0)
data/swig-4.0.2/Source/DOH/fio.c:417: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).
    r = Writen(so, fmt, (int)strlen(fmt));
data/swig-4.0.2/Source/DOH/fio.c:458:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret += DohWrite(f, obj, (int)strlen((char *) obj));
data/swig-4.0.2/Source/DOH/hash.c:67: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).
  r->cstr = (char *) DohMalloc(strlen(c) + 1);
data/swig-4.0.2/Source/DOH/hash.c:267:35:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if ((k_type == nk->type) && equal(ko, nk)) obj = n->object;
data/swig-4.0.2/Source/DOH/string.c:219:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = (int) strlen(newstr);
data/swig-4.0.2/Source/DOH/string.c:287:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = (int) strlen(data);
data/swig-4.0.2/Source/DOH/string.c:694:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (!strlen(token))
data/swig-4.0.2/Source/DOH/string.c:698:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  tokenlen = (int)strlen(token);
data/swig-4.0.2/Source/DOH/string.c:765:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  replen = (int)strlen(rep);
data/swig-4.0.2/Source/DOH/string.c:1148:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = s ? (int) strlen(s) : 0;
data/swig-4.0.2/Source/DOH/string.c:1221:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(str->str, s, len);
data/swig-4.0.2/Source/Doxygen/pydoc.cxx:87:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    static const size_t lenIndentLevel = strlen(Level());
data/swig-4.0.2/Source/Modules/allegrocl.cxx:996:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *num_end = num_start + strlen(num_start) - 1;
data/swig-4.0.2/Source/Modules/cffi.cxx:1000:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(p, s + 1, len - 1);
data/swig-4.0.2/Source/Modules/cffi.cxx:1091:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *num_end = num_start + strlen(num_start) - 1;
data/swig-4.0.2/Source/Modules/cffi.cxx:1167: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).
  for (unsigned int i = 0; i < strlen(name); i++) {
data/swig-4.0.2/Source/Modules/clisp.cxx:336:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(p, s + 1, len - 1);
data/swig-4.0.2/Source/Modules/go.cxx:2690:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int len = (int)strlen(p);
data/swig-4.0.2/Source/Modules/go.cxx:5593:10:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool mismatch;
data/swig-4.0.2/Source/Modules/go.cxx:5627:11:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (mismatch) {
data/swig-4.0.2/Source/Modules/go.cxx:5658:9:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (mismatch) {
data/swig-4.0.2/Source/Modules/guile.cxx:942:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      } else if (emit_setters && struct_member && strlen(Char(proc_name)) > 3) {
data/swig-4.0.2/Source/Modules/guile.cxx:962:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	  strncpy(pws_name, pc, len - 3);
data/swig-4.0.2/Source/Modules/main.cxx:317:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strcmp(outd + strlen(outd) - strlen(SWIG_FILE_DELIMITER), SWIG_FILE_DELIMITER) != 0)
data/swig-4.0.2/Source/Modules/main.cxx:317: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 (strcmp(outd + strlen(outd) - strlen(SWIG_FILE_DELIMITER), SWIG_FILE_DELIMITER) != 0)
data/swig-4.0.2/Source/Modules/main.cxx:910:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = (int)strlen(token);
data/swig-4.0.2/Source/Modules/nested.cxx:122:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(c)) {
data/swig-4.0.2/Source/Modules/nested.cxx:283: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).
	  code_ptr += strlen(types_array[i]);
data/swig-4.0.2/Source/Modules/ocaml.cxx:1008: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).
      find_marker += strlen("(*Stream:");
data/swig-4.0.2/Source/Modules/ocaml.cxx:1016: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).
	  next += strlen("*)");
data/swig-4.0.2/Source/Modules/ocaml.cxx:1020: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).
	    following = next + strlen(next);
data/swig-4.0.2/Source/Modules/php.cxx:1067:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(p) > 4) {
data/swig-4.0.2/Source/Modules/php.cxx:1068:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	p += strlen(p) - 4;
data/swig-4.0.2/Source/Modules/php.cxx:1275:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    size_t len = strlen(pname_cstr);
data/swig-4.0.2/Source/Modules/php.cxx:1277: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).
	    size_t len_pname = strlen(Char(pname));
data/swig-4.0.2/Source/Modules/php.cxx:2709:80:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      Printf(w->code, "ZVAL_STRINGL(&swig_funcname, \"%s\", %d);\n", funcname, strlen(funcname));
data/swig-4.0.2/Source/Modules/r.cxx:307:110:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  List* filterMemberList(List *class_member_function_types, List *class_member_other, String *R_MEMBER, bool equal);
data/swig-4.0.2/Source/Modules/r.cxx:863:50:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                          String *R_MEMBER, bool equal) {
data/swig-4.0.2/Source/Modules/r.cxx:873:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (equal) {
data/swig-4.0.2/Source/Modules/swigmain.cxx:177:20:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      while ((ci = fgetc(f)) != EOF) {
data/swig-4.0.2/Source/Modules/uffi.cxx:79:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(p, s + 1, len - 1);
data/swig-4.0.2/Source/Modules/xml.cxx:46: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).
	extension = argv[iX + 1] + strlen(argv[iX + 1]) - 4;
data/swig-4.0.2/Source/Swig/error.c:104: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).
      f += strlen(temp);
data/swig-4.0.2/Source/Swig/error.c:212:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *temp = (char *)malloc(sizeof(char)*strlen(c) + 2);
data/swig-4.0.2/Source/Swig/misc.c:39: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).
    c = (char *) malloc(strlen(s) + 1);
data/swig-4.0.2/Source/Swig/misc.c:1187:14:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
      while (fscanf(fp, "%1024s", buffer) != EOF) {
data/swig-4.0.2/Source/Swig/misc.c:1388: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).
      copy_with_maybe_case_conversion(result, p, (int)strlen(p), &convertCase, convertNextOnly);
data/swig-4.0.2/Source/Swig/misc.c:1468:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    rc = pcre_exec(compiled_pat, NULL, input, (int)strlen(input), 0, 0, captures, 30);
data/swig-4.0.2/Source/Swig/naming.c:482:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  plen = (int)strlen(cbprefix);
data/swig-4.0.2/Source/Swig/stype.c:196:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (c[strlen(c) - 1] != '.')
data/swig-4.0.2/Source/Swig/stype.c:214:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  idx = (int)strlen(c) - 4;
data/swig-4.0.2/Source/Swig/stype.c:227:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  idx = (int)strlen(c) - 4;
data/swig-4.0.2/Source/Swig/typemap.c:913:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  varname = &var[strlen(var)];
data/swig-4.0.2/Source/Swig/typeobj.c:1178:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  d = c + strlen(c);

ANALYSIS SUMMARY:

Hits = 616
Lines analyzed = 142522 in approximately 3.98 seconds (35786 lines/second)
Physical Source Lines of Code (SLOC) = 104247
Hits@level = [0] 767 [1] 109 [2] 368 [3]  40 [4]  98 [5]   1
Hits@level+ = [0+] 1383 [1+] 616 [2+] 507 [3+] 139 [4+]  99 [5+]   1
Hits/KSLOC@level+ = [0+] 13.2666 [1+] 5.90904 [2+] 4.86345 [3+] 1.33337 [4+] 0.949668 [5+] 0.0095926
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.