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/gtkmathview-0.8.0/auto/dumpEntitiesTable.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/SVG_libxml2_StreamRenderingContext.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/Fragment.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/SVG_EvalRenderingContext.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/Location.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/Model.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/Scanner.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/SMS.cc
Examining data/gtkmathview-0.8.0/mathmlsvg/main.cc
Examining data/gtkmathview-0.8.0/mathmlps/main.cc
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_custom_reader.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_custom_reader.cc
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_decorators.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_gmetadom.cc
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_libxml2_reader.cc
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_decorators_common.cc
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_decorators_common.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_libxml2.cc
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_gmetadom.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_libxml2_reader.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_libxml2.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_common.h
Examining data/gtkmathview-0.8.0/src/widget/gtkmathview_common.cc
Examining data/gtkmathview-0.8.0/src/frontend/libxml2_reader/libxml2_reader_Builder.cc
Examining data/gtkmathview-0.8.0/src/frontend/libxml2_reader/libxmlXmlReader.cc
Examining data/gtkmathview-0.8.0/src/frontend/libxml2_reader/libxml2_reader_Setup.cc
Examining data/gtkmathview-0.8.0/src/frontend/custom_reader/customXmlReader.cc
Examining data/gtkmathview-0.8.0/src/frontend/custom_reader/c_customXmlReader.h
Examining data/gtkmathview-0.8.0/src/frontend/custom_reader/custom_reader_Builder.cc
Examining data/gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Builder.cc
Examining data/gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Setup.cc
Examining data/gtkmathview-0.8.0/src/frontend/libxml2/libxml2_Model.cc
Examining data/gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Builder.cc
Examining data/gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Model.cc
Examining data/gtkmathview-0.8.0/src/frontend/gmetadom/gmetadom_Setup.cc
Examining data/gtkmathview-0.8.0/src/frontend/gmetadom/MathMLEntitiesTable.cc
Examining data/gtkmathview-0.8.0/src/frontend/common/Builder.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_StreamRenderingContext.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_Backend.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_InkArea.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_BoxGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_ColorArea.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_TFMComputerModernShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/FontDataBase.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_BackgroundArea.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_RenderingContext.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_MathGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_TFMComputerModernMathGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/PS_TFMGlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/ps/T1_FontDataBase.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_AdobeShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_T1ComputerModernShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoGlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_Backend.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_MathGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_ColorArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_t1lib_T1GlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoFontManager.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_RenderingContext.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_BackgroundArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_InkArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_WrapperArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoLayoutLineArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoLayoutArea.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoComputerModernShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_BoxGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/gtk/Gtk_DefaultPangoShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/common/ComputerModernFamily.cc
Examining data/gtkmathview-0.8.0/src/backend/common/BoxGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/common/VerticalFillerArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/ShapingContext.cc
Examining data/gtkmathview-0.8.0/src/backend/common/ShaperManager.cc
Examining data/gtkmathview-0.8.0/src/backend/common/AreaFactory.cc
Examining data/gtkmathview-0.8.0/src/backend/common/Backend.cc
Examining data/gtkmathview-0.8.0/src/backend/common/t1lib_TFM_T1Font.cc
Examining data/gtkmathview-0.8.0/src/backend/common/HorizontalSpaceArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/NullShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/common/ShiftArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/TFMFont.cc
Examining data/gtkmathview-0.8.0/src/backend/common/LinearContainerArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/WrapperArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/VerticalSpaceArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/InkArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/HorizontalFillerArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/TFMComputerModernShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/common/GlyphWrapperArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/AreaIdAux.cc
Examining data/gtkmathview-0.8.0/src/backend/common/t1lib_T1Font.cc
Examining data/gtkmathview-0.8.0/src/backend/common/OverlapArrayArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/TFMGlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/HideArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/Area.cc
Examining data/gtkmathview-0.8.0/src/backend/common/ColorArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/GraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/common/StepArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/AreaId.cc
Examining data/gtkmathview-0.8.0/src/backend/common/TFMComputerModernMathGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/common/TFMFontManager.cc
Examining data/gtkmathview-0.8.0/src/backend/common/VerticalArrayArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/Shaper.cc
Examining data/gtkmathview-0.8.0/src/backend/common/t1lib_TFM_T1FontManager.cc
Examining data/gtkmathview-0.8.0/src/backend/common/GlyphStringArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/BoxedLayoutArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/BinContainerArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/HorizontalArrayArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/BoxArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/IdArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/CombinedGlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/SimpleArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/IgnoreArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/t1lib_T1FontManager.cc
Examining data/gtkmathview-0.8.0/src/backend/common/FormattingContext.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmsy7.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmss17.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmsy10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmss12.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmi6.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msbm9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmi7.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmi9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmsy8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msam9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmti12.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr7.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmssi12.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmssi9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbx12.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmssi17.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msam7.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmssi10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmtt9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmss9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbsy10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbx6.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr6.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmti7.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbx8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/TFMManager.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbx9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr5.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msbm5.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmi5.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmtt12.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msbm7.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmb10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmex9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr17.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msbm10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmtt10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmi8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmti8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmti9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msam10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmib10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmssbx10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msbm6.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/TFM.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmti10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msam8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmss10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmsy6.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msbm8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmi12.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msam6.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmsy5.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmss8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmex10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbx5.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmtt8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/msam5.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbx10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmmi10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbx7.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmsy9.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmr12.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmssi8.cc
Examining data/gtkmathview-0.8.0/src/backend/common/tfm/cmbxti10.cc
Examining data/gtkmathview-0.8.0/src/backend/common/MathGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/common/GlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/common/SpaceShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/common/ComputerModernShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/common/StandardSymbolsShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_MathGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_TTF_TFMComputerModernShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_Backend.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_TFMComputerModernShaper.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_TFMComputerModernMathGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_BoxGraphicDevice.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_InkArea.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_StreamRenderingContext.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_RenderingContext.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_TFMGlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_ColorArea.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_TTF_TFMGlyphArea.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_WrapperArea.cc
Examining data/gtkmathview-0.8.0/src/backend/svg/SVG_BackgroundArea.cc
Examining data/gtkmathview-0.8.0/src/view/gmetadom_MathView.cc
Examining data/gtkmathview-0.8.0/src/view/libxml2_reader_MathView.cc
Examining data/gtkmathview-0.8.0/src/view/custom_reader_MathView.cc
Examining data/gtkmathview-0.8.0/src/view/libxml2_MathView.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLPhantomElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLMarkNode.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLIdentifierElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLTextElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLBinContainerElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLUnderOverElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLSpaceElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLLinearContainerElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLContainerElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/traverseAux.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLmathElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLNamespaceContext.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLAlignGroupElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLInferredRowElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLPaddedElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLTableFormatter.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLTextNode.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLStringLitElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLFractionElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLRadicalElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLFunctionApplicationNode.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLOperatorDictionary.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLInvisibleTimesNode.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLOperatorElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLValueConversion.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLEmbellishment.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLStringNode.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLTableElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLScriptElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLTokenElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLMultiScriptsElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLNode.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLRowElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLEncloseElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLActionElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLErrorElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLAlignMarkElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLNormalizingContainerElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLAttributeSignatures.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLTableContentFactory.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLNumberElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLTableCellElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLGlyphNode.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLStyleElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/MathMLDummyElement.cc
Examining data/gtkmathview-0.8.0/src/engine/mathml/mathVariantAux.cc
Examining data/gtkmathview-0.8.0/src/engine/adapters/BoxMLMathMLAdapter.cc
Examining data/gtkmathview-0.8.0/src/engine/adapters/MathMLBoxMLAdapter.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLActionElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLGroupElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLNamespaceContext.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLLayoutElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLHVElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLTextElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLDecorElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLSpaceElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLAttributeSignatures.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLVElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLAtElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLHElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLInkElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLLinearContainerElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLboxElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLHOVElement.cc
Examining data/gtkmathview-0.8.0/src/engine/boxml/BoxMLBinContainerElement.cc
Examining data/gtkmathview-0.8.0/src/engine/common/AttributeSet.cc
Examining data/gtkmathview-0.8.0/src/engine/common/AttributeSignature.cc
Examining data/gtkmathview-0.8.0/src/engine/common/Node.cc
Examining data/gtkmathview-0.8.0/src/engine/common/Attribute.cc
Examining data/gtkmathview-0.8.0/src/engine/common/NamespaceContext.cc
Examining data/gtkmathview-0.8.0/src/engine/common/prefix.c
Examining data/gtkmathview-0.8.0/src/engine/common/prefix.h
Examining data/gtkmathview-0.8.0/src/engine/common/Element.cc
Examining data/gtkmathview-0.8.0/src/engine/common/View.cc
Examining data/gtkmathview-0.8.0/src/dummy.cc
Examining data/gtkmathview-0.8.0/src/common/Configuration.cc
Examining data/gtkmathview-0.8.0/src/common/BoundingBoxAux.cc
Examining data/gtkmathview-0.8.0/src/common/BoundingBox.cc
Examining data/gtkmathview-0.8.0/src/common/LengthAux.cc
Examining data/gtkmathview-0.8.0/src/common/Utils.cc
Examining data/gtkmathview-0.8.0/src/common/String.cc
Examining data/gtkmathview-0.8.0/src/common/RGBColorAux.cc
Examining data/gtkmathview-0.8.0/src/common/Logger.cc
Examining data/gtkmathview-0.8.0/src/common/ValueConversion.cc
Examining data/gtkmathview-0.8.0/src/common/StringHash.cc
Examining data/gtkmathview-0.8.0/src/common/gmv_defines.h
Examining data/gtkmathview-0.8.0/src/common/token.cc
Examining data/gtkmathview-0.8.0/src/common/for_each_if.h
Examining data/gtkmathview-0.8.0/src/common/defs.h
Examining data/gtkmathview-0.8.0/src/common/PointAux.cc
Examining data/gtkmathview-0.8.0/src/common/Rectangle.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/MathVariantMap.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/script.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/bold-script.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/monospace.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/sans-serif.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/fraktur.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/bold-italic.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/bold-fraktur.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/sans-serif-bold-italic.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/double-struck.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/bold.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/italic.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/bold-sans-serif.cc
Examining data/gtkmathview-0.8.0/src/common/mathvariants/sans-serif-italic.cc
Examining data/gtkmathview-0.8.0/src/common/StringAux.cc
Examining data/gtkmathview-0.8.0/src/common/Clock.cc
Examining data/gtkmathview-0.8.0/src/common/AbstractLogger.cc
Examining data/gtkmathview-0.8.0/viewer/main.cc
Examining data/gtkmathview-0.8.0/viewer/test_loading_reader.c
Examining data/gtkmathview-0.8.0/viewer/test_rendering.cc
Examining data/gtkmathview-0.8.0/viewer/aux.cc
Examining data/gtkmathview-0.8.0/viewer/guiGTK.h
Examining data/gtkmathview-0.8.0/viewer/test_building.cc
Examining data/gtkmathview-0.8.0/viewer/guiGTK.c
Examining data/gtkmathview-0.8.0/viewer/dummy.cc
Examining data/gtkmathview-0.8.0/viewer/test_embedding.c
Examining data/gtkmathview-0.8.0/viewer/test_loading.c

