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/fontmatrix-0.9.99/dodict/dodict.cpp Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shaper.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shape.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-buffer.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shaper.cpp Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-hangul.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-dump.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-buffer.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gsub-private.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-dump-main.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shaper-all.cpp Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gpos-private.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-dump.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gdef.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-myanmar.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gpos.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gdef-private.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-open.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-impl.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shaper-private.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-stream.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-thai.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-stream-private.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gdef.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-impl.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-open-private.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-arabic.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-tibetan.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-buffer-private.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-stream.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-khmer.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gpos.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-hebrew.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-indic.cpp Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gsub.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-open.c Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-external.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-global.h Examining data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-gsub.h Examining data/fontmatrix-0.9.99/src/remotedir.h Examining data/fontmatrix-0.9.99/src/filteritem.h Examining data/fontmatrix-0.9.99/src/activationwidgetitem.cpp Examining data/fontmatrix-0.9.99/src/aboutwidget.h Examining data/fontmatrix-0.9.99/src/fminfodisplay.cpp Examining data/fontmatrix-0.9.99/src/typotekadaptator.cpp Examining data/fontmatrix-0.9.99/src/playwidget.h Examining data/fontmatrix-0.9.99/src/fmactivationreport.h Examining data/fontmatrix-0.9.99/src/helpbrowser.cpp Examining data/fontmatrix-0.9.99/src/fmbaseshaper.h Examining data/fontmatrix-0.9.99/src/samplewidget.h Examining data/fontmatrix-0.9.99/src/helpbrowser.h Examining data/fontmatrix-0.9.99/src/fmplayground.cpp Examining data/fontmatrix-0.9.99/src/fmsharestruct.h Examining data/fontmatrix-0.9.99/src/fmdumpinfo.h Examining data/fontmatrix-0.9.99/src/filteritem.cpp Examining data/fontmatrix-0.9.99/src/treeitem.cpp Examining data/fontmatrix-0.9.99/src/fmpaths.cpp Examining data/fontmatrix-0.9.99/src/fmfreetypelib.cpp Examining data/fontmatrix-0.9.99/src/floatingwidgettoolbar.cpp Examining data/fontmatrix-0.9.99/src/systray.cpp Examining data/fontmatrix-0.9.99/src/samplewidget.cpp Examining data/fontmatrix-0.9.99/src/pangoshaper.h Examining data/fontmatrix-0.9.99/src/fmfontcompareview.cpp Examining data/fontmatrix-0.9.99/src/QHexView.h Examining data/fontmatrix-0.9.99/src/fmutils.cpp Examining data/fontmatrix-0.9.99/src/fmfreetypelib.h Examining data/fontmatrix-0.9.99/src/treeitem.h Examining data/fontmatrix-0.9.99/src/fmfontextract.cpp Examining data/fontmatrix-0.9.99/src/filtertag.cpp Examining data/fontmatrix-0.9.99/src/fmaltselector.cpp Examining data/fontmatrix-0.9.99/src/mainviewwidget.cpp Examining data/fontmatrix-0.9.99/src/fontitem.h Examining data/fontmatrix-0.9.99/src/metawidget.cpp Examining data/fontmatrix-0.9.99/src/schelptreemodel.h Examining data/fontmatrix-0.9.99/src/savedata.h Examining data/fontmatrix-0.9.99/src/filtertag.h Examining data/fontmatrix-0.9.99/src/fmsampletextview.cpp Examining data/fontmatrix-0.9.99/src/fmaltcontext.h Examining data/fontmatrix-0.9.99/src/m17nshaper.h Examining data/fontmatrix-0.9.99/src/importtags.h Examining data/fontmatrix-0.9.99/src/fmglyphhighlight.cpp Examining data/fontmatrix-0.9.99/src/dumpdialog.h Examining data/fontmatrix-0.9.99/src/fmfontstrings.h Examining data/fontmatrix-0.9.99/src/fmpdffontextractor.cpp Examining data/fontmatrix-0.9.99/src/systray.h Examining data/fontmatrix-0.9.99/src/tagswidget_listmodel.cpp Examining data/fontmatrix-0.9.99/src/fmscriptconsole.cpp Examining data/fontmatrix-0.9.99/src/fontbookdialog.cpp Examining data/fontmatrix-0.9.99/src/fmplayground.h Examining data/fontmatrix-0.9.99/src/helpwidget.h Examining data/fontmatrix-0.9.99/src/tagseteditor.cpp Examining data/fontmatrix-0.9.99/src/fmpaths.h Examining data/fontmatrix-0.9.99/src/fmshaper.cpp Examining data/fontmatrix-0.9.99/src/fmkernfeat.h Examining data/fontmatrix-0.9.99/src/fmrepair.cpp Examining data/fontmatrix-0.9.99/src/glyphtosvghelper.cpp Examining data/fontmatrix-0.9.99/src/harfbuzzqtshaper.h Examining data/fontmatrix-0.9.99/src/langs/unicode/uniblocks.cxx Examining data/fontmatrix-0.9.99/src/fontmatrixshaper.cpp Examining data/fontmatrix-0.9.99/src/fmmissingfonthelper.h Examining data/fontmatrix-0.9.99/src/fmfontcompareview.h Examining data/fontmatrix-0.9.99/src/fmmatchraster.cpp Examining data/fontmatrix-0.9.99/src/fmlayout.cpp Examining data/fontmatrix-0.9.99/src/fmpreviewlist.h Examining data/fontmatrix-0.9.99/src/fmscriptconsole.h Examining data/fontmatrix-0.9.99/src/fmvariants.cpp Examining data/fontmatrix-0.9.99/src/fmlayout.h Examining data/fontmatrix-0.9.99/src/opentypetags.h Examining data/fontmatrix-0.9.99/src/filterpanose.cpp Examining data/fontmatrix-0.9.99/src/fmfontextract.h Examining data/fontmatrix-0.9.99/src/floatingwidgetsregister.h Examining data/fontmatrix-0.9.99/src/prefspaneldialog.h Examining data/fontmatrix-0.9.99/src/fmprintdialog.cpp Examining data/fontmatrix-0.9.99/src/fontitem.cpp Examining data/fontmatrix-0.9.99/src/dataloader.cpp Examining data/fontmatrix-0.9.99/src/familywidget.cpp Examining data/fontmatrix-0.9.99/src/pangoshaper.cpp Examining data/fontmatrix-0.9.99/src/panosedialog.h Examining data/fontmatrix-0.9.99/src/panosewidget.cpp Examining data/fontmatrix-0.9.99/src/openclosearrow.cpp Examining data/fontmatrix-0.9.99/src/dataloader.h Examining data/fontmatrix-0.9.99/src/treemodel.h Examining data/fontmatrix-0.9.99/src/hyphenate/fmhyphenator.cpp Examining data/fontmatrix-0.9.99/src/hyphenate/hyphen.c Examining data/fontmatrix-0.9.99/src/hyphenate/hyphen.h Examining data/fontmatrix-0.9.99/src/hyphenate/fmhyphenator.h Examining data/fontmatrix-0.9.99/src/hyphenate/hnjalloc.c Examining data/fontmatrix-0.9.99/src/hyphenate/hnjalloc.h Examining data/fontmatrix-0.9.99/src/filtertagdialog.cpp Examining data/fontmatrix-0.9.99/src/activationwidget.cpp Examining data/fontmatrix-0.9.99/src/sampletoolbar.h Examining data/fontmatrix-0.9.99/src/filterbar.h Examining data/fontmatrix-0.9.99/src/openclosearrow.h Examining data/fontmatrix-0.9.99/src/browserwidget.h Examining data/fontmatrix-0.9.99/src/fontcomparewidget.h Examining data/fontmatrix-0.9.99/src/importtags.cpp Examining data/fontmatrix-0.9.99/src/panosedialog.cpp Examining data/fontmatrix-0.9.99/src/fmprintdialog.h Examining data/fontmatrix-0.9.99/src/activationwidgetitem.h Examining data/fontmatrix-0.9.99/src/browserwidget.cpp Examining data/fontmatrix-0.9.99/src/fontmatrixshaper.h Examining data/fontmatrix-0.9.99/src/shortcuts.cpp Examining data/fontmatrix-0.9.99/src/fontcomparewidget.cpp Examining data/fontmatrix-0.9.99/src/fmfloatingpreview.cpp Examining data/fontmatrix-0.9.99/src/aboutwidget.cpp Examining data/fontmatrix-0.9.99/src/tttableview.h Examining data/fontmatrix-0.9.99/src/fmactivationreport.cpp Examining data/fontmatrix-0.9.99/src/fmpython_w.cpp Examining data/fontmatrix-0.9.99/src/fontbookdialog.h Examining data/fontmatrix-0.9.99/src/fmvariants.h Examining data/fontmatrix-0.9.99/src/fmotf.cpp Examining data/fontmatrix-0.9.99/src/tagswidget.cpp Examining data/fontmatrix-0.9.99/src/tagswidget_listmodel.h Examining data/fontmatrix-0.9.99/src/importedfontsdialog.cpp Examining data/fontmatrix-0.9.99/src/tagswidget.h Examining data/fontmatrix-0.9.99/src/fmfontextractorbase.h Examining data/fontmatrix-0.9.99/src/sampletoolbar.cpp Examining data/fontmatrix-0.9.99/src/metawidget.h Examining data/fontmatrix-0.9.99/src/floatingwidget.cpp Examining data/fontmatrix-0.9.99/src/filtermeta.cpp Examining data/fontmatrix-0.9.99/src/fmbrowser.h Examining data/fontmatrix-0.9.99/src/main.cpp Examining data/fontmatrix-0.9.99/src/typotek.cpp Examining data/fontmatrix-0.9.99/src/panosemodel.h Examining data/fontmatrix-0.9.99/src/fmbaseshaper.cpp Examining data/fontmatrix-0.9.99/src/tagseteditor.h Examining data/fontmatrix-0.9.99/src/fmbrowser.cpp Examining data/fontmatrix-0.9.99/src/fmuniblocks.cpp Examining data/fontmatrix-0.9.99/src/parallelcoor.cpp Examining data/fontmatrix-0.9.99/src/helpwidget.cpp Examining data/fontmatrix-0.9.99/src/glyphtosvghelper.h Examining data/fontmatrix-0.9.99/src/fmencdata.h Examining data/fontmatrix-0.9.99/src/fmencdata.cpp Examining data/fontmatrix-0.9.99/src/floatingwidgettoolbar.h Examining data/fontmatrix-0.9.99/src/fontbook.h Examining data/fontmatrix-0.9.99/src/fmactivate.h Examining data/fontmatrix-0.9.99/src/fmutils.h Examining data/fontmatrix-0.9.99/src/fmnamelist.h Examining data/fontmatrix-0.9.99/src/typotekadaptator.h Examining data/fontmatrix-0.9.99/src/fmmatchraster.h Examining data/fontmatrix-0.9.99/src/mainviewwidget.h Examining data/fontmatrix-0.9.99/src/fontbook.cpp Examining data/fontmatrix-0.9.99/src/fmkernfeat.cpp Examining data/fontmatrix-0.9.99/src/fmlayoptwidget.cpp Examining data/fontmatrix-0.9.99/src/importedfontsdialog.h Examining data/fontmatrix-0.9.99/src/filtersdialogitem.cpp Examining data/fontmatrix-0.9.99/src/fmuniblocks.h Examining data/fontmatrix-0.9.99/src/panosematch.h Examining data/fontmatrix-0.9.99/src/fmaltselector.h Examining data/fontmatrix-0.9.99/src/filtersdialog.cpp Examining data/fontmatrix-0.9.99/src/fmsharestruct.cpp Examining data/fontmatrix-0.9.99/src/modeltext.cpp Examining data/fontmatrix-0.9.99/src/fmverticalbutton.cpp Examining data/fontmatrix-0.9.99/src/floatingwidgetsregister.cpp Examining data/fontmatrix-0.9.99/src/fmlayoptwidget.h Examining data/fontmatrix-0.9.99/src/fmfontdb.h Examining data/fontmatrix-0.9.99/src/filterdata.h Examining data/fontmatrix-0.9.99/src/fmglyphsview.h Examining data/fontmatrix-0.9.99/src/schelptreemodel.cpp Examining data/fontmatrix-0.9.99/src/filtersdialog.h Examining data/fontmatrix-0.9.99/src/harfbuzzqtshaper.cpp Examining data/fontmatrix-0.9.99/src/remotedir.cpp Examining data/fontmatrix-0.9.99/src/filterbar.cpp Examining data/fontmatrix-0.9.99/src/familywidget.h Examining data/fontmatrix-0.9.99/src/shortcuts.h Examining data/fontmatrix-0.9.99/src/sctextbrowser.h Examining data/fontmatrix-0.9.99/src/typotek.h Examining data/fontmatrix-0.9.99/src/prefspaneldialog.cpp Examining data/fontmatrix-0.9.99/src/fmfloatingpreview.h Examining data/fontmatrix-0.9.99/src/modeltext.h Examining data/fontmatrix-0.9.99/src/tttableview.cpp Examining data/fontmatrix-0.9.99/src/fmpreviewlist.cpp Examining data/fontmatrix-0.9.99/src/panosewidget.h Examining data/fontmatrix-0.9.99/src/fmfontdb.cpp Examining data/fontmatrix-0.9.99/src/fmglyphsview.cpp Examining data/fontmatrix-0.9.99/src/fmshaper_own.h Examining data/fontmatrix-0.9.99/src/fmpdffontextractor.h Examining data/fontmatrix-0.9.99/src/icushaper.cpp Examining data/fontmatrix-0.9.99/src/fmpython_w.h Examining data/fontmatrix-0.9.99/src/dataexport.cpp Examining data/fontmatrix-0.9.99/src/icushaper.h Examining data/fontmatrix-0.9.99/src/fmshaper_own.cpp Examining data/fontmatrix-0.9.99/src/listdockwidget.h Examining data/fontmatrix-0.9.99/src/fmshaper.h Examining data/fontmatrix-0.9.99/src/progressbarduo.h Examining data/fontmatrix-0.9.99/src/QHexView.cpp Examining data/fontmatrix-0.9.99/src/fmrepair.h Examining data/fontmatrix-0.9.99/src/fmotf.h Examining data/fontmatrix-0.9.99/src/listdockwidget.cpp Examining data/fontmatrix-0.9.99/src/filtermeta.h Examining data/fontmatrix-0.9.99/src/textprogression.h Examining data/fontmatrix-0.9.99/src/filtersdialogitem.h Examining data/fontmatrix-0.9.99/src/filtertagdialog.h Examining data/fontmatrix-0.9.99/src/panosemodel.cpp Examining data/fontmatrix-0.9.99/src/fmmissingfonthelper.cpp Examining data/fontmatrix-0.9.99/src/parallelcoor.h Examining data/fontmatrix-0.9.99/src/activationwidget.h Examining data/fontmatrix-0.9.99/src/fmglyphhighlight.h Examining data/fontmatrix-0.9.99/src/winutils.h Examining data/fontmatrix-0.9.99/src/fmdumpinfo.cpp Examining data/fontmatrix-0.9.99/src/filterdata.cpp Examining data/fontmatrix-0.9.99/src/floatingwidget.h Examining data/fontmatrix-0.9.99/src/panosematch.cpp Examining data/fontmatrix-0.9.99/src/sctextbrowser.cpp Examining data/fontmatrix-0.9.99/src/dumpdialog.cpp Examining data/fontmatrix-0.9.99/src/dataexport.h Examining data/fontmatrix-0.9.99/src/filterpanose.h Examining data/fontmatrix-0.9.99/src/puzzleviewimp.h Examining data/fontmatrix-0.9.99/src/fmsampletextview.h Examining data/fontmatrix-0.9.99/src/chartwidget.cpp Examining data/fontmatrix-0.9.99/src/iview.h Examining data/fontmatrix-0.9.99/src/textprogression.cpp Examining data/fontmatrix-0.9.99/src/fmactivate.cpp Examining data/fontmatrix-0.9.99/src/fmaltcontext.cpp Examining data/fontmatrix-0.9.99/src/fmverticalbutton.h Examining data/fontmatrix-0.9.99/src/iview.cpp Examining data/fontmatrix-0.9.99/src/fmfontstrings.cpp Examining data/fontmatrix-0.9.99/src/progressbarduo.cpp Examining data/fontmatrix-0.9.99/src/fmnamelist.cpp Examining data/fontmatrix-0.9.99/src/playwidget.cpp Examining data/fontmatrix-0.9.99/src/treemodel.cpp Examining data/fontmatrix-0.9.99/src/savedata.cpp Examining data/fontmatrix-0.9.99/src/fminfodisplay.h Examining data/fontmatrix-0.9.99/src/chartwidget.h Examining data/fontmatrix-0.9.99/src/puzzleviewimp.cpp Examining data/fontmatrix-0.9.99/src/m17nshaper.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtSystem.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtStdOut.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtCppWrapperFactory.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtClassInfo.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtMethodInfo.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtVariants.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtMisc.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQt.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtMetaObjectWrapper.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtImportFileInterface.h Examining data/fontmatrix-0.9.99/pythonqt/src/gui/PythonQtScriptingConsole.h Examining data/fontmatrix-0.9.99/pythonqt/src/gui/PythonQtScriptingConsole.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtConversion.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtStdOut.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtObjectPtr.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtImporter.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtDoc.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQt.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/wrapper/PythonQtWrappedVariants.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtVariants.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtClassInfo.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtMetaObjectWrapper.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtWrapper.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtSlot.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtMisc.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtSlot.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtSignalReceiver.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtWrapper.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtVariantWrapper.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtSignalReceiver.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtVariantWrapper.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtConversion.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtObjectPtr.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtImporter.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtStdDecorators.h Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtMethodInfo.cpp Examining data/fontmatrix-0.9.99/pythonqt/src/PythonQtStdDecorators.cpp FINAL RESULTS: data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-dump.c:65: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 (stream, format, list); data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-indic.cpp:1136: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 IDEBUG if(0) printf data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-khmer.c:304:23: [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 KHDEBUG if(0) printf data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-myanmar.c:187:23: [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 MMDEBUG if(0) printf data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shaper.cpp:809:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DEBUG printf data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shaper.cpp:811: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. #define DEBUG if (1) ; else printf data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-stream.c:43:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, format, ap ); data/fontmatrix-0.9.99/pythonqt/src/PythonQt.cpp:817:49: [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. m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { data/fontmatrix-0.9.99/pythonqt/src/PythonQtClassInfo.cpp:118:53: [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. m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { data/fontmatrix-0.9.99/pythonqt/src/PythonQtClassInfo.cpp:220:51: [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. m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { data/fontmatrix-0.9.99/pythonqt/src/PythonQtClassInfo.cpp:334:49: [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. m.methodType() == QMetaMethod::Slot) && m.access() == QMetaMethod::Public) { data/fontmatrix-0.9.99/pythonqt/src/wrapper/PythonQtWrappedVariants.h:750:51: [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. QLocale static_QLocale_system() {return QLocale::system(); } data/fontmatrix-0.9.99/src/QHexView.cpp:91:6: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ret.sprintf(m_AddressFormatString, (address >> 16) & 0xffff, address & 0xffff); data/fontmatrix-0.9.99/src/QHexView.cpp:93:6: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ret.sprintf(m_AddressFormatString, (address >> 32) & 0xffffffff, address & 0xffffffff); data/fontmatrix-0.9.99/src/QHexView.cpp:791:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. byteBuffer.sprintf("%02x", value.b); data/fontmatrix-0.9.99/src/QHexView.cpp:796:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. byteBuffer.sprintf("%04x", value.w); data/fontmatrix-0.9.99/src/QHexView.cpp:803:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. byteBuffer.sprintf("%08x", value.d); data/fontmatrix-0.9.99/src/QHexView.cpp:816:16: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. byteBuffer.sprintf("%016llx", value.q); data/fontmatrix-0.9.99/src/fminfodisplay.cpp:202:58: [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. QString sysLang = QLocale::languageToString ( QLocale::system ().language() ).toUpper(); data/fontmatrix-0.9.99/src/fminfodisplay.cpp:203:60: [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. QString sysCountry = QLocale::countryToString ( QLocale::system ().country() ).toUpper(); data/fontmatrix-0.9.99/src/fmpaths.cpp:106: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. QStringList l_c(QLocale::system().name().split(sep)); data/fontmatrix-0.9.99/src/fmpaths.cpp:134: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. QStringList l_c(QLocale::system().name().split(sep)); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:286: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(dict[k]->cset, dict[0]->cset); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:881:17: [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(prep_word + 2 + i - (*pos)[i], (*rep)[i]); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:911:17: [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(prep_word + 1, word); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:988:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(hyphword + j - (*pos)[i] + 1, (*rep)[i]); data/fontmatrix-0.9.99/src/typotek.cpp:1642:22: [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. QString l(QLocale::system().language()); data/fontmatrix-0.9.99/dodict/dodict.cpp:31: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(!cf.open(QIODevice::ReadOnly | QIODevice::Text )) data/fontmatrix-0.9.99/dodict/dodict.cpp:163: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::WriteOnly | QIODevice::Text)) data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-arabic.c:129: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 arabic_group[0x150] = { data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-buffer.c:120: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( buffer->out_string, buffer->in_string, buffer->out_length * sizeof (buffer->out_string[0]) ); data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-impl.h:104:40: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define MEM_Copy(dest,source,count) memcpy( (char*)(dest), (const char*)(source), (size_t)(count) ) data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-indic.cpp:66: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 indicForms[0xe00-0x900] = { data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-indic.cpp:491: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 indicPosition[0xe00-0x900] = { data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-indic.cpp:1207: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(reordered+1, item->string + item->item.pos, len*sizeof(HB_UChar16)); data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-indic.cpp:1210: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(reordered, item->string + item->item.pos, len*sizeof(HB_UChar16)); data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-khmer.c:362: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 properties[16]; data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-myanmar.c:272: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 properties[32]; data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-shaper.cpp:793: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 string[5]; data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-tibetan.c:49: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 tibetanForm[0x80] = { data/fontmatrix-0.9.99/harfbuzz/src/harfbuzz-tibetan.c:121: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(reordered+1, str, len*sizeof(HB_UChar16)); data/fontmatrix-0.9.99/pythonqt/src/PythonQtImporter.cpp:58: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 suffix[14]; data/fontmatrix-0.9.99/pythonqt/src/PythonQtImporter.cpp:450:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(filename.local8Bit(), flags, 0666); data/fontmatrix-0.9.99/pythonqt/src/PythonQtImporter.cpp:457:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return fopen(filename.toLocal8Bit().constData(), "wb"); data/fontmatrix-0.9.99/pythonqt/src/PythonQtImporter.cpp:595: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 (!file.open(flags)) { data/fontmatrix-0.9.99/src/QHexView.h:178: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 m_AddressFormatString[32]; data/fontmatrix-0.9.99/src/browserwidget.cpp:325: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). typotek::getInstance()->open(curVariant, false, true); data/fontmatrix-0.9.99/src/browserwidget.cpp:376:26: [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). typotek::getInstance()->open(selectedFileOrDir.absoluteFilePath(),false, true); // import the last font with the announce flag set to true data/fontmatrix-0.9.99/src/browserwidget.cpp:381:26: [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). typotek::getInstance()->open(selectedFileOrDir.absoluteFilePath()); data/fontmatrix-0.9.99/src/browserwidget.cpp:386:26: [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). typotek::getInstance()->open(selectedFileOrDir.absoluteFilePath()); data/fontmatrix-0.9.99/src/chartwidget.cpp:498: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). printDialog->open(this, SLOT(slotDoPrinting())); data/fontmatrix-0.9.99/src/dataexport.cpp:116: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::WriteOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/dataexport.cpp:169: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::WriteOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/dataexport.cpp:251: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::WriteOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/dataexport.cpp:270: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(!fileTOP.open(QIODevice::ReadOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/dataexport.cpp:272: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(!fileCENTER.open(QIODevice::ReadOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/dataexport.cpp:274: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(!fileBOTTOM.open(QIODevice::ReadOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/dataloader.cpp:55: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(fp.open(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/dataloader.cpp: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). if(fp.open(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/dataloader.cpp:94:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(fp.open(QIODevice::WriteOnly | QIODevice::Truncate)) data/fontmatrix-0.9.99/src/dumpdialog.cpp:79: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(file.open(QIODevice::ReadOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/filterbar.cpp:436: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(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/filterbar.cpp:576:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(f.open(QIODevice::WriteOnly)) data/fontmatrix-0.9.99/src/filterbar.cpp:597: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/fontmatrix-0.9.99/src/filtersdialog.cpp:128: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(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/fmactivate.cpp:289: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 ( !fcfile.open ( QFile::ReadWrite ) ) data/fontmatrix-0.9.99/src/fmactivate.cpp:384: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 ( !fcfile.open ( QFile::ReadWrite ) ) data/fontmatrix-0.9.99/src/fmdumpinfo.cpp:81: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(!file.open(QIODevice::WriteOnly)) data/fontmatrix-0.9.99/src/fmfontdb.cpp:514:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( !open() ) data/fontmatrix-0.9.99/src/fmfontextract.cpp:136:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(f.open(QIODevice::WriteOnly)) data/fontmatrix-0.9.99/src/fminfodisplay.cpp:66: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(df.open(QIODevice::WriteOnly | QIODevice::Truncate)) data/fontmatrix-0.9.99/src/fmotf.cpp:212: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(output, data.constData(), data.length() + 1); data/fontmatrix-0.9.99/src/fmpython_w.cpp:65: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 ( QIODevice::ReadOnly ) ) data/fontmatrix-0.9.99/src/fmscriptconsole.cpp:115:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(f.open(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/fmscriptconsole.cpp:124:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(rf.open(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/fmscriptconsole.cpp:150: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(file.open(QIODevice::WriteOnly)) data/fontmatrix-0.9.99/src/fmshaper_own.cpp:71: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(!dictFile.open(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/fmshaper_own.cpp:77: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(!matchFile.open(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/fontbook.cpp:63:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(sf.open(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/fontbookdialog.cpp:144: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 ( QFile::ReadOnly ) ) data/fontmatrix-0.9.99/src/fontbookdialog.cpp:175: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 ( !file.open ( QFile::ReadOnly ) ) data/fontmatrix-0.9.99/src/fontitem.cpp:3174: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 ( !rFile->open ( QIODevice::WriteOnly ) ) data/fontmatrix-0.9.99/src/helpbrowser.cpp:179: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 (bookFile.open(QIODevice::WriteOnly)) data/fontmatrix-0.9.99/src/helpbrowser.cpp:201: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 (histFile.open(QIODevice::WriteOnly)) data/fontmatrix-0.9.99/src/helpbrowser.cpp:350: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(QIODevice::ReadOnly)) data/fontmatrix-0.9.99/src/hyphenate/fmhyphenator.cpp:50: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( df.open(QIODevice::ReadOnly) ) data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:60:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new, s, l); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:239: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[MAX_CHARS]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:240: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 word[MAX_CHARS]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:241: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 pattern[MAX_CHARS]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:252:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen (fn, "r"); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:298:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dict[k]->lhmin = atoi(buf + 13); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:301:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dict[k]->rhmin = atoi(buf + 14); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:304:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dict[k]->clhmin = atoi(buf + 21); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:307:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dict[k]->crhmin = atoi(buf + 22); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:323:47: [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). replindex = (signed char) atoi(index + 1) - 1; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:324:45: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). replcut = (signed char) atoi(index2 + 1); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:482: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 prep_word_buf[MAX_WORD]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:664: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 prep_word_buf[MAX_WORD]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:677: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 * matchrepl_buf[MAX_CHARS]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:852: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 * rep2_buf[MAX_WORD]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:855: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 hyphens2_buf[MAX_WORD]; data/fontmatrix-0.9.99/src/hyphenate/hyphen.h:72:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cset[MAX_NAME]; data/fontmatrix-0.9.99/src/listdockwidget.cpp:425: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). typotek::getInstance()->open(absPath, false, true); data/fontmatrix-0.9.99/src/listdockwidget.cpp:427:26: [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). typotek::getInstance()->open(dir.absolutePath() + "/" + lastItem, true); // import the last font with the announce flag set to true data/fontmatrix-0.9.99/src/listdockwidget.cpp:432:26: [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). typotek::getInstance()->open(selectedFileOrDir.absoluteFilePath()); data/fontmatrix-0.9.99/src/listdockwidget.cpp:437:26: [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). typotek::getInstance()->open(selectedFileOrDir.absoluteFilePath()); data/fontmatrix-0.9.99/src/openclosearrow.cpp:3:54: [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). OpenCloseArrow::OpenCloseArrow(QWidget *parent, bool open) : data/fontmatrix-0.9.99/src/openclosearrow.cpp:5: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). openingState(open) data/fontmatrix-0.9.99/src/remotedir.cpp:44: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). buffer->open(QIODevice::WriteOnly); data/fontmatrix-0.9.99/src/remotedir.cpp:240: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). buffer->open(QIODevice::WriteOnly); data/fontmatrix-0.9.99/src/samplewidget.cpp:863: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). printDialog->open(this, SLOT(slotDoPrinting())); data/fontmatrix-0.9.99/src/savedata.cpp:30: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(QIODevice::WriteOnly | QIODevice::Text)) data/fontmatrix-0.9.99/src/schelptreemodel.cpp:50: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( QIODevice::ReadOnly ) ) data/fontmatrix-0.9.99/src/tttableview.cpp:95:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(f.open(QIODevice::WriteOnly)) data/fontmatrix-0.9.99/src/typotek.cpp:347: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). void typotek::open ( QString path, bool recursive, bool announce, bool collect ) data/fontmatrix-0.9.99/src/typotek.cpp:663:58: [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). connect ( openAct, SIGNAL ( triggered() ), this, SLOT ( open() ) ); data/fontmatrix-0.9.99/src/typotek.cpp:1098: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 ( !fcfile.open ( QFile::ReadWrite ) ) data/fontmatrix-0.9.99/src/typotek.h:103: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). void open( QString path = QString(), bool recursive = true, bool announce = true, bool collect = false ); data/fontmatrix-0.9.99/pythonqt/src/PythonQtClassInfo.cpp:111:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int memberNameLen = strlen(memberName); data/fontmatrix-0.9.99/pythonqt/src/PythonQtMethodInfo.cpp:237:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sig = sig.mid(strlen("new_")); data/fontmatrix-0.9.99/pythonqt/src/PythonQtMethodInfo.cpp:240:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sig = sig.mid(strlen("delete_")); data/fontmatrix-0.9.99/pythonqt/src/PythonQtMethodInfo.cpp:244:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sig = sig.mid(strlen("static_")); data/fontmatrix-0.9.99/pythonqt/src/PythonQtWrapper.cpp:158:64: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return PythonQtConv::QVariantToPyObject(member._property.read(wt->_obj)); data/fontmatrix-0.9.99/src/QHexView.cpp:67:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(m_AddressFormatString, "%04x:%04x", sizeof(m_AddressFormatString)); data/fontmatrix-0.9.99/src/QHexView.cpp:69:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(m_AddressFormatString, "%08x:%08x", sizeof(m_AddressFormatString)); data/fontmatrix-0.9.99/src/QHexView.cpp:73:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(m_AddressFormatString, "%04x%04x", sizeof(m_AddressFormatString)); data/fontmatrix-0.9.99/src/QHexView.cpp:75:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(m_AddressFormatString, "%08x%08x", sizeof(m_AddressFormatString)); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:58: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). l = strlen (s); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:68: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). int k = strlen(s); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:329:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). replcut = strlen(buf); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:357:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (; pc < (strlen(word) + 1); pc++) { data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:382:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dict[k]->states[state_num].replcut = strlen(word); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:531:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (k = 0; k < i - strlen (state_str); k++) data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:559:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). offset = i + 1 - strlen (match); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:646:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hnj_hyphen_strnlen(rh + 1, strlen(rh + 1), utf8)) < rhmin) { data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:731:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (k = 0; k < i - strlen (state_str); k++) data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:762:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). offset = i + 1 - strlen (match); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:839: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). j += strlen(matchrepl[matchindex[i]]); data/fontmatrix-0.9.99/src/hyphenate/hyphen.c:989: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). j += strlen((*rep)[i]) - (*pos)[i]; ANALYSIS SUMMARY: Hits = 140 Lines analyzed = 82341 in approximately 2.08 seconds (39658 lines/second) Physical Source Lines of Code (SLOC) = 55640 Hits@level = [0] 48 [1] 21 [2] 92 [3] 0 [4] 27 [5] 0 Hits@level+ = [0+] 188 [1+] 140 [2+] 119 [3+] 27 [4+] 27 [5+] 0 Hits/KSLOC@level+ = [0+] 3.37886 [1+] 2.51618 [2+] 2.13875 [3+] 0.485262 [4+] 0.485262 [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.