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/doxygen-1.8.20/addon/doxmlparser/examples/metrics/main.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/include/doxmlintf.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/basehandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/basehandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/baseiterator.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/compoundhandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/compoundhandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/debug.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/debug.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/dochandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/dochandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/graphhandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/graphhandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/linkedtexthandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/linkedtexthandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/loamhandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/loamhandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/mainhandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/mainhandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/memberhandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/memberhandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/paramhandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/paramhandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/sectionhandler.cpp Examining data/doxygen-1.8.20/addon/doxmlparser/src/sectionhandler.h Examining data/doxygen-1.8.20/addon/doxmlparser/src/stringimpl.h Examining data/doxygen-1.8.20/addon/doxmlparser/test/main.cpp Examining data/doxygen-1.8.20/addon/doxyapp/doxyapp.cpp Examining data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp Examining data/doxygen-1.8.20/addon/doxysearch/doxyindexer.cpp Examining data/doxygen-1.8.20/addon/doxysearch/doxysearch.cpp Examining data/doxygen-1.8.20/addon/doxywizard/config.h Examining data/doxygen-1.8.20/addon/doxywizard/configdoc.h Examining data/doxygen-1.8.20/addon/doxywizard/docintf.h Examining data/doxygen-1.8.20/addon/doxywizard/doxywizard.cpp Examining data/doxygen-1.8.20/addon/doxywizard/doxywizard.h Examining data/doxygen-1.8.20/addon/doxywizard/expert.cpp Examining data/doxygen-1.8.20/addon/doxywizard/expert.h Examining data/doxygen-1.8.20/addon/doxywizard/helplabel.h Examining data/doxygen-1.8.20/addon/doxywizard/input.h Examining data/doxygen-1.8.20/addon/doxywizard/inputbool.cpp Examining data/doxygen-1.8.20/addon/doxywizard/inputbool.h Examining data/doxygen-1.8.20/addon/doxywizard/inputint.cpp Examining data/doxygen-1.8.20/addon/doxywizard/inputint.h Examining data/doxygen-1.8.20/addon/doxywizard/inputstring.cpp Examining data/doxygen-1.8.20/addon/doxywizard/inputstring.h Examining data/doxygen-1.8.20/addon/doxywizard/inputstrlist.cpp Examining data/doxygen-1.8.20/addon/doxywizard/inputstrlist.h Examining data/doxygen-1.8.20/addon/doxywizard/wizard.cpp Examining data/doxygen-1.8.20/addon/doxywizard/wizard.h Examining data/doxygen-1.8.20/examples/afterdoc.h Examining data/doxygen-1.8.20/examples/author.cpp Examining data/doxygen-1.8.20/examples/autolink.cpp Examining data/doxygen-1.8.20/examples/class.h Examining data/doxygen-1.8.20/examples/define.h Examining data/doxygen-1.8.20/examples/diagrams_a.h Examining data/doxygen-1.8.20/examples/diagrams_b.h Examining data/doxygen-1.8.20/examples/diagrams_c.h Examining data/doxygen-1.8.20/examples/diagrams_d.h Examining data/doxygen-1.8.20/examples/diagrams_e.h Examining data/doxygen-1.8.20/examples/enum.h Examining data/doxygen-1.8.20/examples/example.cpp Examining data/doxygen-1.8.20/examples/example_test.cpp Examining data/doxygen-1.8.20/examples/file.h Examining data/doxygen-1.8.20/examples/func.h Examining data/doxygen-1.8.20/examples/group.cpp Examining data/doxygen-1.8.20/examples/include.cpp Examining data/doxygen-1.8.20/examples/include_test.cpp Examining data/doxygen-1.8.20/examples/javadoc-banner.h Examining data/doxygen-1.8.20/examples/jdstyle.cpp Examining data/doxygen-1.8.20/examples/manual.c Examining data/doxygen-1.8.20/examples/memgrp.cpp Examining data/doxygen-1.8.20/examples/overload.cpp Examining data/doxygen-1.8.20/examples/par.cpp Examining data/doxygen-1.8.20/examples/qtstyle.cpp Examining data/doxygen-1.8.20/examples/relates.cpp Examining data/doxygen-1.8.20/examples/restypedef.cpp Examining data/doxygen-1.8.20/examples/structcmd.h Examining data/doxygen-1.8.20/examples/tag.cpp Examining data/doxygen-1.8.20/examples/templ.cpp Examining data/doxygen-1.8.20/liblodepng/lodepng.cpp Examining data/doxygen-1.8.20/liblodepng/lodepng.h Examining data/doxygen-1.8.20/libmd5/md5.c Examining data/doxygen-1.8.20/libmd5/md5.h Examining data/doxygen-1.8.20/libmd5/md5_loc.h Examining data/doxygen-1.8.20/libmscgen/gd.c Examining data/doxygen-1.8.20/libmscgen/gd.h Examining data/doxygen-1.8.20/libmscgen/gd_color.c Examining data/doxygen-1.8.20/libmscgen/gd_color.h Examining data/doxygen-1.8.20/libmscgen/gd_errors.h Examining data/doxygen-1.8.20/libmscgen/gd_intern.h Examining data/doxygen-1.8.20/libmscgen/gd_lodepng.c Examining data/doxygen-1.8.20/libmscgen/gd_security.c Examining data/doxygen-1.8.20/libmscgen/gdfonts.c Examining data/doxygen-1.8.20/libmscgen/gdfonts.h Examining data/doxygen-1.8.20/libmscgen/gdfontt.c Examining data/doxygen-1.8.20/libmscgen/gdfontt.h Examining data/doxygen-1.8.20/libmscgen/gdhelpers.c Examining data/doxygen-1.8.20/libmscgen/gdhelpers.h Examining data/doxygen-1.8.20/libmscgen/gdtables.c Examining data/doxygen-1.8.20/libmscgen/mscgen_adraw.c Examining data/doxygen-1.8.20/libmscgen/mscgen_adraw.h Examining data/doxygen-1.8.20/libmscgen/mscgen_adraw_int.h Examining data/doxygen-1.8.20/libmscgen/mscgen_api.c Examining data/doxygen-1.8.20/libmscgen/mscgen_api.h Examining data/doxygen-1.8.20/libmscgen/mscgen_bool.h Examining data/doxygen-1.8.20/libmscgen/mscgen_config.h Examining data/doxygen-1.8.20/libmscgen/mscgen_gd_out.c Examining data/doxygen-1.8.20/libmscgen/mscgen_language.h Examining data/doxygen-1.8.20/libmscgen/mscgen_lexer.h Examining data/doxygen-1.8.20/libmscgen/mscgen_msc.c Examining data/doxygen-1.8.20/libmscgen/mscgen_msc.h Examining data/doxygen-1.8.20/libmscgen/mscgen_null_out.c Examining data/doxygen-1.8.20/libmscgen/mscgen_ps_out.c Examining data/doxygen-1.8.20/libmscgen/mscgen_safe.c Examining data/doxygen-1.8.20/libmscgen/mscgen_safe.h Examining data/doxygen-1.8.20/libmscgen/mscgen_svg_out.c Examining data/doxygen-1.8.20/libmscgen/mscgen_usage.c Examining data/doxygen-1.8.20/libmscgen/mscgen_usage.h Examining data/doxygen-1.8.20/libmscgen/mscgen_utf8.c Examining data/doxygen-1.8.20/libmscgen/mscgen_utf8.h Examining data/doxygen-1.8.20/libversion/fullversion.cpp Examining data/doxygen-1.8.20/libversion/version.h Examining data/doxygen-1.8.20/qtools/qarray.h Examining data/doxygen-1.8.20/qtools/qasciidict.h Examining data/doxygen-1.8.20/qtools/qbuffer.cpp Examining data/doxygen-1.8.20/qtools/qbuffer.h Examining data/doxygen-1.8.20/qtools/qcache.h Examining data/doxygen-1.8.20/qtools/qcollection.cpp Examining data/doxygen-1.8.20/qtools/qcollection.h Examining data/doxygen-1.8.20/qtools/qconfig.h Examining data/doxygen-1.8.20/qtools/qcstring.cpp Examining data/doxygen-1.8.20/qtools/qcstring.h Examining data/doxygen-1.8.20/qtools/qcstringlist.cpp Examining data/doxygen-1.8.20/qtools/qcstringlist.h Examining data/doxygen-1.8.20/qtools/qdatastream.cpp Examining data/doxygen-1.8.20/qtools/qdatastream.h Examining data/doxygen-1.8.20/qtools/qdatetime.cpp Examining data/doxygen-1.8.20/qtools/qdatetime.h Examining data/doxygen-1.8.20/qtools/qdict.h Examining data/doxygen-1.8.20/qtools/qdir.cpp Examining data/doxygen-1.8.20/qtools/qdir.h Examining data/doxygen-1.8.20/qtools/qdir_unix.cpp Examining data/doxygen-1.8.20/qtools/qdir_win32.cpp Examining data/doxygen-1.8.20/qtools/qfeatures.h Examining data/doxygen-1.8.20/qtools/qfile.cpp Examining data/doxygen-1.8.20/qtools/qfile.h Examining data/doxygen-1.8.20/qtools/qfile_unix.cpp Examining data/doxygen-1.8.20/qtools/qfile_win32.cpp Examining data/doxygen-1.8.20/qtools/qfiledefs_p.h Examining data/doxygen-1.8.20/qtools/qfileinfo.cpp Examining data/doxygen-1.8.20/qtools/qfileinfo.h Examining data/doxygen-1.8.20/qtools/qfileinfo_unix.cpp Examining data/doxygen-1.8.20/qtools/qfileinfo_win32.cpp Examining data/doxygen-1.8.20/qtools/qgarray.cpp Examining data/doxygen-1.8.20/qtools/qgarray.h Examining data/doxygen-1.8.20/qtools/qgcache.cpp Examining data/doxygen-1.8.20/qtools/qgcache.h Examining data/doxygen-1.8.20/qtools/qgdict.cpp Examining data/doxygen-1.8.20/qtools/qgdict.h Examining data/doxygen-1.8.20/qtools/qgeneric.h Examining data/doxygen-1.8.20/qtools/qglist.cpp Examining data/doxygen-1.8.20/qtools/qglist.h Examining data/doxygen-1.8.20/qtools/qglobal.cpp Examining data/doxygen-1.8.20/qtools/qglobal.h Examining data/doxygen-1.8.20/qtools/qgstring.cpp Examining data/doxygen-1.8.20/qtools/qgstring.h Examining data/doxygen-1.8.20/qtools/qgvector.cpp Examining data/doxygen-1.8.20/qtools/qgvector.h Examining data/doxygen-1.8.20/qtools/qintdict.h Examining data/doxygen-1.8.20/qtools/qinternallist.h Examining data/doxygen-1.8.20/qtools/qiodevice.cpp Examining data/doxygen-1.8.20/qtools/qiodevice.h Examining data/doxygen-1.8.20/qtools/qlist.h Examining data/doxygen-1.8.20/qtools/qmap.cpp Examining data/doxygen-1.8.20/qtools/qmap.h Examining data/doxygen-1.8.20/qtools/qmodules.h Examining data/doxygen-1.8.20/qtools/qptrdict.h Examining data/doxygen-1.8.20/qtools/qqueue.h Examining data/doxygen-1.8.20/qtools/qregexp.cpp Examining data/doxygen-1.8.20/qtools/qregexp.h Examining data/doxygen-1.8.20/qtools/qshared.h Examining data/doxygen-1.8.20/qtools/qsortedlist.h Examining data/doxygen-1.8.20/qtools/qstack.h Examining data/doxygen-1.8.20/qtools/qstring.cpp Examining data/doxygen-1.8.20/qtools/qstring.h Examining data/doxygen-1.8.20/qtools/qstringlist.cpp Examining data/doxygen-1.8.20/qtools/qstringlist.h Examining data/doxygen-1.8.20/qtools/qstrlist.h Examining data/doxygen-1.8.20/qtools/qstrvec.h Examining data/doxygen-1.8.20/qtools/qtextcodec.cpp Examining data/doxygen-1.8.20/qtools/qtextcodec.h Examining data/doxygen-1.8.20/qtools/qtextstream.cpp Examining data/doxygen-1.8.20/qtools/qtextstream.h Examining data/doxygen-1.8.20/qtools/qtl.h Examining data/doxygen-1.8.20/qtools/qutfcodec.cpp Examining data/doxygen-1.8.20/qtools/qutfcodec.h Examining data/doxygen-1.8.20/qtools/qvaluelist.h Examining data/doxygen-1.8.20/qtools/qvaluestack.h Examining data/doxygen-1.8.20/qtools/qvector.h Examining data/doxygen-1.8.20/qtools/qxml.cpp Examining data/doxygen-1.8.20/qtools/qxml.h Examining data/doxygen-1.8.20/src/arguments.cpp Examining data/doxygen-1.8.20/src/arguments.h Examining data/doxygen-1.8.20/src/bufstr.h Examining data/doxygen-1.8.20/src/cite.cpp Examining data/doxygen-1.8.20/src/cite.h Examining data/doxygen-1.8.20/src/clangparser.h Examining data/doxygen-1.8.20/src/classdef.cpp Examining data/doxygen-1.8.20/src/classdef.h Examining data/doxygen-1.8.20/src/classlist.cpp Examining data/doxygen-1.8.20/src/classlist.h Examining data/doxygen-1.8.20/src/cmdmapper.cpp Examining data/doxygen-1.8.20/src/cmdmapper.h Examining data/doxygen-1.8.20/src/code.h Examining data/doxygen-1.8.20/src/commentcnv.h Examining data/doxygen-1.8.20/src/commentscan.h Examining data/doxygen-1.8.20/src/condparser.cpp Examining data/doxygen-1.8.20/src/condparser.h Examining data/doxygen-1.8.20/src/config.h Examining data/doxygen-1.8.20/src/configimpl.h Examining data/doxygen-1.8.20/src/configoptions.h Examining data/doxygen-1.8.20/src/constexp.h Examining data/doxygen-1.8.20/src/constexp_p.h Examining data/doxygen-1.8.20/src/containers.h Examining data/doxygen-1.8.20/src/context.cpp Examining data/doxygen-1.8.20/src/context.h Examining data/doxygen-1.8.20/src/cppvalue.cpp Examining data/doxygen-1.8.20/src/cppvalue.h Examining data/doxygen-1.8.20/src/debug.cpp Examining data/doxygen-1.8.20/src/debug.h Examining data/doxygen-1.8.20/src/declinfo.h Examining data/doxygen-1.8.20/src/defargs.h Examining data/doxygen-1.8.20/src/defgen.cpp Examining data/doxygen-1.8.20/src/defgen.h Examining data/doxygen-1.8.20/src/define.h Examining data/doxygen-1.8.20/src/definition.h Examining data/doxygen-1.8.20/src/definitionimpl.h Examining data/doxygen-1.8.20/src/dia.cpp Examining data/doxygen-1.8.20/src/dia.h Examining data/doxygen-1.8.20/src/diagram.cpp Examining data/doxygen-1.8.20/src/diagram.h Examining data/doxygen-1.8.20/src/dirdef.cpp Examining data/doxygen-1.8.20/src/dirdef.h Examining data/doxygen-1.8.20/src/docbookgen.cpp Examining data/doxygen-1.8.20/src/docbookgen.h Examining data/doxygen-1.8.20/src/docbookvisitor.cpp Examining data/doxygen-1.8.20/src/docbookvisitor.h Examining data/doxygen-1.8.20/src/docgroup.cpp Examining data/doxygen-1.8.20/src/docgroup.h Examining data/doxygen-1.8.20/src/docparser.cpp Examining data/doxygen-1.8.20/src/docparser.h Examining data/doxygen-1.8.20/src/docsets.cpp Examining data/doxygen-1.8.20/src/docsets.h Examining data/doxygen-1.8.20/src/doctokenizer.h Examining data/doxygen-1.8.20/src/docvisitor.h Examining data/doxygen-1.8.20/src/dot.cpp Examining data/doxygen-1.8.20/src/dot.h Examining data/doxygen-1.8.20/src/dotcallgraph.cpp Examining data/doxygen-1.8.20/src/dotcallgraph.h Examining data/doxygen-1.8.20/src/dotclassgraph.cpp Examining data/doxygen-1.8.20/src/dotclassgraph.h Examining data/doxygen-1.8.20/src/dotdirdeps.cpp Examining data/doxygen-1.8.20/src/dotdirdeps.h Examining data/doxygen-1.8.20/src/dotfilepatcher.cpp Examining data/doxygen-1.8.20/src/dotfilepatcher.h Examining data/doxygen-1.8.20/src/dotgfxhierarchytable.cpp Examining data/doxygen-1.8.20/src/dotgfxhierarchytable.h Examining data/doxygen-1.8.20/src/dotgraph.cpp Examining data/doxygen-1.8.20/src/dotgraph.h Examining data/doxygen-1.8.20/src/dotgroupcollaboration.cpp Examining data/doxygen-1.8.20/src/dotgroupcollaboration.h Examining data/doxygen-1.8.20/src/dotincldepgraph.cpp Examining data/doxygen-1.8.20/src/dotincldepgraph.h Examining data/doxygen-1.8.20/src/dotlegendgraph.cpp Examining data/doxygen-1.8.20/src/dotlegendgraph.h Examining data/doxygen-1.8.20/src/dotnode.cpp Examining data/doxygen-1.8.20/src/dotnode.h Examining data/doxygen-1.8.20/src/dotrunner.cpp Examining data/doxygen-1.8.20/src/dotrunner.h Examining data/doxygen-1.8.20/src/doxygen.h Examining data/doxygen-1.8.20/src/eclipsehelp.cpp Examining data/doxygen-1.8.20/src/eclipsehelp.h Examining data/doxygen-1.8.20/src/emoji.cpp Examining data/doxygen-1.8.20/src/emoji.h Examining data/doxygen-1.8.20/src/entry.cpp Examining data/doxygen-1.8.20/src/entry.h Examining data/doxygen-1.8.20/src/example.h Examining data/doxygen-1.8.20/src/filedef.cpp Examining data/doxygen-1.8.20/src/filedef.h Examining data/doxygen-1.8.20/src/filename.h Examining data/doxygen-1.8.20/src/fileparser.cpp Examining data/doxygen-1.8.20/src/fileparser.h Examining data/doxygen-1.8.20/src/formula.cpp Examining data/doxygen-1.8.20/src/formula.h Examining data/doxygen-1.8.20/src/fortrancode.h Examining data/doxygen-1.8.20/src/fortranscanner.h Examining data/doxygen-1.8.20/src/ftextstream.cpp Examining data/doxygen-1.8.20/src/ftextstream.h Examining data/doxygen-1.8.20/src/ftvhelp.cpp Examining data/doxygen-1.8.20/src/ftvhelp.h Examining data/doxygen-1.8.20/src/groupdef.cpp Examining data/doxygen-1.8.20/src/groupdef.h Examining data/doxygen-1.8.20/src/growbuf.h Examining data/doxygen-1.8.20/src/htags.cpp Examining data/doxygen-1.8.20/src/htags.h Examining data/doxygen-1.8.20/src/htmlattrib.h Examining data/doxygen-1.8.20/src/htmldocvisitor.cpp Examining data/doxygen-1.8.20/src/htmldocvisitor.h Examining data/doxygen-1.8.20/src/htmlentity.cpp Examining data/doxygen-1.8.20/src/htmlentity.h Examining data/doxygen-1.8.20/src/htmlgen.cpp Examining data/doxygen-1.8.20/src/htmlgen.h Examining data/doxygen-1.8.20/src/htmlhelp.cpp Examining data/doxygen-1.8.20/src/htmlhelp.h Examining data/doxygen-1.8.20/src/image.cpp Examining data/doxygen-1.8.20/src/image.h Examining data/doxygen-1.8.20/src/index.cpp Examining data/doxygen-1.8.20/src/index.h Examining data/doxygen-1.8.20/src/language.cpp Examining data/doxygen-1.8.20/src/language.h Examining data/doxygen-1.8.20/src/latexdocvisitor.cpp Examining data/doxygen-1.8.20/src/latexdocvisitor.h Examining data/doxygen-1.8.20/src/latexgen.cpp Examining data/doxygen-1.8.20/src/latexgen.h Examining data/doxygen-1.8.20/src/layout.cpp Examining data/doxygen-1.8.20/src/layout.h Examining data/doxygen-1.8.20/src/linkedmap.h Examining data/doxygen-1.8.20/src/main.cpp Examining data/doxygen-1.8.20/src/mandocvisitor.cpp Examining data/doxygen-1.8.20/src/mandocvisitor.h Examining data/doxygen-1.8.20/src/mangen.cpp Examining data/doxygen-1.8.20/src/mangen.h Examining data/doxygen-1.8.20/src/markdown.cpp Examining data/doxygen-1.8.20/src/markdown.h Examining data/doxygen-1.8.20/src/memberdef.cpp Examining data/doxygen-1.8.20/src/memberdef.h Examining data/doxygen-1.8.20/src/membergroup.cpp Examining data/doxygen-1.8.20/src/membergroup.h Examining data/doxygen-1.8.20/src/memberlist.cpp Examining data/doxygen-1.8.20/src/memberlist.h Examining data/doxygen-1.8.20/src/membername.h Examining data/doxygen-1.8.20/src/message.cpp Examining data/doxygen-1.8.20/src/message.h Examining data/doxygen-1.8.20/src/msc.cpp Examining data/doxygen-1.8.20/src/msc.h Examining data/doxygen-1.8.20/src/namespacedef.cpp Examining data/doxygen-1.8.20/src/namespacedef.h Examining data/doxygen-1.8.20/src/outputgen.cpp Examining data/doxygen-1.8.20/src/outputgen.h Examining data/doxygen-1.8.20/src/outputlist.cpp Examining data/doxygen-1.8.20/src/outputlist.h Examining data/doxygen-1.8.20/src/pagedef.cpp Examining data/doxygen-1.8.20/src/pagedef.h Examining data/doxygen-1.8.20/src/parserintf.h Examining data/doxygen-1.8.20/src/perlmodgen.cpp Examining data/doxygen-1.8.20/src/perlmodgen.h Examining data/doxygen-1.8.20/src/plantuml.cpp Examining data/doxygen-1.8.20/src/plantuml.h Examining data/doxygen-1.8.20/src/portable.cpp Examining data/doxygen-1.8.20/src/portable.h Examining data/doxygen-1.8.20/src/portable_c.c Examining data/doxygen-1.8.20/src/pre.h Examining data/doxygen-1.8.20/src/printdocvisitor.h Examining data/doxygen-1.8.20/src/pycode.h Examining data/doxygen-1.8.20/src/pyscanner.h Examining data/doxygen-1.8.20/src/qhp.cpp Examining data/doxygen-1.8.20/src/qhp.h Examining data/doxygen-1.8.20/src/qhpxmlwriter.cpp Examining data/doxygen-1.8.20/src/qhpxmlwriter.h Examining data/doxygen-1.8.20/src/qtbc.h Examining data/doxygen-1.8.20/src/reflist.cpp Examining data/doxygen-1.8.20/src/reflist.h Examining data/doxygen-1.8.20/src/resourcemgr.cpp Examining data/doxygen-1.8.20/src/resourcemgr.h Examining data/doxygen-1.8.20/src/rtfdocvisitor.cpp Examining data/doxygen-1.8.20/src/rtfdocvisitor.h Examining data/doxygen-1.8.20/src/rtfgen.cpp Examining data/doxygen-1.8.20/src/rtfgen.h Examining data/doxygen-1.8.20/src/rtfstyle.cpp Examining data/doxygen-1.8.20/src/rtfstyle.h Examining data/doxygen-1.8.20/src/scanner.h Examining data/doxygen-1.8.20/src/searchindex.cpp Examining data/doxygen-1.8.20/src/searchindex.h Examining data/doxygen-1.8.20/src/section.h Examining data/doxygen-1.8.20/src/sortdict.h Examining data/doxygen-1.8.20/src/sqlcode.h Examining data/doxygen-1.8.20/src/sqlite3gen.cpp Examining data/doxygen-1.8.20/src/sqlite3gen.h Examining data/doxygen-1.8.20/src/stlsupport.cpp Examining data/doxygen-1.8.20/src/stlsupport.h Examining data/doxygen-1.8.20/src/tagreader.cpp Examining data/doxygen-1.8.20/src/tagreader.h Examining data/doxygen-1.8.20/src/template.cpp Examining data/doxygen-1.8.20/src/template.h Examining data/doxygen-1.8.20/src/textdocvisitor.cpp Examining data/doxygen-1.8.20/src/textdocvisitor.h Examining data/doxygen-1.8.20/src/threadpool.h Examining data/doxygen-1.8.20/src/tooltip.cpp Examining data/doxygen-1.8.20/src/tooltip.h Examining data/doxygen-1.8.20/src/translator.h Examining data/doxygen-1.8.20/src/translator_adapter.h Examining data/doxygen-1.8.20/src/translator_am.h Examining data/doxygen-1.8.20/src/translator_ar.h Examining data/doxygen-1.8.20/src/translator_br.h Examining data/doxygen-1.8.20/src/translator_ca.h Examining data/doxygen-1.8.20/src/translator_cn.h Examining data/doxygen-1.8.20/src/translator_cz.h Examining data/doxygen-1.8.20/src/translator_de.h Examining data/doxygen-1.8.20/src/translator_dk.h Examining data/doxygen-1.8.20/src/translator_en.h Examining data/doxygen-1.8.20/src/translator_eo.h Examining data/doxygen-1.8.20/src/translator_es.h Examining data/doxygen-1.8.20/src/translator_fa.h Examining data/doxygen-1.8.20/src/translator_fi.h Examining data/doxygen-1.8.20/src/translator_fr.h Examining data/doxygen-1.8.20/src/translator_gr.h Examining data/doxygen-1.8.20/src/translator_hr.h Examining data/doxygen-1.8.20/src/translator_hu.h Examining data/doxygen-1.8.20/src/translator_id.h Examining data/doxygen-1.8.20/src/translator_it.h Examining data/doxygen-1.8.20/src/translator_je.h Examining data/doxygen-1.8.20/src/translator_jp.h Examining data/doxygen-1.8.20/src/translator_ke.h Examining data/doxygen-1.8.20/src/translator_kr.h Examining data/doxygen-1.8.20/src/translator_lt.h Examining data/doxygen-1.8.20/src/translator_lv.h Examining data/doxygen-1.8.20/src/translator_mk.h Examining data/doxygen-1.8.20/src/translator_nl.h Examining data/doxygen-1.8.20/src/translator_no.h Examining data/doxygen-1.8.20/src/translator_pl.h Examining data/doxygen-1.8.20/src/translator_pt.h Examining data/doxygen-1.8.20/src/translator_ro.h Examining data/doxygen-1.8.20/src/translator_ru.h Examining data/doxygen-1.8.20/src/translator_sc.h Examining data/doxygen-1.8.20/src/translator_si.h Examining data/doxygen-1.8.20/src/translator_sk.h Examining data/doxygen-1.8.20/src/translator_sr.h Examining data/doxygen-1.8.20/src/translator_sv.h Examining data/doxygen-1.8.20/src/translator_tr.h Examining data/doxygen-1.8.20/src/translator_tw.h Examining data/doxygen-1.8.20/src/translator_ua.h Examining data/doxygen-1.8.20/src/translator_vi.h Examining data/doxygen-1.8.20/src/translator_za.h Examining data/doxygen-1.8.20/src/types.h Examining data/doxygen-1.8.20/src/util.h Examining data/doxygen-1.8.20/src/vhdlcode.h Examining data/doxygen-1.8.20/src/vhdldocgen.cpp Examining data/doxygen-1.8.20/src/vhdldocgen.h Examining data/doxygen-1.8.20/src/vhdljjparser.cpp Examining data/doxygen-1.8.20/src/vhdljjparser.h Examining data/doxygen-1.8.20/src/xmlcode.h Examining data/doxygen-1.8.20/src/xmldocvisitor.cpp Examining data/doxygen-1.8.20/src/xmldocvisitor.h Examining data/doxygen-1.8.20/src/xmlgen.cpp Examining data/doxygen-1.8.20/src/xmlgen.h Examining data/doxygen-1.8.20/src/definition.cpp Examining data/doxygen-1.8.20/src/util.cpp Examining data/doxygen-1.8.20/src/clangparser.cpp Examining data/doxygen-1.8.20/src/doxygen.cpp Parsing failed to find end of parameter list; semicolon terminated it in (mn->begin()+1,mn->end(),mn->begin(), [](const auto &md1,const auto &md2) { return md1->getClassDef()->name()==md2->getClassDef()->name(); }); } if (sameClass) Examining data/doxygen-1.8.20/testing/008_brief.c Examining data/doxygen-1.8.20/testing/009_bug.cpp Examining data/doxygen-1.8.20/testing/013_class.h Examining data/doxygen-1.8.20/testing/015_cond.c Examining data/doxygen-1.8.20/testing/016_copydoc.c Examining data/doxygen-1.8.20/testing/018_def.c Examining data/doxygen-1.8.20/testing/019_defgroup.c Examining data/doxygen-1.8.20/testing/021_dontinclude.cpp Examining data/doxygen-1.8.20/testing/022_dot.cpp Examining data/doxygen-1.8.20/testing/025_example.cpp Examining data/doxygen-1.8.20/testing/026_exception.cpp Examining data/doxygen-1.8.20/testing/027_extends.c Examining data/doxygen-1.8.20/testing/028_formula.c Examining data/doxygen-1.8.20/testing/029_hideinit.c Examining data/doxygen-1.8.20/testing/032_include.cpp Examining data/doxygen-1.8.20/testing/035_invariant.c Examining data/doxygen-1.8.20/testing/036_link.c Examining data/doxygen-1.8.20/testing/037_msc.cpp Examining data/doxygen-1.8.20/testing/039_name.cpp Examining data/doxygen-1.8.20/testing/040_namespace.cpp Examining data/doxygen-1.8.20/testing/041_overload.cpp Examining data/doxygen-1.8.20/testing/044_section.h Examining data/doxygen-1.8.20/testing/046_related.cpp Examining data/doxygen-1.8.20/testing/047_return.cpp Examining data/doxygen-1.8.20/testing/048_showinit.c Examining data/doxygen-1.8.20/testing/049_snippet.cpp Examining data/doxygen-1.8.20/testing/054_parblock.cpp Examining data/doxygen-1.8.20/testing/064_castoperator.cpp Examining data/doxygen-1.8.20/testing/067_link_varargs.cpp Examining data/doxygen-1.8.20/testing/068_ref_varargs.cpp Examining data/doxygen-1.8.20/testing/069_link_variadic_template.cpp Examining data/doxygen-1.8.20/testing/070_ref_variadic_template.cpp Examining data/doxygen-1.8.20/testing/071_enum_in_anon_ns.cpp Examining data/doxygen-1.8.20/testing/072_using.cpp Examining data/doxygen-1.8.20/testing/073_typed_enum.cpp Examining data/doxygen-1.8.20/testing/074_ref.cpp Examining data/doxygen-1.8.20/testing/075_argmatch.cpp Examining data/doxygen-1.8.20/testing/076_emojis.cpp Examining data/doxygen-1.8.20/testing/077_no_xml_namespace_members_in_file_scope.h Examining data/doxygen-1.8.20/testing/078_xml_namespace_members_in_file_scope.h Examining data/doxygen-1.8.20/testing/080_extract_private_virtual.cpp Examining data/doxygen-1.8.20/testing/081_brief_lists.h Examining data/doxygen-1.8.20/testing/082_decl_def.cpp Examining data/doxygen-1.8.20/testing/083_decl_def.cpp Examining data/doxygen-1.8.20/testing/085_tooltip.cpp Examining data/doxygen-1.8.20/testing/086_style_tags.h Examining data/doxygen-1.8.20/testing/decl_def.h Examining data/doxygen-1.8.20/testing/example_test.cpp Examining data/doxygen-1.8.20/testing/snippet_test.cpp Examining data/doxygen-1.8.20/vhdlparser/CharStream.cc Examining data/doxygen-1.8.20/vhdlparser/CharStream.h Examining data/doxygen-1.8.20/vhdlparser/ErrorHandler.h Examining data/doxygen-1.8.20/vhdlparser/JavaCC.h Examining data/doxygen-1.8.20/vhdlparser/ParseException.cc Examining data/doxygen-1.8.20/vhdlparser/ParseException.h Examining data/doxygen-1.8.20/vhdlparser/Token.cc Examining data/doxygen-1.8.20/vhdlparser/Token.h Examining data/doxygen-1.8.20/vhdlparser/TokenManager.h Examining data/doxygen-1.8.20/vhdlparser/TokenMgrError.cc Examining data/doxygen-1.8.20/vhdlparser/TokenMgrError.h Examining data/doxygen-1.8.20/vhdlparser/VhdlParser.cc Examining data/doxygen-1.8.20/vhdlparser/VhdlParser.h Examining data/doxygen-1.8.20/vhdlparser/VhdlParserConstants.h Examining data/doxygen-1.8.20/vhdlparser/VhdlParserErrorHandler.hpp Examining data/doxygen-1.8.20/vhdlparser/VhdlParserTokenManager.cc Examining data/doxygen-1.8.20/vhdlparser/VhdlParserTokenManager.h Examining data/doxygen-1.8.20/vhdlparser/vhdlstring.h Examining data/doxygen-1.8.20/winbuild/iconv.h FINAL RESULTS: data/doxygen-1.8.20/libversion/fullversion.cpp:14:7: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(fullVersionString," (",BUF_SIZE-1); data/doxygen-1.8.20/libversion/fullversion.cpp:15:7: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(fullVersionString,getGitVersion(),BUF_SIZE-1); data/doxygen-1.8.20/libversion/fullversion.cpp:16:7: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(fullVersionString,")",BUF_SIZE-1); data/doxygen-1.8.20/qtools/qfileinfo_unix.cpp:41:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. #define readlink _qt_hide_readlink data/doxygen-1.8.20/qtools/qfileinfo_unix.cpp:53:8: [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. #undef readlink data/doxygen-1.8.20/qtools/qfileinfo_unix.cpp:54:16: [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. extern "C" int readlink( const char *, void *, uint ); data/doxygen-1.8.20/qtools/qfileinfo_unix.cpp:127:20: [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 = (int)readlink( QFile::encodeName(fn).data(), s, PATH_MAX ); data/doxygen-1.8.20/addon/doxmlparser/src/debug.cpp:15:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, msg, args); data/doxygen-1.8.20/addon/doxmlparser/src/dochandler.cpp:2045:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sectionKey.sprintf("sect%d",level+1); data/doxygen-1.8.20/addon/doxmlparser/src/dochandler.cpp:2049:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sectionKey.sprintf("sect%d",level); data/doxygen-1.8.20/addon/doxmlparser/src/dochandler.cpp:2122:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sectionKey.sprintf("sect%d",level+1); data/doxygen-1.8.20/addon/doxmlparser/test/main.cpp:42:50: [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 InPrint(x) printf("%s",indent.latin1()), printf x; data/doxygen-1.8.20/addon/doxyapp/doxyapp.cpp:78:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ctx.sprintf("inside %s %s of %s %s", data/doxygen-1.8.20/addon/doxyapp/doxyapp.cpp:86:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ctx.sprintf("inside %s %s", data/doxygen-1.8.20/addon/doxyapp/doxyapp.cpp:93:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ctx.sprintf("in %s",context->name().data()); data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp:498:9: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. scanf("%s[^\n]", filename); data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp:538:3: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(cleanup_command.c_str()); data/doxygen-1.8.20/addon/doxywizard/doxywizard.cpp:594:3: [4] (shell) ShellExecute: 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. ShellExecute(NULL, L"open", (LPCWSTR)fi.absoluteFilePath().utf16(), NULL, NULL, SW_SHOWNORMAL); data/doxygen-1.8.20/libmscgen/gd.c:97: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(stderr, format, args); data/doxygen-1.8.20/libmscgen/gd.h:64:17: [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. extern int snprintf(char*, size_t, const char*, ...); data/doxygen-1.8.20/qtools/qcstring.cpp:28:21: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QCString &QCString::sprintf( const char *format, ... ) data/doxygen-1.8.20/qtools/qcstring.cpp:35:9: [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 n=vsnprintf( rawData(), l, format, ap); data/doxygen-1.8.20/qtools/qcstring.cpp:484:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy( dst, str ); data/doxygen-1.8.20/qtools/qcstring.h:42:19: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define qsnprintf _snprintf data/doxygen-1.8.20/qtools/qcstring.h:44:19: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define qsnprintf snprintf data/doxygen-1.8.20/qtools/qcstring.h:56:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). { return strcpy(dst,src); } data/doxygen-1.8.20/qtools/qcstring.h:59:16: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). { return src ? strcpy(dst, src) : 0; } data/doxygen-1.8.20/qtools/qcstring.h:179:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QCString &sprintf( const char *format, ... ); data/doxygen-1.8.20/qtools/qdatetime.cpp:330:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. t.sprintf( " %d %d", d, y); data/doxygen-1.8.20/qtools/qdatetime.cpp:688:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. buf.sprintf( "%.2d:%.2d:%.2d", hour(), minute(), second() ); data/doxygen-1.8.20/qtools/qfiledefs_p.h:216: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. # define ACCESS ::access data/doxygen-1.8.20/qtools/qglobal.cpp:249:6: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:253:6: [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( mac_debug, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:273:6: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:277:6: [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( mac_debug, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:294:6: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:298:6: [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( mac_debug, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:316:6: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:320:6: [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( mac_debug, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:337:6: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:341:6: [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( mac_debug, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:360:6: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:364:6: [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( mac_debug, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:382:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); // ### vsnprintf would be great here data/doxygen-1.8.20/qtools/qglobal.cpp:386: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( stderr, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:399:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:403: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( stderr, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:415:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:419: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( stderr, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:433:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:437: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( stderr, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:449:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:453: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( stderr, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:471:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf( buf, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.cpp:475: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( stderr, msg, ap ); data/doxygen-1.8.20/qtools/qglobal.h:542:29: [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. __attribute__ ((format (printf, 1, 2))) data/doxygen-1.8.20/qtools/qglobal.h:548:29: [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. __attribute__ ((format (printf, 1, 2))) data/doxygen-1.8.20/qtools/qglobal.h:554:29: [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. __attribute__ ((format (printf, 1, 2))) data/doxygen-1.8.20/qtools/qglobal.h:566:29: [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. __attribute__ ((format (printf, 1, 2))) data/doxygen-1.8.20/qtools/qglobal.h:572:29: [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. __attribute__ ((format (printf, 1, 2))) data/doxygen-1.8.20/qtools/qglobal.h:578:29: [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. __attribute__ ((format (printf, 1, 2))) data/doxygen-1.8.20/qtools/qstring.cpp:12770:19: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QString &QString::sprintf( const char* cformat, ... ) data/doxygen-1.8.20/qtools/qstring.cpp:12878:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 0: ::sprintf( out, in, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12879:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 1: ::sprintf( out, in, width, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12880:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 2: ::sprintf( out, in, width, decimals, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12886:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 0: ::sprintf( out, in, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12887:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 1: ::sprintf( out, in, width, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12888:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 2: ::sprintf( out, in, width, decimals, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12894:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 0: ::sprintf( out, in, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12895:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 1: ::sprintf( out, in, width, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:12896:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. case 2: ::sprintf( out, in, width, decimals, value ); break; data/doxygen-1.8.20/qtools/qstring.cpp:14285:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ::sprintf( buf, format, n ); data/doxygen-1.8.20/qtools/qstring.h:445:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QString &sprintf( const char* format, ... ) data/doxygen-1.8.20/qtools/qstring.h:447:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format (printf, 2, 3))) data/doxygen-1.8.20/qtools/qtextstream.cpp:1802:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( buf, format, f ); // convert to text data/doxygen-1.8.20/src/cite.cpp:309:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((exitCode=Portable::system("perl","\""+bib2xhtmlFile+"\" "+bibOutputFiles+" \""+ data/doxygen-1.8.20/src/clangparser.cpp:526:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. lineAnchor.sprintf("l%05d",line); data/doxygen-1.8.20/src/debug.cpp:60:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, args); data/doxygen-1.8.20/src/definition.cpp:757:23: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. f = Portable::popen(cmd,"r"); data/doxygen-1.8.20/src/definition.cpp:1026:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. lineStr.sprintf("%d",m_impl->body->defLine); data/doxygen-1.8.20/src/dia.cpp:66:27: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((exitCode=Portable::system(diaExe,diaArgs,FALSE))!=0) data/doxygen-1.8.20/src/dia.cpp:77:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. epstopdfArgs.sprintf("\"%s.eps\" --outfile=\"%s.pdf\"", data/doxygen-1.8.20/src/dia.cpp:80:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("epstopdf",epstopdfArgs)!=0) data/doxygen-1.8.20/src/diagram.cpp:1338:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. epstopdfArgs.sprintf("\"%s.eps\" --outfile=\"%s.pdf\"", data/doxygen-1.8.20/src/diagram.cpp:1342:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("epstopdf",epstopdfArgs)!=0) data/doxygen-1.8.20/src/docbookgen.cpp:217:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. lineNumber.sprintf("%05d",l); data/doxygen-1.8.20/src/docbookvisitor.cpp:350:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("%s%d", data/doxygen-1.8.20/src/docbookvisitor.cpp:373:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("%s%d", data/doxygen-1.8.20/src/docparser.cpp:292:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. text.sprintf("image file name %s is ambiguous.\n",qPrint(fileName)); data/doxygen-1.8.20/src/docparser.cpp:375:20: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. epstopdfArgs.sprintf("\"%s/%s.eps\" --outfile=\"%s/%s.pdf\"", data/doxygen-1.8.20/src/docparser.cpp:379:21: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("epstopdf",epstopdfArgs)!=0) data/doxygen-1.8.20/src/docparser.cpp:451:23: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. inheritedFrom.sprintf(" inherited from member %s at line " data/doxygen-1.8.20/src/docparser.cpp:2223:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. m_name.sprintf("form_%d",m_id); data/doxygen-1.8.20/src/dotdirdeps.cpp:149:22: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. relationName.sprintf("dir_%06d_%06d",dir->dirCount(),usedDir->dirCount()); data/doxygen-1.8.20/src/dotgfxhierarchytable.cpp:30:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("inherit_graph_%d", m_graphId); data/doxygen-1.8.20/src/dotgfxhierarchytable.cpp:32:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("%sinherit_graph_%d",m_prefix.data(), m_graphId); data/doxygen-1.8.20/src/dotnode.cpp:145:52: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. t << theTranslator->trAndMore(QCString().sprintf("%d",totalCount-count)) << "\\l"; data/doxygen-1.8.20/src/dotrunner.cpp:196:29: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((exitCode=Portable::system(m_dotExe.data(),dotArgs,FALSE))!=0) goto error; data/doxygen-1.8.20/src/dotrunner.cpp:203:31: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((exitCode=Portable::system(m_dotExe.data(),dotArgs,FALSE))!=0) goto error; data/doxygen-1.8.20/src/dotrunner.cpp:219:33: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((exitCode=Portable::system(m_dotExe.data(),dotArgs,FALSE))!=0) goto error; data/doxygen-1.8.20/src/doxygen.cpp:537:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. text.sprintf("the name '%s' supplied as " data/doxygen-1.8.20/src/doxygen.cpp:590:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. text.sprintf("the name '%s' supplied as " data/doxygen-1.8.20/src/doxygen.cpp:10871:26: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. Doxygen::objDBFileName.sprintf("doxygen_objdb_%d.tmp",pid); data/doxygen-1.8.20/src/doxygen.cpp:10873:28: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. Doxygen::entryDBFileName.sprintf("doxygen_entrydb_%d.tmp",pid); data/doxygen-1.8.20/src/doxygen.cpp:10875:29: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. Doxygen::filterDBFileName.sprintf("doxygen_filterdb_%d.tmp",pid); data/doxygen-1.8.20/src/doxygen.cpp:11663:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Config_getString(HHC_LOCATION), "index.hhp", Debug::isFlagSet(Debug::ExtCmd))!=1) data/doxygen-1.8.20/src/doxygen.cpp:11679:38: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QCString const args = QCString().sprintf("%s -o \"%s\"", qhpFileName.data(), qchFileName.data()); data/doxygen-1.8.20/src/doxygen.cpp:11683:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Config_getString(QHG_LOCATION), args.data(), FALSE)) data/doxygen-1.8.20/src/filedef.cpp:1978:23: [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 *f=Portable::popen(cmd,"r"); data/doxygen-1.8.20/src/formula.cpp:191:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. resultName.sprintf("form_%d.%s",i,format==Format::Vector?"svg":"png"); data/doxygen-1.8.20/src/formula.cpp:212:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"-interaction=batchmode _formulas.tex >%s",Portable::devNull()); data/doxygen-1.8.20/src/formula.cpp:213:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(latexCmd,args)!=0) data/doxygen-1.8.20/src/formula.cpp:227:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. formBase.sprintf("_form%d",pageNum); data/doxygen-1.8.20/src/formula.cpp:230:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"-q -D 600 -n 1 -p %d -o %s_tmp.ps _formulas.dvi", data/doxygen-1.8.20/src/formula.cpp:233:21: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("dvips",args)!=0) data/doxygen-1.8.20/src/formula.cpp:243:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"-q -dBATCH -dNOPAUSE -P- -dNOSAFER -sDEVICE=bbox %s_tmp.ps 2>%s_tmp.epsi", data/doxygen-1.8.20/src/formula.cpp:246:21: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Portable::ghostScriptCommand(),args)!=0) data/doxygen-1.8.20/src/formula.cpp:286:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"-q -dBATCH -dNOPAUSE -P- -dNOSAFER -sDEVICE=pdfwrite" data/doxygen-1.8.20/src/formula.cpp:290:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Portable::ghostScriptCommand(),args)!=0) data/doxygen-1.8.20/src/formula.cpp:302:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"%s_tmp.pdf form_%d.svg",formBase.data(),pageNum); data/doxygen-1.8.20/src/formula.cpp:304:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("pdf2svg",args)!=0) data/doxygen-1.8.20/src/formula.cpp:324:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"-l form_%d.svg -z %s_tmp.pdf 2>%s",pageNum,formBase.data(),Portable::devNull()); data/doxygen-1.8.20/src/formula.cpp:328:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"--export-type=svg --export-filename=form_%d.svg %s_tmp.pdf 2>%s",pageNum,formBase.data(),Portable::devNull()); data/doxygen-1.8.20/src/formula.cpp:331:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("inkscape",args)!=0) data/doxygen-1.8.20/src/formula.cpp:354:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"-q -dBATCH -dNOPAUSE -P- -dNOSAFER -sDEVICE=eps2write" data/doxygen-1.8.20/src/formula.cpp:357:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Portable::ghostScriptCommand(),args)!=0) data/doxygen-1.8.20/src/formula.cpp:411:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(args,"-q -dNOSAFER -dBATCH -dNOPAUSE -dEPSCrop -sDEVICE=pnggray -dGraphicsAlphaBits=4 -dTextAlphaBits=4 " data/doxygen-1.8.20/src/formula.cpp:414:23: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Portable::ghostScriptCommand(),args)!=0) data/doxygen-1.8.20/src/formula.cpp:527:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("inkscape",args)!=0) data/doxygen-1.8.20/src/formula.cpp:531:21: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("inkscape",args)!=0) data/doxygen-1.8.20/src/growbuf.h:26:27: [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(&m_str[m_pos],s.data()); data/doxygen-1.8.20/src/growbuf.h:35:27: [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(&m_str[m_pos],s); data/doxygen-1.8.20/src/htags.cpp:93:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. bool result=Portable::system("htags",commandLine,FALSE)==0; data/doxygen-1.8.20/src/htmldocvisitor.cpp:575:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. fileName.sprintf("%s%d%s", data/doxygen-1.8.20/src/htmldocvisitor.cpp:609:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("%s%d", data/doxygen-1.8.20/src/latexdocvisitor.cpp:383:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. fileName.sprintf("%s%d%s", data/doxygen-1.8.20/src/latexdocvisitor.cpp:411:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("%s%d", data/doxygen-1.8.20/src/latexgen.cpp:203:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. lineNumber.sprintf("%05d",l); data/doxygen-1.8.20/src/latexgen.cpp:208:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. lineAnchor.sprintf("_l%05d",l); data/doxygen-1.8.20/src/layout.cpp:1259:32: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseFile+=QCString().sprintf("%d",m_userGroupCount++); data/doxygen-1.8.20/src/markdown.cpp:121:9: [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(IOSTREAM, fmt, args); data/doxygen-1.8.20/src/markdown.cpp:1451:8: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. id.sprintf("autotoc_md%d",autoId++); data/doxygen-1.8.20/src/markdown.cpp:2055:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. hTag.sprintf("h%d",level); data/doxygen-1.8.20/src/message.cpp:120:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, args); data/doxygen-1.8.20/src/message.cpp:192:17: [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 bufSize = vsnprintf(NULL, 0, fmt, args) + l + 1; data/doxygen-1.8.20/src/message.cpp:198:3: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(text+l, bufSize-l, fmt, argsCopy); data/doxygen-1.8.20/src/message.cpp:243:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(warnFile, (QCString(warning_str) + fmt).data(), args); data/doxygen-1.8.20/src/message.cpp:252:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(warnFile, (QCString(error_str) + fmt).data(), args); data/doxygen-1.8.20/src/message.cpp:271:5: [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(warnFile, (QCString(error_str) + fmt).data(), args); data/doxygen-1.8.20/src/message.h:22:58: [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 PRINTFLIKE(FORMAT, PARAM ) __attribute__((format(printf, FORMAT, PARAM))) data/doxygen-1.8.20/src/msc.cpp:58:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(buf,"rect %s %d,%d %d,%d",url,&x1,&y1,&x2,&y2); data/doxygen-1.8.20/src/msc.cpp:63:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(buf,"rect %s %s %d,%d %d,%d",ref,url,&x1,&y1,&x2,&y2); data/doxygen-1.8.20/src/msc.cpp:131:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. epstopdfArgs.sprintf("\"%s.eps\" --outfile=\"%s.pdf\"", data/doxygen-1.8.20/src/msc.cpp:134:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system("epstopdf",epstopdfArgs)!=0) data/doxygen-1.8.20/src/perlmodgen.cpp:935:30: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. QCString sect = QCString().sprintf("sect%d",s->level()); data/doxygen-1.8.20/src/plantuml.cpp:293:31: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((exitCode=Portable::system(pumlExe,pumlArguments,TRUE))!=0) data/doxygen-1.8.20/src/plantuml.cpp:317:26: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. epstopdfArgs.sprintf("\"%s%s.eps\" --outfile=\"%s%s.pdf\"",qPrint(pumlOutDir),qPrint(*str_p),qPrint(pumlOutDir),qPrint(*str_p)); data/doxygen-1.8.20/src/plantuml.cpp:319:37: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if ((exitCode=Portable::system("epstopdf",epstopdfArgs))!=0) data/doxygen-1.8.20/src/portable.cpp:40:15: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int Portable::system(const char *command,const char *args,bool commandHasConsole) data/doxygen-1.8.20/src/portable.cpp:80:6: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("/bin/sh","sh","-c",fullCmd.data(),(char*)0); data/doxygen-1.8.20/src/portable.cpp:137:14: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return ::system(fullCmd); data/doxygen-1.8.20/src/portable.cpp:431:18: [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 * Portable::popen(const char *name,const char *type) data/doxygen-1.8.20/src/portable.cpp:436:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return ::popen(name,type); data/doxygen-1.8.20/src/portable.h:22:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int system(const char *command,const char *args,bool commandHasConsole=true); data/doxygen-1.8.20/src/portable.h:36:18: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. FILE * popen(const char *name,const char *type); data/doxygen-1.8.20/src/rtfdocvisitor.cpp:71:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. n.sprintf("%s%d",name,m_indentLevel); data/doxygen-1.8.20/src/rtfdocvisitor.cpp:338:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. fileName.sprintf("%s%d%s", data/doxygen-1.8.20/src/rtfdocvisitor.cpp:363:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("%s%d%s", data/doxygen-1.8.20/src/rtfdocvisitor.cpp:876:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. heading.sprintf("Heading%d",level); data/doxygen-1.8.20/src/rtfdocvisitor.cpp:1167:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. heading.sprintf("Heading%d",level); data/doxygen-1.8.20/src/rtfgen.cpp:60:10: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. result.sprintf("\\yr%d\\mo%d\\dy%d\\hr%d\\min%d\\sec%d", data/doxygen-1.8.20/src/rtfgen.cpp:1715:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. heading.sprintf("Heading%d",num); data/doxygen-1.8.20/src/rtfgen.cpp:2362:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. encoding.sprintf("CP%s",theTranslator->trRTFansicp().data()); data/doxygen-1.8.20/src/rtfgen.cpp:3044:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. lineNumber.sprintf("%05d",l); data/doxygen-1.8.20/src/rtfgen.cpp:3050:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. lineAnchor.sprintf("_l%05d",l); data/doxygen-1.8.20/src/searchindex.cpp:957:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. baseName.sprintf("%s_%x",g_searchIndexInfo[i].name.data(),p); data/doxygen-1.8.20/src/sqlite3gen.cpp:61: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 DBG_CTX(x) printf x data/doxygen-1.8.20/src/template.cpp:42:18: [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 TRACE(x) printf x data/doxygen-1.8.20/src/translator_am.h:1778:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_am.h:1782:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d ",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_br.h:1890:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s, %d de %s de %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_br.h:1894:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_ca.h:1820:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_ca.h:1824:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_cn.h:1749:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%då¹´" CN_SPC "%s月" CN_SPC "%dæ—¥" CN_SPC "星期%s",year, months[month-1], day, days[dayOfWeek-1]); data/doxygen-1.8.20/src/translator_cn.h:1754:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_cz.h:1864:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d. %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_cz.h:1868:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d.%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_de.h:1958:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_de.h:1962:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_dk.h:1744:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_dk.h:1748:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_en.h:1833:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_en.h:1837:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_eo.h:1822:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s, %d-a de %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_eo.h:1826:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_es.h:1879:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s, %d de %s de %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_es.h:1883:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_fa.h:1777:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_fa.h:1781:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_fr.h:1889:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_fr.h:1893:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_gr.h:1824:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %.2d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_gr.h:1828:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_hr.h:1509:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_hr.h:1513:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_hu.h:1844:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_hu.h:1848:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_id.h:1794:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_id.h:1798:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_it.h:1800:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_it.h:1804:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_jp.h:704:18: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. countStr.sprintf(" (計%dé …ç›®)", numEntries); data/doxygen-1.8.20/src/translator_jp.h:1814:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%.4då¹´%.2d月%.2dæ—¥(%s)",year,month,day,days[dayOfWeek-1]); data/doxygen-1.8.20/src/translator_jp.h:1818:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d時%.2d分%.2d秒",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_kr.h:1838:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_kr.h:1842:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_lv.h:1823:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_lv.h:1827:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_nl.h:1413:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_nl.h:1417:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_pl.h:1811:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s, %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_pl.h:1815:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_pt.h:1824:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s, %d de %s de %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_pt.h:1828:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_ro.h:1829:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_ro.h:1833:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_ru.h:1789:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_ru.h:1793:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_sk.h:1788:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d. %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_sk.h:1792:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d.%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_sv.h:1917:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_sv.h:1921:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_tr.h:1813:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s %s %d %d",days[dayOfWeek-1],months[month-1],day,year); data/doxygen-1.8.20/src/translator_tr.h:1817:10: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_tw.h:1801:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%då¹´%s月%dæ—¥ %s",year,months[month-1],day,days[dayOfWeek-1]); data/doxygen-1.8.20/src/translator_tw.h:1805:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/translator_ua.h:1789:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sdate.sprintf("%s, %d %s %d",days[dayOfWeek-1],day,months[month-1],year); data/doxygen-1.8.20/src/translator_ua.h:1793:15: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. stime.sprintf(" %.2d:%.2d:%.2d",hour,minutes,seconds); data/doxygen-1.8.20/src/util.cpp:2602:10: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. result.sprintf("%d", current.date().year()); data/doxygen-1.8.20/src/util.cpp:4943:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. result.sprintf("a%05d",num); data/doxygen-1.8.20/src/util.cpp:4997:31: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. result.prepend(QCString().sprintf("d%x/d%02x/",l1Dir,l2Dir)); data/doxygen-1.8.20/src/util.cpp:5034:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. subdir.sprintf("d%x",l1); data/doxygen-1.8.20/src/util.cpp:5042:19: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. subsubdir.sprintf("d%x/d%02x",l1,l2); data/doxygen-1.8.20/src/util.cpp:7188:25: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. cmd += QCString().sprintf("{%d}",numArgs); // alias name + {n} data/doxygen-1.8.20/src/util.cpp:7341:28: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (FILE *fp = Portable::popen(cmd, "r")) data/doxygen-1.8.20/src/util.cpp:7422:23: [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 *f=Portable::popen(cmd,"r"); data/doxygen-1.8.20/src/vhdldocgen.cpp:171:19: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Config_getString(DOT_PATH) + "dot",vlargs)!=0) data/doxygen-1.8.20/src/vhdldocgen.cpp:3599:17: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (Portable::system(Config_getString(DOT_PATH) + "dot",vlargs)!=0) data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp:458:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (Portable::getenv("TMP")) data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp:459:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmpdir << Portable::getenv("TMP") << "/doxyparse-" << pid; data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp:460:22: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if (Portable::getenv("TEMP")) data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp:461:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmpdir << Portable::getenv("TEMP") << "/doxyparse-" << pid; data/doxygen-1.8.20/addon/doxysearch/doxysearch.cpp:318:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *queryEnv = getenv("QUERY_STRING"); data/doxygen-1.8.20/libmscgen/gdhelpers.h:48:26: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. # define gdMutexSetup(x) InitializeCriticalSection(&x) data/doxygen-1.8.20/libmscgen/gdhelpers.h:50:25: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. # define gdMutexLock(x) EnterCriticalSection(&x) data/doxygen-1.8.20/libmscgen/mscgen_safe.c:107: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. char *r = getenv(name); data/doxygen-1.8.20/qtools/qdir_unix.cpp:72:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. d = QFile::decodeName(getenv("HOME")); data/doxygen-1.8.20/qtools/qtextcodec.cpp:555:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char * lang = qstrdup( getenv("LANG") ); data/doxygen-1.8.20/qtools/qtextcodec.cpp:1315: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. lang = getenv( "LANG" ); //########Windows?? data/doxygen-1.8.20/src/dot.cpp:42:29: [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. g_dotFontPath = Portable::getenv("DOTFONTPATH"); data/doxygen-1.8.20/src/doxygen.cpp:9835:32: [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 *lang = Portable::getenv("LC_ALL"); data/doxygen-1.8.20/src/doxygen.cpp:10945:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. Portable::getenv("DOTFONTPATH"); data/doxygen-1.8.20/src/portable.cpp:271:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *Portable::getenv(const char *variable) data/doxygen-1.8.20/src/portable.cpp:274: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. return ::getenv(variable); data/doxygen-1.8.20/src/portable.cpp:348:29: [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 = Portable::getenv("PATH"); data/doxygen-1.8.20/src/portable.cpp:498:29: [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 = Portable::getenv("PATH"); data/doxygen-1.8.20/src/portable.h:24: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 * getenv(const char *variable); data/doxygen-1.8.20/src/util.cpp:2553:40: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. QCString sourceDateEpoch = Portable::getenv("SOURCE_DATE_EPOCH"); data/doxygen-1.8.20/addon/doxyapp/doxyapp.cpp:251:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmd[256]; data/doxygen-1.8.20/addon/doxyparse/doxyparse.cpp:496: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 filename[1024]; data/doxygen-1.8.20/addon/doxywizard/doxywizard.cpp:282: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). if (!f.open(QIODevice::WriteOnly | QIODevice::Text )) data/doxygen-1.8.20/addon/doxywizard/doxywizard.cpp:610:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(QIODevice::WriteOnly)) data/doxygen-1.8.20/addon/doxywizard/expert.cpp:82:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) data/doxygen-1.8.20/examples/structcmd.h:54:5: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int open(const char *,int); data/doxygen-1.8.20/liblodepng/lodepng.cpp:2437:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen(filename,"wb"); data/doxygen-1.8.20/libmd5/md5.c:111: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((md5byte *)ctx->in + 64 - t, buf, len); data/doxygen-1.8.20/libmd5/md5.c:115: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((md5byte *)ctx->in + 64 - t, buf, t); data/doxygen-1.8.20/libmd5/md5.c:123: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(ctx->in, buf, 64); data/doxygen-1.8.20/libmd5/md5.c:131: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(ctx->in, buf, len); data/doxygen-1.8.20/libmd5/md5.c:166: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(digest, ctx->buf, 16); data/doxygen-1.8.20/libmd5/md5.c:275:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 MD5Buffer (const unsigned char *buf,unsigned int len,unsigned char sig[16]) data/doxygen-1.8.20/libmd5/md5.c:275:68: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 MD5Buffer (const unsigned char *buf,unsigned int len,unsigned char sig[16]) data/doxygen-1.8.20/libmd5/md5.c:285:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 MD5SigToString(unsigned char signature[16],char *str,int len) data/doxygen-1.8.20/libmd5/md5.h:49:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void MD5Final(unsigned char digest[16], struct MD5Context *context); data/doxygen-1.8.20/libmd5/md5.h:50:32: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 MD5Buffer (const unsigned char *buf,unsigned int len,unsigned char sig[16]); data/doxygen-1.8.20/libmd5/md5.h:50:68: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 MD5Buffer (const unsigned char *buf,unsigned int len,unsigned char sig[16]); data/doxygen-1.8.20/libmd5/md5.h:51:30: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 MD5SigToString(unsigned char sig[16],char *str,int len); data/doxygen-1.8.20/libmscgen/gd.c:34: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. static const unsigned char gd_toascii[256] = { data/doxygen-1.8.20/libmscgen/gd.c:237: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). im->open[i] = 1; data/doxygen-1.8.20/libmscgen/gd.c:476:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (im->open[i]) { data/doxygen-1.8.20/libmscgen/gd.c:646:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (im->open[i]) { data/doxygen-1.8.20/libmscgen/gd.c:714:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (im->open[i]) { data/doxygen-1.8.20/libmscgen/gd.c:778:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (im->open[i]) { data/doxygen-1.8.20/libmscgen/gd.c:794:6: [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). im->open[ct] = 0; data/doxygen-1.8.20/libmscgen/gd.c:831:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (im->open[c]) { data/doxygen-1.8.20/libmscgen/gd.c:866:6: [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). im->open[op] = 0; data/doxygen-1.8.20/libmscgen/gd.c:891:6: [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). im->open[color] = 1; data/doxygen-1.8.20/libmscgen/gd.c:970: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). to->open[i] = 0; data/doxygen-1.8.20/libmscgen/gd.c:974: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). to->open[i] = 1; data/doxygen-1.8.20/libmscgen/gd.c:1139:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!im->open[c]) { data/doxygen-1.8.20/libmscgen/gd.c:2843: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). dst->open[i] = src->open[i]; data/doxygen-1.8.20/libmscgen/gd.c:2843:25: [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). dst->open[i] = src->open[i]; data/doxygen-1.8.20/libmscgen/gd.c:3817: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 (im->style, style, sizeof (int) * noOfPixels); data/doxygen-1.8.20/libmscgen/gd.h:353:6: [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 open[gdMaxColors]; data/doxygen-1.8.20/libmscgen/gdhelpers.c:20: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 separators[256]; data/doxygen-1.8.20/libmscgen/mscgen_api.c:397:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(retLines[c], label, lineLen); data/doxygen-1.8.20/libmscgen/mscgen_api.c:651:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, lineStart, lineLen); data/doxygen-1.8.20/libmscgen/mscgen_api.c:692: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 lineBuffer[1024]; data/doxygen-1.8.20/libmscgen/mscgen_api.c:1516:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *in = fopen(inputFile, "r"); data/doxygen-1.8.20/libmscgen/mscgen_api.c:1534:15: [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). ismap = fopen(outputFile, "w"); data/doxygen-1.8.20/libmscgen/mscgen_gd_out.c:551:28: [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). context->outFile = fopen(file, "wb"); data/doxygen-1.8.20/libmscgen/mscgen_ps_out.c:515:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). context->of = fopen(file, "wb"); data/doxygen-1.8.20/libmscgen/mscgen_svg_out.c:443:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char colCmd[10]; data/doxygen-1.8.20/libmscgen/mscgen_svg_out.c:449: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(colCmd, "#%06X", col); data/doxygen-1.8.20/libmscgen/mscgen_svg_out.c:460:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char colCmd[10]; data/doxygen-1.8.20/libmscgen/mscgen_svg_out.c:466: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(colCmd, "#%06X", col); data/doxygen-1.8.20/libmscgen/mscgen_svg_out.c:539:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). context->of = fopen(file, "wb"); data/doxygen-1.8.20/libversion/fullversion.cpp:7: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 fullVersionString[BUF_SIZE]; data/doxygen-1.8.20/qtools/qbuffer.cpp:187: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). bool QBuffer::open( int m ) data/doxygen-1.8.20/qtools/qbuffer.cpp:295: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, a.data()+ioIndex, len ); data/doxygen-1.8.20/qtools/qbuffer.cpp:341: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( a.data()+ioIndex, p, len ); data/doxygen-1.8.20/qtools/qbuffer.cpp:430: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[1]; data/doxygen-1.8.20/qtools/qbuffer.h:57: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). bool open( int ); data/doxygen-1.8.20/qtools/qcstring.cpp:613: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(r,p,l); data/doxygen-1.8.20/qtools/qcstring.cpp:616:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (dst) memcpy(r,dst,dstLen); data/doxygen-1.8.20/qtools/qcstring.cpp:667: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(r,p,l); data/doxygen-1.8.20/qtools/qcstring.cpp:678:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (dst) memcpy(r,dst,dstLen); data/doxygen-1.8.20/qtools/qcstring.h:264:16: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&m_rep[index],s,len+1); data/doxygen-1.8.20/qtools/qcstring.h:276:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[2] = { c, '\0' }; data/doxygen-1.8.20/qtools/qcstringlist.cpp:37: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 cs[2] = { sep, '\0' }; data/doxygen-1.8.20/qtools/qdatastream.cpp:247:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ((QBuffer *)dev)->open( mode ); // open device data/doxygen-1.8.20/qtools/qdatastream.cpp:407: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[40]; data/doxygen-1.8.20/qtools/qdatastream.cpp:415:21: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return (Q_INT32)atol( buf ); data/doxygen-1.8.20/qtools/qdatastream.cpp:435:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4]; data/doxygen-1.8.20/qtools/qdatastream.cpp:466: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 b[2]; data/doxygen-1.8.20/qtools/qdatastream.cpp:495: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 b[4]; data/doxygen-1.8.20/qtools/qdatastream.cpp:525: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 b[sizeof(Q_INT64)]; data/doxygen-1.8.20/qtools/qdatastream.cpp:544: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[80]; data/doxygen-1.8.20/qtools/qdatastream.cpp:570: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 b[4]; data/doxygen-1.8.20/qtools/qdatastream.cpp:595: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 b[8]; data/doxygen-1.8.20/qtools/qdatastream.cpp:702: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[6]; // write octal code data/doxygen-1.8.20/qtools/qdatastream.cpp:731: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[16]; data/doxygen-1.8.20/qtools/qdatastream.cpp:732:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf, "%d\n", i ); data/doxygen-1.8.20/qtools/qdatastream.cpp:738: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 b[2]; data/doxygen-1.8.20/qtools/qdatastream.cpp:762: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[16]; data/doxygen-1.8.20/qtools/qdatastream.cpp:763:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf, "%d\n", i ); data/doxygen-1.8.20/qtools/qdatastream.cpp:769: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 b[4]; data/doxygen-1.8.20/qtools/qdatastream.cpp:794: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[20]; data/doxygen-1.8.20/qtools/qdatastream.cpp:795:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf, "%ld\n", i ); data/doxygen-1.8.20/qtools/qdatastream.cpp:801: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 b[sizeof(Q_INT64)]; data/doxygen-1.8.20/qtools/qdatastream.cpp:833: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[32]; data/doxygen-1.8.20/qtools/qdatastream.cpp:834:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf, "%g\n", (double)f ); data/doxygen-1.8.20/qtools/qdatastream.cpp:842: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 b[4]; data/doxygen-1.8.20/qtools/qdatastream.cpp:863: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[32]; data/doxygen-1.8.20/qtools/qdatastream.cpp:864:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf, "%g\n", f ); data/doxygen-1.8.20/qtools/qdatastream.cpp:870: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 b[8]; data/doxygen-1.8.20/qtools/qdir_unix.cpp:83: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 cur[PATH_MAX]; data/doxygen-1.8.20/qtools/qdir_unix.cpp:84: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 tmp[PATH_MAX]; data/doxygen-1.8.20/qtools/qdir_unix.cpp:147: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 currentName[PATH_MAX]; data/doxygen-1.8.20/qtools/qdir_win32.cpp:113: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 cur[PATH_MAX]; data/doxygen-1.8.20/qtools/qdir_win32.cpp:114: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 tmp[PATH_MAX]; data/doxygen-1.8.20/qtools/qdir_win32.cpp:203: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 currentName[PATH_MAX]; data/doxygen-1.8.20/qtools/qdir_win32.cpp:473: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 driveName[4]; data/doxygen-1.8.20/qtools/qfile.cpp:360: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[1]; data/doxygen-1.8.20/qtools/qfile.cpp:399: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[1]; data/doxygen-1.8.20/qtools/qfile.cpp:447: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[1]; data/doxygen-1.8.20/qtools/qfile.h:73: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). bool open( int ); data/doxygen-1.8.20/qtools/qfile.h:74: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). bool open( int, FILE * ); data/doxygen-1.8.20/qtools/qfile.h:75: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). bool open( int, int ); data/doxygen-1.8.20/qtools/qfile_unix.cpp:134:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QFile::open( int m ) data/doxygen-1.8.20/qtools/qfile_unix.cpp:199: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 perm2[4]; data/doxygen-1.8.20/qtools/qfile_unix.cpp:231: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). fh = fopen( QFile::encodeName(fn), perm2 ); data/doxygen-1.8.20/qtools/qfile_unix.cpp:306:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QFile::open( int m, FILE *f ) data/doxygen-1.8.20/qtools/qfile_unix.cpp:356:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QFile::open( int m, int f ) data/doxygen-1.8.20/qtools/qfile_win32.cpp:138:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QFile::open( int m ) data/doxygen-1.8.20/qtools/qfile_win32.cpp: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 perm2[4]; data/doxygen-1.8.20/qtools/qfile_win32.cpp:234: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). fh = fopen( QFile::encodeName(fn), perm2 ); data/doxygen-1.8.20/qtools/qfile_win32.cpp:315:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QFile::open( int m, FILE *f ) data/doxygen-1.8.20/qtools/qfile_win32.cpp:365:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QFile::open( int m, int f ) data/doxygen-1.8.20/qtools/qfiledefs_p.h:170: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). # define OPEN ::open data/doxygen-1.8.20/qtools/qfiledefs_p.h:211: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). # define OPEN ::open data/doxygen-1.8.20/qtools/qfileinfo_unix.cpp:124: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 s[PATH_MAX+1]; data/doxygen-1.8.20/qtools/qgarray.cpp:220: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( newdata, shd->data, QMIN(shd->len,newsize) ); data/doxygen-1.8.20/qtools/qgarray.cpp:270:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( x, d, sz ); data/doxygen-1.8.20/qtools/qgarray.cpp:338: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( n->data, shd->data, n->len ); data/doxygen-1.8.20/qtools/qgarray.cpp:358:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( shd->data, a.shd->data, a.shd->len ); data/doxygen-1.8.20/qtools/qgarray.cpp:383:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( shd->data, d, len ); // use same buffer data/doxygen-1.8.20/qtools/qgarray.cpp:388: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( data, d, len ); data/doxygen-1.8.20/qtools/qgarray.cpp:415: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( shd->data, d, len ); data/doxygen-1.8.20/qtools/qgarray.cpp:707: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( data() + index, d, sz ); data/doxygen-1.8.20/qtools/qgdict.cpp:927: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[80], *pbuf; data/doxygen-1.8.20/qtools/qglobal.cpp:243:15: [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). mac_debug=fopen( "debug.txt", "a+" ); data/doxygen-1.8.20/qtools/qglobal.cpp:245: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:267:15: [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). mac_debug=fopen( "debug.txt", "a+" ); data/doxygen-1.8.20/qtools/qglobal.cpp:269: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:288:15: [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). mac_debug=fopen( "debug.txt", "a+" ); data/doxygen-1.8.20/qtools/qglobal.cpp:290: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:310:15: [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). mac_debug=fopen( "debug.txt", "a+" ); data/doxygen-1.8.20/qtools/qglobal.cpp:312: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:331:15: [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). mac_debug=fopen( "debug.txt", "a+"); data/doxygen-1.8.20/qtools/qglobal.cpp:333: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:354:15: [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). mac_debug=fopen( "debug.txt", "a+" ); data/doxygen-1.8.20/qtools/qglobal.cpp:356: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:378: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:395: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:411: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:429: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:445: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[8196]; data/doxygen-1.8.20/qtools/qglobal.cpp:467: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[8196]; data/doxygen-1.8.20/qtools/qgstring.cpp:215:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( m_data + len1, s, len2 + 1 ); data/doxygen-1.8.20/qtools/qgstring.cpp:234:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( m_data + len1, str, len2 + 1 ); data/doxygen-1.8.20/qtools/qgvector.cpp:353: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( newvec, vec, (len < newsize ? len : newsize)*sizeof(Item) ); data/doxygen-1.8.20/qtools/qiodevice.h:115: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). virtual bool open( int mode ) = 0; data/doxygen-1.8.20/qtools/qregexp.cpp:1053: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( d, prev_d, ddiff*sizeof(uint) ); data/doxygen-1.8.20/qtools/qregexp.cpp:1089: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( rxdata, rxarray, len*sizeof(uint) ); data/doxygen-1.8.20/qtools/qstring.cpp:12154:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( nd, d->unicode, sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:12179: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( uc, str, length*sizeof(QChar) ); data/doxygen-1.8.20/qtools/qstring.cpp:12372:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(uc, unicode, length*sizeof(QChar)); data/doxygen-1.8.20/qtools/qstring.cpp:12571:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( nd, d->unicode, sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:12870: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 in[64], out[330] = ""; data/doxygen-1.8.20/qtools/qstring.cpp:13260: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( s.d->unicode, d->unicode, len*sizeof(QChar) ); data/doxygen-1.8.20/qtools/qstring.cpp:13293: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( s.d->unicode, d->unicode+(l-len), len*sizeof(QChar) ); data/doxygen-1.8.20/qtools/qstring.cpp:13330: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( s.d->unicode, p, len*sizeof(QChar) ); data/doxygen-1.8.20/qtools/qstring.cpp:13362:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( result.d->unicode, unicode(), sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:13404:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( uc, unicode(), sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:13511: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( result.d->unicode, &s[start], sizeof(QChar)*l ); data/doxygen-1.8.20/qtools/qstring.cpp:13596: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(tmp,s,len*sizeof(QChar)); data/doxygen-1.8.20/qtools/qstring.cpp:13608: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( d->unicode+index, s, sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:13613: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( d->unicode+index, s, sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:13734: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( d->unicode+index, s, len*sizeof(QChar) ); data/doxygen-1.8.20/qtools/qstring.cpp:13740:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp,s,slen*sizeof(QChar)); data/doxygen-1.8.20/qtools/qstring.cpp:14168: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 charbuf[65*sizeof(QChar)]; data/doxygen-1.8.20/qtools/qstring.cpp:14215: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 charbuf[65*sizeof(QChar)]; data/doxygen-1.8.20/qtools/qstring.cpp:14267:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char format[20]; data/doxygen-1.8.20/qtools/qstring.cpp:14268: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[120]; // enough for 99 precision? data/doxygen-1.8.20/qtools/qstring.cpp:14456: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( d->unicode+len1, str.unicode(), sizeof(QChar)*len2 ); data/doxygen-1.8.20/qtools/qstring.cpp:14804:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( nd, unicode, sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:14811:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( d->unicode, unicode, sizeof(QChar)*len ); data/doxygen-1.8.20/qtools/qstring.cpp:15131: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 t[auto_size]; data/doxygen-1.8.20/qtools/qstring.cpp:15243: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( cp, d->unicode, d->len*sizeof(QChar) ); data/doxygen-1.8.20/qtools/qstring.cpp:15306: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(buf,uc,sizeof(TCHAR)*str.length()); data/doxygen-1.8.20/qtools/qstring.cpp:15326: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(result, qt_winTchar(str,FALSE), sizeof(TCHAR)*str.length()); data/doxygen-1.8.20/qtools/qstring.cpp:15397:19: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). while ( !(len=MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, data/doxygen-1.8.20/qtools/qstring.cpp:15406:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). wclen = MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, data/doxygen-1.8.20/qtools/qtextcodec.cpp:398: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 c[2]; data/doxygen-1.8.20/qtools/qtextcodec.cpp:982: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 line[maxlen]; data/doxygen-1.8.20/qtools/qtextcodec.cpp:1012:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mb[maxmb+1]; data/doxygen-1.8.20/qtools/qtextcodec.cpp:1295:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_ReadOnly)) { data/doxygen-1.8.20/qtools/qtextstream.cpp:262: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). bool open( int m ); data/doxygen-1.8.20/qtools/qtextstream.cpp:292:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QStringBuffer::open( int m ) data/doxygen-1.8.20/qtools/qtextstream.cpp:383:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( p, ((const char*)(s->unicode()))+ioIndex, len ); data/doxygen-1.8.20/qtools/qtextstream.cpp:500:29: [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). ((QStringBuffer *)dev)->open( filemode ); data/doxygen-1.8.20/qtools/qtextstream.cpp:517:29: [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). ((QStringBuffer *)dev)->open( filemode ); data/doxygen-1.8.20/qtools/qtextstream.cpp:554:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ((QBuffer *)dev)->open( mode ); data/doxygen-1.8.20/qtools/qtextstream.cpp:578:21: [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). ((QFile *)dev)->open( mode, fh ); data/doxygen-1.8.20/qtools/qtextstream.cpp:1225: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[256]; data/doxygen-1.8.20/qtools/qtextstream.cpp:1433:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[buflen]; data/doxygen-1.8.20/qtools/qtextstream.cpp:1446: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( dynbuf->rawData(), s, i ); // copy old data data/doxygen-1.8.20/qtools/qtextstream.cpp:1456: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( str.rawData(), s, i ); data/doxygen-1.8.20/qtools/qtextstream.cpp:1598: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[76]; data/doxygen-1.8.20/qtools/qtextstream.cpp:1778: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[64]; data/doxygen-1.8.20/qtools/qtextstream.cpp:1780:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char format[16]; data/doxygen-1.8.20/qtools/qtextstream.cpp:1821: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 padbuf[48]; data/doxygen-1.8.20/qtools/qutfcodec.cpp:206:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d.rawData(),uc.unicode(),len_in_out); data/doxygen-1.8.20/qtools/qutfcodec.cpp:212:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d.rawData(),&QChar::byteOrderMark,sizeof(QChar)); data/doxygen-1.8.20/qtools/qutfcodec.cpp:213:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(d.rawData()+sizeof(QChar),uc.unicode(),uc.length()*sizeof(QChar)); data/doxygen-1.8.20/qtools/qxml.cpp:108:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const signed char charLookupTable[256]={ data/doxygen-1.8.20/qtools/qxml.cpp:756:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( !file.open(IO_ReadOnly) ) { data/doxygen-1.8.20/qtools/qxml.cpp:787: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). buf.open( IO_ReadOnly ); data/doxygen-1.8.20/qtools/qxml.cpp:2154:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[7][7] = { data/doxygen-1.8.20/qtools/qxml.cpp:2328:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[11][5] = { data/doxygen-1.8.20/qtools/qxml.cpp:2685:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char const table[14][10] = { data/doxygen-1.8.20/qtools/qxml.cpp:2938:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[3][5] = { data/doxygen-1.8.20/qtools/qxml.cpp:3069:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[16][5] = { data/doxygen-1.8.20/qtools/qxml.cpp:3294:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[12][8] = { data/doxygen-1.8.20/qtools/qxml.cpp:3475:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[15][6] = { data/doxygen-1.8.20/qtools/qxml.cpp:3635:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[4][9] = { data/doxygen-1.8.20/qtools/qxml.cpp:3788:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[3][3] = { data/doxygen-1.8.20/qtools/qxml.cpp:3909:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[15][8] = { data/doxygen-1.8.20/qtools/qxml.cpp:4120:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[19][14] = { data/doxygen-1.8.20/qtools/qxml.cpp:4350:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[7][5] = { data/doxygen-1.8.20/qtools/qxml.cpp:4475:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[18][13] = { data/doxygen-1.8.20/qtools/qxml.cpp:4678:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[7][4] = { data/doxygen-1.8.20/qtools/qxml.cpp:4807:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[6][9] = { data/doxygen-1.8.20/qtools/qxml.cpp:4939:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[18][6] = { data/doxygen-1.8.20/qtools/qxml.cpp:5193:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[9][5] = { data/doxygen-1.8.20/qtools/qxml.cpp:5312:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[6][3] = { data/doxygen-1.8.20/qtools/qxml.cpp:5417:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[4][5] = { data/doxygen-1.8.20/qtools/qxml.cpp:5510:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[3][3] = { data/doxygen-1.8.20/qtools/qxml.cpp:5591:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[3][2] = { data/doxygen-1.8.20/qtools/qxml.cpp:5684:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static signed char table[8][7] = { data/doxygen-1.8.20/src/bufstr.h:50: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(m_buf+m_writeOffset,a,len); data/doxygen-1.8.20/src/cite.cpp:122: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). if (!f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/cite.cpp:248: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/cite.cpp:321: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). if (!f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/clangparser.cpp:550: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(tmp,sp,l); data/doxygen-1.8.20/src/commentscan.h:88:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open(Entry *e,const char *fileName,int line,bool implicit=false); data/doxygen-1.8.20/src/defgen.cpp:606: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/definition.cpp:713:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[blockSize]; data/doxygen-1.8.20/src/definition.cpp:721:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = Portable::fopen(Doxygen::filterDBFileName,"rb"); data/doxygen-1.8.20/src/definition.cpp:758:30: [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 *bf = Portable::fopen(Doxygen::filterDBFileName,"a+b"); data/doxygen-1.8.20/src/definition.cpp:805:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = Portable::fopen(fileName,"r"); data/doxygen-1.8.20/src/definition.cpp:934: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 lineStr[blockSize]; data/doxygen-1.8.20/src/definition.cpp:993: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 anchorStr[maxAnchorStrLen]; data/doxygen-1.8.20/src/definition.cpp:1340: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 anchorStr[maxLineNrStr]; data/doxygen-1.8.20/src/definition.cpp:1748: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 cs[2]; data/doxygen-1.8.20/src/diagram.cpp:1103:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!f1.open(IO_WriteOnly)) data/doxygen-1.8.20/src/docbookgen.cpp:963: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 cs[2]; data/doxygen-1.8.20/src/docbookvisitor.cpp:349:14: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. name.sprintf("%s%d", "dot_inline_dotgraph_", dotindex); data/doxygen-1.8.20/src/docbookvisitor.cpp:355:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/docbookvisitor.cpp:372:14: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. name.sprintf("%s%d", "msc_inline_mscgraph_", mscindex); data/doxygen-1.8.20/src/docbookvisitor.cpp:378:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/docbookvisitor.cpp:1239:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (inImage.open(IO_ReadOnly)) data/doxygen-1.8.20/src/docbookvisitor.cpp:1241:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (outImage.open(IO_WriteOnly)) data/doxygen-1.8.20/src/docgroup.cpp:108:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void DocGroup::open(Entry *e,const char *,int, bool implicit) data/doxygen-1.8.20/src/docgroup.h:35:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open(Entry *e,const char *,int,bool implicit=false); data/doxygen-1.8.20/src/docparser.cpp:300:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (inImage.open(IO_ReadOnly)) data/doxygen-1.8.20/src/docparser.cpp:341:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (outImage.open(IO_WriteOnly)) // copy the image data/doxygen-1.8.20/src/docparser.cpp:3003: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 tmp[20]; data/doxygen-1.8.20/src/docparser.cpp:3004: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(tmp,"<h%d>tag",m_level); data/doxygen-1.8.20/src/docparser.cpp:7295:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (e>s) memcpy(id.rawData(),data+s,e-s); data/doxygen-1.8.20/src/docsets.cpp:63:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!makefile.open(IO_WriteOnly)) data/doxygen-1.8.20/src/docsets.cpp:113: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). if (!plist.open(IO_WriteOnly)) data/doxygen-1.8.20/src/docsets.cpp:148: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). if (!m_nf->open(IO_WriteOnly)) data/doxygen-1.8.20/src/docsets.cpp:168: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). if (!m_tf->open(IO_WriteOnly)) data/doxygen-1.8.20/src/dotfilepatcher.cpp:219: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). if (!f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/dotfilepatcher.cpp:350:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fi.open(IO_ReadOnly)) data/doxygen-1.8.20/src/dotfilepatcher.cpp:356:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fo.open(IO_WriteOnly)) data/doxygen-1.8.20/src/dotfilepatcher.cpp:512:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fi.open(IO_ReadOnly)) data/doxygen-1.8.20/src/dotfilepatcher.cpp:517:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fo.open(IO_WriteOnly)) data/doxygen-1.8.20/src/dotfilepatcher.cpp:551: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). if (!f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/dotfilepatcher.cpp:556: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[maxLineLen]; data/doxygen-1.8.20/src/dotgraph.cpp:42:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/dotgraph.cpp:167: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/dotrunner.cpp:40:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = Portable::fopen(imgName,"rb"); data/doxygen-1.8.20/src/dotrunner.cpp:43: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 data[4]; data/doxygen-1.8.20/src/dotrunner.cpp:78:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fi.open(IO_ReadOnly)) data/doxygen-1.8.20/src/dotrunner.cpp:84:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fo.open(IO_WriteOnly)) data/doxygen-1.8.20/src/dotrunner.cpp:121:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = Portable::fopen(fileName,"rb"); data/doxygen-1.8.20/src/dotrunner.cpp:128: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[maxLineLen]; data/doxygen-1.8.20/src/dotrunner.cpp:240:25: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = Portable::fopen(md5Name,"w"); data/doxygen-1.8.20/src/doxygen.cpp:8807: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 configFile[2]; data/doxygen-1.8.20/src/doxygen.cpp:9726:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/doxygen.cpp:10493:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!tag.open(IO_WriteOnly)) data/doxygen-1.8.20/src/doxygen.cpp:10976:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (layoutFile.open(IO_ReadOnly)) data/doxygen-1.8.20/src/eclipsehelp.cpp:73:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!m_tocfile->open(IO_WriteOnly)) data/doxygen-1.8.20/src/eclipsehelp.cpp:115:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (pluginFile.open(IO_WriteOnly)) data/doxygen-1.8.20/src/filedef.cpp:1985:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[bufSize]; data/doxygen-1.8.20/src/formula.cpp:76:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_ReadOnly)) // open repository data/doxygen-1.8.20/src/formula.cpp:171:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/formula.cpp:211:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char args[4096]; data/doxygen-1.8.20/src/formula.cpp:369:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (epsIn.open(IO_ReadOnly) && epsOut.open(IO_WriteOnly)) data/doxygen-1.8.20/src/formula.cpp:369:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (epsIn.open(IO_ReadOnly) && epsOut.open(IO_WriteOnly)) data/doxygen-1.8.20/src/formula.cpp:454:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/formula.cpp:539:27: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (inkscapeVersionIn.open(IO_ReadOnly)) data/doxygen-1.8.20/src/ftextstream.cpp:11: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). bool open( int m ); data/doxygen-1.8.20/src/ftextstream.cpp:40:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). bool QGStringBuffer::open( int m ) data/doxygen-1.8.20/src/ftextstream.cpp:123:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m_str->data()+ioIndex,p,len); data/doxygen-1.8.20/src/ftextstream.cpp:160:29: [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). ((QGStringBuffer*)m_dev)->open( IO_WriteOnly ); data/doxygen-1.8.20/src/ftextstream.cpp:167:21: [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). ((QFile *)m_dev)->open( IO_WriteOnly, fh); data/doxygen-1.8.20/src/ftextstream.cpp:199:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; data/doxygen-1.8.20/src/ftextstream.cpp:252:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/doxygen-1.8.20/src/ftextstream.cpp:253:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf,"%f",d); data/doxygen-1.8.20/src/ftvhelp.cpp:629: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). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/ftvhelp.cpp:663:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly) /*&& fidx.open(IO_WriteOnly)*/) data/doxygen-1.8.20/src/ftvhelp.cpp:713:46: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (/*fidx.open(IO_WriteOnly) &&*/ fsidx.open(IO_WriteOnly)) data/doxygen-1.8.20/src/ftvhelp.cpp:751:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!fsidx.open(IO_WriteOnly)) break; data/doxygen-1.8.20/src/htags.cpp:130:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/htmldocvisitor.cpp:56:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *contexts[10] = data/doxygen-1.8.20/src/htmldocvisitor.cpp:96: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 enc[4]; data/doxygen-1.8.20/src/htmldocvisitor.cpp:581:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmldocvisitor.cpp:614:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlgen.cpp:326: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(r,p,l); data/doxygen-1.8.20/src/htmlgen.cpp:331: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(r,begin,beginLen); data/doxygen-1.8.20/src/htmlgen.cpp:724: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 lineNumber[maxLineNrStr]; data/doxygen-1.8.20/src/htmlgen.cpp:725: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 lineAnchor[maxLineNrStr]; data/doxygen-1.8.20/src/htmlgen.cpp:987:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlgen.cpp:1062:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlgen.cpp:1525: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 cs[2]; data/doxygen-1.8.20/src/htmlgen.cpp:2624: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). if (cf.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlgen.cpp:2654:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlgen.cpp:2691: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). if (sf.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlgen.cpp:2707:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlgen.cpp:2757: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). if (sf.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlhelp.cpp:454: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). if (!p->cf.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlhelp.cpp:470: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). if (!p->kf.open(IO_WriteOnly)) data/doxygen-1.8.20/src/htmlhelp.cpp:507:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/image.cpp:56:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charWidth[numChars] = data/doxygen-1.8.20/src/image.cpp:73:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fontRaw[charSetWidth*charHeight] = { data/doxygen-1.8.20/src/index.cpp:1935:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[11]; // max 0x12345678 + '\0' data/doxygen-1.8.20/src/index.cpp:5271:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/latexdocvisitor.cpp:40:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *secLabels[maxLevels] = data/doxygen-1.8.20/src/latexdocvisitor.cpp:154: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[2]; str[1]=0; data/doxygen-1.8.20/src/latexdocvisitor.cpp:389:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/latexdocvisitor.cpp:416:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/latexgen.cpp:290:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/latexgen.cpp:388:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/latexgen.cpp:1826: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 cs[2]; data/doxygen-1.8.20/src/mangen.cpp:434:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( !linkfile.open( IO_ReadOnly ) ) data/doxygen-1.8.20/src/mangen.cpp:436:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( linkfile.open( IO_WriteOnly ) ) data/doxygen-1.8.20/src/markdown.cpp:84: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 data_s[DATA_BUFSIZE*2+1] = ""; // worst case each input char outputs 2 chars + 0 terminator. data/doxygen-1.8.20/src/markdown.cpp:248: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(result.rawData(),data,size); data/doxygen-1.8.20/src/memberdef.cpp:4261: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[20]; data/doxygen-1.8.20/src/memberdef.cpp:4455:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[20]; data/doxygen-1.8.20/src/memberdef.cpp:4456: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(key,"%p",(void*)d); data/doxygen-1.8.20/src/memberdef.cpp:4464:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[20]; data/doxygen-1.8.20/src/memberdef.cpp:4465: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(key,"%p",(void*)d); data/doxygen-1.8.20/src/message.cpp:95: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). warnFile = Portable::fopen(Config_getString(WARN_LOGFILE),"w"); data/doxygen-1.8.20/src/msc.cpp:37: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). if (!f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/msc.cpp:45:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[maxLineLen]; data/doxygen-1.8.20/src/msc.cpp:46:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char url[maxLineLen]; data/doxygen-1.8.20/src/msc.cpp:47: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 ref[maxLineLen]; data/doxygen-1.8.20/src/outputgen.cpp:47:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!m_file->open(IO_WriteOnly)) data/doxygen-1.8.20/src/perlmodgen.cpp:152:25: [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). inline PerlModOutput &open(char c, const char *s = 0) { iopen(c, s); return *this; } data/doxygen-1.8.20/src/perlmodgen.cpp:168:55: [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). inline PerlModOutput &openList(const char *s = 0) { open('[', s); return *this; } data/doxygen-1.8.20/src/perlmodgen.cpp:170:56: [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). inline PerlModOutput &openHash(const char *s = 0 ) { open('{', s); return *this; } data/doxygen-1.8.20/src/perlmodgen.cpp:196: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 m_spaces[PERLOUTPUT_MAX_INDENTATION * 2 + 2]; data/doxygen-1.8.20/src/perlmodgen.cpp:2265: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/plantuml.cpp:284:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/plantuml.cpp:340:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/portable.cpp:74:12: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. if ((pid=vfork())<0) data/doxygen-1.8.20/src/portable.cpp:106: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 * argv[4]; data/doxygen-1.8.20/src/portable.cpp:314:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *Portable::fopen(const char *fileName,const char *mode) data/doxygen-1.8.20/src/portable.cpp:321:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return ::fopen(fileName,mode); data/doxygen-1.8.20/src/portable.h:29:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE * fopen(const char *fileName,const char *mode); data/doxygen-1.8.20/src/qhp.cpp:92: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). m_doc.open("QtHelpProject", rootAttributes); data/doxygen-1.8.20/src/qhp.cpp:102: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). m_doc.open("customFilter", tagAttributes); data/doxygen-1.8.20/src/qhp.cpp:112: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). m_doc.open("filterSection"); data/doxygen-1.8.20/src/qhp.cpp:126: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). m_toc.open("toc"); data/doxygen-1.8.20/src/qhp.cpp:136: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). m_toc.open("section", attributes); data/doxygen-1.8.20/src/qhp.cpp:141: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). m_index.open("keywords"); data/doxygen-1.8.20/src/qhp.cpp:142: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). m_files.open("files"); data/doxygen-1.8.20/src/qhp.cpp:169:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/qhp.cpp:325:13: [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). m_toc.open("section", attributes); data/doxygen-1.8.20/src/qhpxmlwriter.cpp:52:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void QhpXmlWriter::open(char const * elementName, data/doxygen-1.8.20/src/qhpxmlwriter.h:35:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open(char const * elementName, data/doxygen-1.8.20/src/resourcemgr.cpp:66: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). if (!f.open(IO_WriteOnly) || f.writeBlock((const char *)res.data,res.size)!=res.size) data/doxygen-1.8.20/src/resourcemgr.cpp:87:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly) && f.writeBlock((const char *)res->data,res->size)==res->size) data/doxygen-1.8.20/src/resourcemgr.cpp:132:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/resourcemgr.cpp:135:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf.rawData(),res->data,res->size); data/doxygen-1.8.20/src/resourcemgr.cpp:153:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/resourcemgr.cpp:156:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf.rawData(),res->data,res->size); data/doxygen-1.8.20/src/resourcemgr.cpp:189: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(result.rawData(),res->data,res->size); data/doxygen-1.8.20/src/rtfdocvisitor.cpp:344:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/rtfdocvisitor.cpp:369:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_WriteOnly)) data/doxygen-1.8.20/src/rtfgen.cpp:1858: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 cs[2]; data/doxygen-1.8.20/src/rtfgen.cpp:2383: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(enc.data(),s,l); data/doxygen-1.8.20/src/rtfgen.cpp:2395: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 esc[10]; data/doxygen-1.8.20/src/rtfgen.cpp:2396: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(esc,"\\'%X",c); // escape sequence for SBCS and DBCS(1st&2nd bytes). data/doxygen-1.8.20/src/rtfgen.cpp:2422: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). if (!f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/rtfgen.cpp:2603:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/rtfgen.cpp:2661:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!outf.open(IO_WriteOnly)) data/doxygen-1.8.20/src/rtfgen.cpp:2851:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[10]; data/doxygen-1.8.20/src/rtfgen.cpp:2852:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s,"\\'%X",c); data/doxygen-1.8.20/src/rtfstyle.cpp:235:18: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_index = (int)atol(ref + 2); ASSERT(m_index > 0); data/doxygen-1.8.20/src/rtfstyle.cpp:259:18: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_index = (int)atol(s + 2); ASSERT(m_index > 0); data/doxygen-1.8.20/src/rtfstyle.cpp:308:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_ReadOnly)) data/doxygen-1.8.20/src/rtfstyle.cpp:355:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(IO_ReadOnly)) data/doxygen-1.8.20/src/searchindex.cpp:346:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/searchindex.cpp:537:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/searchindex.cpp:724: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 val[4]; data/doxygen-1.8.20/src/searchindex.cpp:725: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(val,"_%02x",(uchar)c); data/doxygen-1.8.20/src/searchindex.cpp:964:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (outFile.open(IO_WriteOnly) && dataOutFile.open(IO_WriteOnly)) data/doxygen-1.8.20/src/searchindex.cpp:964:53: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (outFile.open(IO_WriteOnly) && dataOutFile.open(IO_WriteOnly)) data/doxygen-1.8.20/src/searchindex.cpp:1207:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/searchindex.cpp:1272:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/template.cpp:1119:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[11]; // 0x12345678 + '\0' data/doxygen-1.8.20/src/template.cpp:2084:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[2]; data/doxygen-1.8.20/src/template.cpp:3701:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/template.cpp:5098: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). if (f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/translator_sk.h:1830: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). if (atoi(number) >= 5) data/doxygen-1.8.20/src/util.cpp:116: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 cs[2]; data/doxygen-1.8.20/src/util.cpp:276: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 result[maxMarkerStrLen]; data/doxygen-1.8.20/src/util.cpp:2503: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). fileOpened=f.open(IO_ReadOnly,stdin); data/doxygen-1.8.20/src/util.cpp:4502: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 addr[maxAddrSize]; data/doxygen-1.8.20/src/util.cpp:4777:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ids[5]; data/doxygen-1.8.20/src/util.cpp:5241: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 encChar[4]; data/doxygen-1.8.20/src/util.cpp:7100: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). atoi(aliasValue.mid(markerStart,markerLen)),markerLen+1)); data/doxygen-1.8.20/src/util.cpp:7116:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi(aliasValue.mid(markerStart,markerLen)),markerLen+1)); data/doxygen-1.8.20/src/util.cpp:7333: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 cmd[40960]; data/doxygen-1.8.20/src/util.cpp:7335: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. p += sprintf(p,"/usr/bin/atos -p %d ", (int)getpid()); data/doxygen-1.8.20/src/util.cpp:7338:10: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. p += sprintf(p,"%p ", backtraceFrames[x]); data/doxygen-1.8.20/src/util.cpp:7343: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 resBuf[512]; data/doxygen-1.8.20/src/util.cpp:7404:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!f.open(IO_ReadOnly)) data/doxygen-1.8.20/src/util.cpp:7429:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[bufSize]; data/doxygen-1.8.20/src/util.cpp:7626:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/util.cpp:7673: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 colStr[8]; data/doxygen-1.8.20/src/util.cpp:7696: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). if (sf.open(IO_ReadOnly)) data/doxygen-1.8.20/src/util.cpp:7700:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (df.open(IO_WriteOnly)) data/doxygen-1.8.20/src/util.cpp:8396:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fileOpened = f.open(IO_WriteOnly,stdout); data/doxygen-1.8.20/src/util.cpp:8410:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fileOpened = f.open(IO_WriteOnly|IO_Translate); data/doxygen-1.8.20/src/util.cpp:8435:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char minus[4]; // Superscript minus data/doxygen-1.8.20/src/util.cpp:8437:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sup2[3]; // Superscript two data/doxygen-1.8.20/src/util.cpp:8439:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sup3[3]; data/doxygen-1.8.20/src/vhdldocgen.cpp:200: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/vhdldocgen.cpp:1246: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[12]; data/doxygen-1.8.20/src/vhdldocgen.cpp:1247: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",recordCounter++); data/doxygen-1.8.20/src/vhdldocgen.cpp:1259: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[8]; data/doxygen-1.8.20/src/vhdldocgen.cpp:1261: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",stringCounter++); data/doxygen-1.8.20/src/vhdldocgen.cpp:1278: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[2]; data/doxygen-1.8.20/src/vhdldocgen.cpp:3627: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmldocvisitor.cpp:925:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (inImage.open(IO_ReadOnly)) data/doxygen-1.8.20/src/xmldocvisitor.cpp:927:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (outImage.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:167: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1255: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1455: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1538: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1675: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1738: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1791: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1921: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/src/xmlgen.cpp:1957: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). if (!f.open(IO_WriteOnly)) data/doxygen-1.8.20/testing/085_tooltip.cpp:12:15: [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 ((unit = fopen(fn, mod)) == NULL) \ data/doxygen-1.8.20/vhdlparser/vhdlstring.h:43: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(m_str,other.m_str,other.m_len); data/doxygen-1.8.20/vhdlparser/vhdlstring.h:53:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m_str,other.m_str,other.m_len); data/doxygen-1.8.20/vhdlparser/vhdlstring.h:63: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(m_str,s,m_len+1); data/doxygen-1.8.20/vhdlparser/vhdlstring.h:68: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(m_str,s,size); data/doxygen-1.8.20/vhdlparser/vhdlstring.h:83:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(m_str+oldlen,s,m_len-oldlen-1); data/doxygen-1.8.20/vhdlparser/vhdlstring.h:105: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(s,m_str+pos,r); data/doxygen-1.8.20/vhdlparser/vhdlstring.h:115:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. VhdlString &operator+=(char c) { char s[2]; s[0]=c; s[1]=0; return append(s); } data/doxygen-1.8.20/examples/structcmd.h:57:5: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int read(int,char *,size_t); data/doxygen-1.8.20/libmscgen/gd.c:1970: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). l = (int)strlen((char *) s); data/doxygen-1.8.20/libmscgen/gd.c:1985: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). l = (int)strlen((char *) s); data/doxygen-1.8.20/libmscgen/mscgen_api.c:251:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = l + strlen(l); data/doxygen-1.8.20/libmscgen/mscgen_api.c:641:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lineLen = (unsigned int)(strlen(string) - (lineStart - string)); data/doxygen-1.8.20/libmscgen/mscgen_gd_out.c:183: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). const unsigned int l = (unsigned int)strlen(string); data/doxygen-1.8.20/libversion/fullversion.cpp:11:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fullVersionString,getDoxygenVersion(),BUF_SIZE-1); data/doxygen-1.8.20/libversion/fullversion.cpp:12: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(getGitVersion())>0) data/doxygen-1.8.20/qtools/qcstring.cpp:491:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( dst, src, len ); data/doxygen-1.8.20/qtools/qcstring.cpp:682: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). result.resize((int)strlen(result.data())+1); data/doxygen-1.8.20/qtools/qcstring.h:50: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). { return (uint)strlen(str); } data/doxygen-1.8.20/qtools/qcstring.h:53: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 str ? (uint)strlen(str) : 0; } data/doxygen-1.8.20/qtools/qdatastream.cpp:733: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). dev->writeBlock( buf, (int)strlen(buf) ); data/doxygen-1.8.20/qtools/qdatastream.cpp:764: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). dev->writeBlock( buf, (int)strlen(buf) ); data/doxygen-1.8.20/qtools/qdatastream.cpp:796: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). dev->writeBlock( buf, (int)strlen(buf) ); data/doxygen-1.8.20/qtools/qdatastream.cpp:835: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). dev->writeBlock( buf, (int)strlen(buf) ); data/doxygen-1.8.20/qtools/qdatastream.cpp:865: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). dev->writeBlock( buf, (int)strlen(buf) ); data/doxygen-1.8.20/qtools/qfile.cpp:363:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ( (ch = getc( fh )) != EOF ) data/doxygen-1.8.20/qtools/qfile_unix.cpp:224:6: [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( perm2, "t" ); data/doxygen-1.8.20/qtools/qfile_unix.cpp:227:6: [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( perm2, "b" ); data/doxygen-1.8.20/qtools/qfile_win32.cpp:228:6: [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( perm2, "t" ); data/doxygen-1.8.20/qtools/qfile_win32.cpp:230:6: [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( perm2, "b" ); data/doxygen-1.8.20/qtools/qfiledefs_p.h:214:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define READ ::read data/doxygen-1.8.20/qtools/qgdict.cpp:167:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream& QGDict::read( QDataStream &s, QCollection::Item &item ) data/doxygen-1.8.20/qtools/qgdict.cpp:953:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return dict.read( s ); data/doxygen-1.8.20/qtools/qgdict.cpp:970:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &QGDict::read( QDataStream &s ) data/doxygen-1.8.20/qtools/qgdict.cpp:982:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( s, d ); data/doxygen-1.8.20/qtools/qgdict.cpp:990:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( s, d ); data/doxygen-1.8.20/qtools/qgdict.cpp:1000:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( s, d ); data/doxygen-1.8.20/qtools/qgdict.cpp:1008:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( s, d ); data/doxygen-1.8.20/qtools/qgdict.h:115:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &read( QDataStream & ); data/doxygen-1.8.20/qtools/qgdict.h:145:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual QDataStream &read( QDataStream &, QCollection::Item & ); data/doxygen-1.8.20/qtools/qglist.cpp:140:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &QGList::read( QDataStream &s, QCollection::Item &item ) data/doxygen-1.8.20/qtools/qglist.cpp:979:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return list.read( s ); data/doxygen-1.8.20/qtools/qglist.cpp:992:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &QGList::read( QDataStream &s ) data/doxygen-1.8.20/qtools/qglist.cpp:999:2: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( s, d ); data/doxygen-1.8.20/qtools/qglist.h:76:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &read( QDataStream & ); // read list from stream data/doxygen-1.8.20/qtools/qglist.h:130:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual QDataStream &read( QDataStream &, QCollection::Item & ); data/doxygen-1.8.20/qtools/qgvector.cpp:125:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &QGVector::read( QDataStream &s, Item &d ) data/doxygen-1.8.20/qtools/qgvector.cpp:594:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return vec.read( s ); data/doxygen-1.8.20/qtools/qgvector.cpp:606:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &QGVector::read( QDataStream &s ) // read vector from stream data/doxygen-1.8.20/qtools/qgvector.cpp:614:2: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read( s, d ); data/doxygen-1.8.20/qtools/qgvector.h:51:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &read( QDataStream & ); // read vector from stream data/doxygen-1.8.20/qtools/qgvector.h:99:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual QDataStream &read( QDataStream &, Item & ); data/doxygen-1.8.20/qtools/qstring.cpp:12871:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(in,f.latin1(),63); data/doxygen-1.8.20/qtools/qstrlist.h:71:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &read( QDataStream &s, QCollection::Item &d ) data/doxygen-1.8.20/qtools/qstrvec.h:68:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QDataStream &read( QDataStream &s, Item &d ) data/doxygen-1.8.20/qtools/qtextstream.cpp:1516:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QString QTextStream::read() data/doxygen-1.8.20/qtools/qtextstream.h:114:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QString read(); data/doxygen-1.8.20/qtools/qxml.cpp:829:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). input += stream->read(); data/doxygen-1.8.20/src/clangparser.cpp:398:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int sl = strlen(symbol); data/doxygen-1.8.20/src/clangparser.cpp:422: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). int tl = strlen(ts); data/doxygen-1.8.20/src/clangparser.cpp:439: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). tl = ts ? strlen(ts) : 0; data/doxygen-1.8.20/src/docbookgen.cpp:159:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). m_col+=(int)strlen(name); data/doxygen-1.8.20/src/docbookgen.cpp:170: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). m_col+=(int)strlen(name); data/doxygen-1.8.20/src/dotrunner.cpp:120: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 bblen = (int)strlen(bb); data/doxygen-1.8.20/src/doxygen.cpp:2109:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). md->setReadAccessor(root->read); data/doxygen-1.8.20/src/doxygen.cpp:5824:22: [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. sameClass = std::equal(mn->begin()+1,mn->end(),mn->begin(), data/doxygen-1.8.20/src/doxygen.cpp:10503: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(getGitVersion())>0) data/doxygen-1.8.20/src/entry.cpp:89:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read = e.read; data/doxygen-1.8.20/src/entry.h:276:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCString read; //!< property read accessor data/doxygen-1.8.20/src/growbuf.h:33:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uint l=(uint)strlen(s); data/doxygen-1.8.20/src/growbuf.h:42:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uint l=(uint)strlen(s); data/doxygen-1.8.20/src/growbuf.h:45:27: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&m_str[m_pos],s,n); data/doxygen-1.8.20/src/htmlgen.cpp:169:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!qstrncmp(data + i, "newcommand", (uint)strlen("newcommand"))) data/doxygen-1.8.20/src/htmlgen.cpp:171: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). i += (int)strlen("newcommand"); data/doxygen-1.8.20/src/htmlgen.cpp:173: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). else if (!qstrncmp(data + i, "renewcommand", (uint)strlen("renewcommand"))) data/doxygen-1.8.20/src/htmlgen.cpp:175: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). i += (int)strlen("renewcommand"); data/doxygen-1.8.20/src/memberdef.cpp:1307:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QCString read; // property read accessor data/doxygen-1.8.20/src/memberdef.cpp:5011:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return m_impl->read; data/doxygen-1.8.20/src/message.cpp:186: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). l=(int)strlen(prefix); data/doxygen-1.8.20/src/message.cpp:275: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 (int i = 0; i < (int)strlen(error_str); i++) fprintf(warnFile, " "); data/doxygen-1.8.20/src/portable.cpp:469:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(1000*ms); data/doxygen-1.8.20/src/util.cpp:7378:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(srcBuf.data(),tmpBuf.data(),newSize); data/doxygen-1.8.20/src/vhdljjparser.cpp:137: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). bool inLine = (fileName==0 || strlen(fileName)==0); data/doxygen-1.8.20/vhdlparser/CharStream.cc:16:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual size_t read(JJChar *bufptr, int offset, size_t len) { data/doxygen-1.8.20/vhdlparser/CharStream.cc:163:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t i = inputStream->read(buffer, maxNextCharInd, available - maxNextCharInd); data/doxygen-1.8.20/vhdlparser/JavaCC.h:30:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). virtual size_t read(JAVACC_CHAR_TYPE *buffer, int offset, size_t len) { return 0; } data/doxygen-1.8.20/vhdlparser/vhdlstring.h:61:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). m_len = (int)strlen(s); data/doxygen-1.8.20/vhdlparser/vhdlstring.h:90:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return append(s,(int)strlen(s)); ANALYSIS SUMMARY: Hits = 801 Lines analyzed = 353147 in approximately 8.14 seconds (43369 lines/second) Physical Source Lines of Code (SLOC) = 259366 Hits@level = [0] 477 [1] 80 [2] 452 [3] 20 [4] 242 [5] 7 Hits@level+ = [0+] 1278 [1+] 801 [2+] 721 [3+] 269 [4+] 249 [5+] 7 Hits/KSLOC@level+ = [0+] 4.9274 [1+] 3.0883 [2+] 2.77986 [3+] 1.03714 [4+] 0.960033 [5+] 0.0269889 Dot directories skipped = 2 (--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.