FINAL RESULTS:

data/gtkmathview-0.8.0/mathmlps/main.cc:232:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(out, in);
data/gtkmathview-0.8.0/mathmlsvg/SMS.cc:161:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy((char *)xmlTmp, (char *)tmp.c_str());
data/gtkmathview-0.8.0/mathmlsvg/main.cc:221:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(out, in);
data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoFontManager.cc:37:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buffer, "-%s-%s-%s-%s-*--*-%d-75-75-*-*-%s",
data/gtkmathview-0.8.0/src/common/AbstractLogger.cc:55:7:  [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(buffer, 256, fmt, args);
data/gtkmathview-0.8.0/viewer/main.cc:77:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(appName, "mathmlviewer v%s", VERSION);
data/gtkmathview-0.8.0/mathmlps/main.cc:307:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (configPath == 0) configPath = getenv("GTKMATHVIEWCONF");
data/gtkmathview-0.8.0/mathmlsvg/main.cc:291:37:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (configPath == 0) configPath = getenv("GTKMATHVIEWCONF");
data/gtkmathview-0.8.0/src/backend/common/t1lib_T1FontManager.cc:37:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if (getenv("T1LIB_CONFIG") == NULL)
data/gtkmathview-0.8.0/src/widget/gtkmathview_common.cc:427:79:  [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.
  SmartPtr<Configuration> configuration = initConfiguration<MathView>(logger, getenv("GTKMATHVIEWCONF"));
data/gtkmathview-0.8.0/viewer/test_rendering.cc:90: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* configPath = getenv("GTKMATHVIEWCONF");
data/gtkmathview-0.8.0/mathmlps/main.cc:239:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(out, ".eps");
data/gtkmathview-0.8.0/mathmlsvg/main.cc:228:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(out, ".svg");
data/gtkmathview-0.8.0/src/backend/gtk/Gtk_PangoFontManager.cc:36:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buffer[128];
data/gtkmathview-0.8.0/src/common/AbstractLogger.cc:52:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      static char buffer[256];
data/gtkmathview-0.8.0/src/engine/common/prefix.c:110:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[5000];
data/gtkmathview-0.8.0/src/engine/common/prefix.c:116:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen ("/proc/self/maps", "r");
data/gtkmathview-0.8.0/src/engine/common/prefix.c:361: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, str1, len1);
data/gtkmathview-0.8.0/src/engine/common/prefix.c:362: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 + len1, str2, len2);
data/gtkmathview-0.8.0/src/engine/common/prefix.c:383: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, str, size);
data/gtkmathview-0.8.0/src/engine/mathml/MathMLAttributeSignatures.cc:35:34:  [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_ATTRIBUTE(MathML, Fenced, open, true, true, false, false, "(");
data/gtkmathview-0.8.0/viewer/aux.cc:218:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    idx = atoi(std::string(el.getAttribute("selection")).c_str());
data/gtkmathview-0.8.0/viewer/main.cc:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char appName[64];
data/gtkmathview-0.8.0/viewer/test_building.cc:91: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 rootand_str[256], a_str[256], b_str[256];
data/gtkmathview-0.8.0/viewer/test_building.cc:92: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(rootand_str, "%g", rootand);
data/gtkmathview-0.8.0/viewer/test_building.cc:93: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(a_str, "%g", a);
data/gtkmathview-0.8.0/viewer/test_building.cc:94: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(b_str, "%g", b);
data/gtkmathview-0.8.0/viewer/test_building.cc:103: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(rootand_str, "%g", rootand-1);
data/gtkmathview-0.8.0/mathmlps/main.cc:231: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).
    out = new char[strlen(in) + 5];
data/gtkmathview-0.8.0/mathmlps/main.cc:234: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).
    out = new char[strlen(in) - strlen(dot) + 5];
data/gtkmathview-0.8.0/mathmlps/main.cc:234: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).
    out = new char[strlen(in) - strlen(dot) + 5];
data/gtkmathview-0.8.0/mathmlps/main.cc:235:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(out, in, strlen(in) - strlen(dot));
data/gtkmathview-0.8.0/mathmlps/main.cc:235: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).
    strncpy(out, in, strlen(in) - strlen(dot));
data/gtkmathview-0.8.0/mathmlps/main.cc:235:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(out, in, strlen(in) - strlen(dot));
data/gtkmathview-0.8.0/mathmlps/main.cc:236: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).
    out[strlen(in) - strlen(dot)] = '\0';
data/gtkmathview-0.8.0/mathmlps/main.cc:236: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).
    out[strlen(in) - strlen(dot)] = '\0';
data/gtkmathview-0.8.0/mathmlsvg/main.cc:220: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).
    out = new char[strlen(in) + 5];
data/gtkmathview-0.8.0/mathmlsvg/main.cc:223: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).
    out = new char[strlen(in) - strlen(dot) + 5];
data/gtkmathview-0.8.0/mathmlsvg/main.cc:223: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).
    out = new char[strlen(in) - strlen(dot) + 5];
data/gtkmathview-0.8.0/mathmlsvg/main.cc:224:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(out, in, strlen(in) - strlen(dot));
data/gtkmathview-0.8.0/mathmlsvg/main.cc:224: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).
    strncpy(out, in, strlen(in) - strlen(dot));
data/gtkmathview-0.8.0/mathmlsvg/main.cc:224:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(out, in, strlen(in) - strlen(dot));
data/gtkmathview-0.8.0/mathmlsvg/main.cc:225: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).
    out[strlen(in) - strlen(dot)] = '\0';
data/gtkmathview-0.8.0/mathmlsvg/main.cc:225: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).
    out[strlen(in) - strlen(dot)] = '\0';
data/gtkmathview-0.8.0/src/engine/common/Attribute.cc:50:12:  [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.
Attribute::equal(const SmartPtr<Attribute>& attribute) const
data/gtkmathview-0.8.0/src/engine/common/AttributeSet.cc:55:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      if (!attr->equal(lb->second))
data/gtkmathview-0.8.0/src/engine/common/AttributeSet.cc:72:23:  [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.
      bool eq = attr->equal(p->second);
data/gtkmathview-0.8.0/src/engine/common/prefix.c:147:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len = strlen (path);
data/gtkmathview-0.8.0/src/engine/common/prefix.c:357: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).
	len1 = strlen (str1);
data/gtkmathview-0.8.0/src/engine/common/prefix.c:358: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).
	len2 = strlen (str2);
data/gtkmathview-0.8.0/src/engine/common/prefix.c:378:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (str);
data/gtkmathview-0.8.0/viewer/guiGTK.c:201: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(name) > 40) name += strlen(name) - 40;
data/gtkmathview-0.8.0/viewer/guiGTK.c:201: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).
  if (strlen(name) > 40) name += strlen(name) - 40;

ANALYSIS SUMMARY:

Hits = 53
Lines analyzed = 58160 in approximately 1.79 seconds (32581 lines/second)
Physical Source Lines of Code (SLOC) = 45107
Hits@level = [0]  31 [1]  25 [2]  17 [3]   5 [4]   6 [5]   0
Hits@level+ = [0+]  84 [1+]  53 [2+]  28 [3+]  11 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 1.86224 [1+] 1.17498 [2+] 0.620746 [3+] 0.243865 [4+] 0.133017 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.